llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmp3z9nq2_l.c'
source_filename = "/tmp/tmp3z9nq2_l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @p_fqnname(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i32 %2, ptr %9, align 4
store ptr %3, ptr %10, align 8
store i32 %4, ptr %11, align 4
%14 = load ptr, ptr %8, align 8
%15 = load ptr, ptr %7, align 8
%16 = load i32, ptr %9, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i32, ptr %15, i64 %17
%19 = load ptr, ptr %7, align 8
%20 = load ptr, ptr %10, align 8
%21 = load i32, ptr %11, align 4
%22 = call i32 @dn_expand(ptr noundef %14, ptr noundef %18, ptr noundef %19, ptr noundef %20, i32 noundef %21)
store i32 %22, ptr %12, align 4
%23 = icmp slt i32 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %5
store ptr null, ptr %6, align 8
br label %58
25: ; preds = %5
%26 = load ptr, ptr %10, align 8
%27 = call i64 @strlen(ptr noundef %26)
%28 = trunc i64 %27 to i32
store i32 %28, ptr %13, align 4
%29 = load i32, ptr %13, align 4
%30 = icmp eq i32 %29, 0
br i1 %30, label %40, label %31
31: ; preds = %25
%32 = load ptr, ptr %10, align 8
%33 = load i32, ptr %13, align 4
%34 = sub nsw i32 %33, 1
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %32, i64 %35
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = icmp ne i32 %38, 46
br i1 %39, label %40, label %53
40: ; preds = %31, %25
%41 = load i32, ptr %13, align 4
%42 = add nsw i32 %41, 1
%43 = load i32, ptr %11, align 4
%44 = icmp sge i32 %42, %43
br i1 %44, label %45, label %46
45: ; preds = %40
store ptr null, ptr %6, align 8
br label %58
46: ; preds = %40
%47 = load ptr, ptr %10, align 8
%48 = load i32, ptr %13, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8, ptr %47, i64 %49
%51 = call i32 @strcpy(ptr noundef %50, ptr noundef @.str)
br label %52
52: ; preds = %46
br label %53
53: ; preds = %52, %31
%54 = load ptr, ptr %7, align 8
%55 = load i32, ptr %12, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i32, ptr %54, i64 %56
store ptr %57, ptr %6, align 8
br label %58
58: ; preds = %53, %45, %24
%59 = load ptr, ptr %6, align 8
ret ptr %59
}
declare i32 @dn_expand(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3z9nq2_l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @p_fqnname(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i32 %2, ptr %9, align 4
store ptr %3, ptr %10, align 8
store i32 %4, ptr %11, align 4
%14 = load ptr, ptr %8, align 8
%15 = load ptr, ptr %7, align 8
%16 = load i32, ptr %9, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i32, ptr %15, i64 %17
%19 = load ptr, ptr %7, align 8
%20 = load ptr, ptr %10, align 8
%21 = load i32, ptr %11, align 4
%22 = call i32 @dn_expand(ptr noundef %14, ptr noundef %18, ptr noundef %19, ptr noundef %20, i32 noundef %21)
store i32 %22, ptr %12, align 4
%23 = icmp slt i32 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %5
store ptr null, ptr %6, align 8
br label %58
25: ; preds = %5
%26 = load ptr, ptr %10, align 8
%27 = call i64 @strlen(ptr noundef %26)
%28 = trunc i64 %27 to i32
store i32 %28, ptr %13, align 4
%29 = load i32, ptr %13, align 4
%30 = icmp eq i32 %29, 0
br i1 %30, label %40, label %31
31: ; preds = %25
%32 = load ptr, ptr %10, align 8
%33 = load i32, ptr %13, align 4
%34 = sub nsw i32 %33, 1
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %32, i64 %35
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = icmp ne i32 %38, 46
br i1 %39, label %40, label %53
40: ; preds = %31, %25
%41 = load i32, ptr %13, align 4
%42 = add nsw i32 %41, 1
%43 = load i32, ptr %11, align 4
%44 = icmp sge i32 %42, %43
br i1 %44, label %45, label %46
45: ; preds = %40
store ptr null, ptr %6, align 8
br label %58
46: ; preds = %40
%47 = load ptr, ptr %10, align 8
%48 = load i32, ptr %13, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8, ptr %47, i64 %49
%51 = call i32 @strcpy(ptr noundef %50, ptr noundef @.str)
br label %52
52: ; preds = %46
br label %53
53: ; preds = %52, %31
%54 = load ptr, ptr %7, align 8
%55 = load i32, ptr %12, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i32, ptr %54, i64 %56
store ptr %57, ptr %6, align 8
br label %58
58: ; preds = %53, %45, %24
%59 = load ptr, ptr %6, align 8
ret ptr %59
}
declare i32 @dn_expand(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3q6qh205.c'
source_filename = "/tmp/tmp3q6qh205.c"
target datalayout = "e-m:e-p270: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/tmp3q6qh205.c"
target datalayout = "e-m:e-p270: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/tmpronatruw.c'
source_filename = "/tmp/tmpronatruw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @alock_check_xrender(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
ret i32 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpronatruw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @alock_check_xrender(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
ret i32 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp11144hfa.c'
source_filename = "/tmp/tmp11144hfa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0Ahello\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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp11144hfa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0Ahello\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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxe0i3kar.c'
source_filename = "/tmp/tmpxe0i3kar.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @set_gpio_val_by_fd(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [2 x i8], align 1
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
call void @llvm.memset.p0.i64(ptr align 1 %6, i8 0, i64 2, i1 false)
%7 = getelementptr inbounds [2 x i8], ptr %6, i64 0, i64 0
%8 = load i32, ptr %4, align 4
%9 = call i32 @snprintf(ptr noundef %7, i32 noundef 2, ptr noundef @.str, i32 noundef %8)
%10 = load i32, ptr %3, align 4
%11 = getelementptr inbounds [2 x i8], ptr %6, i64 0, i64 0
%12 = getelementptr inbounds [2 x i8], ptr %6, i64 0, i64 0
%13 = call i32 @strlen(ptr noundef %12)
%14 = call i64 @write(i32 noundef %10, ptr noundef %11, i32 noundef %13)
%15 = icmp slt i64 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %2
store i32 1, ptr %5, align 4
br label %17
17: ; preds = %16, %2
%18 = load i32, ptr %5, align 4
ret i32 %18
}
; 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 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2
declare i64 @write(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @strlen(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: 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/tmpxe0i3kar.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @set_gpio_val_by_fd(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [2 x i8], align 1
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
call void @llvm.memset.p0.i64(ptr align 1 %6, i8 0, i64 2, i1 false)
%7 = getelementptr inbounds [2 x i8], ptr %6, i64 0, i64 0
%8 = load i32, ptr %4, align 4
%9 = call i32 @snprintf(ptr noundef %7, i32 noundef 2, ptr noundef @.str, i32 noundef %8)
%10 = load i32, ptr %3, align 4
%11 = getelementptr inbounds [2 x i8], ptr %6, i64 0, i64 0
%12 = getelementptr inbounds [2 x i8], ptr %6, i64 0, i64 0
%13 = call i32 @strlen(ptr noundef %12)
%14 = call i64 @write(i32 noundef %10, ptr noundef %11, i32 noundef %13)
%15 = icmp slt i64 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %2
store i32 1, ptr %5, align 4
br label %17
17: ; preds = %16, %2
%18 = load i32, ptr %5, align 4
ret i32 %18
}
; 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 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2
declare i64 @write(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @strlen(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: 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/tmpwgig8fwe.c'
source_filename = "/tmp/tmpwgig8fwe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__carbon_delete(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 @__delete(ptr noundef %4)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = call i32 (...) @__inc_remove_counter()
br label %10
10: ; preds = %8, %1
%11 = load i32, ptr %3, align 4
ret i32 %11
}
declare i32 @__delete(ptr noundef) #1
declare i32 @__inc_remove_counter(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwgig8fwe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__carbon_delete(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 @__delete(ptr noundef %4)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = call i32 (...) @__inc_remove_counter()
br label %10
10: ; preds = %8, %1
%11 = load i32, ptr %3, align 4
ret i32 %11
}
declare i32 @__delete(ptr noundef) #1
declare i32 @__inc_remove_counter(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpb26dvqh1.c'
source_filename = "/tmp/tmpb26dvqh1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @foo() #0 {
%1 = call i32 (...) @baz()
%2 = ashr i32 -1, %1
ret i32 %2
}
declare i32 @baz(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb26dvqh1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @foo() #0 {
%1 = call i32 (...) @baz()
%2 = ashr i32 -1, %1
ret i32 %2
}
declare i32 @baz(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4oegk940.c'
source_filename = "/tmp/tmp4oegk940.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOMEM = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong allocsize(0,1) uwtable
define dso_local ptr @calloc(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
store i64 %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%8 = load i64, ptr %4, align 8
%9 = load i64, ptr %5, align 8
%10 = mul i64 %8, %9
store i64 %10, ptr %7, align 8
%11 = load i64, ptr %4, align 8
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %21
13: ; preds = %2
%14 = load i64, ptr %7, align 8
%15 = load i64, ptr %4, align 8
%16 = udiv i64 %14, %15
%17 = load i64, ptr %5, align 8
%18 = icmp ne i64 %16, %17
br i1 %18, label %19, label %21
19: ; preds = %13
%20 = load i32, ptr @ENOMEM, align 4
store i32 %20, ptr @errno, align 4
store ptr null, ptr %3, align 8
br label %32
21: ; preds = %13, %2
%22 = load i64, ptr %7, align 8
%23 = call ptr @malloc(i64 noundef %22) #3
store ptr %23, ptr %6, align 8
%24 = load ptr, ptr %6, align 8
%25 = icmp eq ptr %24, null
br i1 %25, label %26, label %27
26: ; preds = %21
store ptr null, ptr %3, align 8
br label %32
27: ; preds = %21
%28 = load ptr, ptr %6, align 8
%29 = load i64, ptr %7, align 8
%30 = call i32 @memset(ptr noundef %28, i32 noundef 0, i64 noundef %29)
%31 = load ptr, ptr %6, align 8
store ptr %31, ptr %3, align 8
br label %32
32: ; preds = %27, %26, %19
%33 = load ptr, ptr %3, align 8
ret ptr %33
}
; Function Attrs: allocsize(0)
declare ptr @malloc(i64 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i64 noundef) #2
attributes #0 = { noinline nounwind sspstrong allocsize(0,1) uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { allocsize(0) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4oegk940.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOMEM = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong allocsize(0,1) uwtable
define dso_local ptr @calloc(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
store i64 %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%8 = load i64, ptr %4, align 8
%9 = load i64, ptr %5, align 8
%10 = mul i64 %8, %9
store i64 %10, ptr %7, align 8
%11 = load i64, ptr %4, align 8
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %21
13: ; preds = %2
%14 = load i64, ptr %7, align 8
%15 = load i64, ptr %4, align 8
%16 = udiv i64 %14, %15
%17 = load i64, ptr %5, align 8
%18 = icmp ne i64 %16, %17
br i1 %18, label %19, label %21
19: ; preds = %13
%20 = load i32, ptr @ENOMEM, align 4
store i32 %20, ptr @errno, align 4
store ptr null, ptr %3, align 8
br label %32
21: ; preds = %13, %2
%22 = load i64, ptr %7, align 8
%23 = call ptr @malloc(i64 noundef %22) #3
store ptr %23, ptr %6, align 8
%24 = load ptr, ptr %6, align 8
%25 = icmp eq ptr %24, null
br i1 %25, label %26, label %27
26: ; preds = %21
store ptr null, ptr %3, align 8
br label %32
27: ; preds = %21
%28 = load ptr, ptr %6, align 8
%29 = load i64, ptr %7, align 8
%30 = call i32 @memset(ptr noundef %28, i32 noundef 0, i64 noundef %29)
%31 = load ptr, ptr %6, align 8
store ptr %31, ptr %3, align 8
br label %32
32: ; preds = %27, %26, %19
%33 = load ptr, ptr %3, align 8
ret ptr %33
}
; Function Attrs: allocsize(0)
declare ptr @malloc(i64 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i64 noundef) #2
attributes #0 = { noinline nounwind sspstrong allocsize(0,1) uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { allocsize(0) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpobakruvm.c'
source_filename = "/tmp/tmpobakruvm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @part1()
%3 = call i32 (...) @part2()
ret i32 0
}
declare i32 @part1(...) #1
declare i32 @part2(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpobakruvm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @part1()
%3 = call i32 (...) @part2()
ret i32 0
}
declare i32 @part1(...) #1
declare i32 @part2(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6f1tfe1o.c'
source_filename = "/tmp/tmp6f1tfe1o.c"
target datalayout = "e-m:e-p270: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/tmp6f1tfe1o.c"
target datalayout = "e-m:e-p270: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/tmpcle5a2tk.c'
source_filename = "/tmp/tmpcle5a2tk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @findMinArrowShots(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
%11 = load ptr, ptr %5, align 8
%12 = load i32, ptr %6, align 4
%13 = sub nsw i32 %12, 1
%14 = call i32 @quickSort(ptr noundef %11, i32 noundef 0, i32 noundef %13)
%15 = load i32, ptr %6, align 4
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %3
store i32 0, ptr %4, align 4
br label %74
18: ; preds = %3
store i32 1, ptr %8, align 4
store i32 1, ptr %9, align 4
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 0
%21 = load ptr, ptr %20, align 8
%22 = getelementptr inbounds i32, ptr %21, i64 1
%23 = load i32, ptr %22, align 4
store i32 %23, ptr %10, align 4
br label %24
24: ; preds = %71, %18
%25 = load i32, ptr %9, align 4
%26 = load i32, ptr %6, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %72
28: ; preds = %24
%29 = load ptr, ptr %5, align 8
%30 = load i32, ptr %9, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds ptr, ptr %29, i64 %31
%33 = load ptr, ptr %32, align 8
%34 = getelementptr inbounds i32, ptr %33, i64 0
%35 = load i32, ptr %34, align 4
%36 = load i32, ptr %10, align 4
%37 = icmp sle i32 %35, %36
br i1 %37, label %38, label %59
38: ; preds = %28
%39 = load ptr, ptr %5, align 8
%40 = load i32, ptr %9, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds ptr, ptr %39, i64 %41
%43 = load ptr, ptr %42, align 8
%44 = getelementptr inbounds i32, ptr %43, i64 1
%45 = load i32, ptr %44, align 4
%46 = load i32, ptr %10, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %48, label %56
48: ; preds = %38
%49 = load ptr, ptr %5, align 8
%50 = load i32, ptr %9, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds ptr, ptr %49, i64 %51
%53 = load ptr, ptr %52, align 8
%54 = getelementptr inbounds i32, ptr %53, i64 1
%55 = load i32, ptr %54, align 4
store i32 %55, ptr %10, align 4
br label %56
56: ; preds = %48, %38
%57 = load i32, ptr %9, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %9, align 4
br label %71
59: ; preds = %28
%60 = load ptr, ptr %5, align 8
%61 = load i32, ptr %9, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds ptr, ptr %60, i64 %62
%64 = load ptr, ptr %63, align 8
%65 = getelementptr inbounds i32, ptr %64, i64 1
%66 = load i32, ptr %65, align 4
store i32 %66, ptr %10, align 4
%67 = load i32, ptr %9, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %9, align 4
%69 = load i32, ptr %8, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %8, align 4
br label %71
71: ; preds = %59, %56
br label %24, !llvm.loop !6
72: ; preds = %24
%73 = load i32, ptr %8, align 4
store i32 %73, ptr %4, align 4
br label %74
74: ; preds = %72, %17
%75 = load i32, ptr %4, align 4
ret i32 %75
}
declare i32 @quickSort(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/tmpcle5a2tk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @findMinArrowShots(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
%11 = load ptr, ptr %5, align 8
%12 = load i32, ptr %6, align 4
%13 = sub nsw i32 %12, 1
%14 = call i32 @quickSort(ptr noundef %11, i32 noundef 0, i32 noundef %13)
%15 = load i32, ptr %6, align 4
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %3
store i32 0, ptr %4, align 4
br label %76
18: ; preds = %3
store i32 1, ptr %8, align 4
store i32 1, ptr %9, align 4
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 0
%21 = load ptr, ptr %20, align 8
%22 = getelementptr inbounds i32, ptr %21, i64 1
%23 = load i32, ptr %22, align 4
store i32 %23, ptr %10, align 4
%24 = load i32, ptr %9, align 4
%25 = load i32, ptr %6, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %.lr.ph, label %74
.lr.ph: ; preds = %18
br label %27
27: ; preds = %.lr.ph, %70
%28 = load ptr, ptr %5, align 8
%29 = load i32, ptr %9, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds ptr, ptr %28, i64 %30
%32 = load ptr, ptr %31, align 8
%33 = getelementptr inbounds i32, ptr %32, i64 0
%34 = load i32, ptr %33, align 4
%35 = load i32, ptr %10, align 4
%36 = icmp sle i32 %34, %35
br i1 %36, label %37, label %58
37: ; preds = %27
%38 = load ptr, ptr %5, align 8
%39 = load i32, ptr %9, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds ptr, ptr %38, i64 %40
%42 = load ptr, ptr %41, align 8
%43 = getelementptr inbounds i32, ptr %42, i64 1
%44 = load i32, ptr %43, align 4
%45 = load i32, ptr %10, align 4
%46 = icmp slt i32 %44, %45
br i1 %46, label %47, label %55
47: ; preds = %37
%48 = load ptr, ptr %5, align 8
%49 = load i32, ptr %9, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds ptr, ptr %48, i64 %50
%52 = load ptr, ptr %51, align 8
%53 = getelementptr inbounds i32, ptr %52, i64 1
%54 = load i32, ptr %53, align 4
store i32 %54, ptr %10, align 4
br label %55
55: ; preds = %47, %37
%56 = load i32, ptr %9, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %9, align 4
br label %70
58: ; preds = %27
%59 = load ptr, ptr %5, align 8
%60 = load i32, ptr %9, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds ptr, ptr %59, i64 %61
%63 = load ptr, ptr %62, align 8
%64 = getelementptr inbounds i32, ptr %63, i64 1
%65 = load i32, ptr %64, align 4
store i32 %65, ptr %10, align 4
%66 = load i32, ptr %9, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %9, align 4
%68 = load i32, ptr %8, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %8, align 4
br label %70
70: ; preds = %58, %55
%71 = load i32, ptr %9, align 4
%72 = load i32, ptr %6, align 4
%73 = icmp slt i32 %71, %72
br i1 %73, label %27, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %70
br label %74
74: ; preds = %._crit_edge, %18
%75 = load i32, ptr %8, align 4
store i32 %75, ptr %4, align 4
br label %76
76: ; preds = %74, %17
%77 = load i32, ptr %4, align 4
ret i32 %77
}
declare i32 @quickSort(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/tmp_b3r3ea1.c'
source_filename = "/tmp/tmp_b3r3ea1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"\1B[2J\1B[1;1H\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dev_putch(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp sgt i32 %3, 0
br i1 %4, label %5, label %10
5: ; preds = %1
%6 = load i32, ptr %2, align 4
%7 = trunc i32 %6 to i8
%8 = sext i8 %7 to i32
%9 = call i32 @putchar(i32 noundef %8)
br label %12
10: ; preds = %1
%11 = call i32 @printf(ptr noundef @.str)
br label %12
12: ; preds = %10, %5
%13 = load i32, ptr %2, align 4
%14 = icmp eq i32 %13, 8
br i1 %14, label %15, label %18
15: ; preds = %12
%16 = call i32 @putchar(i32 noundef 32)
%17 = call i32 @putchar(i32 noundef 8)
br label %18
18: ; preds = %15, %12
ret void
}
declare i32 @putchar(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/tmp_b3r3ea1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"\1B[2J\1B[1;1H\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dev_putch(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp sgt i32 %3, 0
br i1 %4, label %5, label %10
5: ; preds = %1
%6 = load i32, ptr %2, align 4
%7 = trunc i32 %6 to i8
%8 = sext i8 %7 to i32
%9 = call i32 @putchar(i32 noundef %8)
br label %12
10: ; preds = %1
%11 = call i32 @printf(ptr noundef @.str)
br label %12
12: ; preds = %10, %5
%13 = load i32, ptr %2, align 4
%14 = icmp eq i32 %13, 8
br i1 %14, label %15, label %18
15: ; preds = %12
%16 = call i32 @putchar(i32 noundef 32)
%17 = call i32 @putchar(i32 noundef 8)
br label %18
18: ; preds = %15, %12
ret void
}
declare i32 @putchar(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/tmpg4u_2b2s.c'
source_filename = "/tmp/tmpg4u_2b2s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nested_res() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i64 @malloc(i32 noundef 4)
%6 = inttoptr i64 %5 to ptr
store ptr %6, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %10
9: ; preds = %0
store i32 1, ptr %1, align 4
br label %24
10: ; preds = %0
%11 = call i32 (...) @rand()
store i32 %11, ptr %3, align 4
%12 = load i32, ptr %3, align 4
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %10
store i32 2, ptr %1, align 4
br label %21
15: ; preds = %10
%16 = call i32 (...) @rand()
store i32 %16, ptr %4, align 4
%17 = load i32, ptr %4, align 4
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %15
store i32 3, ptr %1, align 4
br label %20
20: ; preds = %19, %15
br label %21
21: ; preds = %20, %14
%22 = load ptr, ptr %2, align 8
%23 = call i32 @free(ptr noundef %22)
br label %24
24: ; preds = %21, %9
%25 = load i32, ptr %1, align 4
ret i32 %25
}
declare i64 @malloc(i32 noundef) #1
declare i32 @rand(...) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpg4u_2b2s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nested_res() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i64 @malloc(i32 noundef 4)
%6 = inttoptr i64 %5 to ptr
store ptr %6, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %10
9: ; preds = %0
store i32 1, ptr %1, align 4
br label %24
10: ; preds = %0
%11 = call i32 (...) @rand()
store i32 %11, ptr %3, align 4
%12 = load i32, ptr %3, align 4
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %10
store i32 2, ptr %1, align 4
br label %21
15: ; preds = %10
%16 = call i32 (...) @rand()
store i32 %16, ptr %4, align 4
%17 = load i32, ptr %4, align 4
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %15
store i32 3, ptr %1, align 4
br label %20
20: ; preds = %19, %15
br label %21
21: ; preds = %20, %14
%22 = load ptr, ptr %2, align 8
%23 = call i32 @free(ptr noundef %22)
br label %24
24: ; preds = %21, %9
%25 = load i32, ptr %1, align 4
ret i32 %25
}
declare i64 @malloc(i32 noundef) #1
declare i32 @rand(...) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpv9ky20rv.c'
source_filename = "/tmp/tmpv9ky20rv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"json-task.json\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"\22username\22:\22%s\22, \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @function_uname(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @write(ptr noundef @.str, ptr noundef @.str.1, ptr noundef %3)
ret void
}
declare i32 @write(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv9ky20rv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"json-task.json\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"\22username\22:\22%s\22, \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @function_uname(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @write(ptr noundef @.str, ptr noundef @.str.1, ptr noundef %3)
ret void
}
declare i32 @write(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnr6pexx5.c'
source_filename = "/tmp/tmpnr6pexx5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Number of yields %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"RETURNED %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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
%8 = call i32 @fun(i32 noundef 1)
store i32 %8, ptr %6, align 4
%9 = load i32, ptr %7, align 4
%10 = call i32 @printf(ptr noundef @.str, i32 noundef %9)
%11 = load i32, ptr %6, align 4
%12 = call i32 @printf(ptr noundef @.str.1, i32 noundef %11)
%13 = load i32, ptr %6, align 4
%14 = icmp ne i32 %13, 201
br i1 %14, label %15, label %16
15: ; preds = %2
store i32 1, ptr %3, align 4
br label %17
16: ; preds = %2
store i32 0, ptr %3, align 4
br label %17
17: ; preds = %16, %15
%18 = load i32, ptr %3, align 4
ret i32 %18
}
declare i32 @fun(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnr6pexx5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Number of yields %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"RETURNED %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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
%8 = call i32 @fun(i32 noundef 1)
store i32 %8, ptr %6, align 4
%9 = load i32, ptr %7, align 4
%10 = call i32 @printf(ptr noundef @.str, i32 noundef %9)
%11 = load i32, ptr %6, align 4
%12 = call i32 @printf(ptr noundef @.str.1, i32 noundef %11)
%13 = load i32, ptr %6, align 4
%14 = icmp ne i32 %13, 201
br i1 %14, label %15, label %16
15: ; preds = %2
store i32 1, ptr %3, align 4
br label %17
16: ; preds = %2
store i32 0, ptr %3, align 4
br label %17
17: ; preds = %16, %15
%18 = load i32, ptr %3, align 4
ret i32 %18
}
declare i32 @fun(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfhjqovhv.c'
source_filename = "/tmp/tmpfhjqovhv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i8 0, align 1
@stdin = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @skip_whitespace() #0 {
%1 = alloca i8, align 1
%2 = alloca i32, align 4
store i32 1, ptr %2, align 4
br label %3
3: ; preds = %54, %0
%4 = load i32, ptr %2, align 4
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %55
6: ; preds = %3
br label %7
7: ; preds = %29, %6
%8 = call signext i8 (...) @getchar()
store i8 %8, ptr %1, align 1
%9 = sext i8 %8 to i32
%10 = load i8, ptr @EOF, align 1
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %9, %11
br i1 %12, label %13, label %27
13: ; preds = %7
%14 = load i8, ptr %1, align 1
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 32
br i1 %16, label %25, label %17
17: ; preds = %13
%18 = load i8, ptr %1, align 1
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 9
br i1 %20, label %25, label %21
21: ; preds = %17
%22 = load i8, ptr %1, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 10
br label %25
25: ; preds = %21, %17, %13
%26 = phi i1 [ true, %17 ], [ true, %13 ], [ %24, %21 ]
br label %27
27: ; preds = %25, %7
%28 = phi i1 [ false, %7 ], [ %26, %25 ]
br i1 %28, label %29, label %30
29: ; preds = %27
br label %7, !llvm.loop !6
30: ; preds = %27
%31 = load i8, ptr %1, align 1
%32 = sext i8 %31 to i32
%33 = icmp eq i32 %32, 47
br i1 %33, label %34, label %53
34: ; preds = %30
%35 = call signext i8 (...) @peekchar()
%36 = sext i8 %35 to i32
%37 = icmp eq i32 %36, 47
br i1 %37, label %38, label %53
38: ; preds = %34
br label %39
39: ; preds = %51, %38
%40 = call signext i8 (...) @getchar()
store i8 %40, ptr %1, align 1
%41 = sext i8 %40 to i32
%42 = load i8, ptr @EOF, align 1
%43 = sext i8 %42 to i32
%44 = icmp ne i32 %41, %43
br i1 %44, label %45, label %49
45: ; preds = %39
%46 = load i8, ptr %1, align 1
%47 = sext i8 %46 to i32
%48 = icmp ne i32 %47, 10
br label %49
49: ; preds = %45, %39
%50 = phi i1 [ false, %39 ], [ %48, %45 ]
br i1 %50, label %51, label %52
51: ; preds = %49
br label %39, !llvm.loop !8
52: ; preds = %49
br label %54
53: ; preds = %34, %30
store i32 0, ptr %2, align 4
br label %54
54: ; preds = %53, %52
br label %3, !llvm.loop !9
55: ; preds = %3
%56 = load i8, ptr %1, align 1
%57 = load i32, ptr @stdin, align 4
%58 = call i32 @ungetc(i8 noundef signext %56, i32 noundef %57)
ret void
}
declare signext i8 @getchar(...) #1
declare signext i8 @peekchar(...) #1
declare i32 @ungetc(i8 noundef signext, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpfhjqovhv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i8 0, align 1
@stdin = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @skip_whitespace() #0 {
%1 = alloca i8, align 1
%2 = alloca i32, align 4
store i32 1, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp ne i32 %3, 0
br i1 %4, label %.lr.ph, label %54
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %51
br label %6
6: ; preds = %26, %5
%7 = call signext i8 (...) @getchar()
store i8 %7, ptr %1, align 1
%8 = sext i8 %7 to i32
%9 = load i8, ptr @EOF, align 1
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %8, %10
br i1 %11, label %12, label %26
12: ; preds = %6
%13 = load i8, ptr %1, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 32
br i1 %15, label %24, label %16
16: ; preds = %12
%17 = load i8, ptr %1, align 1
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 9
br i1 %19, label %24, label %20
20: ; preds = %16
%21 = load i8, ptr %1, align 1
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 10
br label %24
24: ; preds = %20, %16, %12
%25 = phi i1 [ true, %16 ], [ true, %12 ], [ %23, %20 ]
br label %26
26: ; preds = %24, %6
%27 = phi i1 [ false, %6 ], [ %25, %24 ]
br i1 %27, label %6, label %28, !llvm.loop !6
28: ; preds = %26
%29 = load i8, ptr %1, align 1
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 47
br i1 %31, label %32, label %50
32: ; preds = %28
%33 = call signext i8 (...) @peekchar()
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 47
br i1 %35, label %36, label %50
36: ; preds = %32
br label %37
37: ; preds = %47, %36
%38 = call signext i8 (...) @getchar()
store i8 %38, ptr %1, align 1
%39 = sext i8 %38 to i32
%40 = load i8, ptr @EOF, align 1
%41 = sext i8 %40 to i32
%42 = icmp ne i32 %39, %41
br i1 %42, label %43, label %47
43: ; preds = %37
%44 = load i8, ptr %1, align 1
%45 = sext i8 %44 to i32
%46 = icmp ne i32 %45, 10
br label %47
47: ; preds = %43, %37
%48 = phi i1 [ false, %37 ], [ %46, %43 ]
br i1 %48, label %37, label %49, !llvm.loop !8
49: ; preds = %47
br label %51
50: ; preds = %32, %28
store i32 0, ptr %2, align 4
br label %51
51: ; preds = %50, %49
%52 = load i32, ptr %2, align 4
%53 = icmp ne i32 %52, 0
br i1 %53, label %5, label %._crit_edge, !llvm.loop !9
._crit_edge: ; preds = %51
br label %54
54: ; preds = %._crit_edge, %0
%55 = load i8, ptr %1, align 1
%56 = load i32, ptr @stdin, align 4
%57 = call i32 @ungetc(i8 noundef signext %55, i32 noundef %56)
ret void
}
declare signext i8 @getchar(...) #1
declare signext i8 @peekchar(...) #1
declare i32 @ungetc(i8 noundef signext, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpt_pd13ef.c'
source_filename = "/tmp/tmpt_pd13ef.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@config_load.config_parsed = internal global i32 0, align 4
@.str = private unnamed_addr constant [30 x i8] c"/etc/pamnss-mysql/global.conf\00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"/etc/pamnss-mysql/root.conf\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @config_load() #0 {
%1 = load i32, ptr @config_load.config_parsed, align 4
%2 = icmp eq i32 %1, 0
br i1 %2, label %3, label %6
3: ; preds = %0
%4 = call i32 @config_parse(ptr noundef @.str)
%5 = call i32 @config_parse(ptr noundef @.str.1)
store i32 1, ptr @config_load.config_parsed, align 4
br label %6
6: ; preds = %3, %0
ret void
}
declare i32 @config_parse(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt_pd13ef.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@config_load.config_parsed = internal global i32 0, align 4
@.str = private unnamed_addr constant [30 x i8] c"/etc/pamnss-mysql/global.conf\00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"/etc/pamnss-mysql/root.conf\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @config_load() #0 {
%1 = load i32, ptr @config_load.config_parsed, align 4
%2 = icmp eq i32 %1, 0
br i1 %2, label %3, label %6
3: ; preds = %0
%4 = call i32 @config_parse(ptr noundef @.str)
%5 = call i32 @config_parse(ptr noundef @.str.1)
store i32 1, ptr @config_load.config_parsed, align 4
br label %6
6: ; preds = %3, %0
ret void
}
declare i32 @config_parse(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpc7_os7md.c'
source_filename = "/tmp/tmpc7_os7md.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @decode_bits(i8 noundef zeroext %0, ptr noundef %1) #0 {
%3 = alloca i8, align 1
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i8 %0, ptr %3, align 1
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %26, %2
%7 = load i32, ptr %5, align 4
%8 = icmp slt i32 %7, 8
br i1 %8, label %9, label %29
9: ; preds = %6
%10 = load i8, ptr %3, align 1
%11 = zext i8 %10 to i32
%12 = and i32 %11, 1
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %21
14: ; preds = %9
%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 = call i32 @printf(ptr noundef @.str, ptr noundef %19)
br label %21
21: ; preds = %14, %9
%22 = load i8, ptr %3, align 1
%23 = zext i8 %22 to i32
%24 = ashr i32 %23, 1
%25 = trunc i32 %24 to i8
store i8 %25, ptr %3, align 1
br label %26
26: ; preds = %21
%27 = load i32, ptr %5, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %5, align 4
br label %6, !llvm.loop !6
29: ; preds = %6
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc7_os7md.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @decode_bits(i8 noundef zeroext %0, ptr noundef %1) #0 {
%3 = alloca i8, align 1
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i8 %0, ptr %3, align 1
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = icmp slt i32 %6, 8
br i1 %7, label %.lr.ph, label %30
.lr.ph: ; preds = %2
br label %8
8: ; preds = %.lr.ph, %25
%9 = load i8, ptr %3, align 1
%10 = zext i8 %9 to i32
%11 = and i32 %10, 1
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %20
13: ; preds = %8
%14 = load ptr, ptr %4, align 8
%15 = load i32, ptr %5, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds ptr, ptr %14, i64 %16
%18 = load ptr, ptr %17, align 8
%19 = call i32 @printf(ptr noundef @.str, ptr noundef %18)
br label %20
20: ; preds = %13, %8
%21 = load i8, ptr %3, align 1
%22 = zext i8 %21 to i32
%23 = ashr i32 %22, 1
%24 = trunc i32 %23 to i8
store i8 %24, ptr %3, align 1
br label %25
25: ; preds = %20
%26 = load i32, ptr %5, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %5, align 4
%28 = load i32, ptr %5, align 4
%29 = icmp slt i32 %28, 8
br i1 %29, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %30
30: ; preds = %._crit_edge, %2
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpd3amsuff.c'
source_filename = "/tmp/tmpd3amsuff.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strempty(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 %7, label %6
6: ; preds = %1
store i32 1, ptr %2, align 4
br label %23
7: ; preds = %1
br label %8
8: ; preds = %19, %7
%9 = load ptr, ptr %3, align 8
%10 = load i8, ptr %9, align 1
%11 = icmp ne i8 %10, 0
br i1 %11, label %12, label %22
12: ; preds = %8
%13 = load ptr, ptr %3, align 8
%14 = load i8, ptr %13, align 1
%15 = call i32 @isspace(i8 noundef signext %14)
%16 = icmp ne i32 %15, 0
br i1 %16, label %18, label %17
17: ; preds = %12
store i32 0, ptr %2, align 4
br label %23
18: ; preds = %12
br label %19
19: ; preds = %18
%20 = load ptr, ptr %3, align 8
%21 = getelementptr inbounds i8, ptr %20, i32 1
store ptr %21, ptr %3, align 8
br label %8, !llvm.loop !6
22: ; preds = %8
store i32 1, ptr %2, align 4
br label %23
23: ; preds = %22, %17, %6
%24 = load i32, ptr %2, align 4
ret i32 %24
}
declare i32 @isspace(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpd3amsuff.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strempty(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 %7, label %6
6: ; preds = %1
store i32 1, ptr %2, align 4
br label %25
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
%9 = load i8, ptr %8, align 1
%10 = icmp ne i8 %9, 0
br i1 %10, label %.lr.ph, label %24
.lr.ph: ; preds = %7
br label %11
11: ; preds = %.lr.ph, %18
%12 = load ptr, ptr %3, align 8
%13 = load i8, ptr %12, align 1
%14 = call i32 @isspace(i8 noundef signext %13)
%15 = icmp ne i32 %14, 0
br i1 %15, label %17, label %16
16: ; preds = %11
store i32 0, ptr %2, align 4
br label %25
17: ; preds = %11
br label %18
18: ; preds = %17
%19 = load ptr, ptr %3, align 8
%20 = getelementptr inbounds i8, ptr %19, i32 1
store ptr %20, ptr %3, align 8
%21 = load ptr, ptr %3, align 8
%22 = load i8, ptr %21, align 1
%23 = icmp ne i8 %22, 0
br i1 %23, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %24
24: ; preds = %._crit_edge, %7
store i32 1, ptr %2, align 4
br label %25
25: ; preds = %24, %16, %6
%26 = load i32, ptr %2, align 4
ret i32 %26
}
declare i32 @isspace(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpz12bgq8i.c'
source_filename = "/tmp/tmpz12bgq8i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wcsncmp(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = 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
%11 = load ptr, ptr %5, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %18, label %13
13: ; preds = %3
%14 = load ptr, ptr %6, align 8
%15 = icmp ne ptr %14, null
%16 = zext i1 %15 to i64
%17 = select i1 %15, i32 -1, i32 0
store i32 %17, ptr %4, align 4
br label %65
18: ; preds = %3
%19 = load ptr, ptr %6, align 8
%20 = icmp ne ptr %19, null
br i1 %20, label %22, label %21
21: ; preds = %18
store i32 1, ptr %4, align 4
br label %65
22: ; preds = %18
%23 = load i64, ptr %7, align 8
store i64 %23, ptr %10, align 8
br label %24
24: ; preds = %42, %22
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds i32, ptr %25, i32 1
store ptr %26, ptr %5, align 8
%27 = load i32, ptr %25, align 4
store i32 %27, ptr %8, align 4
%28 = load ptr, ptr %6, align 8
%29 = getelementptr inbounds i32, ptr %28, i32 1
store ptr %29, ptr %6, align 8
%30 = load i32, ptr %28, align 4
store i32 %30, ptr %9, align 4
br label %31
31: ; preds = %24
%32 = load i64, ptr %10, align 8
%33 = add nsw i64 %32, -1
store i64 %33, ptr %10, align 8
%34 = icmp sge i64 %33, 0
br i1 %34, label %35, label %42
35: ; preds = %31
%36 = load i32, ptr %8, align 4
%37 = icmp ne i32 %36, 0
br i1 %37, label %38, label %42
38: ; preds = %35
%39 = load i32, ptr %8, align 4
%40 = load i32, ptr %9, align 4
%41 = icmp eq i32 %39, %40
br label %42
42: ; preds = %38, %35, %31
%43 = phi i1 [ false, %35 ], [ false, %31 ], [ %41, %38 ]
br i1 %43, label %24, label %44, !llvm.loop !6
44: ; preds = %42
%45 = load i64, ptr %10, align 8
%46 = icmp slt i64 %45, 0
br i1 %46, label %47, label %48
47: ; preds = %44
store i32 0, ptr %4, align 4
br label %65
48: ; preds = %44
%49 = load i32, ptr %8, align 4
%50 = load i32, ptr %9, align 4
%51 = icmp eq i32 %49, %50
br i1 %51, label %52, label %53
52: ; preds = %48
store i32 0, ptr %4, align 4
br label %65
53: ; preds = %48
%54 = load i32, ptr %8, align 4
%55 = icmp eq i32 %54, 0
br i1 %55, label %56, label %57
56: ; preds = %53
store i32 -1, ptr %4, align 4
br label %65
57: ; preds = %53
%58 = load i32, ptr %9, align 4
%59 = icmp eq i32 %58, 0
br i1 %59, label %60, label %61
60: ; preds = %57
store i32 1, ptr %4, align 4
br label %65
61: ; preds = %57
%62 = load i32, ptr %8, align 4
%63 = load i32, ptr %9, align 4
%64 = sub nsw i32 %62, %63
store i32 %64, ptr %4, align 4
br label %65
65: ; preds = %61, %60, %56, %52, %47, %21, %13
%66 = load i32, ptr %4, align 4
ret i32 %66
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpz12bgq8i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wcsncmp(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = 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
%11 = load ptr, ptr %5, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %18, label %13
13: ; preds = %3
%14 = load ptr, ptr %6, align 8
%15 = icmp ne ptr %14, null
%16 = zext i1 %15 to i64
%17 = select i1 %15, i32 -1, i32 0
store i32 %17, ptr %4, align 4
br label %65
18: ; preds = %3
%19 = load ptr, ptr %6, align 8
%20 = icmp ne ptr %19, null
br i1 %20, label %22, label %21
21: ; preds = %18
store i32 1, ptr %4, align 4
br label %65
22: ; preds = %18
%23 = load i64, ptr %7, align 8
store i64 %23, ptr %10, align 8
br label %24
24: ; preds = %42, %22
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds i32, ptr %25, i32 1
store ptr %26, ptr %5, align 8
%27 = load i32, ptr %25, align 4
store i32 %27, ptr %8, align 4
%28 = load ptr, ptr %6, align 8
%29 = getelementptr inbounds i32, ptr %28, i32 1
store ptr %29, ptr %6, align 8
%30 = load i32, ptr %28, align 4
store i32 %30, ptr %9, align 4
br label %31
31: ; preds = %24
%32 = load i64, ptr %10, align 8
%33 = add nsw i64 %32, -1
store i64 %33, ptr %10, align 8
%34 = icmp sge i64 %33, 0
br i1 %34, label %35, label %42
35: ; preds = %31
%36 = load i32, ptr %8, align 4
%37 = icmp ne i32 %36, 0
br i1 %37, label %38, label %42
38: ; preds = %35
%39 = load i32, ptr %8, align 4
%40 = load i32, ptr %9, align 4
%41 = icmp eq i32 %39, %40
br label %42
42: ; preds = %38, %35, %31
%43 = phi i1 [ false, %35 ], [ false, %31 ], [ %41, %38 ]
br i1 %43, label %24, label %44, !llvm.loop !6
44: ; preds = %42
%45 = load i64, ptr %10, align 8
%46 = icmp slt i64 %45, 0
br i1 %46, label %47, label %48
47: ; preds = %44
store i32 0, ptr %4, align 4
br label %65
48: ; preds = %44
%49 = load i32, ptr %8, align 4
%50 = load i32, ptr %9, align 4
%51 = icmp eq i32 %49, %50
br i1 %51, label %52, label %53
52: ; preds = %48
store i32 0, ptr %4, align 4
br label %65
53: ; preds = %48
%54 = load i32, ptr %8, align 4
%55 = icmp eq i32 %54, 0
br i1 %55, label %56, label %57
56: ; preds = %53
store i32 -1, ptr %4, align 4
br label %65
57: ; preds = %53
%58 = load i32, ptr %9, align 4
%59 = icmp eq i32 %58, 0
br i1 %59, label %60, label %61
60: ; preds = %57
store i32 1, ptr %4, align 4
br label %65
61: ; preds = %57
%62 = load i32, ptr %8, align 4
%63 = load i32, ptr %9, align 4
%64 = sub nsw i32 %62, %63
store i32 %64, ptr %4, align 4
br label %65
65: ; preds = %61, %60, %56, %52, %47, %21, %13
%66 = load i32, ptr %4, align 4
ret i32 %66
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmphl8m20eg.c'
source_filename = "/tmp/tmphl8m20eg.c"
target datalayout = "e-m:e-p270: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.sysinfo = type { i64, double, double, double }
@.str = private unnamed_addr constant [41 x i8] c"system uptime:%ld days, %ld:%02ld:%02ld\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"total RAM: %5.1f\0A\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"free RAM: %5.1f\0A\00", align 1
@.str.3 = private unnamed_addr constant [20 x i8] c"Process counts: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca double, align 8
%6 = alloca %struct.sysinfo, align 8
store i32 0, ptr %1, align 4
store i64 60, ptr %2, align 8
store i64 3600, ptr %3, align 8
store i64 86400, ptr %4, align 8
store double 0x4130000000000000, ptr %5, align 8
%7 = call i32 @sysinfo(ptr noundef %6)
%8 = getelementptr inbounds %struct.sysinfo, ptr %6, i32 0, i32 0
%9 = load i64, ptr %8, align 8
%10 = sdiv i64 %9, 86400
%11 = sitofp i64 %10 to double
%12 = getelementptr inbounds %struct.sysinfo, ptr %6, i32 0, i32 0
%13 = load i64, ptr %12, align 8
%14 = srem i64 %13, 86400
%15 = sdiv i64 %14, 3600
%16 = getelementptr inbounds %struct.sysinfo, ptr %6, i32 0, i32 0
%17 = load i64, ptr %16, align 8
%18 = srem i64 %17, 3600
%19 = sdiv i64 %18, 60
%20 = getelementptr inbounds %struct.sysinfo, ptr %6, i32 0, i32 0
%21 = load i64, ptr %20, align 8
%22 = srem i64 %21, 60
%23 = call i32 (ptr, double, ...) @printf(ptr noundef @.str, double noundef %11, i64 noundef %15, i64 noundef %19, i64 noundef %22)
%24 = getelementptr inbounds %struct.sysinfo, ptr %6, i32 0, i32 1
%25 = load double, ptr %24, align 8
%26 = fdiv double %25, 0x4130000000000000
%27 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.1, double noundef %26)
%28 = getelementptr inbounds %struct.sysinfo, ptr %6, i32 0, i32 2
%29 = load double, ptr %28, align 8
%30 = fdiv double %29, 0x4130000000000000
%31 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.2, double noundef %30)
%32 = getelementptr inbounds %struct.sysinfo, ptr %6, i32 0, i32 3
%33 = load double, ptr %32, align 8
%34 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.3, double noundef %33)
ret i32 0
}
declare i32 @sysinfo(ptr noundef) #1
declare i32 @printf(ptr noundef, double noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphl8m20eg.c"
target datalayout = "e-m:e-p270: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.sysinfo = type { i64, double, double, double }
@.str = private unnamed_addr constant [41 x i8] c"system uptime:%ld days, %ld:%02ld:%02ld\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"total RAM: %5.1f\0A\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"free RAM: %5.1f\0A\00", align 1
@.str.3 = private unnamed_addr constant [20 x i8] c"Process counts: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca double, align 8
%6 = alloca %struct.sysinfo, align 8
store i32 0, ptr %1, align 4
store i64 60, ptr %2, align 8
store i64 3600, ptr %3, align 8
store i64 86400, ptr %4, align 8
store double 0x4130000000000000, ptr %5, align 8
%7 = call i32 @sysinfo(ptr noundef %6)
%8 = getelementptr inbounds %struct.sysinfo, ptr %6, i32 0, i32 0
%9 = load i64, ptr %8, align 8
%10 = sdiv i64 %9, 86400
%11 = sitofp i64 %10 to double
%12 = getelementptr inbounds %struct.sysinfo, ptr %6, i32 0, i32 0
%13 = load i64, ptr %12, align 8
%14 = srem i64 %13, 86400
%15 = sdiv i64 %14, 3600
%16 = getelementptr inbounds %struct.sysinfo, ptr %6, i32 0, i32 0
%17 = load i64, ptr %16, align 8
%18 = srem i64 %17, 3600
%19 = sdiv i64 %18, 60
%20 = getelementptr inbounds %struct.sysinfo, ptr %6, i32 0, i32 0
%21 = load i64, ptr %20, align 8
%22 = srem i64 %21, 60
%23 = call i32 (ptr, double, ...) @printf(ptr noundef @.str, double noundef %11, i64 noundef %15, i64 noundef %19, i64 noundef %22)
%24 = getelementptr inbounds %struct.sysinfo, ptr %6, i32 0, i32 1
%25 = load double, ptr %24, align 8
%26 = fdiv double %25, 0x4130000000000000
%27 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.1, double noundef %26)
%28 = getelementptr inbounds %struct.sysinfo, ptr %6, i32 0, i32 2
%29 = load double, ptr %28, align 8
%30 = fdiv double %29, 0x4130000000000000
%31 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.2, double noundef %30)
%32 = getelementptr inbounds %struct.sysinfo, ptr %6, i32 0, i32 3
%33 = load double, ptr %32, align 8
%34 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.3, double noundef %33)
ret i32 0
}
declare i32 @sysinfo(ptr noundef) #1
declare i32 @printf(ptr noundef, double noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphh9l6z0q.c'
source_filename = "/tmp/tmphh9l6z0q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stbi_zlib_compress.lengthc = internal global [30 x i16] [i16 3, i16 4, i16 5, i16 6, i16 7, i16 8, i16 9, i16 10, i16 11, i16 13, i16 15, i16 17, i16 19, i16 23, i16 27, i16 31, i16 35, i16 43, i16 51, i16 59, i16 67, i16 83, i16 99, i16 115, i16 131, i16 163, i16 195, i16 227, i16 258, i16 259], align 16
@stbi_zlib_compress.lengtheb = internal global [29 x i8] c"\00\00\00\00\00\00\00\00\01\01\01\01\02\02\02\02\03\03\03\03\04\04\04\04\05\05\05\05\00", align 16
@stbi_zlib_compress.distc = internal global [31 x i16] [i16 1, i16 2, i16 3, i16 4, i16 5, i16 7, i16 9, i16 13, i16 17, i16 25, i16 33, i16 49, i16 65, i16 97, i16 129, i16 193, i16 257, i16 385, i16 513, i16 769, i16 1025, i16 1537, i16 2049, i16 3073, i16 4097, i16 6145, i16 8193, i16 12289, i16 16385, i16 24577, i16 -32768], align 16
@stbi_zlib_compress.disteb = internal global [30 x i8] c"\00\00\00\00\01\01\02\02\03\03\04\04\05\05\06\06\07\07\08\08\09\09\0A\0A\0B\0B\0C\0C\0D\0D", align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @stbi_zlib_compress(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca [16384 x ptr], align 16
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca i32, align 4
%27 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %12, align 4
store ptr null, ptr %13, align 8
%28 = load i32, ptr %8, align 4
%29 = icmp slt i32 %28, 5
br i1 %29, label %30, label %31
30: ; preds = %4
store i32 5, ptr %8, align 4
br label %31
31: ; preds = %30, %4
%32 = load ptr, ptr %13, align 8
%33 = icmp eq ptr %32, null
br i1 %33, label %45, label %34
34: ; preds = %31
%35 = load ptr, ptr %13, align 8
%36 = getelementptr inbounds i32, ptr %35, i64 -2
%37 = getelementptr inbounds i32, ptr %36, i64 1
%38 = load i32, ptr %37, align 4
%39 = add nsw i32 %38, 1
%40 = load ptr, ptr %13, align 8
%41 = getelementptr inbounds i32, ptr %40, i64 -2
%42 = getelementptr inbounds i32, ptr %41, i64 0
%43 = load i32, ptr %42, align 4
%44 = icmp sge i32 %39, %43
br i1 %44, label %45, label %47
45: ; preds = %34, %31
%46 = call i32 @stbi__sbgrowf(ptr noundef %13, i32 noundef 1, i32 noundef 1)
br label %48
47: ; preds = %34
br label %48
48: ; preds = %47, %45
%49 = phi i32 [ %46, %45 ], [ 0, %47 ]
%50 = load ptr, ptr %13, align 8
%51 = load ptr, ptr %13, align 8
%52 = getelementptr inbounds i32, ptr %51, i64 -2
%53 = getelementptr inbounds i32, ptr %52, i64 1
%54 = load i32, ptr %53, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %53, align 4
%56 = sext i32 %54 to i64
%57 = getelementptr inbounds i8, ptr %50, i64 %56
store i8 120, ptr %57, align 1
%58 = load ptr, ptr %13, align 8
%59 = icmp eq ptr %58, null
br i1 %59, label %71, label %60
60: ; preds = %48
%61 = load ptr, ptr %13, align 8
%62 = getelementptr inbounds i32, ptr %61, i64 -2
%63 = getelementptr inbounds i32, ptr %62, i64 1
%64 = load i32, ptr %63, align 4
%65 = add nsw i32 %64, 1
%66 = load ptr, ptr %13, align 8
%67 = getelementptr inbounds i32, ptr %66, i64 -2
%68 = getelementptr inbounds i32, ptr %67, i64 0
%69 = load i32, ptr %68, align 4
%70 = icmp sge i32 %65, %69
br i1 %70, label %71, label %73
71: ; preds = %60, %48
%72 = call i32 @stbi__sbgrowf(ptr noundef %13, i32 noundef 1, i32 noundef 1)
br label %74
73: ; preds = %60
br label %74
74: ; preds = %73, %71
%75 = phi i32 [ %72, %71 ], [ 0, %73 ]
%76 = load ptr, ptr %13, align 8
%77 = load ptr, ptr %13, align 8
%78 = getelementptr inbounds i32, ptr %77, i64 -2
%79 = getelementptr inbounds i32, ptr %78, i64 1
%80 = load i32, ptr %79, align 4
%81 = add nsw i32 %80, 1
store i32 %81, ptr %79, align 4
%82 = sext i32 %80 to i64
%83 = getelementptr inbounds i8, ptr %76, i64 %82
store i8 94, ptr %83, align 1
%84 = load i32, ptr %12, align 4
%85 = shl i32 1, %84
%86 = load i32, ptr %9, align 4
%87 = or i32 %86, %85
store i32 %87, ptr %9, align 4
%88 = load i32, ptr %12, align 4
%89 = add nsw i32 %88, 1
store i32 %89, ptr %12, align 4
%90 = load ptr, ptr %13, align 8
%91 = call ptr @stbi__zlib_flushf(ptr noundef %90, ptr noundef %9, ptr noundef %12)
store ptr %91, ptr %13, align 8
%92 = load i32, ptr %12, align 4
%93 = shl i32 1, %92
%94 = load i32, ptr %9, align 4
%95 = or i32 %94, %93
store i32 %95, ptr %9, align 4
%96 = load i32, ptr %12, align 4
%97 = add nsw i32 %96, 2
store i32 %97, ptr %12, align 4
%98 = load ptr, ptr %13, align 8
%99 = call ptr @stbi__zlib_flushf(ptr noundef %98, ptr noundef %9, ptr noundef %12)
store ptr %99, ptr %13, align 8
store i32 0, ptr %10, align 4
br label %100
100: ; preds = %107, %74
%101 = load i32, ptr %10, align 4
%102 = icmp slt i32 %101, 16384
br i1 %102, label %103, label %110
103: ; preds = %100
%104 = load i32, ptr %10, align 4
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds [16384 x ptr], ptr %14, i64 0, i64 %105
store ptr null, ptr %106, align 8
br label %107
107: ; preds = %103
%108 = load i32, ptr %10, align 4
%109 = add nsw i32 %108, 1
store i32 %109, ptr %10, align 4
br label %100, !llvm.loop !6
110: ; preds = %100
store i32 0, ptr %10, align 4
br label %111
111: ; preds = %580, %110
%112 = load i32, ptr %10, align 4
%113 = load i32, ptr %6, align 4
%114 = sub nsw i32 %113, 3
%115 = icmp slt i32 %112, %114
br i1 %115, label %116, label %581
116: ; preds = %111
%117 = load ptr, ptr %5, align 8
%118 = load i32, ptr %10, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds i8, ptr %117, i64 %119
%121 = call i32 @stbi__zhash(ptr noundef %120)
%122 = and i32 %121, 16383
store i32 %122, ptr %15, align 4
store i32 3, ptr %16, align 4
store ptr null, ptr %17, align 8
%123 = load i32, ptr %15, align 4
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds [16384 x ptr], ptr %14, i64 0, i64 %124
%126 = load ptr, ptr %125, align 8
store ptr %126, ptr %18, align 8
%127 = load ptr, ptr %18, align 8
%128 = icmp ne ptr %127, null
br i1 %128, label %129, label %134
129: ; preds = %116
%130 = load ptr, ptr %18, align 8
%131 = getelementptr inbounds i32, ptr %130, i64 -2
%132 = getelementptr inbounds i32, ptr %131, i64 1
%133 = load i32, ptr %132, align 4
br label %135
134: ; preds = %116
br label %135
135: ; preds = %134, %129
%136 = phi i32 [ %133, %129 ], [ 0, %134 ]
store i32 %136, ptr %19, align 4
store i32 0, ptr %11, align 4
br label %137
137: ; preds = %181, %135
%138 = load i32, ptr %11, align 4
%139 = load i32, ptr %19, align 4
%140 = icmp slt i32 %138, %139
br i1 %140, label %141, label %184
141: ; preds = %137
%142 = load ptr, ptr %18, align 8
%143 = load i32, ptr %11, align 4
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds ptr, ptr %142, i64 %144
%146 = load ptr, ptr %145, align 8
%147 = load ptr, ptr %5, align 8
%148 = ptrtoint ptr %146 to i64
%149 = ptrtoint ptr %147 to i64
%150 = sub i64 %148, %149
%151 = load i32, ptr %10, align 4
%152 = sub nsw i32 %151, 32768
%153 = sext i32 %152 to i64
%154 = icmp sgt i64 %150, %153
br i1 %154, label %155, label %180
155: ; preds = %141
%156 = load ptr, ptr %18, align 8
%157 = load i32, ptr %11, align 4
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds ptr, ptr %156, i64 %158
%160 = load ptr, ptr %159, align 8
%161 = load ptr, ptr %5, align 8
%162 = load i32, ptr %10, align 4
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds i8, ptr %161, i64 %163
%165 = load i32, ptr %6, align 4
%166 = load i32, ptr %10, align 4
%167 = sub nsw i32 %165, %166
%168 = call i32 @stbi__zlib_countm(ptr noundef %160, ptr noundef %164, i32 noundef %167)
store i32 %168, ptr %20, align 4
%169 = load i32, ptr %20, align 4
%170 = load i32, ptr %16, align 4
%171 = icmp sge i32 %169, %170
br i1 %171, label %172, label %179
172: ; preds = %155
%173 = load i32, ptr %20, align 4
store i32 %173, ptr %16, align 4
%174 = load ptr, ptr %18, align 8
%175 = load i32, ptr %11, align 4
%176 = sext i32 %175 to i64
%177 = getelementptr inbounds ptr, ptr %174, i64 %176
%178 = load ptr, ptr %177, align 8
store ptr %178, ptr %17, align 8
br label %179
179: ; preds = %172, %155
br label %180
180: ; preds = %179, %141
br label %181
181: ; preds = %180
%182 = load i32, ptr %11, align 4
%183 = add nsw i32 %182, 1
store i32 %183, ptr %11, align 4
br label %137, !llvm.loop !8
184: ; preds = %137
%185 = load i32, ptr %15, align 4
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds [16384 x ptr], ptr %14, i64 0, i64 %186
%188 = load ptr, ptr %187, align 8
%189 = icmp ne ptr %188, null
br i1 %189, label %190, label %225
190: ; preds = %184
%191 = load i32, ptr %15, align 4
%192 = sext i32 %191 to i64
%193 = getelementptr inbounds [16384 x ptr], ptr %14, i64 0, i64 %192
%194 = load ptr, ptr %193, align 8
%195 = getelementptr inbounds i32, ptr %194, i64 -2
%196 = getelementptr inbounds i32, ptr %195, i64 1
%197 = load i32, ptr %196, align 4
%198 = load i32, ptr %8, align 4
%199 = mul nsw i32 2, %198
%200 = icmp eq i32 %197, %199
br i1 %200, label %201, label %225
201: ; preds = %190
%202 = load i32, ptr %15, align 4
%203 = sext i32 %202 to i64
%204 = getelementptr inbounds [16384 x ptr], ptr %14, i64 0, i64 %203
%205 = load ptr, ptr %204, align 8
%206 = load i32, ptr %15, align 4
%207 = sext i32 %206 to i64
%208 = getelementptr inbounds [16384 x ptr], ptr %14, i64 0, i64 %207
%209 = load ptr, ptr %208, align 8
%210 = load i32, ptr %8, align 4
%211 = sext i32 %210 to i64
%212 = getelementptr inbounds ptr, ptr %209, i64 %211
%213 = load i32, ptr %8, align 4
%214 = sext i32 %213 to i64
%215 = mul i64 8, %214
%216 = trunc i64 %215 to i32
%217 = call i32 @memcpy(ptr noundef %205, ptr noundef %212, i32 noundef %216)
%218 = load i32, ptr %8, align 4
%219 = load i32, ptr %15, align 4
%220 = sext i32 %219 to i64
%221 = getelementptr inbounds [16384 x ptr], ptr %14, i64 0, i64 %220
%222 = load ptr, ptr %221, align 8
%223 = getelementptr inbounds i32, ptr %222, i64 -2
%224 = getelementptr inbounds i32, ptr %223, i64 1
store i32 %218, ptr %224, align 4
br label %225
225: ; preds = %201, %190, %184
%226 = load i32, ptr %15, align 4
%227 = sext i32 %226 to i64
%228 = getelementptr inbounds [16384 x ptr], ptr %14, i64 0, i64 %227
%229 = load ptr, ptr %228, align 8
%230 = icmp eq ptr %229, null
br i1 %230, label %248, label %231
231: ; preds = %225
%232 = load i32, ptr %15, align 4
%233 = sext i32 %232 to i64
%234 = getelementptr inbounds [16384 x ptr], ptr %14, i64 0, i64 %233
%235 = load ptr, ptr %234, align 8
%236 = getelementptr inbounds i32, ptr %235, i64 -2
%237 = getelementptr inbounds i32, ptr %236, i64 1
%238 = load i32, ptr %237, align 4
%239 = add nsw i32 %238, 1
%240 = load i32, ptr %15, align 4
%241 = sext i32 %240 to i64
%242 = getelementptr inbounds [16384 x ptr], ptr %14, i64 0, i64 %241
%243 = load ptr, ptr %242, align 8
%244 = getelementptr inbounds i32, ptr %243, i64 -2
%245 = getelementptr inbounds i32, ptr %244, i64 0
%246 = load i32, ptr %245, align 4
%247 = icmp sge i32 %239, %246
br i1 %247, label %248, label %253
248: ; preds = %231, %225
%249 = load i32, ptr %15, align 4
%250 = sext i32 %249 to i64
%251 = getelementptr inbounds [16384 x ptr], ptr %14, i64 0, i64 %250
%252 = call i32 @stbi__sbgrowf(ptr noundef %251, i32 noundef 1, i32 noundef 8)
br label %254
253: ; preds = %231
br label %254
254: ; preds = %253, %248
%255 = phi i32 [ %252, %248 ], [ 0, %253 ]
%256 = load ptr, ptr %5, align 8
%257 = load i32, ptr %10, align 4
%258 = sext i32 %257 to i64
%259 = getelementptr inbounds i8, ptr %256, i64 %258
%260 = load i32, ptr %15, align 4
%261 = sext i32 %260 to i64
%262 = getelementptr inbounds [16384 x ptr], ptr %14, i64 0, i64 %261
%263 = load ptr, ptr %262, align 8
%264 = load i32, ptr %15, align 4
%265 = sext i32 %264 to i64
%266 = getelementptr inbounds [16384 x ptr], ptr %14, i64 0, i64 %265
%267 = load ptr, ptr %266, align 8
%268 = getelementptr inbounds i32, ptr %267, i64 -2
%269 = getelementptr inbounds i32, ptr %268, i64 1
%270 = load i32, ptr %269, align 4
%271 = add nsw i32 %270, 1
store i32 %271, ptr %269, align 4
%272 = sext i32 %270 to i64
%273 = getelementptr inbounds ptr, ptr %263, i64 %272
store ptr %259, ptr %273, align 8
%274 = load ptr, ptr %17, align 8
%275 = icmp ne ptr %274, null
br i1 %275, label %276, label %342
276: ; preds = %254
%277 = load ptr, ptr %5, align 8
%278 = load i32, ptr %10, align 4
%279 = sext i32 %278 to i64
%280 = getelementptr inbounds i8, ptr %277, i64 %279
%281 = getelementptr inbounds i8, ptr %280, i64 1
%282 = call i32 @stbi__zhash(ptr noundef %281)
%283 = and i32 %282, 16383
store i32 %283, ptr %15, align 4
%284 = load i32, ptr %15, align 4
%285 = sext i32 %284 to i64
%286 = getelementptr inbounds [16384 x ptr], ptr %14, i64 0, i64 %285
%287 = load ptr, ptr %286, align 8
store ptr %287, ptr %18, align 8
%288 = load ptr, ptr %18, align 8
%289 = icmp ne ptr %288, null
br i1 %289, label %290, label %295
290: ; preds = %276
%291 = load ptr, ptr %18, align 8
%292 = getelementptr inbounds i32, ptr %291, i64 -2
%293 = getelementptr inbounds i32, ptr %292, i64 1
%294 = load i32, ptr %293, align 4
br label %296
295: ; preds = %276
br label %296
296: ; preds = %295, %290
%297 = phi i32 [ %294, %290 ], [ 0, %295 ]
store i32 %297, ptr %19, align 4
store i32 0, ptr %11, align 4
br label %298
298: ; preds = %338, %296
%299 = load i32, ptr %11, align 4
%300 = load i32, ptr %19, align 4
%301 = icmp slt i32 %299, %300
br i1 %301, label %302, label %341
302: ; preds = %298
%303 = load ptr, ptr %18, align 8
%304 = load i32, ptr %11, align 4
%305 = sext i32 %304 to i64
%306 = getelementptr inbounds ptr, ptr %303, i64 %305
%307 = load ptr, ptr %306, align 8
%308 = load ptr, ptr %5, align 8
%309 = ptrtoint ptr %307 to i64
%310 = ptrtoint ptr %308 to i64
%311 = sub i64 %309, %310
%312 = load i32, ptr %10, align 4
%313 = sub nsw i32 %312, 32767
%314 = sext i32 %313 to i64
%315 = icmp sgt i64 %311, %314
br i1 %315, label %316, label %337
316: ; preds = %302
%317 = load ptr, ptr %18, align 8
%318 = load i32, ptr %11, align 4
%319 = sext i32 %318 to i64
%320 = getelementptr inbounds ptr, ptr %317, i64 %319
%321 = load ptr, ptr %320, align 8
%322 = load ptr, ptr %5, align 8
%323 = load i32, ptr %10, align 4
%324 = sext i32 %323 to i64
%325 = getelementptr inbounds i8, ptr %322, i64 %324
%326 = getelementptr inbounds i8, ptr %325, i64 1
%327 = load i32, ptr %6, align 4
%328 = load i32, ptr %10, align 4
%329 = sub nsw i32 %327, %328
%330 = sub nsw i32 %329, 1
%331 = call i32 @stbi__zlib_countm(ptr noundef %321, ptr noundef %326, i32 noundef %330)
store i32 %331, ptr %21, align 4
%332 = load i32, ptr %21, align 4
%333 = load i32, ptr %16, align 4
%334 = icmp sgt i32 %332, %333
br i1 %334, label %335, label %336
335: ; preds = %316
store ptr null, ptr %17, align 8
br label %341
336: ; preds = %316
br label %337
337: ; preds = %336, %302
br label %338
338: ; preds = %337
%339 = load i32, ptr %11, align 4
%340 = add nsw i32 %339, 1
store i32 %340, ptr %11, align 4
br label %298, !llvm.loop !9
341: ; preds = %335, %298
br label %342
342: ; preds = %341, %254
%343 = load ptr, ptr %17, align 8
%344 = icmp ne ptr %343, null
br i1 %344, label %345, label %533
345: ; preds = %342
%346 = load ptr, ptr %5, align 8
%347 = load i32, ptr %10, align 4
%348 = sext i32 %347 to i64
%349 = getelementptr inbounds i8, ptr %346, i64 %348
%350 = load ptr, ptr %17, align 8
%351 = ptrtoint ptr %349 to i64
%352 = ptrtoint ptr %350 to i64
%353 = sub i64 %351, %352
%354 = trunc i64 %353 to i32
store i32 %354, ptr %22, align 4
%355 = load i32, ptr %22, align 4
%356 = icmp sle i32 %355, 32767
br i1 %356, label %357, label %360
357: ; preds = %345
%358 = load i32, ptr %16, align 4
%359 = icmp sle i32 %358, 258
br label %360
360: ; preds = %357, %345
%361 = phi i1 [ false, %345 ], [ %359, %357 ]
%362 = zext i1 %361 to i32
%363 = call i32 @assert(i32 noundef %362)
store i32 0, ptr %11, align 4
br label %364
364: ; preds = %375, %360
%365 = load i32, ptr %16, align 4
%366 = load i32, ptr %11, align 4
%367 = add nsw i32 %366, 1
%368 = sext i32 %367 to i64
%369 = getelementptr inbounds [30 x i16], ptr @stbi_zlib_compress.lengthc, i64 0, i64 %368
%370 = load i16, ptr %369, align 2
%371 = zext i16 %370 to i32
%372 = sub nsw i32 %371, 1
%373 = icmp sgt i32 %365, %372
br i1 %373, label %374, label %378
374: ; preds = %364
br label %375
375: ; preds = %374
%376 = load i32, ptr %11, align 4
%377 = add nsw i32 %376, 1
store i32 %377, ptr %11, align 4
br label %364, !llvm.loop !10
378: ; preds = %364
%379 = load i32, ptr %11, align 4
%380 = add nsw i32 %379, 257
%381 = icmp sle i32 %380, 143
br i1 %381, label %382, label %395
382: ; preds = %378
%383 = load i32, ptr %11, align 4
%384 = add nsw i32 %383, 257
%385 = add nsw i32 48, %384
%386 = call i32 @stbi__zlib_bitrev(i32 noundef %385, i32 noundef 8)
%387 = load i32, ptr %12, align 4
%388 = shl i32 %386, %387
%389 = load i32, ptr %9, align 4
%390 = or i32 %389, %388
store i32 %390, ptr %9, align 4
%391 = load i32, ptr %12, align 4
%392 = add nsw i32 %391, 8
store i32 %392, ptr %12, align 4
%393 = load ptr, ptr %13, align 8
%394 = call ptr @stbi__zlib_flushf(ptr noundef %393, ptr noundef %9, ptr noundef %12)
store ptr %394, ptr %13, align 8
br label %449
395: ; preds = %378
%396 = load i32, ptr %11, align 4
%397 = add nsw i32 %396, 257
%398 = icmp sle i32 %397, 255
br i1 %398, label %399, label %413
399: ; preds = %395
%400 = load i32, ptr %11, align 4
%401 = add nsw i32 %400, 257
%402 = add nsw i32 400, %401
%403 = sub nsw i32 %402, 144
%404 = call i32 @stbi__zlib_bitrev(i32 noundef %403, i32 noundef 9)
%405 = load i32, ptr %12, align 4
%406 = shl i32 %404, %405
%407 = load i32, ptr %9, align 4
%408 = or i32 %407, %406
store i32 %408, ptr %9, align 4
%409 = load i32, ptr %12, align 4
%410 = add nsw i32 %409, 9
store i32 %410, ptr %12, align 4
%411 = load ptr, ptr %13, align 8
%412 = call ptr @stbi__zlib_flushf(ptr noundef %411, ptr noundef %9, ptr noundef %12)
store ptr %412, ptr %13, align 8
br label %447
413: ; preds = %395
%414 = load i32, ptr %11, align 4
%415 = add nsw i32 %414, 257
%416 = icmp sle i32 %415, 279
br i1 %416, label %417, label %431
417: ; preds = %413
%418 = load i32, ptr %11, align 4
%419 = add nsw i32 %418, 257
%420 = add nsw i32 0, %419
%421 = sub nsw i32 %420, 256
%422 = call i32 @stbi__zlib_bitrev(i32 noundef %421, i32 noundef 7)
%423 = load i32, ptr %12, align 4
%424 = shl i32 %422, %423
%425 = load i32, ptr %9, align 4
%426 = or i32 %425, %424
store i32 %426, ptr %9, align 4
%427 = load i32, ptr %12, align 4
%428 = add nsw i32 %427, 7
store i32 %428, ptr %12, align 4
%429 = load ptr, ptr %13, align 8
%430 = call ptr @stbi__zlib_flushf(ptr noundef %429, ptr noundef %9, ptr noundef %12)
store ptr %430, ptr %13, align 8
br label %445
431: ; preds = %413
%432 = load i32, ptr %11, align 4
%433 = add nsw i32 %432, 257
%434 = add nsw i32 192, %433
%435 = sub nsw i32 %434, 280
%436 = call i32 @stbi__zlib_bitrev(i32 noundef %435, i32 noundef 8)
%437 = load i32, ptr %12, align 4
%438 = shl i32 %436, %437
%439 = load i32, ptr %9, align 4
%440 = or i32 %439, %438
store i32 %440, ptr %9, align 4
%441 = load i32, ptr %12, align 4
%442 = add nsw i32 %441, 8
store i32 %442, ptr %12, align 4
%443 = load ptr, ptr %13, align 8
%444 = call ptr @stbi__zlib_flushf(ptr noundef %443, ptr noundef %9, ptr noundef %12)
store ptr %444, ptr %13, align 8
br label %445
445: ; preds = %431, %417
%446 = phi ptr [ %430, %417 ], [ %444, %431 ]
br label %447
447: ; preds = %445, %399
%448 = phi ptr [ %412, %399 ], [ %446, %445 ]
br label %449
449: ; preds = %447, %382
%450 = phi ptr [ %394, %382 ], [ %448, %447 ]
%451 = load i32, ptr %11, align 4
%452 = sext i32 %451 to i64
%453 = getelementptr inbounds [29 x i8], ptr @stbi_zlib_compress.lengtheb, i64 0, i64 %452
%454 = load i8, ptr %453, align 1
%455 = icmp ne i8 %454, 0
br i1 %455, label %456, label %477
456: ; preds = %449
%457 = load i32, ptr %16, align 4
%458 = load i32, ptr %11, align 4
%459 = sext i32 %458 to i64
%460 = getelementptr inbounds [30 x i16], ptr @stbi_zlib_compress.lengthc, i64 0, i64 %459
%461 = load i16, ptr %460, align 2
%462 = zext i16 %461 to i32
%463 = sub nsw i32 %457, %462
%464 = load i32, ptr %12, align 4
%465 = shl i32 %463, %464
%466 = load i32, ptr %9, align 4
%467 = or i32 %466, %465
store i32 %467, ptr %9, align 4
%468 = load i32, ptr %11, align 4
%469 = sext i32 %468 to i64
%470 = getelementptr inbounds [29 x i8], ptr @stbi_zlib_compress.lengtheb, i64 0, i64 %469
%471 = load i8, ptr %470, align 1
%472 = zext i8 %471 to i32
%473 = load i32, ptr %12, align 4
%474 = add nsw i32 %473, %472
store i32 %474, ptr %12, align 4
%475 = load ptr, ptr %13, align 8
%476 = call ptr @stbi__zlib_flushf(ptr noundef %475, ptr noundef %9, ptr noundef %12)
store ptr %476, ptr %13, align 8
br label %477
477: ; preds = %456, %449
store i32 0, ptr %11, align 4
br label %478
478: ; preds = %489, %477
%479 = load i32, ptr %22, align 4
%480 = load i32, ptr %11, align 4
%481 = add nsw i32 %480, 1
%482 = sext i32 %481 to i64
%483 = getelementptr inbounds [31 x i16], ptr @stbi_zlib_compress.distc, i64 0, i64 %482
%484 = load i16, ptr %483, align 2
%485 = zext i16 %484 to i32
%486 = sub nsw i32 %485, 1
%487 = icmp sgt i32 %479, %486
br i1 %487, label %488, label %492
488: ; preds = %478
br label %489
489: ; preds = %488
%490 = load i32, ptr %11, align 4
%491 = add nsw i32 %490, 1
store i32 %491, ptr %11, align 4
br label %478, !llvm.loop !11
492: ; preds = %478
%493 = load i32, ptr %11, align 4
%494 = call i32 @stbi__zlib_bitrev(i32 noundef %493, i32 noundef 5)
%495 = load i32, ptr %12, align 4
%496 = shl i32 %494, %495
%497 = load i32, ptr %9, align 4
%498 = or i32 %497, %496
store i32 %498, ptr %9, align 4
%499 = load i32, ptr %12, align 4
%500 = add nsw i32 %499, 5
store i32 %500, ptr %12, align 4
%501 = load ptr, ptr %13, align 8
%502 = call ptr @stbi__zlib_flushf(ptr noundef %501, ptr noundef %9, ptr noundef %12)
store ptr %502, ptr %13, align 8
%503 = load i32, ptr %11, align 4
%504 = sext i32 %503 to i64
%505 = getelementptr inbounds [30 x i8], ptr @stbi_zlib_compress.disteb, i64 0, i64 %504
%506 = load i8, ptr %505, align 1
%507 = icmp ne i8 %506, 0
br i1 %507, label %508, label %529
508: ; preds = %492
%509 = load i32, ptr %22, align 4
%510 = load i32, ptr %11, align 4
%511 = sext i32 %510 to i64
%512 = getelementptr inbounds [31 x i16], ptr @stbi_zlib_compress.distc, i64 0, i64 %511
%513 = load i16, ptr %512, align 2
%514 = zext i16 %513 to i32
%515 = sub nsw i32 %509, %514
%516 = load i32, ptr %12, align 4
%517 = shl i32 %515, %516
%518 = load i32, ptr %9, align 4
%519 = or i32 %518, %517
store i32 %519, ptr %9, align 4
%520 = load i32, ptr %11, align 4
%521 = sext i32 %520 to i64
%522 = getelementptr inbounds [30 x i8], ptr @stbi_zlib_compress.disteb, i64 0, i64 %521
%523 = load i8, ptr %522, align 1
%524 = zext i8 %523 to i32
%525 = load i32, ptr %12, align 4
%526 = add nsw i32 %525, %524
store i32 %526, ptr %12, align 4
%527 = load ptr, ptr %13, align 8
%528 = call ptr @stbi__zlib_flushf(ptr noundef %527, ptr noundef %9, ptr noundef %12)
store ptr %528, ptr %13, align 8
br label %529
529: ; preds = %508, %492
%530 = load i32, ptr %16, align 4
%531 = load i32, ptr %10, align 4
%532 = add nsw i32 %531, %530
store i32 %532, ptr %10, align 4
br label %580
533: ; preds = %342
%534 = load ptr, ptr %5, align 8
%535 = load i32, ptr %10, align 4
%536 = sext i32 %535 to i64
%537 = getelementptr inbounds i8, ptr %534, i64 %536
%538 = load i8, ptr %537, align 1
%539 = zext i8 %538 to i32
%540 = icmp sle i32 %539, 143
br i1 %540, label %541, label %558
541: ; preds = %533
%542 = load ptr, ptr %5, align 8
%543 = load i32, ptr %10, align 4
%544 = sext i32 %543 to i64
%545 = getelementptr inbounds i8, ptr %542, i64 %544
%546 = load i8, ptr %545, align 1
%547 = zext i8 %546 to i32
%548 = add nsw i32 48, %547
%549 = call i32 @stbi__zlib_bitrev(i32 noundef %548, i32 noundef 8)
%550 = load i32, ptr %12, align 4
%551 = shl i32 %549, %550
%552 = load i32, ptr %9, align 4
%553 = or i32 %552, %551
store i32 %553, ptr %9, align 4
%554 = load i32, ptr %12, align 4
%555 = add nsw i32 %554, 8
store i32 %555, ptr %12, align 4
%556 = load ptr, ptr %13, align 8
%557 = call ptr @stbi__zlib_flushf(ptr noundef %556, ptr noundef %9, ptr noundef %12)
store ptr %557, ptr %13, align 8
br label %576
558: ; preds = %533
%559 = load ptr, ptr %5, align 8
%560 = load i32, ptr %10, align 4
%561 = sext i32 %560 to i64
%562 = getelementptr inbounds i8, ptr %559, i64 %561
%563 = load i8, ptr %562, align 1
%564 = zext i8 %563 to i32
%565 = add nsw i32 400, %564
%566 = sub nsw i32 %565, 144
%567 = call i32 @stbi__zlib_bitrev(i32 noundef %566, i32 noundef 9)
%568 = load i32, ptr %12, align 4
%569 = shl i32 %567, %568
%570 = load i32, ptr %9, align 4
%571 = or i32 %570, %569
store i32 %571, ptr %9, align 4
%572 = load i32, ptr %12, align 4
%573 = add nsw i32 %572, 9
store i32 %573, ptr %12, align 4
%574 = load ptr, ptr %13, align 8
%575 = call ptr @stbi__zlib_flushf(ptr noundef %574, ptr noundef %9, ptr noundef %12)
store ptr %575, ptr %13, align 8
br label %576
576: ; preds = %558, %541
%577 = phi ptr [ %557, %541 ], [ %575, %558 ]
%578 = load i32, ptr %10, align 4
%579 = add nsw i32 %578, 1
store i32 %579, ptr %10, align 4
br label %580
580: ; preds = %576, %529
br label %111, !llvm.loop !12
581: ; preds = %111
br label %582
582: ; preds = %631, %581
%583 = load i32, ptr %10, align 4
%584 = load i32, ptr %6, align 4
%585 = icmp slt i32 %583, %584
br i1 %585, label %586, label %634
586: ; preds = %582
%587 = load ptr, ptr %5, align 8
%588 = load i32, ptr %10, align 4
%589 = sext i32 %588 to i64
%590 = getelementptr inbounds i8, ptr %587, i64 %589
%591 = load i8, ptr %590, align 1
%592 = zext i8 %591 to i32
%593 = icmp sle i32 %592, 143
br i1 %593, label %594, label %611
594: ; preds = %586
%595 = load ptr, ptr %5, align 8
%596 = load i32, ptr %10, align 4
%597 = sext i32 %596 to i64
%598 = getelementptr inbounds i8, ptr %595, i64 %597
%599 = load i8, ptr %598, align 1
%600 = zext i8 %599 to i32
%601 = add nsw i32 48, %600
%602 = call i32 @stbi__zlib_bitrev(i32 noundef %601, i32 noundef 8)
%603 = load i32, ptr %12, align 4
%604 = shl i32 %602, %603
%605 = load i32, ptr %9, align 4
%606 = or i32 %605, %604
store i32 %606, ptr %9, align 4
%607 = load i32, ptr %12, align 4
%608 = add nsw i32 %607, 8
store i32 %608, ptr %12, align 4
%609 = load ptr, ptr %13, align 8
%610 = call ptr @stbi__zlib_flushf(ptr noundef %609, ptr noundef %9, ptr noundef %12)
store ptr %610, ptr %13, align 8
br label %629
611: ; preds = %586
%612 = load ptr, ptr %5, align 8
%613 = load i32, ptr %10, align 4
%614 = sext i32 %613 to i64
%615 = getelementptr inbounds i8, ptr %612, i64 %614
%616 = load i8, ptr %615, align 1
%617 = zext i8 %616 to i32
%618 = add nsw i32 400, %617
%619 = sub nsw i32 %618, 144
%620 = call i32 @stbi__zlib_bitrev(i32 noundef %619, i32 noundef 9)
%621 = load i32, ptr %12, align 4
%622 = shl i32 %620, %621
%623 = load i32, ptr %9, align 4
%624 = or i32 %623, %622
store i32 %624, ptr %9, align 4
%625 = load i32, ptr %12, align 4
%626 = add nsw i32 %625, 9
store i32 %626, ptr %12, align 4
%627 = load ptr, ptr %13, align 8
%628 = call ptr @stbi__zlib_flushf(ptr noundef %627, ptr noundef %9, ptr noundef %12)
store ptr %628, ptr %13, align 8
br label %629
629: ; preds = %611, %594
%630 = phi ptr [ %610, %594 ], [ %628, %611 ]
br label %631
631: ; preds = %629
%632 = load i32, ptr %10, align 4
%633 = add nsw i32 %632, 1
store i32 %633, ptr %10, align 4
br label %582, !llvm.loop !13
634: ; preds = %582
%635 = call i32 @stbi__zlib_bitrev(i32 noundef 0, i32 noundef 7)
%636 = load i32, ptr %12, align 4
%637 = shl i32 %635, %636
%638 = load i32, ptr %9, align 4
%639 = or i32 %638, %637
store i32 %639, ptr %9, align 4
%640 = load i32, ptr %12, align 4
%641 = add nsw i32 %640, 7
store i32 %641, ptr %12, align 4
%642 = load ptr, ptr %13, align 8
%643 = call ptr @stbi__zlib_flushf(ptr noundef %642, ptr noundef %9, ptr noundef %12)
store ptr %643, ptr %13, align 8
br label %644
644: ; preds = %647, %634
%645 = load i32, ptr %12, align 4
%646 = icmp ne i32 %645, 0
br i1 %646, label %647, label %656
647: ; preds = %644
%648 = load i32, ptr %12, align 4
%649 = shl i32 0, %648
%650 = load i32, ptr %9, align 4
%651 = or i32 %650, %649
store i32 %651, ptr %9, align 4
%652 = load i32, ptr %12, align 4
%653 = add nsw i32 %652, 1
store i32 %653, ptr %12, align 4
%654 = load ptr, ptr %13, align 8
%655 = call ptr @stbi__zlib_flushf(ptr noundef %654, ptr noundef %9, ptr noundef %12)
store ptr %655, ptr %13, align 8
br label %644, !llvm.loop !14
656: ; preds = %644
store i32 0, ptr %10, align 4
br label %657
657: ; preds = %676, %656
%658 = load i32, ptr %10, align 4
%659 = icmp slt i32 %658, 16384
br i1 %659, label %660, label %679
660: ; preds = %657
%661 = load i32, ptr %10, align 4
%662 = sext i32 %661 to i64
%663 = getelementptr inbounds [16384 x ptr], ptr %14, i64 0, i64 %662
%664 = load ptr, ptr %663, align 8
%665 = icmp ne ptr %664, null
br i1 %665, label %666, label %673
666: ; preds = %660
%667 = load i32, ptr %10, align 4
%668 = sext i32 %667 to i64
%669 = getelementptr inbounds [16384 x ptr], ptr %14, i64 0, i64 %668
%670 = load ptr, ptr %669, align 8
%671 = getelementptr inbounds i32, ptr %670, i64 -2
%672 = call i32 @free(ptr noundef %671)
br label %674
673: ; preds = %660
br label %674
674: ; preds = %673, %666
%675 = phi i32 [ 0, %666 ], [ 0, %673 ]
br label %676
676: ; preds = %674
%677 = load i32, ptr %10, align 4
%678 = add nsw i32 %677, 1
store i32 %678, ptr %10, align 4
br label %657, !llvm.loop !15
679: ; preds = %657
store i32 0, ptr %23, align 4
store i32 1, ptr %24, align 4
store i32 0, ptr %25, align 4
%680 = load i32, ptr %6, align 4
%681 = srem i32 %680, 5552
store i32 %681, ptr %26, align 4
store i32 0, ptr %27, align 4
br label %682
682: ; preds = %708, %679
%683 = load i32, ptr %27, align 4
%684 = load i32, ptr %6, align 4
%685 = icmp slt i32 %683, %684
br i1 %685, label %686, label %716
686: ; preds = %682
store i32 0, ptr %23, align 4
br label %687
687: ; preds = %705, %686
%688 = load i32, ptr %23, align 4
%689 = load i32, ptr %26, align 4
%690 = icmp ult i32 %688, %689
br i1 %690, label %691, label %708
691: ; preds = %687
%692 = load ptr, ptr %5, align 8
%693 = load i32, ptr %27, align 4
%694 = load i32, ptr %23, align 4
%695 = add i32 %693, %694
%696 = zext i32 %695 to i64
%697 = getelementptr inbounds i8, ptr %692, i64 %696
%698 = load i8, ptr %697, align 1
%699 = zext i8 %698 to i32
%700 = load i32, ptr %24, align 4
%701 = add i32 %700, %699
store i32 %701, ptr %24, align 4
%702 = load i32, ptr %24, align 4
%703 = load i32, ptr %25, align 4
%704 = add i32 %703, %702
store i32 %704, ptr %25, align 4
br label %705
705: ; preds = %691
%706 = load i32, ptr %23, align 4
%707 = add i32 %706, 1
store i32 %707, ptr %23, align 4
br label %687, !llvm.loop !16
708: ; preds = %687
%709 = load i32, ptr %24, align 4
%710 = urem i32 %709, 65521
store i32 %710, ptr %24, align 4
%711 = load i32, ptr %25, align 4
%712 = urem i32 %711, 65521
store i32 %712, ptr %25, align 4
%713 = load i32, ptr %26, align 4
%714 = load i32, ptr %27, align 4
%715 = add i32 %714, %713
store i32 %715, ptr %27, align 4
store i32 5552, ptr %26, align 4
br label %682, !llvm.loop !17
716: ; preds = %682
%717 = load ptr, ptr %13, align 8
%718 = icmp eq ptr %717, null
br i1 %718, label %730, label %719
719: ; preds = %716
%720 = load ptr, ptr %13, align 8
%721 = getelementptr inbounds i32, ptr %720, i64 -2
%722 = getelementptr inbounds i32, ptr %721, i64 1
%723 = load i32, ptr %722, align 4
%724 = add nsw i32 %723, 1
%725 = load ptr, ptr %13, align 8
%726 = getelementptr inbounds i32, ptr %725, i64 -2
%727 = getelementptr inbounds i32, ptr %726, i64 0
%728 = load i32, ptr %727, align 4
%729 = icmp sge i32 %724, %728
br i1 %729, label %730, label %732
730: ; preds = %719, %716
%731 = call i32 @stbi__sbgrowf(ptr noundef %13, i32 noundef 1, i32 noundef 1)
br label %733
732: ; preds = %719
br label %733
733: ; preds = %732, %730
%734 = phi i32 [ %731, %730 ], [ 0, %732 ]
%735 = load i32, ptr %25, align 4
%736 = lshr i32 %735, 8
%737 = trunc i32 %736 to i8
%738 = load ptr, ptr %13, align 8
%739 = load ptr, ptr %13, align 8
%740 = getelementptr inbounds i32, ptr %739, i64 -2
%741 = getelementptr inbounds i32, ptr %740, i64 1
%742 = load i32, ptr %741, align 4
%743 = add nsw i32 %742, 1
store i32 %743, ptr %741, align 4
%744 = sext i32 %742 to i64
%745 = getelementptr inbounds i8, ptr %738, i64 %744
store i8 %737, ptr %745, align 1
%746 = load ptr, ptr %13, align 8
%747 = icmp eq ptr %746, null
br i1 %747, label %759, label %748
748: ; preds = %733
%749 = load ptr, ptr %13, align 8
%750 = getelementptr inbounds i32, ptr %749, i64 -2
%751 = getelementptr inbounds i32, ptr %750, i64 1
%752 = load i32, ptr %751, align 4
%753 = add nsw i32 %752, 1
%754 = load ptr, ptr %13, align 8
%755 = getelementptr inbounds i32, ptr %754, i64 -2
%756 = getelementptr inbounds i32, ptr %755, i64 0
%757 = load i32, ptr %756, align 4
%758 = icmp sge i32 %753, %757
br i1 %758, label %759, label %761
759: ; preds = %748, %733
%760 = call i32 @stbi__sbgrowf(ptr noundef %13, i32 noundef 1, i32 noundef 1)
br label %762
761: ; preds = %748
br label %762
762: ; preds = %761, %759
%763 = phi i32 [ %760, %759 ], [ 0, %761 ]
%764 = load i32, ptr %25, align 4
%765 = trunc i32 %764 to i8
%766 = load ptr, ptr %13, align 8
%767 = load ptr, ptr %13, align 8
%768 = getelementptr inbounds i32, ptr %767, i64 -2
%769 = getelementptr inbounds i32, ptr %768, i64 1
%770 = load i32, ptr %769, align 4
%771 = add nsw i32 %770, 1
store i32 %771, ptr %769, align 4
%772 = sext i32 %770 to i64
%773 = getelementptr inbounds i8, ptr %766, i64 %772
store i8 %765, ptr %773, align 1
%774 = load ptr, ptr %13, align 8
%775 = icmp eq ptr %774, null
br i1 %775, label %787, label %776
776: ; preds = %762
%777 = load ptr, ptr %13, align 8
%778 = getelementptr inbounds i32, ptr %777, i64 -2
%779 = getelementptr inbounds i32, ptr %778, i64 1
%780 = load i32, ptr %779, align 4
%781 = add nsw i32 %780, 1
%782 = load ptr, ptr %13, align 8
%783 = getelementptr inbounds i32, ptr %782, i64 -2
%784 = getelementptr inbounds i32, ptr %783, i64 0
%785 = load i32, ptr %784, align 4
%786 = icmp sge i32 %781, %785
br i1 %786, label %787, label %789
787: ; preds = %776, %762
%788 = call i32 @stbi__sbgrowf(ptr noundef %13, i32 noundef 1, i32 noundef 1)
br label %790
789: ; preds = %776
br label %790
790: ; preds = %789, %787
%791 = phi i32 [ %788, %787 ], [ 0, %789 ]
%792 = load i32, ptr %24, align 4
%793 = lshr i32 %792, 8
%794 = trunc i32 %793 to i8
%795 = load ptr, ptr %13, align 8
%796 = load ptr, ptr %13, align 8
%797 = getelementptr inbounds i32, ptr %796, i64 -2
%798 = getelementptr inbounds i32, ptr %797, i64 1
%799 = load i32, ptr %798, align 4
%800 = add nsw i32 %799, 1
store i32 %800, ptr %798, align 4
%801 = sext i32 %799 to i64
%802 = getelementptr inbounds i8, ptr %795, i64 %801
store i8 %794, ptr %802, align 1
%803 = load ptr, ptr %13, align 8
%804 = icmp eq ptr %803, null
br i1 %804, label %816, label %805
805: ; preds = %790
%806 = load ptr, ptr %13, align 8
%807 = getelementptr inbounds i32, ptr %806, i64 -2
%808 = getelementptr inbounds i32, ptr %807, i64 1
%809 = load i32, ptr %808, align 4
%810 = add nsw i32 %809, 1
%811 = load ptr, ptr %13, align 8
%812 = getelementptr inbounds i32, ptr %811, i64 -2
%813 = getelementptr inbounds i32, ptr %812, i64 0
%814 = load i32, ptr %813, align 4
%815 = icmp sge i32 %810, %814
br i1 %815, label %816, label %818
816: ; preds = %805, %790
%817 = call i32 @stbi__sbgrowf(ptr noundef %13, i32 noundef 1, i32 noundef 1)
br label %819
818: ; preds = %805
br label %819
819: ; preds = %818, %816
%820 = phi i32 [ %817, %816 ], [ 0, %818 ]
%821 = load i32, ptr %24, align 4
%822 = trunc i32 %821 to i8
%823 = load ptr, ptr %13, align 8
%824 = load ptr, ptr %13, align 8
%825 = getelementptr inbounds i32, ptr %824, i64 -2
%826 = getelementptr inbounds i32, ptr %825, i64 1
%827 = load i32, ptr %826, align 4
%828 = add nsw i32 %827, 1
store i32 %828, ptr %826, align 4
%829 = sext i32 %827 to i64
%830 = getelementptr inbounds i8, ptr %823, i64 %829
store i8 %822, ptr %830, align 1
%831 = load ptr, ptr %13, align 8
%832 = getelementptr inbounds i32, ptr %831, i64 -2
%833 = getelementptr inbounds i32, ptr %832, i64 1
%834 = load i32, ptr %833, align 4
%835 = load ptr, ptr %7, align 8
store i32 %834, ptr %835, align 4
%836 = load ptr, ptr %13, align 8
%837 = getelementptr inbounds i32, ptr %836, i64 -2
%838 = load ptr, ptr %13, align 8
%839 = load ptr, ptr %7, align 8
%840 = load i32, ptr %839, align 4
%841 = call i32 @memmove(ptr noundef %837, ptr noundef %838, i32 noundef %840)
%842 = load ptr, ptr %13, align 8
%843 = getelementptr inbounds i32, ptr %842, i64 -2
ret ptr %843
}
declare i32 @stbi__sbgrowf(ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @stbi__zlib_flushf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @stbi__zhash(ptr noundef) #1
declare i32 @stbi__zlib_countm(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @assert(i32 noundef) #1
declare i32 @stbi__zlib_bitrev(i32 noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @memmove(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
!16 = distinct !{!16, !7}
!17 = distinct !{!17, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphh9l6z0q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stbi_zlib_compress.lengthc = internal global [30 x i16] [i16 3, i16 4, i16 5, i16 6, i16 7, i16 8, i16 9, i16 10, i16 11, i16 13, i16 15, i16 17, i16 19, i16 23, i16 27, i16 31, i16 35, i16 43, i16 51, i16 59, i16 67, i16 83, i16 99, i16 115, i16 131, i16 163, i16 195, i16 227, i16 258, i16 259], align 16
@stbi_zlib_compress.lengtheb = internal global [29 x i8] c"\00\00\00\00\00\00\00\00\01\01\01\01\02\02\02\02\03\03\03\03\04\04\04\04\05\05\05\05\00", align 16
@stbi_zlib_compress.distc = internal global [31 x i16] [i16 1, i16 2, i16 3, i16 4, i16 5, i16 7, i16 9, i16 13, i16 17, i16 25, i16 33, i16 49, i16 65, i16 97, i16 129, i16 193, i16 257, i16 385, i16 513, i16 769, i16 1025, i16 1537, i16 2049, i16 3073, i16 4097, i16 6145, i16 8193, i16 12289, i16 16385, i16 24577, i16 -32768], align 16
@stbi_zlib_compress.disteb = internal global [30 x i8] c"\00\00\00\00\01\01\02\02\03\03\04\04\05\05\06\06\07\07\08\08\09\09\0A\0A\0B\0B\0C\0C\0D\0D", align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @stbi_zlib_compress(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca [16384 x ptr], align 16
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca i32, align 4
%27 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %12, align 4
store ptr null, ptr %13, align 8
%28 = load i32, ptr %8, align 4
%29 = icmp slt i32 %28, 5
br i1 %29, label %30, label %31
30: ; preds = %4
store i32 5, ptr %8, align 4
br label %31
31: ; preds = %30, %4
%32 = load ptr, ptr %13, align 8
%33 = icmp eq ptr %32, null
br i1 %33, label %45, label %34
34: ; preds = %31
%35 = load ptr, ptr %13, align 8
%36 = getelementptr inbounds i32, ptr %35, i64 -2
%37 = getelementptr inbounds i32, ptr %36, i64 1
%38 = load i32, ptr %37, align 4
%39 = add nsw i32 %38, 1
%40 = load ptr, ptr %13, align 8
%41 = getelementptr inbounds i32, ptr %40, i64 -2
%42 = getelementptr inbounds i32, ptr %41, i64 0
%43 = load i32, ptr %42, align 4
%44 = icmp sge i32 %39, %43
br i1 %44, label %45, label %47
45: ; preds = %34, %31
%46 = call i32 @stbi__sbgrowf(ptr noundef %13, i32 noundef 1, i32 noundef 1)
br label %48
47: ; preds = %34
br label %48
48: ; preds = %47, %45
%49 = phi i32 [ %46, %45 ], [ 0, %47 ]
%50 = load ptr, ptr %13, align 8
%51 = load ptr, ptr %13, align 8
%52 = getelementptr inbounds i32, ptr %51, i64 -2
%53 = getelementptr inbounds i32, ptr %52, i64 1
%54 = load i32, ptr %53, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %53, align 4
%56 = sext i32 %54 to i64
%57 = getelementptr inbounds i8, ptr %50, i64 %56
store i8 120, ptr %57, align 1
%58 = load ptr, ptr %13, align 8
%59 = icmp eq ptr %58, null
br i1 %59, label %71, label %60
60: ; preds = %48
%61 = load ptr, ptr %13, align 8
%62 = getelementptr inbounds i32, ptr %61, i64 -2
%63 = getelementptr inbounds i32, ptr %62, i64 1
%64 = load i32, ptr %63, align 4
%65 = add nsw i32 %64, 1
%66 = load ptr, ptr %13, align 8
%67 = getelementptr inbounds i32, ptr %66, i64 -2
%68 = getelementptr inbounds i32, ptr %67, i64 0
%69 = load i32, ptr %68, align 4
%70 = icmp sge i32 %65, %69
br i1 %70, label %71, label %73
71: ; preds = %60, %48
%72 = call i32 @stbi__sbgrowf(ptr noundef %13, i32 noundef 1, i32 noundef 1)
br label %74
73: ; preds = %60
br label %74
74: ; preds = %73, %71
%75 = phi i32 [ %72, %71 ], [ 0, %73 ]
%76 = load ptr, ptr %13, align 8
%77 = load ptr, ptr %13, align 8
%78 = getelementptr inbounds i32, ptr %77, i64 -2
%79 = getelementptr inbounds i32, ptr %78, i64 1
%80 = load i32, ptr %79, align 4
%81 = add nsw i32 %80, 1
store i32 %81, ptr %79, align 4
%82 = sext i32 %80 to i64
%83 = getelementptr inbounds i8, ptr %76, i64 %82
store i8 94, ptr %83, align 1
%84 = load i32, ptr %12, align 4
%85 = shl i32 1, %84
%86 = load i32, ptr %9, align 4
%87 = or i32 %86, %85
store i32 %87, ptr %9, align 4
%88 = load i32, ptr %12, align 4
%89 = add nsw i32 %88, 1
store i32 %89, ptr %12, align 4
%90 = load ptr, ptr %13, align 8
%91 = call ptr @stbi__zlib_flushf(ptr noundef %90, ptr noundef %9, ptr noundef %12)
store ptr %91, ptr %13, align 8
%92 = load i32, ptr %12, align 4
%93 = shl i32 1, %92
%94 = load i32, ptr %9, align 4
%95 = or i32 %94, %93
store i32 %95, ptr %9, align 4
%96 = load i32, ptr %12, align 4
%97 = add nsw i32 %96, 2
store i32 %97, ptr %12, align 4
%98 = load ptr, ptr %13, align 8
%99 = call ptr @stbi__zlib_flushf(ptr noundef %98, ptr noundef %9, ptr noundef %12)
store ptr %99, ptr %13, align 8
store i32 0, ptr %10, align 4
%100 = load i32, ptr %10, align 4
%101 = icmp slt i32 %100, 16384
br i1 %101, label %.lr.ph, label %111
.lr.ph: ; preds = %74
br label %102
102: ; preds = %.lr.ph, %106
%103 = load i32, ptr %10, align 4
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds [16384 x ptr], ptr %14, i64 0, i64 %104
store ptr null, ptr %105, align 8
br label %106
106: ; preds = %102
%107 = load i32, ptr %10, align 4
%108 = add nsw i32 %107, 1
store i32 %108, ptr %10, align 4
%109 = load i32, ptr %10, align 4
%110 = icmp slt i32 %109, 16384
br i1 %110, label %102, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %106
br label %111
111: ; preds = %._crit_edge, %74
store i32 0, ptr %10, align 4
%112 = load i32, ptr %10, align 4
%113 = load i32, ptr %6, align 4
%114 = sub nsw i32 %113, 3
%115 = icmp slt i32 %112, %114
br i1 %115, label %.lr.ph13, label %605
.lr.ph13: ; preds = %111
br label %116
116: ; preds = %.lr.ph13, %600
%117 = load ptr, ptr %5, align 8
%118 = load i32, ptr %10, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds i8, ptr %117, i64 %119
%121 = call i32 @stbi__zhash(ptr noundef %120)
%122 = and i32 %121, 16383
store i32 %122, ptr %15, align 4
store i32 3, ptr %16, align 4
store ptr null, ptr %17, align 8
%123 = load i32, ptr %15, align 4
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds [16384 x ptr], ptr %14, i64 0, i64 %124
%126 = load ptr, ptr %125, align 8
store ptr %126, ptr %18, align 8
%127 = load ptr, ptr %18, align 8
%128 = icmp ne ptr %127, null
br i1 %128, label %129, label %134
129: ; preds = %116
%130 = load ptr, ptr %18, align 8
%131 = getelementptr inbounds i32, ptr %130, i64 -2
%132 = getelementptr inbounds i32, ptr %131, i64 1
%133 = load i32, ptr %132, align 4
br label %135
134: ; preds = %116
br label %135
135: ; preds = %134, %129
%136 = phi i32 [ %133, %129 ], [ 0, %134 ]
store i32 %136, ptr %19, align 4
store i32 0, ptr %11, align 4
%137 = load i32, ptr %11, align 4
%138 = load i32, ptr %19, align 4
%139 = icmp slt i32 %137, %138
br i1 %139, label %.lr.ph2, label %186
.lr.ph2: ; preds = %135
br label %140
140: ; preds = %.lr.ph2, %180
%141 = load ptr, ptr %18, align 8
%142 = load i32, ptr %11, align 4
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds ptr, ptr %141, i64 %143
%145 = load ptr, ptr %144, align 8
%146 = load ptr, ptr %5, align 8
%147 = ptrtoint ptr %145 to i64
%148 = ptrtoint ptr %146 to i64
%149 = sub i64 %147, %148
%150 = load i32, ptr %10, align 4
%151 = sub nsw i32 %150, 32768
%152 = sext i32 %151 to i64
%153 = icmp sgt i64 %149, %152
br i1 %153, label %154, label %179
154: ; preds = %140
%155 = load ptr, ptr %18, align 8
%156 = load i32, ptr %11, align 4
%157 = sext i32 %156 to i64
%158 = getelementptr inbounds ptr, ptr %155, i64 %157
%159 = load ptr, ptr %158, align 8
%160 = load ptr, ptr %5, align 8
%161 = load i32, ptr %10, align 4
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds i8, ptr %160, i64 %162
%164 = load i32, ptr %6, align 4
%165 = load i32, ptr %10, align 4
%166 = sub nsw i32 %164, %165
%167 = call i32 @stbi__zlib_countm(ptr noundef %159, ptr noundef %163, i32 noundef %166)
store i32 %167, ptr %20, align 4
%168 = load i32, ptr %20, align 4
%169 = load i32, ptr %16, align 4
%170 = icmp sge i32 %168, %169
br i1 %170, label %171, label %178
171: ; preds = %154
%172 = load i32, ptr %20, align 4
store i32 %172, ptr %16, align 4
%173 = load ptr, ptr %18, align 8
%174 = load i32, ptr %11, align 4
%175 = sext i32 %174 to i64
%176 = getelementptr inbounds ptr, ptr %173, i64 %175
%177 = load ptr, ptr %176, align 8
store ptr %177, ptr %17, align 8
br label %178
178: ; preds = %171, %154
br label %179
179: ; preds = %178, %140
br label %180
180: ; preds = %179
%181 = load i32, ptr %11, align 4
%182 = add nsw i32 %181, 1
store i32 %182, ptr %11, align 4
%183 = load i32, ptr %11, align 4
%184 = load i32, ptr %19, align 4
%185 = icmp slt i32 %183, %184
br i1 %185, label %140, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %180
br label %186
186: ; preds = %._crit_edge3, %135
%187 = load i32, ptr %15, align 4
%188 = sext i32 %187 to i64
%189 = getelementptr inbounds [16384 x ptr], ptr %14, i64 0, i64 %188
%190 = load ptr, ptr %189, align 8
%191 = icmp ne ptr %190, null
br i1 %191, label %192, label %227
192: ; preds = %186
%193 = load i32, ptr %15, align 4
%194 = sext i32 %193 to i64
%195 = getelementptr inbounds [16384 x ptr], ptr %14, i64 0, i64 %194
%196 = load ptr, ptr %195, align 8
%197 = getelementptr inbounds i32, ptr %196, i64 -2
%198 = getelementptr inbounds i32, ptr %197, i64 1
%199 = load i32, ptr %198, align 4
%200 = load i32, ptr %8, align 4
%201 = mul nsw i32 2, %200
%202 = icmp eq i32 %199, %201
br i1 %202, label %203, label %227
203: ; preds = %192
%204 = load i32, ptr %15, align 4
%205 = sext i32 %204 to i64
%206 = getelementptr inbounds [16384 x ptr], ptr %14, i64 0, i64 %205
%207 = load ptr, ptr %206, align 8
%208 = load i32, ptr %15, align 4
%209 = sext i32 %208 to i64
%210 = getelementptr inbounds [16384 x ptr], ptr %14, i64 0, i64 %209
%211 = load ptr, ptr %210, align 8
%212 = load i32, ptr %8, align 4
%213 = sext i32 %212 to i64
%214 = getelementptr inbounds ptr, ptr %211, i64 %213
%215 = load i32, ptr %8, align 4
%216 = sext i32 %215 to i64
%217 = mul i64 8, %216
%218 = trunc i64 %217 to i32
%219 = call i32 @memcpy(ptr noundef %207, ptr noundef %214, i32 noundef %218)
%220 = load i32, ptr %8, align 4
%221 = load i32, ptr %15, align 4
%222 = sext i32 %221 to i64
%223 = getelementptr inbounds [16384 x ptr], ptr %14, i64 0, i64 %222
%224 = load ptr, ptr %223, align 8
%225 = getelementptr inbounds i32, ptr %224, i64 -2
%226 = getelementptr inbounds i32, ptr %225, i64 1
store i32 %220, ptr %226, align 4
br label %227
227: ; preds = %203, %192, %186
%228 = load i32, ptr %15, align 4
%229 = sext i32 %228 to i64
%230 = getelementptr inbounds [16384 x ptr], ptr %14, i64 0, i64 %229
%231 = load ptr, ptr %230, align 8
%232 = icmp eq ptr %231, null
br i1 %232, label %250, label %233
233: ; preds = %227
%234 = load i32, ptr %15, align 4
%235 = sext i32 %234 to i64
%236 = getelementptr inbounds [16384 x ptr], ptr %14, i64 0, i64 %235
%237 = load ptr, ptr %236, align 8
%238 = getelementptr inbounds i32, ptr %237, i64 -2
%239 = getelementptr inbounds i32, ptr %238, i64 1
%240 = load i32, ptr %239, align 4
%241 = add nsw i32 %240, 1
%242 = load i32, ptr %15, align 4
%243 = sext i32 %242 to i64
%244 = getelementptr inbounds [16384 x ptr], ptr %14, i64 0, i64 %243
%245 = load ptr, ptr %244, align 8
%246 = getelementptr inbounds i32, ptr %245, i64 -2
%247 = getelementptr inbounds i32, ptr %246, i64 0
%248 = load i32, ptr %247, align 4
%249 = icmp sge i32 %241, %248
br i1 %249, label %250, label %255
250: ; preds = %233, %227
%251 = load i32, ptr %15, align 4
%252 = sext i32 %251 to i64
%253 = getelementptr inbounds [16384 x ptr], ptr %14, i64 0, i64 %252
%254 = call i32 @stbi__sbgrowf(ptr noundef %253, i32 noundef 1, i32 noundef 8)
br label %256
255: ; preds = %233
br label %256
256: ; preds = %255, %250
%257 = phi i32 [ %254, %250 ], [ 0, %255 ]
%258 = load ptr, ptr %5, align 8
%259 = load i32, ptr %10, align 4
%260 = sext i32 %259 to i64
%261 = getelementptr inbounds i8, ptr %258, i64 %260
%262 = load i32, ptr %15, align 4
%263 = sext i32 %262 to i64
%264 = getelementptr inbounds [16384 x ptr], ptr %14, i64 0, i64 %263
%265 = load ptr, ptr %264, align 8
%266 = load i32, ptr %15, align 4
%267 = sext i32 %266 to i64
%268 = getelementptr inbounds [16384 x ptr], ptr %14, i64 0, i64 %267
%269 = load ptr, ptr %268, align 8
%270 = getelementptr inbounds i32, ptr %269, i64 -2
%271 = getelementptr inbounds i32, ptr %270, i64 1
%272 = load i32, ptr %271, align 4
%273 = add nsw i32 %272, 1
store i32 %273, ptr %271, align 4
%274 = sext i32 %272 to i64
%275 = getelementptr inbounds ptr, ptr %265, i64 %274
store ptr %261, ptr %275, align 8
%276 = load ptr, ptr %17, align 8
%277 = icmp ne ptr %276, null
br i1 %277, label %278, label %346
278: ; preds = %256
%279 = load ptr, ptr %5, align 8
%280 = load i32, ptr %10, align 4
%281 = sext i32 %280 to i64
%282 = getelementptr inbounds i8, ptr %279, i64 %281
%283 = getelementptr inbounds i8, ptr %282, i64 1
%284 = call i32 @stbi__zhash(ptr noundef %283)
%285 = and i32 %284, 16383
store i32 %285, ptr %15, align 4
%286 = load i32, ptr %15, align 4
%287 = sext i32 %286 to i64
%288 = getelementptr inbounds [16384 x ptr], ptr %14, i64 0, i64 %287
%289 = load ptr, ptr %288, align 8
store ptr %289, ptr %18, align 8
%290 = load ptr, ptr %18, align 8
%291 = icmp ne ptr %290, null
br i1 %291, label %292, label %297
292: ; preds = %278
%293 = load ptr, ptr %18, align 8
%294 = getelementptr inbounds i32, ptr %293, i64 -2
%295 = getelementptr inbounds i32, ptr %294, i64 1
%296 = load i32, ptr %295, align 4
br label %298
297: ; preds = %278
br label %298
298: ; preds = %297, %292
%299 = phi i32 [ %296, %292 ], [ 0, %297 ]
store i32 %299, ptr %19, align 4
store i32 0, ptr %11, align 4
%300 = load i32, ptr %11, align 4
%301 = load i32, ptr %19, align 4
%302 = icmp slt i32 %300, %301
br i1 %302, label %.lr.ph5, label %.loopexit
.lr.ph5: ; preds = %298
br label %303
303: ; preds = %.lr.ph5, %339
%304 = load ptr, ptr %18, align 8
%305 = load i32, ptr %11, align 4
%306 = sext i32 %305 to i64
%307 = getelementptr inbounds ptr, ptr %304, i64 %306
%308 = load ptr, ptr %307, align 8
%309 = load ptr, ptr %5, align 8
%310 = ptrtoint ptr %308 to i64
%311 = ptrtoint ptr %309 to i64
%312 = sub i64 %310, %311
%313 = load i32, ptr %10, align 4
%314 = sub nsw i32 %313, 32767
%315 = sext i32 %314 to i64
%316 = icmp sgt i64 %312, %315
br i1 %316, label %317, label %338
317: ; preds = %303
%318 = load ptr, ptr %18, align 8
%319 = load i32, ptr %11, align 4
%320 = sext i32 %319 to i64
%321 = getelementptr inbounds ptr, ptr %318, i64 %320
%322 = load ptr, ptr %321, align 8
%323 = load ptr, ptr %5, align 8
%324 = load i32, ptr %10, align 4
%325 = sext i32 %324 to i64
%326 = getelementptr inbounds i8, ptr %323, i64 %325
%327 = getelementptr inbounds i8, ptr %326, i64 1
%328 = load i32, ptr %6, align 4
%329 = load i32, ptr %10, align 4
%330 = sub nsw i32 %328, %329
%331 = sub nsw i32 %330, 1
%332 = call i32 @stbi__zlib_countm(ptr noundef %322, ptr noundef %327, i32 noundef %331)
store i32 %332, ptr %21, align 4
%333 = load i32, ptr %21, align 4
%334 = load i32, ptr %16, align 4
%335 = icmp sgt i32 %333, %334
br i1 %335, label %336, label %337
336: ; preds = %317
store ptr null, ptr %17, align 8
br label %345
337: ; preds = %317
br label %338
338: ; preds = %337, %303
br label %339
339: ; preds = %338
%340 = load i32, ptr %11, align 4
%341 = add nsw i32 %340, 1
store i32 %341, ptr %11, align 4
%342 = load i32, ptr %11, align 4
%343 = load i32, ptr %19, align 4
%344 = icmp slt i32 %342, %343
br i1 %344, label %303, label %..loopexit_crit_edge, !llvm.loop !9
..loopexit_crit_edge: ; preds = %339
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %298
br label %345
345: ; preds = %.loopexit, %336
br label %346
346: ; preds = %345, %256
%347 = load ptr, ptr %17, align 8
%348 = icmp ne ptr %347, null
br i1 %348, label %349, label %553
349: ; preds = %346
%350 = load ptr, ptr %5, align 8
%351 = load i32, ptr %10, align 4
%352 = sext i32 %351 to i64
%353 = getelementptr inbounds i8, ptr %350, i64 %352
%354 = load ptr, ptr %17, align 8
%355 = ptrtoint ptr %353 to i64
%356 = ptrtoint ptr %354 to i64
%357 = sub i64 %355, %356
%358 = trunc i64 %357 to i32
store i32 %358, ptr %22, align 4
%359 = load i32, ptr %22, align 4
%360 = icmp sle i32 %359, 32767
br i1 %360, label %361, label %364
361: ; preds = %349
%362 = load i32, ptr %16, align 4
%363 = icmp sle i32 %362, 258
br label %364
364: ; preds = %361, %349
%365 = phi i1 [ false, %349 ], [ %363, %361 ]
%366 = zext i1 %365 to i32
%367 = call i32 @assert(i32 noundef %366)
store i32 0, ptr %11, align 4
%368 = load i32, ptr %16, align 4
%369 = load i32, ptr %11, align 4
%370 = add nsw i32 %369, 1
%371 = sext i32 %370 to i64
%372 = getelementptr inbounds [30 x i16], ptr @stbi_zlib_compress.lengthc, i64 0, i64 %371
%373 = load i16, ptr %372, align 2
%374 = zext i16 %373 to i32
%375 = sub nsw i32 %374, 1
%376 = icmp sgt i32 %368, %375
br i1 %376, label %.lr.ph7, label %390
.lr.ph7: ; preds = %364
br label %377
377: ; preds = %.lr.ph7, %378
br label %378
378: ; preds = %377
%379 = load i32, ptr %11, align 4
%380 = add nsw i32 %379, 1
store i32 %380, ptr %11, align 4
%381 = load i32, ptr %16, align 4
%382 = load i32, ptr %11, align 4
%383 = add nsw i32 %382, 1
%384 = sext i32 %383 to i64
%385 = getelementptr inbounds [30 x i16], ptr @stbi_zlib_compress.lengthc, i64 0, i64 %384
%386 = load i16, ptr %385, align 2
%387 = zext i16 %386 to i32
%388 = sub nsw i32 %387, 1
%389 = icmp sgt i32 %381, %388
br i1 %389, label %377, label %._crit_edge8, !llvm.loop !10
._crit_edge8: ; preds = %378
br label %390
390: ; preds = %._crit_edge8, %364
%391 = load i32, ptr %11, align 4
%392 = add nsw i32 %391, 257
%393 = icmp sle i32 %392, 143
br i1 %393, label %394, label %407
394: ; preds = %390
%395 = load i32, ptr %11, align 4
%396 = add nsw i32 %395, 257
%397 = add nsw i32 48, %396
%398 = call i32 @stbi__zlib_bitrev(i32 noundef %397, i32 noundef 8)
%399 = load i32, ptr %12, align 4
%400 = shl i32 %398, %399
%401 = load i32, ptr %9, align 4
%402 = or i32 %401, %400
store i32 %402, ptr %9, align 4
%403 = load i32, ptr %12, align 4
%404 = add nsw i32 %403, 8
store i32 %404, ptr %12, align 4
%405 = load ptr, ptr %13, align 8
%406 = call ptr @stbi__zlib_flushf(ptr noundef %405, ptr noundef %9, ptr noundef %12)
store ptr %406, ptr %13, align 8
br label %461
407: ; preds = %390
%408 = load i32, ptr %11, align 4
%409 = add nsw i32 %408, 257
%410 = icmp sle i32 %409, 255
br i1 %410, label %411, label %425
411: ; preds = %407
%412 = load i32, ptr %11, align 4
%413 = add nsw i32 %412, 257
%414 = add nsw i32 400, %413
%415 = sub nsw i32 %414, 144
%416 = call i32 @stbi__zlib_bitrev(i32 noundef %415, i32 noundef 9)
%417 = load i32, ptr %12, align 4
%418 = shl i32 %416, %417
%419 = load i32, ptr %9, align 4
%420 = or i32 %419, %418
store i32 %420, ptr %9, align 4
%421 = load i32, ptr %12, align 4
%422 = add nsw i32 %421, 9
store i32 %422, ptr %12, align 4
%423 = load ptr, ptr %13, align 8
%424 = call ptr @stbi__zlib_flushf(ptr noundef %423, ptr noundef %9, ptr noundef %12)
store ptr %424, ptr %13, align 8
br label %459
425: ; preds = %407
%426 = load i32, ptr %11, align 4
%427 = add nsw i32 %426, 257
%428 = icmp sle i32 %427, 279
br i1 %428, label %429, label %443
429: ; preds = %425
%430 = load i32, ptr %11, align 4
%431 = add nsw i32 %430, 257
%432 = add nsw i32 0, %431
%433 = sub nsw i32 %432, 256
%434 = call i32 @stbi__zlib_bitrev(i32 noundef %433, i32 noundef 7)
%435 = load i32, ptr %12, align 4
%436 = shl i32 %434, %435
%437 = load i32, ptr %9, align 4
%438 = or i32 %437, %436
store i32 %438, ptr %9, align 4
%439 = load i32, ptr %12, align 4
%440 = add nsw i32 %439, 7
store i32 %440, ptr %12, align 4
%441 = load ptr, ptr %13, align 8
%442 = call ptr @stbi__zlib_flushf(ptr noundef %441, ptr noundef %9, ptr noundef %12)
store ptr %442, ptr %13, align 8
br label %457
443: ; preds = %425
%444 = load i32, ptr %11, align 4
%445 = add nsw i32 %444, 257
%446 = add nsw i32 192, %445
%447 = sub nsw i32 %446, 280
%448 = call i32 @stbi__zlib_bitrev(i32 noundef %447, i32 noundef 8)
%449 = load i32, ptr %12, align 4
%450 = shl i32 %448, %449
%451 = load i32, ptr %9, align 4
%452 = or i32 %451, %450
store i32 %452, ptr %9, align 4
%453 = load i32, ptr %12, align 4
%454 = add nsw i32 %453, 8
store i32 %454, ptr %12, align 4
%455 = load ptr, ptr %13, align 8
%456 = call ptr @stbi__zlib_flushf(ptr noundef %455, ptr noundef %9, ptr noundef %12)
store ptr %456, ptr %13, align 8
br label %457
457: ; preds = %443, %429
%458 = phi ptr [ %442, %429 ], [ %456, %443 ]
br label %459
459: ; preds = %457, %411
%460 = phi ptr [ %424, %411 ], [ %458, %457 ]
br label %461
461: ; preds = %459, %394
%462 = phi ptr [ %406, %394 ], [ %460, %459 ]
%463 = load i32, ptr %11, align 4
%464 = sext i32 %463 to i64
%465 = getelementptr inbounds [29 x i8], ptr @stbi_zlib_compress.lengtheb, i64 0, i64 %464
%466 = load i8, ptr %465, align 1
%467 = icmp ne i8 %466, 0
br i1 %467, label %468, label %489
468: ; preds = %461
%469 = load i32, ptr %16, align 4
%470 = load i32, ptr %11, align 4
%471 = sext i32 %470 to i64
%472 = getelementptr inbounds [30 x i16], ptr @stbi_zlib_compress.lengthc, i64 0, i64 %471
%473 = load i16, ptr %472, align 2
%474 = zext i16 %473 to i32
%475 = sub nsw i32 %469, %474
%476 = load i32, ptr %12, align 4
%477 = shl i32 %475, %476
%478 = load i32, ptr %9, align 4
%479 = or i32 %478, %477
store i32 %479, ptr %9, align 4
%480 = load i32, ptr %11, align 4
%481 = sext i32 %480 to i64
%482 = getelementptr inbounds [29 x i8], ptr @stbi_zlib_compress.lengtheb, i64 0, i64 %481
%483 = load i8, ptr %482, align 1
%484 = zext i8 %483 to i32
%485 = load i32, ptr %12, align 4
%486 = add nsw i32 %485, %484
store i32 %486, ptr %12, align 4
%487 = load ptr, ptr %13, align 8
%488 = call ptr @stbi__zlib_flushf(ptr noundef %487, ptr noundef %9, ptr noundef %12)
store ptr %488, ptr %13, align 8
br label %489
489: ; preds = %468, %461
store i32 0, ptr %11, align 4
%490 = load i32, ptr %22, align 4
%491 = load i32, ptr %11, align 4
%492 = add nsw i32 %491, 1
%493 = sext i32 %492 to i64
%494 = getelementptr inbounds [31 x i16], ptr @stbi_zlib_compress.distc, i64 0, i64 %493
%495 = load i16, ptr %494, align 2
%496 = zext i16 %495 to i32
%497 = sub nsw i32 %496, 1
%498 = icmp sgt i32 %490, %497
br i1 %498, label %.lr.ph10, label %512
.lr.ph10: ; preds = %489
br label %499
499: ; preds = %.lr.ph10, %500
br label %500
500: ; preds = %499
%501 = load i32, ptr %11, align 4
%502 = add nsw i32 %501, 1
store i32 %502, ptr %11, align 4
%503 = load i32, ptr %22, align 4
%504 = load i32, ptr %11, align 4
%505 = add nsw i32 %504, 1
%506 = sext i32 %505 to i64
%507 = getelementptr inbounds [31 x i16], ptr @stbi_zlib_compress.distc, i64 0, i64 %506
%508 = load i16, ptr %507, align 2
%509 = zext i16 %508 to i32
%510 = sub nsw i32 %509, 1
%511 = icmp sgt i32 %503, %510
br i1 %511, label %499, label %._crit_edge11, !llvm.loop !11
._crit_edge11: ; preds = %500
br label %512
512: ; preds = %._crit_edge11, %489
%513 = load i32, ptr %11, align 4
%514 = call i32 @stbi__zlib_bitrev(i32 noundef %513, i32 noundef 5)
%515 = load i32, ptr %12, align 4
%516 = shl i32 %514, %515
%517 = load i32, ptr %9, align 4
%518 = or i32 %517, %516
store i32 %518, ptr %9, align 4
%519 = load i32, ptr %12, align 4
%520 = add nsw i32 %519, 5
store i32 %520, ptr %12, align 4
%521 = load ptr, ptr %13, align 8
%522 = call ptr @stbi__zlib_flushf(ptr noundef %521, ptr noundef %9, ptr noundef %12)
store ptr %522, ptr %13, align 8
%523 = load i32, ptr %11, align 4
%524 = sext i32 %523 to i64
%525 = getelementptr inbounds [30 x i8], ptr @stbi_zlib_compress.disteb, i64 0, i64 %524
%526 = load i8, ptr %525, align 1
%527 = icmp ne i8 %526, 0
br i1 %527, label %528, label %549
528: ; preds = %512
%529 = load i32, ptr %22, align 4
%530 = load i32, ptr %11, align 4
%531 = sext i32 %530 to i64
%532 = getelementptr inbounds [31 x i16], ptr @stbi_zlib_compress.distc, i64 0, i64 %531
%533 = load i16, ptr %532, align 2
%534 = zext i16 %533 to i32
%535 = sub nsw i32 %529, %534
%536 = load i32, ptr %12, align 4
%537 = shl i32 %535, %536
%538 = load i32, ptr %9, align 4
%539 = or i32 %538, %537
store i32 %539, ptr %9, align 4
%540 = load i32, ptr %11, align 4
%541 = sext i32 %540 to i64
%542 = getelementptr inbounds [30 x i8], ptr @stbi_zlib_compress.disteb, i64 0, i64 %541
%543 = load i8, ptr %542, align 1
%544 = zext i8 %543 to i32
%545 = load i32, ptr %12, align 4
%546 = add nsw i32 %545, %544
store i32 %546, ptr %12, align 4
%547 = load ptr, ptr %13, align 8
%548 = call ptr @stbi__zlib_flushf(ptr noundef %547, ptr noundef %9, ptr noundef %12)
store ptr %548, ptr %13, align 8
br label %549
549: ; preds = %528, %512
%550 = load i32, ptr %16, align 4
%551 = load i32, ptr %10, align 4
%552 = add nsw i32 %551, %550
store i32 %552, ptr %10, align 4
br label %600
553: ; preds = %346
%554 = load ptr, ptr %5, align 8
%555 = load i32, ptr %10, align 4
%556 = sext i32 %555 to i64
%557 = getelementptr inbounds i8, ptr %554, i64 %556
%558 = load i8, ptr %557, align 1
%559 = zext i8 %558 to i32
%560 = icmp sle i32 %559, 143
br i1 %560, label %561, label %578
561: ; preds = %553
%562 = load ptr, ptr %5, align 8
%563 = load i32, ptr %10, align 4
%564 = sext i32 %563 to i64
%565 = getelementptr inbounds i8, ptr %562, i64 %564
%566 = load i8, ptr %565, align 1
%567 = zext i8 %566 to i32
%568 = add nsw i32 48, %567
%569 = call i32 @stbi__zlib_bitrev(i32 noundef %568, i32 noundef 8)
%570 = load i32, ptr %12, align 4
%571 = shl i32 %569, %570
%572 = load i32, ptr %9, align 4
%573 = or i32 %572, %571
store i32 %573, ptr %9, align 4
%574 = load i32, ptr %12, align 4
%575 = add nsw i32 %574, 8
store i32 %575, ptr %12, align 4
%576 = load ptr, ptr %13, align 8
%577 = call ptr @stbi__zlib_flushf(ptr noundef %576, ptr noundef %9, ptr noundef %12)
store ptr %577, ptr %13, align 8
br label %596
578: ; preds = %553
%579 = load ptr, ptr %5, align 8
%580 = load i32, ptr %10, align 4
%581 = sext i32 %580 to i64
%582 = getelementptr inbounds i8, ptr %579, i64 %581
%583 = load i8, ptr %582, align 1
%584 = zext i8 %583 to i32
%585 = add nsw i32 400, %584
%586 = sub nsw i32 %585, 144
%587 = call i32 @stbi__zlib_bitrev(i32 noundef %586, i32 noundef 9)
%588 = load i32, ptr %12, align 4
%589 = shl i32 %587, %588
%590 = load i32, ptr %9, align 4
%591 = or i32 %590, %589
store i32 %591, ptr %9, align 4
%592 = load i32, ptr %12, align 4
%593 = add nsw i32 %592, 9
store i32 %593, ptr %12, align 4
%594 = load ptr, ptr %13, align 8
%595 = call ptr @stbi__zlib_flushf(ptr noundef %594, ptr noundef %9, ptr noundef %12)
store ptr %595, ptr %13, align 8
br label %596
596: ; preds = %578, %561
%597 = phi ptr [ %577, %561 ], [ %595, %578 ]
%598 = load i32, ptr %10, align 4
%599 = add nsw i32 %598, 1
store i32 %599, ptr %10, align 4
br label %600
600: ; preds = %596, %549
%601 = load i32, ptr %10, align 4
%602 = load i32, ptr %6, align 4
%603 = sub nsw i32 %602, 3
%604 = icmp slt i32 %601, %603
br i1 %604, label %116, label %._crit_edge14, !llvm.loop !12
._crit_edge14: ; preds = %600
br label %605
605: ; preds = %._crit_edge14, %111
%606 = load i32, ptr %10, align 4
%607 = load i32, ptr %6, align 4
%608 = icmp slt i32 %606, %607
br i1 %608, label %.lr.ph16, label %660
.lr.ph16: ; preds = %605
br label %609
609: ; preds = %.lr.ph16, %654
%610 = load ptr, ptr %5, align 8
%611 = load i32, ptr %10, align 4
%612 = sext i32 %611 to i64
%613 = getelementptr inbounds i8, ptr %610, i64 %612
%614 = load i8, ptr %613, align 1
%615 = zext i8 %614 to i32
%616 = icmp sle i32 %615, 143
br i1 %616, label %617, label %634
617: ; preds = %609
%618 = load ptr, ptr %5, align 8
%619 = load i32, ptr %10, align 4
%620 = sext i32 %619 to i64
%621 = getelementptr inbounds i8, ptr %618, i64 %620
%622 = load i8, ptr %621, align 1
%623 = zext i8 %622 to i32
%624 = add nsw i32 48, %623
%625 = call i32 @stbi__zlib_bitrev(i32 noundef %624, i32 noundef 8)
%626 = load i32, ptr %12, align 4
%627 = shl i32 %625, %626
%628 = load i32, ptr %9, align 4
%629 = or i32 %628, %627
store i32 %629, ptr %9, align 4
%630 = load i32, ptr %12, align 4
%631 = add nsw i32 %630, 8
store i32 %631, ptr %12, align 4
%632 = load ptr, ptr %13, align 8
%633 = call ptr @stbi__zlib_flushf(ptr noundef %632, ptr noundef %9, ptr noundef %12)
store ptr %633, ptr %13, align 8
br label %652
634: ; preds = %609
%635 = load ptr, ptr %5, align 8
%636 = load i32, ptr %10, align 4
%637 = sext i32 %636 to i64
%638 = getelementptr inbounds i8, ptr %635, i64 %637
%639 = load i8, ptr %638, align 1
%640 = zext i8 %639 to i32
%641 = add nsw i32 400, %640
%642 = sub nsw i32 %641, 144
%643 = call i32 @stbi__zlib_bitrev(i32 noundef %642, i32 noundef 9)
%644 = load i32, ptr %12, align 4
%645 = shl i32 %643, %644
%646 = load i32, ptr %9, align 4
%647 = or i32 %646, %645
store i32 %647, ptr %9, align 4
%648 = load i32, ptr %12, align 4
%649 = add nsw i32 %648, 9
store i32 %649, ptr %12, align 4
%650 = load ptr, ptr %13, align 8
%651 = call ptr @stbi__zlib_flushf(ptr noundef %650, ptr noundef %9, ptr noundef %12)
store ptr %651, ptr %13, align 8
br label %652
652: ; preds = %634, %617
%653 = phi ptr [ %633, %617 ], [ %651, %634 ]
br label %654
654: ; preds = %652
%655 = load i32, ptr %10, align 4
%656 = add nsw i32 %655, 1
store i32 %656, ptr %10, align 4
%657 = load i32, ptr %10, align 4
%658 = load i32, ptr %6, align 4
%659 = icmp slt i32 %657, %658
br i1 %659, label %609, label %._crit_edge17, !llvm.loop !13
._crit_edge17: ; preds = %654
br label %660
660: ; preds = %._crit_edge17, %605
%661 = call i32 @stbi__zlib_bitrev(i32 noundef 0, i32 noundef 7)
%662 = load i32, ptr %12, align 4
%663 = shl i32 %661, %662
%664 = load i32, ptr %9, align 4
%665 = or i32 %664, %663
store i32 %665, ptr %9, align 4
%666 = load i32, ptr %12, align 4
%667 = add nsw i32 %666, 7
store i32 %667, ptr %12, align 4
%668 = load ptr, ptr %13, align 8
%669 = call ptr @stbi__zlib_flushf(ptr noundef %668, ptr noundef %9, ptr noundef %12)
store ptr %669, ptr %13, align 8
%670 = load i32, ptr %12, align 4
%671 = icmp ne i32 %670, 0
br i1 %671, label %.lr.ph19, label %683
.lr.ph19: ; preds = %660
br label %672
672: ; preds = %.lr.ph19, %672
%673 = load i32, ptr %12, align 4
%674 = shl i32 0, %673
%675 = load i32, ptr %9, align 4
%676 = or i32 %675, %674
store i32 %676, ptr %9, align 4
%677 = load i32, ptr %12, align 4
%678 = add nsw i32 %677, 1
store i32 %678, ptr %12, align 4
%679 = load ptr, ptr %13, align 8
%680 = call ptr @stbi__zlib_flushf(ptr noundef %679, ptr noundef %9, ptr noundef %12)
store ptr %680, ptr %13, align 8
%681 = load i32, ptr %12, align 4
%682 = icmp ne i32 %681, 0
br i1 %682, label %672, label %._crit_edge20, !llvm.loop !14
._crit_edge20: ; preds = %672
br label %683
683: ; preds = %._crit_edge20, %660
store i32 0, ptr %10, align 4
%684 = load i32, ptr %10, align 4
%685 = icmp slt i32 %684, 16384
br i1 %685, label %.lr.ph22, label %707
.lr.ph22: ; preds = %683
br label %686
686: ; preds = %.lr.ph22, %702
%687 = load i32, ptr %10, align 4
%688 = sext i32 %687 to i64
%689 = getelementptr inbounds [16384 x ptr], ptr %14, i64 0, i64 %688
%690 = load ptr, ptr %689, align 8
%691 = icmp ne ptr %690, null
br i1 %691, label %692, label %699
692: ; preds = %686
%693 = load i32, ptr %10, align 4
%694 = sext i32 %693 to i64
%695 = getelementptr inbounds [16384 x ptr], ptr %14, i64 0, i64 %694
%696 = load ptr, ptr %695, align 8
%697 = getelementptr inbounds i32, ptr %696, i64 -2
%698 = call i32 @free(ptr noundef %697)
br label %700
699: ; preds = %686
br label %700
700: ; preds = %699, %692
%701 = phi i32 [ 0, %692 ], [ 0, %699 ]
br label %702
702: ; preds = %700
%703 = load i32, ptr %10, align 4
%704 = add nsw i32 %703, 1
store i32 %704, ptr %10, align 4
%705 = load i32, ptr %10, align 4
%706 = icmp slt i32 %705, 16384
br i1 %706, label %686, label %._crit_edge23, !llvm.loop !15
._crit_edge23: ; preds = %702
br label %707
707: ; preds = %._crit_edge23, %683
store i32 0, ptr %23, align 4
store i32 1, ptr %24, align 4
store i32 0, ptr %25, align 4
%708 = load i32, ptr %6, align 4
%709 = srem i32 %708, 5552
store i32 %709, ptr %26, align 4
store i32 0, ptr %27, align 4
%710 = load i32, ptr %27, align 4
%711 = load i32, ptr %6, align 4
%712 = icmp slt i32 %710, %711
br i1 %712, label %.lr.ph28, label %748
.lr.ph28: ; preds = %707
br label %713
713: ; preds = %.lr.ph28, %737
store i32 0, ptr %23, align 4
%714 = load i32, ptr %23, align 4
%715 = load i32, ptr %26, align 4
%716 = icmp ult i32 %714, %715
br i1 %716, label %.lr.ph25, label %737
.lr.ph25: ; preds = %713
br label %717
717: ; preds = %.lr.ph25, %731
%718 = load ptr, ptr %5, align 8
%719 = load i32, ptr %27, align 4
%720 = load i32, ptr %23, align 4
%721 = add i32 %719, %720
%722 = zext i32 %721 to i64
%723 = getelementptr inbounds i8, ptr %718, i64 %722
%724 = load i8, ptr %723, align 1
%725 = zext i8 %724 to i32
%726 = load i32, ptr %24, align 4
%727 = add i32 %726, %725
store i32 %727, ptr %24, align 4
%728 = load i32, ptr %24, align 4
%729 = load i32, ptr %25, align 4
%730 = add i32 %729, %728
store i32 %730, ptr %25, align 4
br label %731
731: ; preds = %717
%732 = load i32, ptr %23, align 4
%733 = add i32 %732, 1
store i32 %733, ptr %23, align 4
%734 = load i32, ptr %23, align 4
%735 = load i32, ptr %26, align 4
%736 = icmp ult i32 %734, %735
br i1 %736, label %717, label %._crit_edge26, !llvm.loop !16
._crit_edge26: ; preds = %731
br label %737
737: ; preds = %._crit_edge26, %713
%738 = load i32, ptr %24, align 4
%739 = urem i32 %738, 65521
store i32 %739, ptr %24, align 4
%740 = load i32, ptr %25, align 4
%741 = urem i32 %740, 65521
store i32 %741, ptr %25, align 4
%742 = load i32, ptr %26, align 4
%743 = load i32, ptr %27, align 4
%744 = add i32 %743, %742
store i32 %744, ptr %27, align 4
store i32 5552, ptr %26, align 4
%745 = load i32, ptr %27, align 4
%746 = load i32, ptr %6, align 4
%747 = icmp slt i32 %745, %746
br i1 %747, label %713, label %._crit_edge29, !llvm.loop !17
._crit_edge29: ; preds = %737
br label %748
748: ; preds = %._crit_edge29, %707
%749 = load ptr, ptr %13, align 8
%750 = icmp eq ptr %749, null
br i1 %750, label %762, label %751
751: ; preds = %748
%752 = load ptr, ptr %13, align 8
%753 = getelementptr inbounds i32, ptr %752, i64 -2
%754 = getelementptr inbounds i32, ptr %753, i64 1
%755 = load i32, ptr %754, align 4
%756 = add nsw i32 %755, 1
%757 = load ptr, ptr %13, align 8
%758 = getelementptr inbounds i32, ptr %757, i64 -2
%759 = getelementptr inbounds i32, ptr %758, i64 0
%760 = load i32, ptr %759, align 4
%761 = icmp sge i32 %756, %760
br i1 %761, label %762, label %764
762: ; preds = %751, %748
%763 = call i32 @stbi__sbgrowf(ptr noundef %13, i32 noundef 1, i32 noundef 1)
br label %765
764: ; preds = %751
br label %765
765: ; preds = %764, %762
%766 = phi i32 [ %763, %762 ], [ 0, %764 ]
%767 = load i32, ptr %25, align 4
%768 = lshr i32 %767, 8
%769 = trunc i32 %768 to i8
%770 = load ptr, ptr %13, align 8
%771 = load ptr, ptr %13, align 8
%772 = getelementptr inbounds i32, ptr %771, i64 -2
%773 = getelementptr inbounds i32, ptr %772, i64 1
%774 = load i32, ptr %773, align 4
%775 = add nsw i32 %774, 1
store i32 %775, ptr %773, align 4
%776 = sext i32 %774 to i64
%777 = getelementptr inbounds i8, ptr %770, i64 %776
store i8 %769, ptr %777, align 1
%778 = load ptr, ptr %13, align 8
%779 = icmp eq ptr %778, null
br i1 %779, label %791, label %780
780: ; preds = %765
%781 = load ptr, ptr %13, align 8
%782 = getelementptr inbounds i32, ptr %781, i64 -2
%783 = getelementptr inbounds i32, ptr %782, i64 1
%784 = load i32, ptr %783, align 4
%785 = add nsw i32 %784, 1
%786 = load ptr, ptr %13, align 8
%787 = getelementptr inbounds i32, ptr %786, i64 -2
%788 = getelementptr inbounds i32, ptr %787, i64 0
%789 = load i32, ptr %788, align 4
%790 = icmp sge i32 %785, %789
br i1 %790, label %791, label %793
791: ; preds = %780, %765
%792 = call i32 @stbi__sbgrowf(ptr noundef %13, i32 noundef 1, i32 noundef 1)
br label %794
793: ; preds = %780
br label %794
794: ; preds = %793, %791
%795 = phi i32 [ %792, %791 ], [ 0, %793 ]
%796 = load i32, ptr %25, align 4
%797 = trunc i32 %796 to i8
%798 = load ptr, ptr %13, align 8
%799 = load ptr, ptr %13, align 8
%800 = getelementptr inbounds i32, ptr %799, i64 -2
%801 = getelementptr inbounds i32, ptr %800, i64 1
%802 = load i32, ptr %801, align 4
%803 = add nsw i32 %802, 1
store i32 %803, ptr %801, align 4
%804 = sext i32 %802 to i64
%805 = getelementptr inbounds i8, ptr %798, i64 %804
store i8 %797, ptr %805, align 1
%806 = load ptr, ptr %13, align 8
%807 = icmp eq ptr %806, null
br i1 %807, label %819, label %808
808: ; preds = %794
%809 = load ptr, ptr %13, align 8
%810 = getelementptr inbounds i32, ptr %809, i64 -2
%811 = getelementptr inbounds i32, ptr %810, i64 1
%812 = load i32, ptr %811, align 4
%813 = add nsw i32 %812, 1
%814 = load ptr, ptr %13, align 8
%815 = getelementptr inbounds i32, ptr %814, i64 -2
%816 = getelementptr inbounds i32, ptr %815, i64 0
%817 = load i32, ptr %816, align 4
%818 = icmp sge i32 %813, %817
br i1 %818, label %819, label %821
819: ; preds = %808, %794
%820 = call i32 @stbi__sbgrowf(ptr noundef %13, i32 noundef 1, i32 noundef 1)
br label %822
821: ; preds = %808
br label %822
822: ; preds = %821, %819
%823 = phi i32 [ %820, %819 ], [ 0, %821 ]
%824 = load i32, ptr %24, align 4
%825 = lshr i32 %824, 8
%826 = trunc i32 %825 to i8
%827 = load ptr, ptr %13, align 8
%828 = load ptr, ptr %13, align 8
%829 = getelementptr inbounds i32, ptr %828, i64 -2
%830 = getelementptr inbounds i32, ptr %829, i64 1
%831 = load i32, ptr %830, align 4
%832 = add nsw i32 %831, 1
store i32 %832, ptr %830, align 4
%833 = sext i32 %831 to i64
%834 = getelementptr inbounds i8, ptr %827, i64 %833
store i8 %826, ptr %834, align 1
%835 = load ptr, ptr %13, align 8
%836 = icmp eq ptr %835, null
br i1 %836, label %848, label %837
837: ; preds = %822
%838 = load ptr, ptr %13, align 8
%839 = getelementptr inbounds i32, ptr %838, i64 -2
%840 = getelementptr inbounds i32, ptr %839, i64 1
%841 = load i32, ptr %840, align 4
%842 = add nsw i32 %841, 1
%843 = load ptr, ptr %13, align 8
%844 = getelementptr inbounds i32, ptr %843, i64 -2
%845 = getelementptr inbounds i32, ptr %844, i64 0
%846 = load i32, ptr %845, align 4
%847 = icmp sge i32 %842, %846
br i1 %847, label %848, label %850
848: ; preds = %837, %822
%849 = call i32 @stbi__sbgrowf(ptr noundef %13, i32 noundef 1, i32 noundef 1)
br label %851
850: ; preds = %837
br label %851
851: ; preds = %850, %848
%852 = phi i32 [ %849, %848 ], [ 0, %850 ]
%853 = load i32, ptr %24, align 4
%854 = trunc i32 %853 to i8
%855 = load ptr, ptr %13, align 8
%856 = load ptr, ptr %13, align 8
%857 = getelementptr inbounds i32, ptr %856, i64 -2
%858 = getelementptr inbounds i32, ptr %857, i64 1
%859 = load i32, ptr %858, align 4
%860 = add nsw i32 %859, 1
store i32 %860, ptr %858, align 4
%861 = sext i32 %859 to i64
%862 = getelementptr inbounds i8, ptr %855, i64 %861
store i8 %854, ptr %862, align 1
%863 = load ptr, ptr %13, align 8
%864 = getelementptr inbounds i32, ptr %863, i64 -2
%865 = getelementptr inbounds i32, ptr %864, i64 1
%866 = load i32, ptr %865, align 4
%867 = load ptr, ptr %7, align 8
store i32 %866, ptr %867, align 4
%868 = load ptr, ptr %13, align 8
%869 = getelementptr inbounds i32, ptr %868, i64 -2
%870 = load ptr, ptr %13, align 8
%871 = load ptr, ptr %7, align 8
%872 = load i32, ptr %871, align 4
%873 = call i32 @memmove(ptr noundef %869, ptr noundef %870, i32 noundef %872)
%874 = load ptr, ptr %13, align 8
%875 = getelementptr inbounds i32, ptr %874, i64 -2
ret ptr %875
}
declare i32 @stbi__sbgrowf(ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @stbi__zlib_flushf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @stbi__zhash(ptr noundef) #1
declare i32 @stbi__zlib_countm(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @assert(i32 noundef) #1
declare i32 @stbi__zlib_bitrev(i32 noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @memmove(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
!16 = distinct !{!16, !7}
!17 = distinct !{!17, !7}
|
; ModuleID = '/tmp/tmp9y6_g1xw.c'
source_filename = "/tmp/tmp9y6_g1xw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @change_delivery_system(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
ret i32 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9y6_g1xw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @change_delivery_system(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
ret i32 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6bia_1tk.c'
source_filename = "/tmp/tmp6bia_1tk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"0123456789abcdef\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"0x\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ft_putaddress(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = ptrtoint ptr %5 to i64
store i64 %6, ptr %3, align 8
%7 = load i64, ptr %3, align 8
%8 = call ptr @ft_itoa_base_unsigned(i64 noundef %7, i32 noundef 16, ptr noundef @.str)
store ptr %8, ptr %4, align 8
%9 = call i32 @ft_putstr(ptr noundef @.str.1)
%10 = load ptr, ptr %4, align 8
%11 = call i32 @ft_putstr(ptr noundef %10)
%12 = load ptr, ptr %4, align 8
%13 = call i32 @free(ptr noundef %12)
ret void
}
declare ptr @ft_itoa_base_unsigned(i64 noundef, i32 noundef, ptr noundef) #1
declare i32 @ft_putstr(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6bia_1tk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"0123456789abcdef\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"0x\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ft_putaddress(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = ptrtoint ptr %5 to i64
store i64 %6, ptr %3, align 8
%7 = load i64, ptr %3, align 8
%8 = call ptr @ft_itoa_base_unsigned(i64 noundef %7, i32 noundef 16, ptr noundef @.str)
store ptr %8, ptr %4, align 8
%9 = call i32 @ft_putstr(ptr noundef @.str.1)
%10 = load ptr, ptr %4, align 8
%11 = call i32 @ft_putstr(ptr noundef %10)
%12 = load ptr, ptr %4, align 8
%13 = call i32 @free(ptr noundef %12)
ret void
}
declare ptr @ft_itoa_base_unsigned(i64 noundef, i32 noundef, ptr noundef) #1
declare i32 @ft_putstr(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqru8r4a7.c'
source_filename = "/tmp/tmpqru8r4a7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timespec = type { i64, i32 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [31 x i8] c"nanosleep() returned %lu.%lu!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @msp_udelay(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca %struct.timespec, align 8
%4 = alloca %struct.timespec, align 8
%5 = alloca i32, align 4
store i64 %0, ptr %2, align 8
%6 = load i64, ptr %2, align 8
%7 = udiv i64 %6, 1000000
%8 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 0
store i64 %7, ptr %8, align 8
%9 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 0
%10 = load i64, ptr %9, align 8
%11 = mul i64 %10, 1000000
%12 = load i64, ptr %2, align 8
%13 = sub i64 %12, %11
store i64 %13, ptr %2, align 8
%14 = load i64, ptr %2, align 8
%15 = mul i64 1000, %14
%16 = trunc i64 %15 to i32
%17 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 1
store i32 %16, ptr %17, align 8
%18 = call i32 @nanosleep(ptr noundef %3, ptr noundef %4)
store i32 %18, ptr %5, align 4
%19 = load i32, ptr %5, align 4
%20 = icmp sgt i32 0, %19
br i1 %20, label %21, label %29
21: ; preds = %1
%22 = load i32, ptr @stderr, align 4
%23 = getelementptr inbounds %struct.timespec, ptr %4, i32 0, i32 0
%24 = load i64, ptr %23, align 8
%25 = trunc i64 %24 to i32
%26 = getelementptr inbounds %struct.timespec, ptr %4, i32 0, i32 1
%27 = load i32, ptr %26, align 8
%28 = call i32 @fprintf(i32 noundef %22, ptr noundef @.str, i32 noundef %25, i32 noundef %27)
br label %29
29: ; preds = %21, %1
ret void
}
declare i32 @nanosleep(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqru8r4a7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timespec = type { i64, i32 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [31 x i8] c"nanosleep() returned %lu.%lu!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @msp_udelay(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca %struct.timespec, align 8
%4 = alloca %struct.timespec, align 8
%5 = alloca i32, align 4
store i64 %0, ptr %2, align 8
%6 = load i64, ptr %2, align 8
%7 = udiv i64 %6, 1000000
%8 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 0
store i64 %7, ptr %8, align 8
%9 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 0
%10 = load i64, ptr %9, align 8
%11 = mul i64 %10, 1000000
%12 = load i64, ptr %2, align 8
%13 = sub i64 %12, %11
store i64 %13, ptr %2, align 8
%14 = load i64, ptr %2, align 8
%15 = mul i64 1000, %14
%16 = trunc i64 %15 to i32
%17 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 1
store i32 %16, ptr %17, align 8
%18 = call i32 @nanosleep(ptr noundef %3, ptr noundef %4)
store i32 %18, ptr %5, align 4
%19 = load i32, ptr %5, align 4
%20 = icmp sgt i32 0, %19
br i1 %20, label %21, label %29
21: ; preds = %1
%22 = load i32, ptr @stderr, align 4
%23 = getelementptr inbounds %struct.timespec, ptr %4, i32 0, i32 0
%24 = load i64, ptr %23, align 8
%25 = trunc i64 %24 to i32
%26 = getelementptr inbounds %struct.timespec, ptr %4, i32 0, i32 1
%27 = load i32, ptr %26, align 8
%28 = call i32 @fprintf(i32 noundef %22, ptr noundef @.str, i32 noundef %25, i32 noundef %27)
br label %29
29: ; preds = %21, %1
ret void
}
declare i32 @nanosleep(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplsuxbfe9.c'
source_filename = "/tmp/tmplsuxbfe9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@DBL_MAX = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @minInd2(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%10 = load double, ptr @DBL_MAX, align 8
store double %10, ptr %6, align 8
%11 = load double, ptr @DBL_MAX, align 8
store double %11, ptr %7, align 8
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
br label %12
12: ; preds = %47, %2
%13 = load i32, ptr %9, align 4
%14 = load i32, ptr %5, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %50
16: ; preds = %12
%17 = load ptr, ptr %4, align 8
%18 = load i32, ptr %9, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds double, ptr %17, i64 %19
%21 = load double, ptr %20, align 8
%22 = load double, ptr %6, align 8
%23 = fcmp olt double %21, %22
br i1 %23, label %24, label %30
24: ; preds = %16
%25 = load ptr, ptr %4, align 8
%26 = load i32, ptr %9, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds double, ptr %25, i64 %27
%29 = load double, ptr %28, align 8
store double %29, ptr %6, align 8
br label %46
30: ; preds = %16
%31 = load ptr, ptr %4, align 8
%32 = load i32, ptr %9, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds double, ptr %31, i64 %33
%35 = load double, ptr %34, align 8
%36 = load double, ptr %7, align 8
%37 = fcmp olt double %35, %36
br i1 %37, label %38, label %45
38: ; preds = %30
%39 = load ptr, ptr %4, align 8
%40 = load i32, ptr %9, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds double, ptr %39, i64 %41
%43 = load double, ptr %42, align 8
store double %43, ptr %7, align 8
%44 = load i32, ptr %9, align 4
store i32 %44, ptr %8, align 4
br label %45
45: ; preds = %38, %30
br label %46
46: ; preds = %45, %24
br label %47
47: ; preds = %46
%48 = load i32, ptr %9, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %9, align 4
br label %12, !llvm.loop !6
50: ; preds = %12
%51 = load double, ptr %7, align 8
%52 = load double, ptr @DBL_MAX, align 8
%53 = fsub double %51, %52
%54 = call i32 @fabs(double noundef %53)
%55 = icmp slt i32 %54, 1
br i1 %55, label %56, label %57
56: ; preds = %50
store i32 -1, ptr %3, align 4
br label %59
57: ; preds = %50
%58 = load i32, ptr %8, align 4
store i32 %58, ptr %3, align 4
br label %59
59: ; preds = %57, %56
%60 = load i32, ptr %3, align 4
ret i32 %60
}
declare i32 @fabs(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplsuxbfe9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@DBL_MAX = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @minInd2(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%10 = load double, ptr @DBL_MAX, align 8
store double %10, ptr %6, align 8
%11 = load double, ptr @DBL_MAX, align 8
store double %11, ptr %7, align 8
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
%12 = load i32, ptr %9, align 4
%13 = load i32, ptr %5, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %.lr.ph, label %52
.lr.ph: ; preds = %2
br label %15
15: ; preds = %.lr.ph, %46
%16 = load ptr, ptr %4, align 8
%17 = load i32, ptr %9, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds double, ptr %16, i64 %18
%20 = load double, ptr %19, align 8
%21 = load double, ptr %6, align 8
%22 = fcmp olt double %20, %21
br i1 %22, label %23, label %29
23: ; preds = %15
%24 = load ptr, ptr %4, align 8
%25 = load i32, ptr %9, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds double, ptr %24, i64 %26
%28 = load double, ptr %27, align 8
store double %28, ptr %6, align 8
br label %45
29: ; preds = %15
%30 = load ptr, ptr %4, align 8
%31 = load i32, ptr %9, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds double, ptr %30, i64 %32
%34 = load double, ptr %33, align 8
%35 = load double, ptr %7, align 8
%36 = fcmp olt double %34, %35
br i1 %36, label %37, label %44
37: ; preds = %29
%38 = load ptr, ptr %4, align 8
%39 = load i32, ptr %9, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds double, ptr %38, i64 %40
%42 = load double, ptr %41, align 8
store double %42, ptr %7, align 8
%43 = load i32, ptr %9, align 4
store i32 %43, ptr %8, align 4
br label %44
44: ; preds = %37, %29
br label %45
45: ; preds = %44, %23
br label %46
46: ; preds = %45
%47 = load i32, ptr %9, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %9, align 4
%49 = load i32, ptr %9, align 4
%50 = load i32, ptr %5, align 4
%51 = icmp slt i32 %49, %50
br i1 %51, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %46
br label %52
52: ; preds = %._crit_edge, %2
%53 = load double, ptr %7, align 8
%54 = load double, ptr @DBL_MAX, align 8
%55 = fsub double %53, %54
%56 = call i32 @fabs(double noundef %55)
%57 = icmp slt i32 %56, 1
br i1 %57, label %58, label %59
58: ; preds = %52
store i32 -1, ptr %3, align 4
br label %61
59: ; preds = %52
%60 = load i32, ptr %8, align 4
store i32 %60, ptr %3, align 4
br label %61
61: ; preds = %59, %58
%62 = load i32, ptr %3, align 4
ret i32 %62
}
declare i32 @fabs(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmppp3oep_0.c'
source_filename = "/tmp/tmppp3oep_0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local zeroext i8 @___lwpins32(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %5, align 4
%9 = call zeroext i8 @__lwpins32(i32 noundef %7, i32 noundef %8, i32 noundef 1)
ret i8 %9
}
declare zeroext i8 @__lwpins32(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/tmppp3oep_0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local zeroext i8 @___lwpins32(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %5, align 4
%9 = call zeroext i8 @__lwpins32(i32 noundef %7, i32 noundef %8, i32 noundef 1)
ret i8 %9
}
declare zeroext i8 @__lwpins32(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/tmpad6unx4c.c'
source_filename = "/tmp/tmpad6unx4c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_SET = 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/tmpad6unx4c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_SET = 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/tmpje03fo23.c'
source_filename = "/tmp/tmpje03fo23.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"ret\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @gen_ret() #0 {
%1 = call i32 @output_line(ptr noundef @.str)
ret void
}
declare i32 @output_line(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpje03fo23.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"ret\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @gen_ret() #0 {
%1 = call i32 @output_line(ptr noundef @.str)
ret void
}
declare i32 @output_line(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdn948dpk.c'
source_filename = "/tmp/tmpdn948dpk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"c101,c22,c3,c4\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"ucnt %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"t %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"c%d\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"c %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [5 x i8], align 1
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %1, align 4
store ptr @.str, ptr %2, align 8
%10 = load ptr, ptr %2, align 8
store ptr %10, ptr %3, align 8
%11 = load ptr, ptr %2, align 8
store ptr %11, ptr %4, align 8
store i32 0, ptr %6, align 4
%12 = load ptr, ptr %2, align 8
%13 = call i32 @strlen(ptr noundef %12)
store i32 %13, ptr %7, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %8, align 4
br label %14
14: ; preds = %98, %0
%15 = load i32, ptr %8, align 4
%16 = load i32, ptr %7, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %101
18: ; preds = %14
%19 = load ptr, ptr %2, align 8
%20 = load i32, ptr %8, 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, 44
br i1 %25, label %26, label %58
26: ; preds = %18
%27 = load ptr, ptr %2, align 8
%28 = load i32, ptr %8, align 4
%29 = sub nsw i32 %28, 1
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %27, i64 %30
store ptr %31, ptr %4, align 8
%32 = load ptr, ptr %4, align 8
%33 = load ptr, ptr %3, align 8
%34 = ptrtoint ptr %32 to i64
%35 = ptrtoint ptr %33 to i64
%36 = sub i64 %34, %35
%37 = add nsw i64 %36, 1
%38 = trunc i64 %37 to i32
store i32 %38, ptr %6, align 4
%39 = load i32, ptr %6, align 4
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %39)
%41 = getelementptr inbounds [5 x i8], ptr %5, i64 0, i64 0
%42 = call i32 @memset(ptr noundef %41, i32 noundef 0, i32 noundef 5)
%43 = getelementptr inbounds [5 x i8], ptr %5, i64 0, i64 0
%44 = load ptr, ptr %3, align 8
%45 = load i32, ptr %6, align 4
%46 = call i32 @strncpy(ptr noundef %43, ptr noundef %44, i32 noundef %45)
%47 = getelementptr inbounds [5 x i8], ptr %5, i64 0, i64 0
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %47)
%49 = getelementptr inbounds [5 x i8], ptr %5, i64 0, i64 0
%50 = call i32 @sscanf(ptr noundef %49, ptr noundef @.str.3, ptr noundef %9)
%51 = load i32, ptr %9, align 4
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %51)
%53 = load ptr, ptr %2, align 8
%54 = load i32, ptr %8, align 4
%55 = add nsw i32 %54, 1
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i8, ptr %53, i64 %56
store ptr %57, ptr %3, align 8
br label %98
58: ; preds = %18
%59 = load i32, ptr %8, align 4
%60 = load i32, ptr %7, align 4
%61 = sub nsw i32 %60, 1
%62 = icmp eq i32 %59, %61
br i1 %62, label %63, label %97
63: ; preds = %58
%64 = load ptr, ptr %2, align 8
%65 = load i32, ptr %8, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i8, ptr %64, i64 %66
%68 = load i8, ptr %67, align 1
%69 = sext i8 %68 to i32
%70 = icmp ne i32 %69, 44
br i1 %70, label %71, label %97
71: ; preds = %63
%72 = load ptr, ptr %2, align 8
%73 = load i32, ptr %8, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i8, ptr %72, i64 %74
store ptr %75, ptr %4, align 8
%76 = load ptr, ptr %4, align 8
%77 = load ptr, ptr %3, align 8
%78 = ptrtoint ptr %76 to i64
%79 = ptrtoint ptr %77 to i64
%80 = sub i64 %78, %79
%81 = add nsw i64 %80, 1
%82 = trunc i64 %81 to i32
store i32 %82, ptr %6, align 4
%83 = load i32, ptr %6, align 4
%84 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %83)
%85 = getelementptr inbounds [5 x i8], ptr %5, i64 0, i64 0
%86 = call i32 @memset(ptr noundef %85, i32 noundef 0, i32 noundef 5)
%87 = getelementptr inbounds [5 x i8], ptr %5, i64 0, i64 0
%88 = load ptr, ptr %3, align 8
%89 = load i32, ptr %6, align 4
%90 = call i32 @strncpy(ptr noundef %87, ptr noundef %88, i32 noundef %89)
%91 = getelementptr inbounds [5 x i8], ptr %5, i64 0, i64 0
%92 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %91)
%93 = getelementptr inbounds [5 x i8], ptr %5, i64 0, i64 0
%94 = call i32 @sscanf(ptr noundef %93, ptr noundef @.str.3, ptr noundef %9)
%95 = load i32, ptr %9, align 4
%96 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %95)
br label %97
97: ; preds = %71, %63, %58
br label %98
98: ; preds = %97, %26
%99 = load i32, ptr %8, align 4
%100 = add nsw i32 %99, 1
store i32 %100, ptr %8, align 4
br label %14, !llvm.loop !6
101: ; preds = %14
%102 = load i32, ptr %1, align 4
ret i32 %102
}
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdn948dpk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"c101,c22,c3,c4\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"ucnt %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"t %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"c%d\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"c %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [5 x i8], align 1
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %1, align 4
store ptr @.str, ptr %2, align 8
%10 = load ptr, ptr %2, align 8
store ptr %10, ptr %3, align 8
%11 = load ptr, ptr %2, align 8
store ptr %11, ptr %4, align 8
store i32 0, ptr %6, align 4
%12 = load ptr, ptr %2, align 8
%13 = call i32 @strlen(ptr noundef %12)
store i32 %13, ptr %7, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %8, align 4
%14 = load i32, ptr %8, align 4
%15 = load i32, ptr %7, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %.lr.ph, label %103
.lr.ph: ; preds = %0
br label %17
17: ; preds = %.lr.ph, %97
%18 = load ptr, ptr %2, align 8
%19 = load i32, ptr %8, 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, 44
br i1 %24, label %25, label %57
25: ; preds = %17
%26 = load ptr, ptr %2, align 8
%27 = load i32, ptr %8, align 4
%28 = sub nsw i32 %27, 1
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %26, i64 %29
store ptr %30, ptr %4, align 8
%31 = load ptr, ptr %4, align 8
%32 = load ptr, ptr %3, align 8
%33 = ptrtoint ptr %31 to i64
%34 = ptrtoint ptr %32 to i64
%35 = sub i64 %33, %34
%36 = add nsw i64 %35, 1
%37 = trunc i64 %36 to i32
store i32 %37, ptr %6, align 4
%38 = load i32, ptr %6, align 4
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %38)
%40 = getelementptr inbounds [5 x i8], ptr %5, i64 0, i64 0
%41 = call i32 @memset(ptr noundef %40, i32 noundef 0, i32 noundef 5)
%42 = getelementptr inbounds [5 x i8], ptr %5, i64 0, i64 0
%43 = load ptr, ptr %3, align 8
%44 = load i32, ptr %6, align 4
%45 = call i32 @strncpy(ptr noundef %42, ptr noundef %43, i32 noundef %44)
%46 = getelementptr inbounds [5 x i8], ptr %5, i64 0, i64 0
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %46)
%48 = getelementptr inbounds [5 x i8], ptr %5, i64 0, i64 0
%49 = call i32 @sscanf(ptr noundef %48, ptr noundef @.str.3, ptr noundef %9)
%50 = load i32, ptr %9, align 4
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %50)
%52 = load ptr, ptr %2, align 8
%53 = load i32, ptr %8, align 4
%54 = add nsw i32 %53, 1
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8, ptr %52, i64 %55
store ptr %56, ptr %3, align 8
br label %97
57: ; preds = %17
%58 = load i32, ptr %8, align 4
%59 = load i32, ptr %7, align 4
%60 = sub nsw i32 %59, 1
%61 = icmp eq i32 %58, %60
br i1 %61, label %62, label %96
62: ; preds = %57
%63 = load ptr, ptr %2, align 8
%64 = load i32, ptr %8, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i8, ptr %63, i64 %65
%67 = load i8, ptr %66, align 1
%68 = sext i8 %67 to i32
%69 = icmp ne i32 %68, 44
br i1 %69, label %70, label %96
70: ; preds = %62
%71 = load ptr, ptr %2, align 8
%72 = load i32, ptr %8, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i8, ptr %71, i64 %73
store ptr %74, ptr %4, align 8
%75 = load ptr, ptr %4, align 8
%76 = load ptr, ptr %3, align 8
%77 = ptrtoint ptr %75 to i64
%78 = ptrtoint ptr %76 to i64
%79 = sub i64 %77, %78
%80 = add nsw i64 %79, 1
%81 = trunc i64 %80 to i32
store i32 %81, ptr %6, align 4
%82 = load i32, ptr %6, align 4
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %82)
%84 = getelementptr inbounds [5 x i8], ptr %5, i64 0, i64 0
%85 = call i32 @memset(ptr noundef %84, i32 noundef 0, i32 noundef 5)
%86 = getelementptr inbounds [5 x i8], ptr %5, i64 0, i64 0
%87 = load ptr, ptr %3, align 8
%88 = load i32, ptr %6, align 4
%89 = call i32 @strncpy(ptr noundef %86, ptr noundef %87, i32 noundef %88)
%90 = getelementptr inbounds [5 x i8], ptr %5, i64 0, i64 0
%91 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %90)
%92 = getelementptr inbounds [5 x i8], ptr %5, i64 0, i64 0
%93 = call i32 @sscanf(ptr noundef %92, ptr noundef @.str.3, ptr noundef %9)
%94 = load i32, ptr %9, align 4
%95 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %94)
br label %96
96: ; preds = %70, %62, %57
br label %97
97: ; preds = %96, %25
%98 = load i32, ptr %8, align 4
%99 = add nsw i32 %98, 1
store i32 %99, ptr %8, align 4
%100 = load i32, ptr %8, align 4
%101 = load i32, ptr %7, align 4
%102 = icmp slt i32 %100, %101
br i1 %102, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %97
br label %103
103: ; preds = %._crit_edge, %0
%104 = load i32, ptr %1, align 4
ret i32 %104
}
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp4u02y1jo.c'
source_filename = "/tmp/tmp4u02y1jo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"Roll the die how many times?\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"ones:%d \0A\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"twos:%d \0A\00", align 1
@.str.4 = private unnamed_addr constant [12 x i8] c"threes:%d \0A\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"fours:%d \0A\00", align 1
@.str.6 = private unnamed_addr constant [11 x i8] c"fives:%d \0A\00", align 1
@.str.7 = private unnamed_addr constant [11 x i8] c"sixes:%d \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
%10 = call i32 @time(ptr noundef null)
%11 = call i32 @srand(i32 noundef %10)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%13 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
br label %14
14: ; preds = %61, %0
%15 = load i32, ptr %3, align 4
%16 = icmp sgt i32 %15, 0
br i1 %16, label %17, label %64
17: ; preds = %14
%18 = call i32 (...) @rand()
%19 = srem i32 %18, 6
%20 = add nsw i32 %19, 1
store i32 %20, ptr %2, align 4
%21 = load i32, ptr %2, align 4
%22 = icmp eq i32 %21, 1
br i1 %22, label %23, label %26
23: ; preds = %17
%24 = load i32, ptr %4, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %4, align 4
br label %61
26: ; preds = %17
%27 = load i32, ptr %2, align 4
%28 = icmp eq i32 %27, 2
br i1 %28, label %29, label %32
29: ; preds = %26
%30 = load i32, ptr %5, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %5, align 4
br label %60
32: ; preds = %26
%33 = load i32, ptr %2, align 4
%34 = icmp eq i32 %33, 3
br i1 %34, label %35, label %38
35: ; preds = %32
%36 = load i32, ptr %6, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %6, align 4
br label %59
38: ; preds = %32
%39 = load i32, ptr %2, align 4
%40 = icmp eq i32 %39, 4
br i1 %40, label %41, label %44
41: ; preds = %38
%42 = load i32, ptr %7, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %7, align 4
br label %58
44: ; preds = %38
%45 = load i32, ptr %2, align 4
%46 = icmp eq i32 %45, 5
br i1 %46, label %47, label %50
47: ; preds = %44
%48 = load i32, ptr %8, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %8, align 4
br label %57
50: ; preds = %44
%51 = load i32, ptr %2, align 4
%52 = icmp eq i32 %51, 6
br i1 %52, label %53, label %56
53: ; preds = %50
%54 = load i32, ptr %9, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %9, align 4
br label %56
56: ; preds = %53, %50
br label %57
57: ; preds = %56, %47
br label %58
58: ; preds = %57, %41
br label %59
59: ; preds = %58, %35
br label %60
60: ; preds = %59, %29
br label %61
61: ; preds = %60, %23
%62 = load i32, ptr %3, align 4
%63 = add nsw i32 %62, -1
store i32 %63, ptr %3, align 4
br label %14, !llvm.loop !6
64: ; preds = %14
%65 = load i32, ptr %4, align 4
%66 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %65)
%67 = load i32, ptr %5, align 4
%68 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %67)
%69 = load i32, ptr %6, align 4
%70 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %69)
%71 = load i32, ptr %7, align 4
%72 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %71)
%73 = load i32, ptr %8, align 4
%74 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %73)
%75 = load i32, ptr %9, align 4
%76 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %75)
ret i32 0
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4u02y1jo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"Roll the die how many times?\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"ones:%d \0A\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"twos:%d \0A\00", align 1
@.str.4 = private unnamed_addr constant [12 x i8] c"threes:%d \0A\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"fours:%d \0A\00", align 1
@.str.6 = private unnamed_addr constant [11 x i8] c"fives:%d \0A\00", align 1
@.str.7 = private unnamed_addr constant [11 x i8] c"sixes:%d \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
%10 = call i32 @time(ptr noundef null)
%11 = call i32 @srand(i32 noundef %10)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%13 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%14 = load i32, ptr %3, align 4
%15 = icmp sgt i32 %14, 0
br i1 %15, label %.lr.ph, label %65
.lr.ph: ; preds = %0
br label %16
16: ; preds = %.lr.ph, %60
%17 = call i32 (...) @rand()
%18 = srem i32 %17, 6
%19 = add nsw i32 %18, 1
store i32 %19, ptr %2, align 4
%20 = load i32, ptr %2, align 4
%21 = icmp eq i32 %20, 1
br i1 %21, label %22, label %25
22: ; preds = %16
%23 = load i32, ptr %4, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %4, align 4
br label %60
25: ; preds = %16
%26 = load i32, ptr %2, align 4
%27 = icmp eq i32 %26, 2
br i1 %27, label %28, label %31
28: ; preds = %25
%29 = load i32, ptr %5, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %5, align 4
br label %59
31: ; preds = %25
%32 = load i32, ptr %2, align 4
%33 = icmp eq i32 %32, 3
br i1 %33, label %34, label %37
34: ; preds = %31
%35 = load i32, ptr %6, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %6, align 4
br label %58
37: ; preds = %31
%38 = load i32, ptr %2, align 4
%39 = icmp eq i32 %38, 4
br i1 %39, label %40, label %43
40: ; preds = %37
%41 = load i32, ptr %7, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %7, align 4
br label %57
43: ; preds = %37
%44 = load i32, ptr %2, align 4
%45 = icmp eq i32 %44, 5
br i1 %45, label %46, label %49
46: ; preds = %43
%47 = load i32, ptr %8, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %8, align 4
br label %56
49: ; preds = %43
%50 = load i32, ptr %2, align 4
%51 = icmp eq i32 %50, 6
br i1 %51, label %52, label %55
52: ; preds = %49
%53 = load i32, ptr %9, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %9, align 4
br label %55
55: ; preds = %52, %49
br label %56
56: ; preds = %55, %46
br label %57
57: ; preds = %56, %40
br label %58
58: ; preds = %57, %34
br label %59
59: ; preds = %58, %28
br label %60
60: ; preds = %59, %22
%61 = load i32, ptr %3, align 4
%62 = add nsw i32 %61, -1
store i32 %62, ptr %3, align 4
%63 = load i32, ptr %3, align 4
%64 = icmp sgt i32 %63, 0
br i1 %64, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %60
br label %65
65: ; preds = %._crit_edge, %0
%66 = load i32, ptr %4, align 4
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %66)
%68 = load i32, ptr %5, align 4
%69 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %68)
%70 = load i32, ptr %6, align 4
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %70)
%72 = load i32, ptr %7, align 4
%73 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %72)
%74 = load i32, ptr %8, align 4
%75 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %74)
%76 = load i32, ptr %9, align 4
%77 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %76)
ret i32 0
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpxrwzr9jl.c'
source_filename = "/tmp/tmpxrwzr9jl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"\D0\BF\D1\80\D0\B8\D0\B2\D0\B5\D1\82 \D0\BC\D0\B8\D1\80!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @main() #0 {
%1 = alloca double, align 8
%2 = call i32 @printf(ptr noundef @.str)
%3 = load double, ptr %1, align 8
ret double %3
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxrwzr9jl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"\D0\BF\D1\80\D0\B8\D0\B2\D0\B5\D1\82 \D0\BC\D0\B8\D1\80!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @main() #0 {
%1 = alloca double, align 8
%2 = call i32 @printf(ptr noundef @.str)
%3 = load double, ptr %1, align 8
ret double %3
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpd8ztf_ph.c'
source_filename = "/tmp/tmpd8ztf_ph.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @sock_geterror() #0 {
%1 = load i32, ptr @errno, align 4
%2 = call ptr @strerror(i32 noundef %1)
ret ptr %2
}
declare ptr @strerror(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/tmpd8ztf_ph.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @sock_geterror() #0 {
%1 = load i32, ptr @errno, align 4
%2 = call ptr @strerror(i32 noundef %1)
ret ptr %2
}
declare ptr @strerror(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/tmps4ydl3_2.c'
source_filename = "/tmp/tmps4ydl3_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"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @disconnect_servos() #0 {
%1 = alloca i32, align 4
%2 = alloca i16, align 2
store i16 0, ptr %2, align 2
br label %3
3: ; preds = %10, %0
%4 = load i16, ptr %2, align 2
%5 = sext i16 %4 to i32
%6 = icmp slt i32 %5, 4
br i1 %6, label %7, label %13
7: ; preds = %3
%8 = load i16, ptr %2, align 2
%9 = call i32 @v3_servo_disconnect(i16 noundef signext %8)
br label %10
10: ; preds = %7
%11 = load i16, ptr %2, align 2
%12 = add i16 %11, 1
store i16 %12, ptr %2, align 2
br label %3, !llvm.loop !6
13: ; preds = %3
%14 = load i32, ptr %1, align 4
ret i32 %14
}
declare i32 @v3_servo_disconnect(i16 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/tmps4ydl3_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"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @disconnect_servos() #0 {
%1 = alloca i32, align 4
%2 = alloca i16, align 2
store i16 0, ptr %2, align 2
%3 = load i16, ptr %2, align 2
%4 = sext i16 %3 to i32
%5 = icmp slt i32 %4, 4
br i1 %5, label %.lr.ph, label %15
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %9
%7 = load i16, ptr %2, align 2
%8 = call i32 @v3_servo_disconnect(i16 noundef signext %7)
br label %9
9: ; preds = %6
%10 = load i16, ptr %2, align 2
%11 = add i16 %10, 1
store i16 %11, ptr %2, align 2
%12 = load i16, ptr %2, align 2
%13 = sext i16 %12 to i32
%14 = icmp slt i32 %13, 4
br i1 %14, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %9
br label %15
15: ; preds = %._crit_edge, %0
%16 = load i32, ptr %1, align 4
ret i32 %16
}
declare i32 @v3_servo_disconnect(i16 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/tmphh2ntp5j.c'
source_filename = "/tmp/tmphh2ntp5j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%ld\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp eq i32 %7, 2
br i1 %8, label %9, label %14
9: ; preds = %2
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 1
%12 = load ptr, ptr %11, align 8
%13 = call i32 @atoi(ptr noundef %12)
br label %15
14: ; preds = %2
br label %15
15: ; preds = %14, %9
%16 = phi i32 [ %13, %9 ], [ 1, %14 ]
store i32 %16, ptr %6, align 4
%17 = load i32, ptr %6, align 4
%18 = call i32 @fib(i32 noundef %17)
%19 = call i32 @printf(ptr noundef @.str, i32 noundef %18)
ret i32 0
}
declare i32 @atoi(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @fib(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/tmphh2ntp5j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%ld\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp eq i32 %7, 2
br i1 %8, label %9, label %14
9: ; preds = %2
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 1
%12 = load ptr, ptr %11, align 8
%13 = call i32 @atoi(ptr noundef %12)
br label %15
14: ; preds = %2
br label %15
15: ; preds = %14, %9
%16 = phi i32 [ %13, %9 ], [ 1, %14 ]
store i32 %16, ptr %6, align 4
%17 = load i32, ptr %6, align 4
%18 = call i32 @fib(i32 noundef %17)
%19 = call i32 @printf(ptr noundef @.str, i32 noundef %18)
ret i32 0
}
declare i32 @atoi(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @fib(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/tmpjf6sgxf6.c'
source_filename = "/tmp/tmpjf6sgxf6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @do_something(i32 noundef 2)
%2 = call i32 @do_something(i32 noundef 3)
%3 = call i32 @do_something(i32 noundef 5)
%4 = call i32 @do_something(i32 noundef 70)
ret i32 0
}
declare i32 @do_something(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/tmpjf6sgxf6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @do_something(i32 noundef 2)
%2 = call i32 @do_something(i32 noundef 3)
%3 = call i32 @do_something(i32 noundef 5)
%4 = call i32 @do_something(i32 noundef 70)
ret i32 0
}
declare i32 @do_something(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/tmpear49tl_.c'
source_filename = "/tmp/tmpear49tl_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"_POSIX_CPUTIME unsupported\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
ret i32 4
}
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/tmpear49tl_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"_POSIX_CPUTIME unsupported\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
ret i32 4
}
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/tmpmuj4sv_4.c'
source_filename = "/tmp/tmpmuj4sv_4.c"
target datalayout = "e-m:e-p270: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 { i32, i64 }
@.str = private unnamed_addr constant [46 x i8] c"get times of %d usec. 1 usec = 0.001 second.\0A\00", align 1
@CLOCK_REALTIME = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [30 x i8] c"Done, %d usec is %lld times.\0A\00", align 1
@.str.2 = private unnamed_addr constant [40 x i8] c"its acturally time is %ld nanoseconds.\0A\00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"actural usec: %d, times: %ld\0A\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"----------------------------\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @get_times(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca %struct.timespec, align 8
%6 = alloca %struct.timespec, align 8
%7 = alloca i32, align 4
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i32, align 4
%11 = alloca i64, align 8
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
store i32 1, ptr %7, align 4
%12 = load i32, ptr %4, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %12)
br label %14
14: ; preds = %2, %46
%15 = load i32, ptr @CLOCK_REALTIME, align 4
%16 = call i32 @clock_gettime(i32 noundef %15, ptr noundef %5)
%17 = load i32, ptr %3, align 4
%18 = sext i32 %17 to i64
%19 = load i32, ptr %7, align 4
%20 = sext i32 %19 to i64
%21 = mul nsw i64 %18, %20
%22 = call i32 @dosum(i64 noundef %21)
%23 = load i32, ptr @CLOCK_REALTIME, align 4
%24 = call i32 @clock_gettime(i32 noundef %23, ptr noundef %6)
%25 = getelementptr inbounds %struct.timespec, ptr %6, i32 0, i32 0
%26 = load i32, ptr %25, align 8
%27 = getelementptr inbounds %struct.timespec, ptr %5, i32 0, i32 0
%28 = load i32, ptr %27, align 8
%29 = sub nsw i32 %26, %28
%30 = mul nsw i32 %29, 1000000000
%31 = sext i32 %30 to i64
store i64 %31, ptr %8, align 8
%32 = getelementptr inbounds %struct.timespec, ptr %6, i32 0, i32 1
%33 = load i64, ptr %32, align 8
%34 = getelementptr inbounds %struct.timespec, ptr %5, i32 0, i32 1
%35 = load i64, ptr %34, align 8
%36 = sub nsw i64 %33, %35
%37 = load i64, ptr %8, align 8
%38 = add nsw i64 %37, %36
store i64 %38, ptr %8, align 8
%39 = load i64, ptr %8, align 8
%40 = sdiv i64 %39, 1000000
store i64 %40, ptr %8, align 8
%41 = load i64, ptr %8, align 8
%42 = load i32, ptr %4, align 4
%43 = sext i32 %42 to i64
%44 = icmp sge i64 %41, %43
br i1 %44, label %45, label %46
45: ; preds = %14
br label %49
46: ; preds = %14
%47 = load i32, ptr %7, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %7, align 4
br label %14
49: ; preds = %45
%50 = getelementptr inbounds %struct.timespec, ptr %6, i32 0, i32 0
%51 = load i32, ptr %50, align 8
%52 = getelementptr inbounds %struct.timespec, ptr %5, i32 0, i32 0
%53 = load i32, ptr %52, align 8
%54 = sub nsw i32 %51, %53
%55 = mul nsw i32 %54, 1000000000
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds %struct.timespec, ptr %6, i32 0, i32 1
%58 = load i64, ptr %57, align 8
%59 = getelementptr inbounds %struct.timespec, ptr %5, i32 0, i32 1
%60 = load i64, ptr %59, align 8
%61 = sub nsw i64 %58, %60
%62 = add nsw i64 %56, %61
store i64 %62, ptr %9, align 8
%63 = load i32, ptr %4, align 4
%64 = load i32, ptr %3, align 4
%65 = load i32, ptr %7, align 4
%66 = mul nsw i32 %64, %65
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %63, i32 noundef %66)
%68 = load i64, ptr %9, align 8
%69 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %68)
%70 = load i64, ptr %9, align 8
%71 = sdiv i64 %70, 1000000
%72 = trunc i64 %71 to i32
store i32 %72, ptr %10, align 4
%73 = load i32, ptr %3, align 4
%74 = load i32, ptr %7, align 4
%75 = mul nsw i32 %73, %74
%76 = load i32, ptr %10, align 4
%77 = sdiv i32 %75, %76
%78 = sext i32 %77 to i64
store i64 %78, ptr %11, align 8
%79 = load i32, ptr %10, align 4
%80 = load i64, ptr %11, align 8
%81 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %79, i64 noundef %80)
%82 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%83 = load i64, ptr %11, align 8
ret i64 %83
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @clock_gettime(i32 noundef, ptr noundef) #1
declare i32 @dosum(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/tmpmuj4sv_4.c"
target datalayout = "e-m:e-p270: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 { i32, i64 }
@.str = private unnamed_addr constant [46 x i8] c"get times of %d usec. 1 usec = 0.001 second.\0A\00", align 1
@CLOCK_REALTIME = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [30 x i8] c"Done, %d usec is %lld times.\0A\00", align 1
@.str.2 = private unnamed_addr constant [40 x i8] c"its acturally time is %ld nanoseconds.\0A\00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"actural usec: %d, times: %ld\0A\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"----------------------------\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @get_times(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca %struct.timespec, align 8
%6 = alloca %struct.timespec, align 8
%7 = alloca i32, align 4
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i32, align 4
%11 = alloca i64, align 8
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
store i32 1, ptr %7, align 4
%12 = load i32, ptr %4, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %12)
br label %14
14: ; preds = %46, %2
%15 = load i32, ptr @CLOCK_REALTIME, align 4
%16 = call i32 @clock_gettime(i32 noundef %15, ptr noundef %5)
%17 = load i32, ptr %3, align 4
%18 = sext i32 %17 to i64
%19 = load i32, ptr %7, align 4
%20 = sext i32 %19 to i64
%21 = mul nsw i64 %18, %20
%22 = call i32 @dosum(i64 noundef %21)
%23 = load i32, ptr @CLOCK_REALTIME, align 4
%24 = call i32 @clock_gettime(i32 noundef %23, ptr noundef %6)
%25 = getelementptr inbounds %struct.timespec, ptr %6, i32 0, i32 0
%26 = load i32, ptr %25, align 8
%27 = getelementptr inbounds %struct.timespec, ptr %5, i32 0, i32 0
%28 = load i32, ptr %27, align 8
%29 = sub nsw i32 %26, %28
%30 = mul nsw i32 %29, 1000000000
%31 = sext i32 %30 to i64
store i64 %31, ptr %8, align 8
%32 = getelementptr inbounds %struct.timespec, ptr %6, i32 0, i32 1
%33 = load i64, ptr %32, align 8
%34 = getelementptr inbounds %struct.timespec, ptr %5, i32 0, i32 1
%35 = load i64, ptr %34, align 8
%36 = sub nsw i64 %33, %35
%37 = load i64, ptr %8, align 8
%38 = add nsw i64 %37, %36
store i64 %38, ptr %8, align 8
%39 = load i64, ptr %8, align 8
%40 = sdiv i64 %39, 1000000
store i64 %40, ptr %8, align 8
%41 = load i64, ptr %8, align 8
%42 = load i32, ptr %4, align 4
%43 = sext i32 %42 to i64
%44 = icmp sge i64 %41, %43
br i1 %44, label %45, label %46
45: ; preds = %14
br label %49
46: ; preds = %14
%47 = load i32, ptr %7, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %7, align 4
br label %14
49: ; preds = %45
%50 = getelementptr inbounds %struct.timespec, ptr %6, i32 0, i32 0
%51 = load i32, ptr %50, align 8
%52 = getelementptr inbounds %struct.timespec, ptr %5, i32 0, i32 0
%53 = load i32, ptr %52, align 8
%54 = sub nsw i32 %51, %53
%55 = mul nsw i32 %54, 1000000000
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds %struct.timespec, ptr %6, i32 0, i32 1
%58 = load i64, ptr %57, align 8
%59 = getelementptr inbounds %struct.timespec, ptr %5, i32 0, i32 1
%60 = load i64, ptr %59, align 8
%61 = sub nsw i64 %58, %60
%62 = add nsw i64 %56, %61
store i64 %62, ptr %9, align 8
%63 = load i32, ptr %4, align 4
%64 = load i32, ptr %3, align 4
%65 = load i32, ptr %7, align 4
%66 = mul nsw i32 %64, %65
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %63, i32 noundef %66)
%68 = load i64, ptr %9, align 8
%69 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %68)
%70 = load i64, ptr %9, align 8
%71 = sdiv i64 %70, 1000000
%72 = trunc i64 %71 to i32
store i32 %72, ptr %10, align 4
%73 = load i32, ptr %3, align 4
%74 = load i32, ptr %7, align 4
%75 = mul nsw i32 %73, %74
%76 = load i32, ptr %10, align 4
%77 = sdiv i32 %75, %76
%78 = sext i32 %77 to i64
store i64 %78, ptr %11, align 8
%79 = load i32, ptr %10, align 4
%80 = load i64, ptr %11, align 8
%81 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %79, i64 noundef %80)
%82 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%83 = load i64, ptr %11, align 8
ret i64 %83
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @clock_gettime(i32 noundef, ptr noundef) #1
declare i32 @dosum(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/tmpvxai_ydq.c'
source_filename = "/tmp/tmpvxai_ydq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"localhost\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"daytime\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [33 x i8] c"usage: TCPdaytime [host [port]]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr @.str, ptr %6, align 8
store ptr @.str.1, ptr %7, align 8
%8 = load i32, ptr %4, align 4
switch i32 %8, label %18 [
i32 1, label %9
i32 3, label %10
i32 2, label %14
]
9: ; preds = %2
store ptr @.str, ptr %6, align 8
br label %22
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 2
%13 = load ptr, ptr %12, align 8
store ptr %13, ptr %7, align 8
br label %14
14: ; preds = %2, %10
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
store ptr %17, ptr %6, align 8
br label %22
18: ; preds = %2
%19 = load i32, ptr @stderr, align 4
%20 = call i32 @fprintf(i32 noundef %19, ptr noundef @.str.2)
%21 = call i32 @exit(i32 noundef 1) #3
unreachable
22: ; preds = %14, %9
%23 = load ptr, ptr %6, align 8
%24 = load ptr, ptr %7, align 8
%25 = call i32 @TCPdaytime(ptr noundef %23, ptr noundef %24)
%26 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @TCPdaytime(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvxai_ydq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"localhost\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"daytime\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [33 x i8] c"usage: TCPdaytime [host [port]]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr @.str, ptr %6, align 8
store ptr @.str.1, ptr %7, align 8
%8 = load i32, ptr %4, align 4
switch i32 %8, label %18 [
i32 1, label %9
i32 3, label %10
i32 2, label %14
]
9: ; preds = %2
store ptr @.str, ptr %6, align 8
br label %22
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 2
%13 = load ptr, ptr %12, align 8
store ptr %13, ptr %7, align 8
br label %14
14: ; preds = %10, %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
store ptr %17, ptr %6, align 8
br label %22
18: ; preds = %2
%19 = load i32, ptr @stderr, align 4
%20 = call i32 @fprintf(i32 noundef %19, ptr noundef @.str.2)
%21 = call i32 @exit(i32 noundef 1) #3
unreachable
22: ; preds = %14, %9
%23 = load ptr, ptr %6, align 8
%24 = load ptr, ptr %7, align 8
%25 = call i32 @TCPdaytime(ptr noundef %23, ptr noundef %24)
%26 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @TCPdaytime(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvaa9n2gm.c'
source_filename = "/tmp/tmpvaa9n2gm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, i32 }
@.str = private unnamed_addr constant [7 x i8] c"accept\00", align 1
@.str.1 = private unnamed_addr constant [37 x i8] c"accept!(IPAddress = %s, Port = %hu)\0A\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"----- recv begin -----\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.4 = private unnamed_addr constant [22 x i8] c"----- recv end -----\0A\00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c"HTTP/1.1 302 Found\0D\0A\00", align 1
@.str.6 = private unnamed_addr constant [44 x i8] c"Location: http://bgstation0.com/classic1/\0D\0A\00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @accept_loop(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca %struct.sockaddr_in, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca [4096 x i8], align 16
%10 = alloca [4096 x i8], align 16
store i32 %0, ptr %2, align 4
store i32 0, ptr %8, align 4
call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 4096, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %10, i8 0, i64 4096, i1 false)
br label %11
11: ; preds = %1, %18
store i32 8, ptr %4, align 4
%12 = load i32, ptr %2, align 4
%13 = call i32 @accept(i32 noundef %12, ptr noundef %3, ptr noundef %4)
store i32 %13, ptr %5, align 4
%14 = load i32, ptr %5, align 4
%15 = icmp slt i32 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %11
%17 = call i32 @perror(ptr noundef @.str)
store i32 -1, ptr %8, align 4
br label %50
18: ; preds = %11
%19 = getelementptr inbounds %struct.sockaddr_in, ptr %3, i32 0, i32 1
%20 = load i32, ptr %19, align 4
%21 = call ptr @inet_ntoa(i32 noundef %20)
store ptr %21, ptr %6, align 8
%22 = getelementptr inbounds %struct.sockaddr_in, ptr %3, i32 0, i32 0
%23 = load i32, ptr %22, align 4
%24 = call i32 @ntohs(i32 noundef %23)
store i32 %24, ptr %7, align 4
%25 = load ptr, ptr %6, align 8
%26 = load i32, ptr %7, align 4
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %25, i32 noundef %26)
%28 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
%29 = call i32 @memset(ptr noundef %28, i32 noundef 0, i32 noundef 4096)
%30 = load i32, ptr %5, align 4
%31 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
%32 = call i32 @recv(i32 noundef %30, ptr noundef %31, i32 noundef 4096, i32 noundef 0)
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%34 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %34)
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%37 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 0
%38 = call i32 @strcpy(ptr noundef %37, ptr noundef @.str.5)
%39 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 0
%40 = call i32 @strcat(ptr noundef %39, ptr noundef @.str.6)
%41 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 0
%42 = call i32 @strcat(ptr noundef %41, ptr noundef @.str.7)
%43 = load i32, ptr %5, align 4
%44 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 0
%45 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 0
%46 = call i32 @strlen(ptr noundef %45)
%47 = call i32 @send(i32 noundef %43, ptr noundef %44, i32 noundef %46, i32 noundef 0)
%48 = load i32, ptr %5, align 4
%49 = call i32 @close(i32 noundef %48)
br label %11
50: ; preds = %16
%51 = load i32, ptr %8, align 4
ret i32 %51
}
; 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 @accept(i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @perror(ptr noundef) #2
declare ptr @inet_ntoa(i32 noundef) #2
declare i32 @ntohs(i32 noundef) #2
declare i32 @printf(ptr noundef, ...) #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @strcpy(ptr noundef, ptr noundef) #2
declare i32 @strcat(ptr noundef, ptr noundef) #2
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @close(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvaa9n2gm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, i32 }
@.str = private unnamed_addr constant [7 x i8] c"accept\00", align 1
@.str.1 = private unnamed_addr constant [37 x i8] c"accept!(IPAddress = %s, Port = %hu)\0A\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"----- recv begin -----\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.4 = private unnamed_addr constant [22 x i8] c"----- recv end -----\0A\00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c"HTTP/1.1 302 Found\0D\0A\00", align 1
@.str.6 = private unnamed_addr constant [44 x i8] c"Location: http://bgstation0.com/classic1/\0D\0A\00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @accept_loop(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca %struct.sockaddr_in, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca [4096 x i8], align 16
%10 = alloca [4096 x i8], align 16
store i32 %0, ptr %2, align 4
store i32 0, ptr %8, align 4
call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 4096, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %10, i8 0, i64 4096, i1 false)
store i32 8, ptr %4, align 4
%11 = load i32, ptr %2, align 4
%12 = call i32 @accept(i32 noundef %11, ptr noundef %3, ptr noundef %4)
store i32 %12, ptr %5, align 4
%13 = load i32, ptr %5, align 4
%14 = icmp slt i32 %13, 0
br i1 %14, label %15, label %.lr.ph
.lr.ph: ; preds = %1
br label %17
._crit_edge: ; preds = %17
br label %15
15: ; preds = %._crit_edge, %1
%16 = call i32 @perror(ptr noundef @.str)
store i32 -1, ptr %8, align 4
br label %53
17: ; preds = %.lr.ph, %17
%18 = getelementptr inbounds %struct.sockaddr_in, ptr %3, i32 0, i32 1
%19 = load i32, ptr %18, align 4
%20 = call ptr @inet_ntoa(i32 noundef %19)
store ptr %20, ptr %6, align 8
%21 = getelementptr inbounds %struct.sockaddr_in, ptr %3, i32 0, i32 0
%22 = load i32, ptr %21, align 4
%23 = call i32 @ntohs(i32 noundef %22)
store i32 %23, ptr %7, align 4
%24 = load ptr, ptr %6, align 8
%25 = load i32, ptr %7, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %24, i32 noundef %25)
%27 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
%28 = call i32 @memset(ptr noundef %27, i32 noundef 0, i32 noundef 4096)
%29 = load i32, ptr %5, align 4
%30 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
%31 = call i32 @recv(i32 noundef %29, ptr noundef %30, i32 noundef 4096, i32 noundef 0)
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%33 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %33)
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%36 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 0
%37 = call i32 @strcpy(ptr noundef %36, ptr noundef @.str.5)
%38 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 0
%39 = call i32 @strcat(ptr noundef %38, ptr noundef @.str.6)
%40 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 0
%41 = call i32 @strcat(ptr noundef %40, ptr noundef @.str.7)
%42 = load i32, ptr %5, align 4
%43 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 0
%44 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 0
%45 = call i32 @strlen(ptr noundef %44)
%46 = call i32 @send(i32 noundef %42, ptr noundef %43, i32 noundef %45, i32 noundef 0)
%47 = load i32, ptr %5, align 4
%48 = call i32 @close(i32 noundef %47)
store i32 8, ptr %4, align 4
%49 = load i32, ptr %2, align 4
%50 = call i32 @accept(i32 noundef %49, ptr noundef %3, ptr noundef %4)
store i32 %50, ptr %5, align 4
%51 = load i32, ptr %5, align 4
%52 = icmp slt i32 %51, 0
br i1 %52, label %._crit_edge, label %17
53: ; preds = %15
%54 = load i32, ptr %8, align 4
ret i32 %54
}
; 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 @accept(i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @perror(ptr noundef) #2
declare ptr @inet_ntoa(i32 noundef) #2
declare i32 @ntohs(i32 noundef) #2
declare i32 @printf(ptr noundef, ...) #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @strcpy(ptr noundef, ptr noundef) #2
declare i32 @strcat(ptr noundef, ptr noundef) #2
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @close(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphq7sbw8e.c'
source_filename = "/tmp/tmphq7sbw8e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cbglobalgc(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %7, label %10
7: ; preds = %2
%8 = load ptr, ptr %4, align 8
%9 = icmp ne ptr %8, null
br label %10
10: ; preds = %7, %2
%11 = phi i1 [ false, %2 ], [ %9, %7 ]
%12 = zext i1 %11 to i32
%13 = call i32 @assert(i32 noundef %12)
%14 = load ptr, ptr %3, align 8
%15 = load ptr, ptr %4, align 8
%16 = call i32 @cbggckeeper(ptr noundef %14, ptr noundef %15)
ret void
}
declare i32 @assert(i32 noundef) #1
declare i32 @cbggckeeper(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/tmphq7sbw8e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cbglobalgc(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %7, label %10
7: ; preds = %2
%8 = load ptr, ptr %4, align 8
%9 = icmp ne ptr %8, null
br label %10
10: ; preds = %7, %2
%11 = phi i1 [ false, %2 ], [ %9, %7 ]
%12 = zext i1 %11 to i32
%13 = call i32 @assert(i32 noundef %12)
%14 = load ptr, ptr %3, align 8
%15 = load ptr, ptr %4, align 8
%16 = call i32 @cbggckeeper(ptr noundef %14, ptr noundef %15)
ret void
}
declare i32 @assert(i32 noundef) #1
declare i32 @cbggckeeper(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/tmp_wwydraw.c'
source_filename = "/tmp/tmp_wwydraw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @xstrdup(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 @strdup(ptr noundef %3)
%5 = call ptr @check_alloc(i32 noundef %4)
ret ptr %5
}
declare ptr @check_alloc(i32 noundef) #1
declare i32 @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/tmp_wwydraw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @xstrdup(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 @strdup(ptr noundef %3)
%5 = call ptr @check_alloc(i32 noundef %4)
ret ptr %5
}
declare ptr @check_alloc(i32 noundef) #1
declare i32 @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/tmp8eprpdcn.c'
source_filename = "/tmp/tmp8eprpdcn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @malloc_formal_leak_bad(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i64 @malloc(i32 noundef 8)
%4 = inttoptr i64 %3 to ptr
store ptr %4, ptr %2, align 8
ret void
}
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8eprpdcn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @malloc_formal_leak_bad(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i64 @malloc(i32 noundef 8)
%4 = inttoptr i64 %3 to ptr
store ptr %4, ptr %2, align 8
ret void
}
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyk5je17x.c'
source_filename = "/tmp/tmpyk5je17x.c"
target datalayout = "e-m:e-p270: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/tmpyk5je17x.c"
target datalayout = "e-m:e-p270: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/tmpcqdeiddn.c'
source_filename = "/tmp/tmpcqdeiddn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"Hello, World!\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %3
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcqdeiddn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"Hello, World!\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %3
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpccmcfey8.c'
source_filename = "/tmp/tmpccmcfey8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"str\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"Not enough characters\0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"First char is lowercase\0A\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"First char is not lowercase\0A\00", align 1
@.str.4 = private unnamed_addr constant [23 x i8] c"First char is a digit\0A\00", align 1
@.str.5 = private unnamed_addr constant [27 x i8] c"First char is not a digit\0A\00", align 1
@.str.6 = private unnamed_addr constant [37 x i8] c"First and second chars are the same\0A\00", align 1
@.str.7 = private unnamed_addr constant [41 x i8] c"First and second chars are not the same\0A\00", align 1
@.str.8 = private unnamed_addr constant [18 x i8] c"'%c%c' %02x %02x\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [3 x i8], align 1
store i32 0, ptr %1, align 4
%3 = call i32 (...) @s2e_enable_forking()
%4 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 0
%5 = call i32 @s2e_make_symbolic(ptr noundef %4, i32 noundef 2, ptr noundef @.str)
%6 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 0
%7 = load i8, ptr %6, align 1
%8 = sext i8 %7 to i32
%9 = icmp eq i32 %8, 0
br i1 %9, label %15, label %10
10: ; preds = %0
%11 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 1
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %10, %0
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %58
17: ; preds = %10
%18 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 0
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp sge i32 %20, 97
br i1 %21, label %22, label %29
22: ; preds = %17
%23 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 0
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = icmp sle i32 %25, 122
br i1 %26, label %27, label %29
27: ; preds = %22
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %31
29: ; preds = %22, %17
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %31
31: ; preds = %29, %27
%32 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 0
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp sge i32 %34, 48
br i1 %35, label %36, label %43
36: ; preds = %31
%37 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 0
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = icmp sle i32 %39, 57
br i1 %40, label %41, label %43
41: ; preds = %36
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %45
43: ; preds = %36, %31
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %45
45: ; preds = %43, %41
%46 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 0
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
%49 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 1
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = icmp eq i32 %48, %51
br i1 %52, label %53, label %55
53: ; preds = %45
%54 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %57
55: ; preds = %45
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %57
57: ; preds = %55, %53
br label %58
58: ; preds = %57, %15
%59 = call i32 (...) @s2e_disable_forking()
%60 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 0
%61 = call i32 @s2e_get_example(ptr noundef %60, i32 noundef 2)
%62 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 0
%63 = load i8, ptr %62, align 1
%64 = sext i8 %63 to i32
%65 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 1
%66 = load i8, ptr %65, align 1
%67 = sext i8 %66 to i32
%68 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 0
%69 = load i8, ptr %68, align 1
%70 = zext i8 %69 to i32
%71 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 1
%72 = load i8, ptr %71, align 1
%73 = zext i8 %72 to i32
%74 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %64, i32 noundef %67, i32 noundef %70, i32 noundef %73)
ret i32 0
}
declare i32 @s2e_enable_forking(...) #1
declare i32 @s2e_make_symbolic(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @s2e_disable_forking(...) #1
declare i32 @s2e_get_example(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/tmpccmcfey8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"str\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"Not enough characters\0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"First char is lowercase\0A\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"First char is not lowercase\0A\00", align 1
@.str.4 = private unnamed_addr constant [23 x i8] c"First char is a digit\0A\00", align 1
@.str.5 = private unnamed_addr constant [27 x i8] c"First char is not a digit\0A\00", align 1
@.str.6 = private unnamed_addr constant [37 x i8] c"First and second chars are the same\0A\00", align 1
@.str.7 = private unnamed_addr constant [41 x i8] c"First and second chars are not the same\0A\00", align 1
@.str.8 = private unnamed_addr constant [18 x i8] c"'%c%c' %02x %02x\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [3 x i8], align 1
store i32 0, ptr %1, align 4
%3 = call i32 (...) @s2e_enable_forking()
%4 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 0
%5 = call i32 @s2e_make_symbolic(ptr noundef %4, i32 noundef 2, ptr noundef @.str)
%6 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 0
%7 = load i8, ptr %6, align 1
%8 = sext i8 %7 to i32
%9 = icmp eq i32 %8, 0
br i1 %9, label %15, label %10
10: ; preds = %0
%11 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 1
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %10, %0
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %58
17: ; preds = %10
%18 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 0
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp sge i32 %20, 97
br i1 %21, label %22, label %29
22: ; preds = %17
%23 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 0
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = icmp sle i32 %25, 122
br i1 %26, label %27, label %29
27: ; preds = %22
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %31
29: ; preds = %22, %17
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %31
31: ; preds = %29, %27
%32 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 0
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp sge i32 %34, 48
br i1 %35, label %36, label %43
36: ; preds = %31
%37 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 0
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = icmp sle i32 %39, 57
br i1 %40, label %41, label %43
41: ; preds = %36
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %45
43: ; preds = %36, %31
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %45
45: ; preds = %43, %41
%46 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 0
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
%49 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 1
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = icmp eq i32 %48, %51
br i1 %52, label %53, label %55
53: ; preds = %45
%54 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %57
55: ; preds = %45
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %57
57: ; preds = %55, %53
br label %58
58: ; preds = %57, %15
%59 = call i32 (...) @s2e_disable_forking()
%60 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 0
%61 = call i32 @s2e_get_example(ptr noundef %60, i32 noundef 2)
%62 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 0
%63 = load i8, ptr %62, align 1
%64 = sext i8 %63 to i32
%65 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 1
%66 = load i8, ptr %65, align 1
%67 = sext i8 %66 to i32
%68 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 0
%69 = load i8, ptr %68, align 1
%70 = zext i8 %69 to i32
%71 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 1
%72 = load i8, ptr %71, align 1
%73 = zext i8 %72 to i32
%74 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %64, i32 noundef %67, i32 noundef %70, i32 noundef %73)
ret i32 0
}
declare i32 @s2e_enable_forking(...) #1
declare i32 @s2e_make_symbolic(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @s2e_disable_forking(...) #1
declare i32 @s2e_get_example(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/tmp315jwlyt.c'
source_filename = "/tmp/tmp315jwlyt.c"
target datalayout = "e-m:e-p270: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/tmp315jwlyt.c"
target datalayout = "e-m:e-p270: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/tmpzjnrmebt.c'
source_filename = "/tmp/tmpzjnrmebt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i32 }
%struct.sockaddr_in = type { i32, i32, i32 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [14 x i8] c"\E7\BC\BA\E5\B0\91\E5\8F\82\E6\95\B0\0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"Usage: %s ip port\0A\00", align 1
@PF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [7 x i8] c"socket\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"socket ok, sock_fd:%d\0A\00", align 1
@AF_INET = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [8 x i8] c"connect\00", align 1
@.str.5 = private unnamed_addr constant [29 x i8] c"connect is ok, conn_fd = %d\0A\00", align 1
@STDIN_FILENO = dso_local global i32 0, align 4
@__const.main.tv = private unnamed_addr constant %struct.timeval { i32 1, i32 0 }, align 4
@.str.6 = private unnamed_addr constant [7 x i8] c"select\00", align 1
@stdin = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [5 x i8] c"exit\00", align 1
@.str.8 = private unnamed_addr constant [23 x i8] c"connect close by peer\0A\00", align 1
@.str.9 = private unnamed_addr constant [15 x i8] c"server:%s(%d)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca %struct.sockaddr_in, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca [1024 x i8], align 16
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca %struct.timeval, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%19 = load i32, ptr %4, align 4
%20 = icmp slt i32 %19, 3
br i1 %20, label %21, label %29
21: ; preds = %2
%22 = load i32, ptr @stderr, align 4
%23 = call i32 @fprintf(i32 noundef %22, ptr noundef @.str)
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 0
%26 = load ptr, ptr %25, align 8
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %26)
%28 = call i32 @exit(i32 noundef -1) #5
unreachable
29: ; preds = %2
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds ptr, ptr %30, i64 1
%32 = load ptr, ptr %31, align 8
store ptr %32, ptr %6, align 8
%33 = load ptr, ptr %5, align 8
%34 = getelementptr inbounds ptr, ptr %33, i64 2
%35 = load ptr, ptr %34, align 8
store ptr %35, ptr %7, align 8
%36 = load ptr, ptr %5, align 8
%37 = getelementptr inbounds ptr, ptr %36, i64 3
%38 = load ptr, ptr %37, align 8
store ptr %38, ptr %8, align 8
%39 = load i32, ptr @PF_INET, align 4
%40 = load i32, ptr @SOCK_STREAM, align 4
%41 = call i32 @socket(i32 noundef %39, i32 noundef %40, i32 noundef 0)
store i32 %41, ptr %10, align 4
%42 = load i32, ptr %10, align 4
%43 = icmp eq i32 %42, -1
br i1 %43, label %44, label %49
44: ; preds = %29
br label %45
45: ; preds = %44
%46 = call i32 @perror(ptr noundef @.str.2)
%47 = call i32 @exit(i32 noundef -1) #5
unreachable
48: ; No predecessors!
br label %49
49: ; preds = %48, %29
%50 = load i32, ptr %10, align 4
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %50)
store i32 12, ptr %12, align 4
%52 = call i32 @bzero(ptr noundef %11, i32 noundef 12)
%53 = load i32, ptr @AF_INET, align 4
%54 = getelementptr inbounds %struct.sockaddr_in, ptr %11, i32 0, i32 2
store i32 %53, ptr %54, align 4
%55 = load ptr, ptr %6, align 8
%56 = getelementptr inbounds %struct.sockaddr_in, ptr %11, i32 0, i32 1
%57 = call i32 @inet_aton(ptr noundef %55, ptr noundef %56)
%58 = load ptr, ptr %7, align 8
%59 = call i32 @atoi(ptr noundef %58)
%60 = call i32 @htons(i32 noundef %59)
%61 = getelementptr inbounds %struct.sockaddr_in, ptr %11, i32 0, i32 0
store i32 %60, ptr %61, align 4
%62 = load i32, ptr %10, align 4
%63 = load i32, ptr %12, align 4
%64 = call i32 @connect(i32 noundef %62, ptr noundef %11, i32 noundef %63)
store i32 %64, ptr %13, align 4
%65 = load i32, ptr %13, align 4
%66 = icmp eq i32 %65, -1
br i1 %66, label %67, label %72
67: ; preds = %49
br label %68
68: ; preds = %67
%69 = call i32 @perror(ptr noundef @.str.4)
%70 = call i32 @exit(i32 noundef -1) #5
unreachable
71: ; No predecessors!
br label %72
72: ; preds = %71, %49
%73 = load i32, ptr %13, align 4
%74 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %73)
call void @llvm.memset.p0.i64(ptr align 16 %14, i8 0, i64 1024, i1 false)
br label %75
75: ; preds = %72, %92, %141
%76 = call i32 @FD_ZERO(ptr noundef %16)
%77 = load i32, ptr @STDIN_FILENO, align 4
%78 = call i32 @FD_SET(i32 noundef %77, ptr noundef %16)
%79 = load i32, ptr %10, align 4
%80 = call i32 @FD_SET(i32 noundef %79, ptr noundef %16)
%81 = load i32, ptr %10, align 4
store i32 %81, ptr %17, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 @__const.main.tv, i64 8, i1 false)
%82 = load i32, ptr %17, align 4
%83 = add nsw i32 %82, 1
%84 = call i32 @select(i32 noundef %83, ptr noundef %16, ptr noundef null, ptr noundef null, ptr noundef %18)
store i32 %84, ptr %15, align 4
%85 = load i32, ptr %15, align 4
%86 = icmp slt i32 %85, 0
br i1 %86, label %87, label %89
87: ; preds = %75
%88 = call i32 @perror(ptr noundef @.str.6)
br label %142
89: ; preds = %75
%90 = load i32, ptr %15, align 4
%91 = icmp eq i32 %90, 0
br i1 %91, label %92, label %93
92: ; preds = %89
br label %75
93: ; preds = %89
br label %94
94: ; preds = %93
%95 = load i32, ptr @STDIN_FILENO, align 4
%96 = call i64 @FD_ISSET(i32 noundef %95, ptr noundef %16)
%97 = icmp ne i64 %96, 0
br i1 %97, label %98, label %123
98: ; preds = %94
%99 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
%100 = load i32, ptr @stdin, align 4
%101 = call ptr @fgets(ptr noundef %99, i32 noundef 1023, i32 noundef %100)
%102 = icmp ne ptr %101, null
br i1 %102, label %103, label %122
103: ; preds = %98
%104 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
%105 = call i32 @strlen(ptr noundef %104)
store i32 %105, ptr %15, align 4
%106 = load i32, ptr %15, align 4
%107 = sub nsw i32 %106, 1
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 %108
store i8 0, ptr %109, align 1
%110 = load i32, ptr %10, align 4
%111 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
%112 = load i32, ptr %15, align 4
%113 = sub nsw i32 %112, 1
%114 = call i32 @write(i32 noundef %110, ptr noundef %111, i32 noundef %113)
%115 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
%116 = call i64 @strcmp(ptr noundef %115, ptr noundef @.str.7)
%117 = icmp eq i64 %116, 0
br i1 %117, label %118, label %121
118: ; preds = %103
%119 = load i32, ptr %10, align 4
%120 = call i32 @close(i32 noundef %119)
br label %142
121: ; preds = %103
br label %122
122: ; preds = %121, %98
br label %123
123: ; preds = %122, %94
%124 = load i32, ptr %10, align 4
%125 = call i64 @FD_ISSET(i32 noundef %124, ptr noundef %16)
%126 = icmp ne i64 %125, 0
br i1 %126, label %127, label %141
127: ; preds = %123
%128 = load i32, ptr %10, align 4
%129 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
%130 = call i32 @read(i32 noundef %128, ptr noundef %129, i32 noundef 1023)
store i32 %130, ptr %15, align 4
%131 = load i32, ptr %15, align 4
%132 = icmp eq i32 %131, 0
br i1 %132, label %133, label %137
133: ; preds = %127
%134 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%135 = load i32, ptr %10, align 4
%136 = call i32 @close(i32 noundef %135)
br label %142
137: ; preds = %127
%138 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
%139 = load i32, ptr %15, align 4
%140 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %138, i32 noundef %139)
br label %141
141: ; preds = %137, %123
br label %75
142: ; preds = %133, %118, %87
%143 = load i32, ptr %10, align 4
%144 = call i32 @close(i32 noundef %143)
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @inet_aton(ptr noundef, ptr noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3
declare i32 @FD_ZERO(ptr noundef) #1
declare i32 @FD_SET(i32 noundef, ptr noundef) #1
; 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) #4
declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @FD_ISSET(i32 noundef, ptr noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzjnrmebt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i32 }
%struct.sockaddr_in = type { i32, i32, i32 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [14 x i8] c"\E7\BC\BA\E5\B0\91\E5\8F\82\E6\95\B0\0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"Usage: %s ip port\0A\00", align 1
@PF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [7 x i8] c"socket\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"socket ok, sock_fd:%d\0A\00", align 1
@AF_INET = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [8 x i8] c"connect\00", align 1
@.str.5 = private unnamed_addr constant [29 x i8] c"connect is ok, conn_fd = %d\0A\00", align 1
@STDIN_FILENO = dso_local global i32 0, align 4
@__const.main.tv = private unnamed_addr constant %struct.timeval { i32 1, i32 0 }, align 4
@.str.6 = private unnamed_addr constant [7 x i8] c"select\00", align 1
@stdin = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [5 x i8] c"exit\00", align 1
@.str.8 = private unnamed_addr constant [23 x i8] c"connect close by peer\0A\00", align 1
@.str.9 = private unnamed_addr constant [15 x i8] c"server:%s(%d)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca %struct.sockaddr_in, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca [1024 x i8], align 16
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca %struct.timeval, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%19 = load i32, ptr %4, align 4
%20 = icmp slt i32 %19, 3
br i1 %20, label %21, label %29
21: ; preds = %2
%22 = load i32, ptr @stderr, align 4
%23 = call i32 @fprintf(i32 noundef %22, ptr noundef @.str)
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 0
%26 = load ptr, ptr %25, align 8
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %26)
%28 = call i32 @exit(i32 noundef -1) #5
unreachable
29: ; preds = %2
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds ptr, ptr %30, i64 1
%32 = load ptr, ptr %31, align 8
store ptr %32, ptr %6, align 8
%33 = load ptr, ptr %5, align 8
%34 = getelementptr inbounds ptr, ptr %33, i64 2
%35 = load ptr, ptr %34, align 8
store ptr %35, ptr %7, align 8
%36 = load ptr, ptr %5, align 8
%37 = getelementptr inbounds ptr, ptr %36, i64 3
%38 = load ptr, ptr %37, align 8
store ptr %38, ptr %8, align 8
%39 = load i32, ptr @PF_INET, align 4
%40 = load i32, ptr @SOCK_STREAM, align 4
%41 = call i32 @socket(i32 noundef %39, i32 noundef %40, i32 noundef 0)
store i32 %41, ptr %10, align 4
%42 = load i32, ptr %10, align 4
%43 = icmp eq i32 %42, -1
br i1 %43, label %44, label %49
44: ; preds = %29
br label %45
45: ; preds = %44
%46 = call i32 @perror(ptr noundef @.str.2)
%47 = call i32 @exit(i32 noundef -1) #5
unreachable
48: ; No predecessors!
br label %49
49: ; preds = %48, %29
%50 = load i32, ptr %10, align 4
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %50)
store i32 12, ptr %12, align 4
%52 = call i32 @bzero(ptr noundef %11, i32 noundef 12)
%53 = load i32, ptr @AF_INET, align 4
%54 = getelementptr inbounds %struct.sockaddr_in, ptr %11, i32 0, i32 2
store i32 %53, ptr %54, align 4
%55 = load ptr, ptr %6, align 8
%56 = getelementptr inbounds %struct.sockaddr_in, ptr %11, i32 0, i32 1
%57 = call i32 @inet_aton(ptr noundef %55, ptr noundef %56)
%58 = load ptr, ptr %7, align 8
%59 = call i32 @atoi(ptr noundef %58)
%60 = call i32 @htons(i32 noundef %59)
%61 = getelementptr inbounds %struct.sockaddr_in, ptr %11, i32 0, i32 0
store i32 %60, ptr %61, align 4
%62 = load i32, ptr %10, align 4
%63 = load i32, ptr %12, align 4
%64 = call i32 @connect(i32 noundef %62, ptr noundef %11, i32 noundef %63)
store i32 %64, ptr %13, align 4
%65 = load i32, ptr %13, align 4
%66 = icmp eq i32 %65, -1
br i1 %66, label %67, label %72
67: ; preds = %49
br label %68
68: ; preds = %67
%69 = call i32 @perror(ptr noundef @.str.4)
%70 = call i32 @exit(i32 noundef -1) #5
unreachable
71: ; No predecessors!
br label %72
72: ; preds = %71, %49
%73 = load i32, ptr %13, align 4
%74 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %73)
call void @llvm.memset.p0.i64(ptr align 16 %14, i8 0, i64 1024, i1 false)
br label %75
75: ; preds = %.backedge, %72
%76 = call i32 @FD_ZERO(ptr noundef %16)
%77 = load i32, ptr @STDIN_FILENO, align 4
%78 = call i32 @FD_SET(i32 noundef %77, ptr noundef %16)
%79 = load i32, ptr %10, align 4
%80 = call i32 @FD_SET(i32 noundef %79, ptr noundef %16)
%81 = load i32, ptr %10, align 4
store i32 %81, ptr %17, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 @__const.main.tv, i64 8, i1 false)
%82 = load i32, ptr %17, align 4
%83 = add nsw i32 %82, 1
%84 = call i32 @select(i32 noundef %83, ptr noundef %16, ptr noundef null, ptr noundef null, ptr noundef %18)
store i32 %84, ptr %15, align 4
%85 = load i32, ptr %15, align 4
%86 = icmp slt i32 %85, 0
br i1 %86, label %87, label %89
87: ; preds = %75
%88 = call i32 @perror(ptr noundef @.str.6)
br label %142
89: ; preds = %75
%90 = load i32, ptr %15, align 4
%91 = icmp eq i32 %90, 0
br i1 %91, label %92, label %93
92: ; preds = %89
br label %.backedge
.backedge: ; preds = %92, %141
br label %75
93: ; preds = %89
br label %94
94: ; preds = %93
%95 = load i32, ptr @STDIN_FILENO, align 4
%96 = call i64 @FD_ISSET(i32 noundef %95, ptr noundef %16)
%97 = icmp ne i64 %96, 0
br i1 %97, label %98, label %123
98: ; preds = %94
%99 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
%100 = load i32, ptr @stdin, align 4
%101 = call ptr @fgets(ptr noundef %99, i32 noundef 1023, i32 noundef %100)
%102 = icmp ne ptr %101, null
br i1 %102, label %103, label %122
103: ; preds = %98
%104 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
%105 = call i32 @strlen(ptr noundef %104)
store i32 %105, ptr %15, align 4
%106 = load i32, ptr %15, align 4
%107 = sub nsw i32 %106, 1
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 %108
store i8 0, ptr %109, align 1
%110 = load i32, ptr %10, align 4
%111 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
%112 = load i32, ptr %15, align 4
%113 = sub nsw i32 %112, 1
%114 = call i32 @write(i32 noundef %110, ptr noundef %111, i32 noundef %113)
%115 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
%116 = call i64 @strcmp(ptr noundef %115, ptr noundef @.str.7)
%117 = icmp eq i64 %116, 0
br i1 %117, label %118, label %121
118: ; preds = %103
%119 = load i32, ptr %10, align 4
%120 = call i32 @close(i32 noundef %119)
br label %142
121: ; preds = %103
br label %122
122: ; preds = %121, %98
br label %123
123: ; preds = %122, %94
%124 = load i32, ptr %10, align 4
%125 = call i64 @FD_ISSET(i32 noundef %124, ptr noundef %16)
%126 = icmp ne i64 %125, 0
br i1 %126, label %127, label %141
127: ; preds = %123
%128 = load i32, ptr %10, align 4
%129 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
%130 = call i32 @read(i32 noundef %128, ptr noundef %129, i32 noundef 1023)
store i32 %130, ptr %15, align 4
%131 = load i32, ptr %15, align 4
%132 = icmp eq i32 %131, 0
br i1 %132, label %133, label %137
133: ; preds = %127
%134 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%135 = load i32, ptr %10, align 4
%136 = call i32 @close(i32 noundef %135)
br label %142
137: ; preds = %127
%138 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
%139 = load i32, ptr %15, align 4
%140 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %138, i32 noundef %139)
br label %141
141: ; preds = %137, %123
br label %.backedge
142: ; preds = %133, %118, %87
%143 = load i32, ptr %10, align 4
%144 = call i32 @close(i32 noundef %143)
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @inet_aton(ptr noundef, ptr noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3
declare i32 @FD_ZERO(ptr noundef) #1
declare i32 @FD_SET(i32 noundef, ptr noundef) #1
; 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) #4
declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @FD_ISSET(i32 noundef, ptr noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmps0vwxry5.c'
source_filename = "/tmp/tmps0vwxry5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@IPPROTO_IP = dso_local global i32 0, align 4
@IP_MULTICAST_TTL = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @wfaSetSockMcastSendOpt(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i8, align 1
store i32 %0, ptr %2, align 4
store i8 1, ptr %3, align 1
%4 = load i32, ptr %2, align 4
%5 = load i32, ptr @IPPROTO_IP, align 4
%6 = load i32, ptr @IP_MULTICAST_TTL, align 4
%7 = call i32 @setsockopt(i32 noundef %4, i32 noundef %5, i32 noundef %6, ptr noundef %3, i32 noundef 1)
ret i32 %7
}
declare i32 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmps0vwxry5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@IPPROTO_IP = dso_local global i32 0, align 4
@IP_MULTICAST_TTL = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @wfaSetSockMcastSendOpt(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i8, align 1
store i32 %0, ptr %2, align 4
store i8 1, ptr %3, align 1
%4 = load i32, ptr %2, align 4
%5 = load i32, ptr @IPPROTO_IP, align 4
%6 = load i32, ptr @IP_MULTICAST_TTL, align 4
%7 = call i32 @setsockopt(i32 noundef %4, i32 noundef %5, i32 noundef %6, ptr noundef %3, i32 noundef 1)
ret i32 %7
}
declare i32 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbak7xtyd.c'
source_filename = "/tmp/tmpbak7xtyd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__bound_malloc(i64 noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i64 %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%7 = load i64, ptr %4, align 8
%8 = add i64 %7, 1
%9 = call ptr @libc_malloc(i64 noundef %8)
store ptr %9, ptr %6, align 8
%10 = load ptr, ptr %6, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %13, label %12
12: ; preds = %2
store ptr null, ptr %3, align 8
br label %18
13: ; preds = %2
%14 = load ptr, ptr %6, align 8
%15 = load i64, ptr %4, align 8
%16 = call i32 @__bound_new_region(ptr noundef %14, i64 noundef %15)
%17 = load ptr, ptr %6, align 8
store ptr %17, ptr %3, align 8
br label %18
18: ; preds = %13, %12
%19 = load ptr, ptr %3, align 8
ret ptr %19
}
declare ptr @libc_malloc(i64 noundef) #1
declare i32 @__bound_new_region(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/tmpbak7xtyd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__bound_malloc(i64 noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i64 %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%7 = load i64, ptr %4, align 8
%8 = add i64 %7, 1
%9 = call ptr @libc_malloc(i64 noundef %8)
store ptr %9, ptr %6, align 8
%10 = load ptr, ptr %6, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %13, label %12
12: ; preds = %2
store ptr null, ptr %3, align 8
br label %18
13: ; preds = %2
%14 = load ptr, ptr %6, align 8
%15 = load i64, ptr %4, align 8
%16 = call i32 @__bound_new_region(ptr noundef %14, i64 noundef %15)
%17 = load ptr, ptr %6, align 8
store ptr %17, ptr %3, align 8
br label %18
18: ; preds = %13, %12
%19 = load ptr, ptr %3, align 8
ret ptr %19
}
declare ptr @libc_malloc(i64 noundef) #1
declare i32 @__bound_new_region(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/tmpmwrxtbc7.c'
source_filename = "/tmp/tmpmwrxtbc7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [63 x i8] c"C905:(%13lld):(1234567890123):Call by value long long literal\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @STEST905(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, i64 noundef %3)
ret void
}
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmwrxtbc7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [63 x i8] c"C905:(%13lld):(1234567890123):Call by value long long literal\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @STEST905(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, i64 noundef %3)
ret void
}
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpk6081rhc.c'
source_filename = "/tmp/tmpk6081rhc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ignition_timming_advance(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 @_hex_to_int(ptr noundef %3)
%5 = sitofp i32 %4 to double
%6 = fsub double %5, 1.280000e+02
%7 = fdiv double %6, 2.000000e+00
ret double %7
}
declare i32 @_hex_to_int(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk6081rhc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ignition_timming_advance(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 @_hex_to_int(ptr noundef %3)
%5 = sitofp i32 %4 to double
%6 = fsub double %5, 1.280000e+02
%7 = fdiv double %6, 2.000000e+00
ret double %7
}
declare i32 @_hex_to_int(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjsxdsgc9.c'
source_filename = "/tmp/tmpjsxdsgc9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isprint.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isprint should be 0 for 0xdb\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isprint_0xdb() #0 {
%1 = call i64 @isprint(i32 noundef 219)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 1100, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isprint(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/tmpjsxdsgc9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isprint.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isprint should be 0 for 0xdb\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isprint_0xdb() #0 {
%1 = call i64 @isprint(i32 noundef 219)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 1100, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isprint(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/tmp515byh9o.c'
source_filename = "/tmp/tmp515byh9o.c"
target datalayout = "e-m:e-p270: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 [9 x i8] c"%llu kB\0A\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"failed to allocate memory\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 1048576, ptr %6, align 8
store ptr null, ptr %7, align 8
store i64 0, ptr %8, align 8
br label %9
9: ; preds = %2, %28
%10 = load i64, ptr %6, align 8
%11 = call i64 @malloc(i64 noundef %10)
%12 = inttoptr i64 %11 to ptr
store ptr %12, ptr %7, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %25
14: ; preds = %9
%15 = load i32, ptr @stderr, align 4
%16 = load i64, ptr %8, align 8
%17 = add i64 %16, 1
store i64 %17, ptr %8, align 8
%18 = load i64, ptr %6, align 8
%19 = mul i64 %17, %18
%20 = udiv i64 %19, 1024
%21 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %15, ptr noundef @.str, i64 noundef %20)
%22 = load ptr, ptr %7, align 8
%23 = load i64, ptr %6, align 8
%24 = call i32 @memset(ptr noundef %22, i32 noundef 0, i64 noundef %23)
br label %28
25: ; preds = %9
%26 = load i32, ptr @stderr, align 4
%27 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %26, ptr noundef @.str.1)
br label %28
28: ; preds = %25, %14
%29 = load i32, ptr @stderr, align 4
%30 = call i32 @fflush(i32 noundef %29)
br label %9
}
declare i64 @malloc(i64 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @memset(ptr noundef, i32 noundef, i64 noundef) #1
declare i32 @fflush(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp515byh9o.c"
target datalayout = "e-m:e-p270: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 [9 x i8] c"%llu kB\0A\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"failed to allocate memory\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 1048576, ptr %6, align 8
store ptr null, ptr %7, align 8
store i64 0, ptr %8, align 8
br label %9
9: ; preds = %28, %2
%10 = load i64, ptr %6, align 8
%11 = call i64 @malloc(i64 noundef %10)
%12 = inttoptr i64 %11 to ptr
store ptr %12, ptr %7, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %25
14: ; preds = %9
%15 = load i32, ptr @stderr, align 4
%16 = load i64, ptr %8, align 8
%17 = add i64 %16, 1
store i64 %17, ptr %8, align 8
%18 = load i64, ptr %6, align 8
%19 = mul i64 %17, %18
%20 = udiv i64 %19, 1024
%21 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %15, ptr noundef @.str, i64 noundef %20)
%22 = load ptr, ptr %7, align 8
%23 = load i64, ptr %6, align 8
%24 = call i32 @memset(ptr noundef %22, i32 noundef 0, i64 noundef %23)
br label %28
25: ; preds = %9
%26 = load i32, ptr @stderr, align 4
%27 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %26, ptr noundef @.str.1)
br label %28
28: ; preds = %25, %14
%29 = load i32, ptr @stderr, align 4
%30 = call i32 @fflush(i32 noundef %29)
br label %9
}
declare i64 @malloc(i64 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @memset(ptr noundef, i32 noundef, i64 noundef) #1
declare i32 @fflush(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpw2lsvml3.c'
source_filename = "/tmp/tmpw2lsvml3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__generateSalt() #0 {
%1 = alloca [6 x i8], align 1
%2 = alloca i8, align 1
%3 = alloca i8, align 1
%4 = alloca i8, align 1
%5 = alloca i32, align 4
store i8 48, ptr %2, align 1
store i8 126, ptr %3, align 1
store i8 0, ptr %4, align 1
store i32 0, ptr %5, align 4
%6 = call i32 @srand(i32 noundef 1184994993)
store i32 0, ptr %5, align 4
br label %7
7: ; preds = %25, %0
%8 = load i32, ptr %5, align 4
%9 = icmp slt i32 %8, 6
br i1 %9, label %10, label %28
10: ; preds = %7
br label %11
11: ; preds = %10, %19
%12 = call i32 (...) @rand()
%13 = srem i32 %12, 126
%14 = trunc i32 %13 to i8
store i8 %14, ptr %4, align 1
%15 = load i8, ptr %4, align 1
%16 = sext i8 %15 to i32
%17 = icmp sge i32 %16, 48
br i1 %17, label %18, label %19
18: ; preds = %11
br label %20
19: ; preds = %11
br label %11
20: ; preds = %18
%21 = load i8, ptr %4, align 1
%22 = load i32, ptr %5, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [6 x i8], ptr %1, i64 0, i64 %23
store i8 %21, ptr %24, align 1
br label %25
25: ; preds = %20
%26 = load i32, ptr %5, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %5, align 4
br label %7, !llvm.loop !6
28: ; preds = %7
%29 = getelementptr inbounds [6 x i8], ptr %1, i64 0, i64 0
ret ptr %29
}
declare i32 @srand(i32 noundef) #1
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw2lsvml3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__generateSalt() #0 {
%1 = alloca [6 x i8], align 1
%2 = alloca i8, align 1
%3 = alloca i8, align 1
%4 = alloca i8, align 1
%5 = alloca i32, align 4
store i8 48, ptr %2, align 1
store i8 126, ptr %3, align 1
store i8 0, ptr %4, align 1
store i32 0, ptr %5, align 4
%6 = call i32 @srand(i32 noundef 1184994993)
store i32 0, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = icmp slt i32 %7, 6
br i1 %8, label %.lr.ph, label %28
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %23
br label %10
10: ; preds = %10, %9
%11 = call i32 (...) @rand()
%12 = srem i32 %11, 126
%13 = trunc i32 %12 to i8
store i8 %13, ptr %4, align 1
%14 = load i8, ptr %4, align 1
%15 = sext i8 %14 to i32
%16 = icmp sge i32 %15, 48
br i1 %16, label %17, label %10
17: ; preds = %10
br label %18
18: ; preds = %17
%19 = load i8, ptr %4, align 1
%20 = load i32, ptr %5, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [6 x i8], ptr %1, i64 0, i64 %21
store i8 %19, ptr %22, align 1
br label %23
23: ; preds = %18
%24 = load i32, ptr %5, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %5, align 4
%26 = load i32, ptr %5, align 4
%27 = icmp slt i32 %26, 6
br i1 %27, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %28
28: ; preds = %._crit_edge, %0
%29 = getelementptr inbounds [6 x i8], ptr %1, i64 0, i64 0
ret ptr %29
}
declare i32 @srand(i32 noundef) #1
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp2zgv7a8m.c'
source_filename = "/tmp/tmp2zgv7a8m.c"
target datalayout = "e-m:e-p270: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/tmp2zgv7a8m.c"
target datalayout = "e-m:e-p270: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/tmp5tyohl97.c'
source_filename = "/tmp/tmp5tyohl97.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [6 x i8] c"%d %s\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"is odd\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"is even\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%5 = load i32, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = srem i32 %6, 2
%8 = icmp eq i32 %7, 1
%9 = zext i1 %8 to i64
%10 = select i1 %8, ptr @.str.3, ptr @.str.4
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %5, ptr noundef %10)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5tyohl97.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [6 x i8] c"%d %s\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"is odd\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"is even\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%5 = load i32, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = srem i32 %6, 2
%8 = icmp eq i32 %7, 1
%9 = zext i1 %8 to i64
%10 = select i1 %8, ptr @.str.3, ptr @.str.4
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %5, ptr noundef %10)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvo9w5i8d.c'
source_filename = "/tmp/tmpvo9w5i8d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"-f\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"-e\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @nacl_main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr null, ptr %6, align 8
%10 = load i32, ptr %4, align 4
%11 = icmp ne i32 %10, 3
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = load i32, ptr %4, align 4
%14 = icmp ne i32 %13, 4
br i1 %14, label %27, label %15
15: ; preds = %12, %2
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 1
%18 = load ptr, ptr %17, align 8
%19 = call i64 @strcmp(ptr noundef %18, ptr noundef @.str)
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %29
21: ; preds = %15
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call i64 @strcmp(ptr noundef %24, ptr noundef @.str.1)
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %29
27: ; preds = %21, %12
%28 = call i32 (...) @usage()
store i32 1, ptr %3, align 4
br label %70
29: ; preds = %21, %15
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds ptr, ptr %30, i64 1
%32 = load ptr, ptr %31, align 8
%33 = call i64 @strcmp(ptr noundef %32, ptr noundef @.str)
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %41
35: ; preds = %29
%36 = load ptr, ptr %5, align 8
%37 = getelementptr inbounds ptr, ptr %36, i64 2
%38 = load ptr, ptr %37, align 8
%39 = call ptr @read_file_z(ptr noundef %38)
store ptr %39, ptr %6, align 8
%40 = load ptr, ptr %6, align 8
store ptr %40, ptr %7, align 8
br label %45
41: ; preds = %29
%42 = load ptr, ptr %5, align 8
%43 = getelementptr inbounds ptr, ptr %42, i64 2
%44 = load ptr, ptr %43, align 8
store ptr %44, ptr %7, align 8
br label %45
45: ; preds = %41, %35
%46 = load i32, ptr %4, align 4
%47 = icmp eq i32 %46, 4
br i1 %47, label %48, label %57
48: ; preds = %45
%49 = load ptr, ptr %7, align 8
%50 = call i32 @jseval(ptr noundef %49, ptr noundef %8, ptr noundef %9)
%51 = load ptr, ptr %8, align 8
%52 = load i64, ptr %9, align 8
%53 = load ptr, ptr %5, align 8
%54 = getelementptr inbounds ptr, ptr %53, i64 3
%55 = load ptr, ptr %54, align 8
%56 = call i32 @write_file(ptr noundef %51, i64 noundef %52, ptr noundef %55)
br label %60
57: ; preds = %45
%58 = load ptr, ptr %7, align 8
%59 = call i32 @jseval(ptr noundef %58, ptr noundef null, ptr noundef null)
br label %60
60: ; preds = %57, %48
%61 = load ptr, ptr %5, align 8
%62 = getelementptr inbounds ptr, ptr %61, i64 1
%63 = load ptr, ptr %62, align 8
%64 = call i64 @strcmp(ptr noundef %63, ptr noundef @.str)
%65 = icmp eq i64 %64, 0
br i1 %65, label %66, label %69
66: ; preds = %60
%67 = load ptr, ptr %6, align 8
%68 = call i32 @free(ptr noundef %67)
br label %69
69: ; preds = %66, %60
store i32 0, ptr %3, align 4
br label %70
70: ; preds = %69, %27
%71 = load i32, ptr %3, align 4
ret i32 %71
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @usage(...) #1
declare ptr @read_file_z(ptr noundef) #1
declare i32 @jseval(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @write_file(ptr noundef, i64 noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvo9w5i8d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"-f\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"-e\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @nacl_main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr null, ptr %6, align 8
%10 = load i32, ptr %4, align 4
%11 = icmp ne i32 %10, 3
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = load i32, ptr %4, align 4
%14 = icmp ne i32 %13, 4
br i1 %14, label %27, label %15
15: ; preds = %12, %2
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 1
%18 = load ptr, ptr %17, align 8
%19 = call i64 @strcmp(ptr noundef %18, ptr noundef @.str)
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %29
21: ; preds = %15
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call i64 @strcmp(ptr noundef %24, ptr noundef @.str.1)
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %29
27: ; preds = %21, %12
%28 = call i32 (...) @usage()
store i32 1, ptr %3, align 4
br label %70
29: ; preds = %21, %15
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds ptr, ptr %30, i64 1
%32 = load ptr, ptr %31, align 8
%33 = call i64 @strcmp(ptr noundef %32, ptr noundef @.str)
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %41
35: ; preds = %29
%36 = load ptr, ptr %5, align 8
%37 = getelementptr inbounds ptr, ptr %36, i64 2
%38 = load ptr, ptr %37, align 8
%39 = call ptr @read_file_z(ptr noundef %38)
store ptr %39, ptr %6, align 8
%40 = load ptr, ptr %6, align 8
store ptr %40, ptr %7, align 8
br label %45
41: ; preds = %29
%42 = load ptr, ptr %5, align 8
%43 = getelementptr inbounds ptr, ptr %42, i64 2
%44 = load ptr, ptr %43, align 8
store ptr %44, ptr %7, align 8
br label %45
45: ; preds = %41, %35
%46 = load i32, ptr %4, align 4
%47 = icmp eq i32 %46, 4
br i1 %47, label %48, label %57
48: ; preds = %45
%49 = load ptr, ptr %7, align 8
%50 = call i32 @jseval(ptr noundef %49, ptr noundef %8, ptr noundef %9)
%51 = load ptr, ptr %8, align 8
%52 = load i64, ptr %9, align 8
%53 = load ptr, ptr %5, align 8
%54 = getelementptr inbounds ptr, ptr %53, i64 3
%55 = load ptr, ptr %54, align 8
%56 = call i32 @write_file(ptr noundef %51, i64 noundef %52, ptr noundef %55)
br label %60
57: ; preds = %45
%58 = load ptr, ptr %7, align 8
%59 = call i32 @jseval(ptr noundef %58, ptr noundef null, ptr noundef null)
br label %60
60: ; preds = %57, %48
%61 = load ptr, ptr %5, align 8
%62 = getelementptr inbounds ptr, ptr %61, i64 1
%63 = load ptr, ptr %62, align 8
%64 = call i64 @strcmp(ptr noundef %63, ptr noundef @.str)
%65 = icmp eq i64 %64, 0
br i1 %65, label %66, label %69
66: ; preds = %60
%67 = load ptr, ptr %6, align 8
%68 = call i32 @free(ptr noundef %67)
br label %69
69: ; preds = %66, %60
store i32 0, ptr %3, align 4
br label %70
70: ; preds = %69, %27
%71 = load i32, ptr %3, align 4
ret i32 %71
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @usage(...) #1
declare ptr @read_file_z(ptr noundef) #1
declare i32 @jseval(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @write_file(ptr noundef, i64 noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprd0lvnqx.c'
source_filename = "/tmp/tmprd0lvnqx.c"
target datalayout = "e-m:e-p270: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 [35 x i8] c"Usage: %s piece_offset [YY-MM-DD]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
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, 3
br i1 %9, label %10, label %17
10: ; preds = %2
%11 = load i32, ptr @stderr, align 4
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 0
%14 = load ptr, ptr %13, align 8
%15 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str, ptr noundef %14)
%16 = call i32 @exit(i32 noundef 1) #3
unreachable
17: ; preds = %2
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 1
%20 = load ptr, ptr %19, align 8
%21 = call i32 @atoi(ptr noundef %20)
store i32 %21, ptr %6, align 4
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 2
%24 = load ptr, ptr %23, align 8
store ptr %24, ptr %7, align 8
%25 = load i32, ptr %6, align 4
%26 = load ptr, ptr %7, align 8
%27 = call i32 @piece_ora_date(i32 noundef %25, ptr noundef %26)
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @atoi(ptr noundef) #1
declare i32 @piece_ora_date(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprd0lvnqx.c"
target datalayout = "e-m:e-p270: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 [35 x i8] c"Usage: %s piece_offset [YY-MM-DD]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
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, 3
br i1 %9, label %10, label %17
10: ; preds = %2
%11 = load i32, ptr @stderr, align 4
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 0
%14 = load ptr, ptr %13, align 8
%15 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str, ptr noundef %14)
%16 = call i32 @exit(i32 noundef 1) #3
unreachable
17: ; preds = %2
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 1
%20 = load ptr, ptr %19, align 8
%21 = call i32 @atoi(ptr noundef %20)
store i32 %21, ptr %6, align 4
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 2
%24 = load ptr, ptr %23, align 8
store ptr %24, ptr %7, align 8
%25 = load i32, ptr %6, align 4
%26 = load ptr, ptr %7, align 8
%27 = call i32 @piece_ora_date(i32 noundef %25, ptr noundef %26)
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @atoi(ptr noundef) #1
declare i32 @piece_ora_date(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpv78m38t1.c'
source_filename = "/tmp/tmpv78m38t1.c"
target datalayout = "e-m:e-p270: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 [40 x i8] c"Usage: not what you did u fuckin idiot\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv78m38t1.c"
target datalayout = "e-m:e-p270: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 [40 x i8] c"Usage: not what you did u fuckin idiot\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9kovhzkv.c'
source_filename = "/tmp/tmp9kovhzkv.c"
target datalayout = "e-m:e-p270: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/tmp9kovhzkv.c"
target datalayout = "e-m:e-p270: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/tmp631gd1dx.c'
source_filename = "/tmp/tmp631gd1dx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, i32, %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [21 x i8] c"create socket failed\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"54.182.3.77\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"connect failed\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"connected\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 %struct.sockaddr_in, align 4
%8 = alloca [1000 x i8], align 16
%9 = alloca [2000 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
%10 = load i32, ptr @AF_INET, align 4
%11 = load i32, ptr @SOCK_STREAM, align 4
%12 = call i32 @socket(i32 noundef %10, i32 noundef %11, i32 noundef 0)
store i32 %12, ptr %6, align 4
%13 = load i32, ptr %6, align 4
%14 = icmp eq i32 %13, -1
br i1 %14, label %15, label %17
15: ; preds = %2
%16 = call i32 @printf(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %34
17: ; preds = %2
%18 = call i32 @inet_addr(ptr noundef @.str.1)
%19 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 2
%20 = getelementptr inbounds %struct.TYPE_2__, ptr %19, i32 0, i32 0
store i32 %18, ptr %20, align 4
%21 = load i32, ptr @AF_INET, align 4
%22 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 1
store i32 %21, ptr %22, align 4
%23 = call i32 @htons(i32 noundef 80)
%24 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 0
store i32 %23, ptr %24, align 4
%25 = load i32, ptr %6, align 4
%26 = call i64 @connect(i32 noundef %25, ptr noundef %7, i32 noundef 12)
%27 = icmp slt i64 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %17
%29 = call i32 @printf(ptr noundef @.str.2)
store i32 1, ptr %3, align 4
br label %34
30: ; preds = %17
%31 = call i32 @printf(ptr noundef @.str.3)
%32 = load i32, ptr %6, align 4
%33 = call i32 @close(i32 noundef %32)
store i32 0, ptr %3, align 4
br label %34
34: ; preds = %30, %28, %15
%35 = load i32, ptr %3, align 4
ret i32 %35
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @inet_addr(ptr noundef) #1
declare i32 @htons(i32 noundef) #1
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp631gd1dx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, i32, %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [21 x i8] c"create socket failed\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"54.182.3.77\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"connect failed\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"connected\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 %struct.sockaddr_in, align 4
%8 = alloca [1000 x i8], align 16
%9 = alloca [2000 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
%10 = load i32, ptr @AF_INET, align 4
%11 = load i32, ptr @SOCK_STREAM, align 4
%12 = call i32 @socket(i32 noundef %10, i32 noundef %11, i32 noundef 0)
store i32 %12, ptr %6, align 4
%13 = load i32, ptr %6, align 4
%14 = icmp eq i32 %13, -1
br i1 %14, label %15, label %17
15: ; preds = %2
%16 = call i32 @printf(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %34
17: ; preds = %2
%18 = call i32 @inet_addr(ptr noundef @.str.1)
%19 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 2
%20 = getelementptr inbounds %struct.TYPE_2__, ptr %19, i32 0, i32 0
store i32 %18, ptr %20, align 4
%21 = load i32, ptr @AF_INET, align 4
%22 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 1
store i32 %21, ptr %22, align 4
%23 = call i32 @htons(i32 noundef 80)
%24 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 0
store i32 %23, ptr %24, align 4
%25 = load i32, ptr %6, align 4
%26 = call i64 @connect(i32 noundef %25, ptr noundef %7, i32 noundef 12)
%27 = icmp slt i64 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %17
%29 = call i32 @printf(ptr noundef @.str.2)
store i32 1, ptr %3, align 4
br label %34
30: ; preds = %17
%31 = call i32 @printf(ptr noundef @.str.3)
%32 = load i32, ptr %6, align 4
%33 = call i32 @close(i32 noundef %32)
store i32 0, ptr %3, align 4
br label %34
34: ; preds = %30, %28, %15
%35 = load i32, ptr %3, align 4
ret i32 %35
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @inet_addr(ptr noundef) #1
declare i32 @htons(i32 noundef) #1
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkysqp7oq.c'
source_filename = "/tmp/tmpkysqp7oq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @control_thread(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = load i32, ptr %4, align 4
%6 = call i32 @control_read(i32 noundef %5)
%7 = call i32 @pthread_exit(ptr noundef null)
%8 = load ptr, ptr %2, align 8
ret ptr %8
}
declare i32 @control_read(i32 noundef) #1
declare i32 @pthread_exit(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkysqp7oq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @control_thread(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = load i32, ptr %4, align 4
%6 = call i32 @control_read(i32 noundef %5)
%7 = call i32 @pthread_exit(ptr noundef null)
%8 = load ptr, ptr %2, align 8
ret ptr %8
}
declare i32 @control_read(i32 noundef) #1
declare i32 @pthread_exit(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpimqwdh41.c'
source_filename = "/tmp/tmpimqwdh41.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ZBUFF_recommendedCInSize() #0 {
ret i64 131072
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpimqwdh41.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ZBUFF_recommendedCInSize() #0 {
ret i64 131072
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp182fs4ro.c'
source_filename = "/tmp/tmp182fs4ro.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @YCbCr2RGB(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
store i32 %0, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = ashr i32 %6, 16
%8 = and i32 %7, 255
%9 = sitofp i32 %8 to float
%10 = fpext float %9 to double
%11 = fsub double %10, 1.600000e+01
%12 = load i32, ptr %2, align 4
%13 = and i32 %12, 255
%14 = sitofp i32 %13 to float
%15 = fpext float %14 to double
%16 = fsub double %15, 1.280000e+02
%17 = fmul double 1.596000e+00, %16
%18 = call double @llvm.fmuladd.f64(double 1.164000e+00, double %11, double %17)
%19 = fptrunc double %18 to float
store float %19, ptr %3, align 4
%20 = load i32, ptr %2, align 4
%21 = ashr i32 %20, 16
%22 = and i32 %21, 255
%23 = sitofp i32 %22 to float
%24 = fpext float %23 to double
%25 = fsub double %24, 1.600000e+01
%26 = load i32, ptr %2, align 4
%27 = and i32 %26, 255
%28 = sitofp i32 %27 to float
%29 = fpext float %28 to double
%30 = fsub double %29, 1.280000e+02
%31 = fmul double 0x3FEA04189374BC6A, %30
%32 = fneg double %31
%33 = call double @llvm.fmuladd.f64(double 1.164000e+00, double %25, double %32)
%34 = load i32, ptr %2, align 4
%35 = ashr i32 %34, 8
%36 = and i32 %35, 255
%37 = sitofp i32 %36 to float
%38 = fpext float %37 to double
%39 = fsub double %38, 1.280000e+02
%40 = call double @llvm.fmuladd.f64(double -3.920000e-01, double %39, double %33)
%41 = fptrunc double %40 to float
store float %41, ptr %4, align 4
%42 = load i32, ptr %2, align 4
%43 = ashr i32 %42, 16
%44 = and i32 %43, 255
%45 = sitofp i32 %44 to float
%46 = fpext float %45 to double
%47 = fsub double %46, 1.600000e+01
%48 = load i32, ptr %2, align 4
%49 = ashr i32 %48, 8
%50 = and i32 %49, 255
%51 = sitofp i32 %50 to float
%52 = fpext float %51 to double
%53 = fsub double %52, 1.280000e+02
%54 = fmul double 2.017000e+00, %53
%55 = call double @llvm.fmuladd.f64(double 1.164000e+00, double %47, double %54)
%56 = fptrunc double %55 to float
store float %56, ptr %5, align 4
%57 = load float, ptr %3, align 4
%58 = fpext float %57 to double
%59 = fcmp olt double %58, 0.000000e+00
br i1 %59, label %60, label %61
60: ; preds = %1
store float 0.000000e+00, ptr %3, align 4
br label %61
61: ; preds = %60, %1
%62 = load float, ptr %4, align 4
%63 = fpext float %62 to double
%64 = fcmp olt double %63, 0.000000e+00
br i1 %64, label %65, label %66
65: ; preds = %61
store float 0.000000e+00, ptr %4, align 4
br label %66
66: ; preds = %65, %61
%67 = load float, ptr %5, align 4
%68 = fpext float %67 to double
%69 = fcmp olt double %68, 0.000000e+00
br i1 %69, label %70, label %71
70: ; preds = %66
store float 0.000000e+00, ptr %5, align 4
br label %71
71: ; preds = %70, %66
%72 = load float, ptr %3, align 4
%73 = fpext float %72 to double
%74 = fcmp ogt double %73, 2.550000e+02
br i1 %74, label %75, label %76
75: ; preds = %71
store float 2.550000e+02, ptr %3, align 4
br label %76
76: ; preds = %75, %71
%77 = load float, ptr %4, align 4
%78 = fpext float %77 to double
%79 = fcmp ogt double %78, 2.550000e+02
br i1 %79, label %80, label %81
80: ; preds = %76
store float 2.550000e+02, ptr %4, align 4
br label %81
81: ; preds = %80, %76
%82 = load float, ptr %5, align 4
%83 = fpext float %82 to double
%84 = fcmp ogt double %83, 2.550000e+02
br i1 %84, label %85, label %86
85: ; preds = %81
store float 2.550000e+02, ptr %5, align 4
br label %86
86: ; preds = %85, %81
%87 = load float, ptr %3, align 4
%88 = fptosi float %87 to i32
%89 = load float, ptr %4, align 4
%90 = fptosi float %89 to i32
%91 = load float, ptr %5, align 4
%92 = fptosi float %91 to i32
%93 = call i32 @triplet(i32 noundef %88, i32 noundef %90, i32 noundef %92)
ret i32 %93
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
declare i32 @triplet(i32 noundef, i32 noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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/tmp182fs4ro.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @YCbCr2RGB(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
store i32 %0, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = ashr i32 %6, 16
%8 = and i32 %7, 255
%9 = sitofp i32 %8 to float
%10 = fpext float %9 to double
%11 = fsub double %10, 1.600000e+01
%12 = load i32, ptr %2, align 4
%13 = and i32 %12, 255
%14 = sitofp i32 %13 to float
%15 = fpext float %14 to double
%16 = fsub double %15, 1.280000e+02
%17 = fmul double 1.596000e+00, %16
%18 = call double @llvm.fmuladd.f64(double 1.164000e+00, double %11, double %17)
%19 = fptrunc double %18 to float
store float %19, ptr %3, align 4
%20 = load i32, ptr %2, align 4
%21 = ashr i32 %20, 16
%22 = and i32 %21, 255
%23 = sitofp i32 %22 to float
%24 = fpext float %23 to double
%25 = fsub double %24, 1.600000e+01
%26 = load i32, ptr %2, align 4
%27 = and i32 %26, 255
%28 = sitofp i32 %27 to float
%29 = fpext float %28 to double
%30 = fsub double %29, 1.280000e+02
%31 = fmul double 0x3FEA04189374BC6A, %30
%32 = fneg double %31
%33 = call double @llvm.fmuladd.f64(double 1.164000e+00, double %25, double %32)
%34 = load i32, ptr %2, align 4
%35 = ashr i32 %34, 8
%36 = and i32 %35, 255
%37 = sitofp i32 %36 to float
%38 = fpext float %37 to double
%39 = fsub double %38, 1.280000e+02
%40 = call double @llvm.fmuladd.f64(double -3.920000e-01, double %39, double %33)
%41 = fptrunc double %40 to float
store float %41, ptr %4, align 4
%42 = load i32, ptr %2, align 4
%43 = ashr i32 %42, 16
%44 = and i32 %43, 255
%45 = sitofp i32 %44 to float
%46 = fpext float %45 to double
%47 = fsub double %46, 1.600000e+01
%48 = load i32, ptr %2, align 4
%49 = ashr i32 %48, 8
%50 = and i32 %49, 255
%51 = sitofp i32 %50 to float
%52 = fpext float %51 to double
%53 = fsub double %52, 1.280000e+02
%54 = fmul double 2.017000e+00, %53
%55 = call double @llvm.fmuladd.f64(double 1.164000e+00, double %47, double %54)
%56 = fptrunc double %55 to float
store float %56, ptr %5, align 4
%57 = load float, ptr %3, align 4
%58 = fpext float %57 to double
%59 = fcmp olt double %58, 0.000000e+00
br i1 %59, label %60, label %61
60: ; preds = %1
store float 0.000000e+00, ptr %3, align 4
br label %61
61: ; preds = %60, %1
%62 = load float, ptr %4, align 4
%63 = fpext float %62 to double
%64 = fcmp olt double %63, 0.000000e+00
br i1 %64, label %65, label %66
65: ; preds = %61
store float 0.000000e+00, ptr %4, align 4
br label %66
66: ; preds = %65, %61
%67 = load float, ptr %5, align 4
%68 = fpext float %67 to double
%69 = fcmp olt double %68, 0.000000e+00
br i1 %69, label %70, label %71
70: ; preds = %66
store float 0.000000e+00, ptr %5, align 4
br label %71
71: ; preds = %70, %66
%72 = load float, ptr %3, align 4
%73 = fpext float %72 to double
%74 = fcmp ogt double %73, 2.550000e+02
br i1 %74, label %75, label %76
75: ; preds = %71
store float 2.550000e+02, ptr %3, align 4
br label %76
76: ; preds = %75, %71
%77 = load float, ptr %4, align 4
%78 = fpext float %77 to double
%79 = fcmp ogt double %78, 2.550000e+02
br i1 %79, label %80, label %81
80: ; preds = %76
store float 2.550000e+02, ptr %4, align 4
br label %81
81: ; preds = %80, %76
%82 = load float, ptr %5, align 4
%83 = fpext float %82 to double
%84 = fcmp ogt double %83, 2.550000e+02
br i1 %84, label %85, label %86
85: ; preds = %81
store float 2.550000e+02, ptr %5, align 4
br label %86
86: ; preds = %85, %81
%87 = load float, ptr %3, align 4
%88 = fptosi float %87 to i32
%89 = load float, ptr %4, align 4
%90 = fptosi float %89 to i32
%91 = load float, ptr %5, align 4
%92 = fptosi float %91 to i32
%93 = call i32 @triplet(i32 noundef %88, i32 noundef %90, i32 noundef %92)
ret i32 %93
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
declare i32 @triplet(i32 noundef, i32 noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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/tmpjax00_zi.c'
source_filename = "/tmp/tmpjax00_zi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"MACHAR_PRB\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c" C version\0A\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c" Test the MACHAR library.\0A\00", align 1
@.str.4 = private unnamed_addr constant [28 x i8] c" Normal end of execution.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @timestamp()
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 @printf(ptr noundef @.str.1)
%5 = call i32 @printf(ptr noundef @.str.2)
%6 = call i32 @printf(ptr noundef @.str.3)
%7 = call i32 (...) @test01()
%8 = call i32 (...) @test02()
%9 = call i32 @printf(ptr noundef @.str)
%10 = call i32 @printf(ptr noundef @.str.1)
%11 = call i32 @printf(ptr noundef @.str.4)
%12 = call i32 @printf(ptr noundef @.str)
%13 = call i32 (...) @timestamp()
ret i32 0
}
declare i32 @timestamp(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @test01(...) #1
declare i32 @test02(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjax00_zi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"MACHAR_PRB\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c" C version\0A\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c" Test the MACHAR library.\0A\00", align 1
@.str.4 = private unnamed_addr constant [28 x i8] c" Normal end of execution.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @timestamp()
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 @printf(ptr noundef @.str.1)
%5 = call i32 @printf(ptr noundef @.str.2)
%6 = call i32 @printf(ptr noundef @.str.3)
%7 = call i32 (...) @test01()
%8 = call i32 (...) @test02()
%9 = call i32 @printf(ptr noundef @.str)
%10 = call i32 @printf(ptr noundef @.str.1)
%11 = call i32 @printf(ptr noundef @.str.4)
%12 = call i32 @printf(ptr noundef @.str)
%13 = call i32 (...) @timestamp()
ret i32 0
}
declare i32 @timestamp(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @test01(...) #1
declare i32 @test02(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyubowb85.c'
source_filename = "/tmp/tmpyubowb85.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mm_init() #0 {
%1 = call i32 (...) @mm_init_units()
ret void
}
declare i32 @mm_init_units(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyubowb85.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mm_init() #0 {
%1 = call i32 (...) @mm_init_units()
ret void
}
declare i32 @mm_init_units(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3qa_fn_5.c'
source_filename = "/tmp/tmp3qa_fn_5.c"
target datalayout = "e-m:e-p270: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/tmp3qa_fn_5.c"
target datalayout = "e-m:e-p270: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/tmpyvf0mrai.c'
source_filename = "/tmp/tmpyvf0mrai.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"/sys/class/gpio/gpio%d/edge\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @gpio_set_edge(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 [64 x i8], align 16
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 0
%9 = load i32, ptr %4, align 4
%10 = call i32 @snprintf(ptr noundef %8, i32 noundef 64, ptr noundef @.str, i32 noundef %9)
%11 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 0
%12 = load i32, ptr @O_WRONLY, align 4
%13 = call i32 @open(ptr noundef %11, i32 noundef %12)
store i32 %13, ptr %6, align 4
%14 = load i32, ptr %6, align 4
%15 = icmp eq i32 %14, -1
br i1 %15, label %16, label %17
16: ; preds = %2
store i32 -1, ptr %3, align 4
br label %25
17: ; preds = %2
%18 = load i32, ptr %6, align 4
%19 = load ptr, ptr %5, align 8
%20 = load ptr, ptr %5, align 8
%21 = call i32 @strlen(ptr noundef %20)
%22 = call i32 @write(i32 noundef %18, ptr noundef %19, i32 noundef %21)
%23 = load i32, ptr %6, align 4
%24 = call i32 @close(i32 noundef %23)
store i32 0, ptr %3, align 4
br label %25
25: ; preds = %17, %16
%26 = load i32, ptr %3, align 4
ret i32 %26
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyvf0mrai.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"/sys/class/gpio/gpio%d/edge\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @gpio_set_edge(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 [64 x i8], align 16
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 0
%9 = load i32, ptr %4, align 4
%10 = call i32 @snprintf(ptr noundef %8, i32 noundef 64, ptr noundef @.str, i32 noundef %9)
%11 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 0
%12 = load i32, ptr @O_WRONLY, align 4
%13 = call i32 @open(ptr noundef %11, i32 noundef %12)
store i32 %13, ptr %6, align 4
%14 = load i32, ptr %6, align 4
%15 = icmp eq i32 %14, -1
br i1 %15, label %16, label %17
16: ; preds = %2
store i32 -1, ptr %3, align 4
br label %25
17: ; preds = %2
%18 = load i32, ptr %6, align 4
%19 = load ptr, ptr %5, align 8
%20 = load ptr, ptr %5, align 8
%21 = call i32 @strlen(ptr noundef %20)
%22 = call i32 @write(i32 noundef %18, ptr noundef %19, i32 noundef %21)
%23 = load i32, ptr %6, align 4
%24 = call i32 @close(i32 noundef %23)
store i32 0, ptr %3, align 4
br label %25
25: ; preds = %17, %16
%26 = load i32, ptr %3, align 4
ret i32 %26
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsutkwyyq.c'
source_filename = "/tmp/tmpsutkwyyq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sumRange(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
%8 = load i32, ptr %6, align 4
%9 = icmp sgt i32 %8, 0
br i1 %9, label %10, label %19
10: ; preds = %3
%11 = load ptr, ptr %5, align 8
%12 = load i32, ptr %7, align 4
%13 = call i32 @prefixSum(ptr noundef %11, i32 noundef %12)
%14 = load ptr, ptr %5, align 8
%15 = load i32, ptr %6, align 4
%16 = sub nsw i32 %15, 1
%17 = call i32 @prefixSum(ptr noundef %14, i32 noundef %16)
%18 = sub nsw i32 %13, %17
store i32 %18, ptr %4, align 4
br label %23
19: ; preds = %3
%20 = load ptr, ptr %5, align 8
%21 = load i32, ptr %7, align 4
%22 = call i32 @prefixSum(ptr noundef %20, i32 noundef %21)
store i32 %22, ptr %4, align 4
br label %23
23: ; preds = %19, %10
%24 = load i32, ptr %4, align 4
ret i32 %24
}
declare i32 @prefixSum(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/tmpsutkwyyq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sumRange(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
%8 = load i32, ptr %6, align 4
%9 = icmp sgt i32 %8, 0
br i1 %9, label %10, label %19
10: ; preds = %3
%11 = load ptr, ptr %5, align 8
%12 = load i32, ptr %7, align 4
%13 = call i32 @prefixSum(ptr noundef %11, i32 noundef %12)
%14 = load ptr, ptr %5, align 8
%15 = load i32, ptr %6, align 4
%16 = sub nsw i32 %15, 1
%17 = call i32 @prefixSum(ptr noundef %14, i32 noundef %16)
%18 = sub nsw i32 %13, %17
store i32 %18, ptr %4, align 4
br label %23
19: ; preds = %3
%20 = load ptr, ptr %5, align 8
%21 = load i32, ptr %7, align 4
%22 = call i32 @prefixSum(ptr noundef %20, i32 noundef %21)
store i32 %22, ptr %4, align 4
br label %23
23: ; preds = %19, %10
%24 = load i32, ptr %4, align 4
ret i32 %24
}
declare i32 @prefixSum(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/tmpm89vwhl_.c'
source_filename = "/tmp/tmpm89vwhl_.c"
target datalayout = "e-m:e-p270: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/tmpm89vwhl_.c"
target datalayout = "e-m:e-p270: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/tmp8pev472q.c'
source_filename = "/tmp/tmp8pev472q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c" *\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c" *\0A\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c" *\0A\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"* *\0A\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c" * *\0A\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c" *\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 @printf(ptr noundef @.str.1)
%4 = call i32 @printf(ptr noundef @.str.2)
%5 = call i32 @printf(ptr noundef @.str.3)
%6 = call i32 @printf(ptr noundef @.str.4)
%7 = call i32 @printf(ptr noundef @.str.5)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8pev472q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c" *\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c" *\0A\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c" *\0A\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"* *\0A\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c" * *\0A\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c" *\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 @printf(ptr noundef @.str.1)
%4 = call i32 @printf(ptr noundef @.str.2)
%5 = call i32 @printf(ptr noundef @.str.3)
%6 = call i32 @printf(ptr noundef @.str.4)
%7 = call i32 @printf(ptr noundef @.str.5)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnd6a2otp.c'
source_filename = "/tmp/tmpnd6a2otp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tl880_apu_stop_ioc(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 @tl880_apu_init_ioc(ptr noundef %3)
ret void
}
declare i32 @tl880_apu_init_ioc(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnd6a2otp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tl880_apu_stop_ioc(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 @tl880_apu_init_ioc(ptr noundef %3)
ret void
}
declare i32 @tl880_apu_init_ioc(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpztphzno3.c'
source_filename = "/tmp/tmpztphzno3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ifContainsFive(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp eq i32 %4, 5
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 1, ptr %2, align 4
br label %20
7: ; preds = %1
br label %8
8: ; preds = %16, %7
%9 = load i32, ptr %3, align 4
%10 = icmp sgt i32 %9, 0
br i1 %10, label %11, label %19
11: ; preds = %8
%12 = load i32, ptr %3, align 4
%13 = srem i32 %12, 10
%14 = icmp eq i32 %13, 5
br i1 %14, label %15, label %16
15: ; preds = %11
store i32 1, ptr %2, align 4
br label %20
16: ; preds = %11
%17 = load i32, ptr %3, align 4
%18 = sdiv i32 %17, 10
store i32 %18, ptr %3, align 4
br label %8, !llvm.loop !6
19: ; preds = %8
store i32 0, ptr %2, align 4
br label %20
20: ; preds = %19, %15, %6
%21 = load i32, ptr %2, align 4
ret i32 %21
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpztphzno3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ifContainsFive(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp eq i32 %4, 5
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 1, ptr %2, align 4
br label %21
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = icmp sgt i32 %8, 0
br i1 %9, label %.lr.ph, label %20
.lr.ph: ; preds = %7
br label %10
10: ; preds = %.lr.ph, %15
%11 = load i32, ptr %3, align 4
%12 = srem i32 %11, 10
%13 = icmp eq i32 %12, 5
br i1 %13, label %14, label %15
14: ; preds = %10
store i32 1, ptr %2, align 4
br label %21
15: ; preds = %10
%16 = load i32, ptr %3, align 4
%17 = sdiv i32 %16, 10
store i32 %17, ptr %3, align 4
%18 = load i32, ptr %3, align 4
%19 = icmp sgt i32 %18, 0
br i1 %19, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %20
20: ; preds = %._crit_edge, %7
store i32 0, ptr %2, align 4
br label %21
21: ; preds = %20, %14, %6
%22 = load i32, ptr %2, align 4
ret i32 %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/tmpxlnhpr1h.c'
source_filename = "/tmp/tmpxlnhpr1h.c"
target datalayout = "e-m:e-p270: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/tmpxlnhpr1h.c"
target datalayout = "e-m:e-p270: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/tmporrlaxr4.c'
source_filename = "/tmp/tmporrlaxr4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strutil_remove_each(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i8, align 1
%8 = alloca i64, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%10 = load ptr, ptr %3, align 8
%11 = call i64 @strlen(ptr noundef %10)
%12 = load ptr, ptr %4, align 8
%13 = call i64 @strlen(ptr noundef %12)
%14 = sub i64 %11, %13
%15 = add i64 %14, 1
%16 = call ptr @calloc(i64 noundef %15, i32 noundef 1)
store ptr %16, ptr %5, align 8
store i64 0, ptr %6, align 8
store i8 0, ptr %7, align 1
store i64 0, ptr %8, align 8
br label %17
17: ; preds = %59, %2
%18 = load i64, ptr %8, align 8
%19 = load ptr, ptr %3, align 8
%20 = call i64 @strlen(ptr noundef %19)
%21 = icmp ult i64 %18, %20
br i1 %21, label %22, label %62
22: ; preds = %17
store i64 0, ptr %9, align 8
br label %23
23: ; preds = %42, %22
%24 = load i64, ptr %9, align 8
%25 = load ptr, ptr %4, align 8
%26 = call i64 @strlen(ptr noundef %25)
%27 = icmp ult i64 %24, %26
br i1 %27, label %28, label %45
28: ; preds = %23
%29 = load ptr, ptr %3, align 8
%30 = load i64, ptr %8, align 8
%31 = getelementptr inbounds i8, ptr %29, i64 %30
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = load ptr, ptr %4, align 8
%35 = load i64, ptr %9, align 8
%36 = getelementptr inbounds i8, ptr %34, i64 %35
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = icmp eq i32 %33, %38
br i1 %39, label %40, label %41
40: ; preds = %28
store i8 1, ptr %7, align 1
br label %45
41: ; preds = %28
br label %42
42: ; preds = %41
%43 = load i64, ptr %9, align 8
%44 = add i64 %43, 1
store i64 %44, ptr %9, align 8
br label %23, !llvm.loop !6
45: ; preds = %40, %23
%46 = load i8, ptr %7, align 1
%47 = icmp ne i8 %46, 0
br i1 %47, label %58, label %48
48: ; preds = %45
%49 = load ptr, ptr %3, align 8
%50 = load i64, ptr %8, align 8
%51 = getelementptr inbounds i8, ptr %49, i64 %50
%52 = load i8, ptr %51, align 1
%53 = load ptr, ptr %5, align 8
%54 = load i64, ptr %6, align 8
%55 = getelementptr inbounds i8, ptr %53, i64 %54
store i8 %52, ptr %55, align 1
%56 = load i64, ptr %6, align 8
%57 = add i64 %56, 1
store i64 %57, ptr %6, align 8
br label %58
58: ; preds = %48, %45
store i8 0, ptr %7, align 1
br label %59
59: ; preds = %58
%60 = load i64, ptr %8, align 8
%61 = add i64 %60, 1
store i64 %61, ptr %8, align 8
br label %17, !llvm.loop !8
62: ; preds = %17
%63 = load ptr, ptr %5, align 8
%64 = load i64, ptr %6, align 8
%65 = getelementptr inbounds i8, ptr %63, i64 %64
store i8 0, ptr %65, align 1
%66 = load ptr, ptr %5, align 8
ret ptr %66
}
declare ptr @calloc(i64 noundef, i32 noundef) #1
declare i64 @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}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmporrlaxr4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strutil_remove_each(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i8, align 1
%8 = alloca i64, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%10 = load ptr, ptr %3, align 8
%11 = call i64 @strlen(ptr noundef %10)
%12 = load ptr, ptr %4, align 8
%13 = call i64 @strlen(ptr noundef %12)
%14 = sub i64 %11, %13
%15 = add i64 %14, 1
%16 = call ptr @calloc(i64 noundef %15, i32 noundef 1)
store ptr %16, ptr %5, align 8
store i64 0, ptr %6, align 8
store i8 0, ptr %7, align 1
store i64 0, ptr %8, align 8
%17 = load i64, ptr %8, align 8
%18 = load ptr, ptr %3, align 8
%19 = call i64 @strlen(ptr noundef %18)
%20 = icmp ult i64 %17, %19
br i1 %20, label %.lr.ph1, label %68
.lr.ph1: ; preds = %2
br label %21
21: ; preds = %.lr.ph1, %61
store i64 0, ptr %9, align 8
%22 = load i64, ptr %9, align 8
%23 = load ptr, ptr %4, align 8
%24 = call i64 @strlen(ptr noundef %23)
%25 = icmp ult i64 %22, %24
br i1 %25, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %21
br label %26
26: ; preds = %.lr.ph, %40
%27 = load ptr, ptr %3, align 8
%28 = load i64, ptr %8, align 8
%29 = getelementptr inbounds i8, ptr %27, i64 %28
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = load ptr, ptr %4, align 8
%33 = load i64, ptr %9, align 8
%34 = getelementptr inbounds i8, ptr %32, i64 %33
%35 = load i8, ptr %34, align 1
%36 = sext i8 %35 to i32
%37 = icmp eq i32 %31, %36
br i1 %37, label %38, label %39
38: ; preds = %26
store i8 1, ptr %7, align 1
br label %47
39: ; preds = %26
br label %40
40: ; preds = %39
%41 = load i64, ptr %9, align 8
%42 = add i64 %41, 1
store i64 %42, ptr %9, align 8
%43 = load i64, ptr %9, align 8
%44 = load ptr, ptr %4, align 8
%45 = call i64 @strlen(ptr noundef %44)
%46 = icmp ult i64 %43, %45
br i1 %46, label %26, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %40
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %21
br label %47
47: ; preds = %.loopexit, %38
%48 = load i8, ptr %7, align 1
%49 = icmp ne i8 %48, 0
br i1 %49, label %60, label %50
50: ; preds = %47
%51 = load ptr, ptr %3, align 8
%52 = load i64, ptr %8, align 8
%53 = getelementptr inbounds i8, ptr %51, i64 %52
%54 = load i8, ptr %53, align 1
%55 = load ptr, ptr %5, align 8
%56 = load i64, ptr %6, align 8
%57 = getelementptr inbounds i8, ptr %55, i64 %56
store i8 %54, ptr %57, align 1
%58 = load i64, ptr %6, align 8
%59 = add i64 %58, 1
store i64 %59, ptr %6, align 8
br label %60
60: ; preds = %50, %47
store i8 0, ptr %7, align 1
br label %61
61: ; preds = %60
%62 = load i64, ptr %8, align 8
%63 = add i64 %62, 1
store i64 %63, ptr %8, align 8
%64 = load i64, ptr %8, align 8
%65 = load ptr, ptr %3, align 8
%66 = call i64 @strlen(ptr noundef %65)
%67 = icmp ult i64 %64, %66
br i1 %67, label %21, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %61
br label %68
68: ; preds = %._crit_edge, %2
%69 = load ptr, ptr %5, align 8
%70 = load i64, ptr %6, align 8
%71 = getelementptr inbounds i8, ptr %69, i64 %70
store i8 0, ptr %71, align 1
%72 = load ptr, ptr %5, align 8
ret ptr %72
}
declare ptr @calloc(i64 noundef, i32 noundef) #1
declare i64 @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}
|
; ModuleID = '/tmp/tmpx92vxa3n.c'
source_filename = "/tmp/tmpx92vxa3n.c"
target datalayout = "e-m:e-p270: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/tmpx92vxa3n.c"
target datalayout = "e-m:e-p270: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/tmp4181gedt.c'
source_filename = "/tmp/tmp4181gedt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%dx+%dy=%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"%d: %d,%d,%d,%d\0A\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"%d*%d+%d*%d=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 240, ptr %2, align 4
store i32 46, ptr %3, align 4
store i32 1, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 1, ptr %7, align 4
%15 = load i32, ptr %2, align 4
store i32 %15, ptr %8, align 4
%16 = load i32, ptr %3, align 4
store i32 %16, ptr %9, align 4
%17 = load i32, ptr %2, align 4
%18 = load i32, ptr %3, align 4
%19 = load i32, ptr %2, align 4
%20 = load i32, ptr %3, align 4
%21 = call i32 @gcd(i32 noundef %19, i32 noundef %20)
%22 = call i32 (ptr, i32, i32, i32, ...) @printf(ptr noundef @.str, i32 noundef %17, i32 noundef %18, i32 noundef %21)
store i32 0, ptr %10, align 4
br label %23
23: ; preds = %0, %65
%24 = load i32, ptr %8, align 4
%25 = load i32, ptr %9, align 4
%26 = sdiv i32 %24, %25
store i32 %26, ptr %11, align 4
%27 = load i32, ptr %8, align 4
%28 = load i32, ptr %11, align 4
%29 = load i32, ptr %9, align 4
%30 = mul nsw i32 %28, %29
%31 = sub nsw i32 %27, %30
store i32 %31, ptr %12, align 4
%32 = load i32, ptr %4, align 4
%33 = load i32, ptr %11, align 4
%34 = load i32, ptr %5, align 4
%35 = mul nsw i32 %33, %34
%36 = sub nsw i32 %32, %35
store i32 %36, ptr %13, align 4
%37 = load i32, ptr %6, align 4
%38 = load i32, ptr %11, align 4
%39 = load i32, ptr %7, align 4
%40 = mul nsw i32 %38, %39
%41 = sub nsw i32 %37, %40
store i32 %41, ptr %14, align 4
%42 = load i32, ptr %10, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %10, align 4
%44 = load i32, ptr %10, align 4
%45 = load i32, ptr %11, align 4
%46 = load i32, ptr %12, align 4
%47 = load i32, ptr %13, align 4
%48 = load i32, ptr %14, align 4
%49 = call i32 (ptr, i32, i32, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %44, i32 noundef %45, i32 noundef %46, i32 noundef %47, i32 noundef %48)
%50 = load i32, ptr %9, align 4
store i32 %50, ptr %8, align 4
%51 = load i32, ptr %12, align 4
store i32 %51, ptr %9, align 4
%52 = load i32, ptr %5, align 4
store i32 %52, ptr %4, align 4
%53 = load i32, ptr %13, align 4
store i32 %53, ptr %5, align 4
%54 = load i32, ptr %7, align 4
store i32 %54, ptr %6, align 4
%55 = load i32, ptr %14, align 4
store i32 %55, ptr %7, align 4
%56 = load i32, ptr %9, align 4
%57 = icmp eq i32 %56, 0
br i1 %57, label %58, label %65
58: ; preds = %23
%59 = load i32, ptr %2, align 4
%60 = load i32, ptr %4, align 4
%61 = load i32, ptr %3, align 4
%62 = load i32, ptr %6, align 4
%63 = load i32, ptr %8, align 4
%64 = call i32 (ptr, i32, i32, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %59, i32 noundef %60, i32 noundef %61, i32 noundef %62, i32 noundef %63)
br label %66
65: ; preds = %23
br label %23
66: ; preds = %58
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ...) #1
declare i32 @gcd(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/tmp4181gedt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%dx+%dy=%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"%d: %d,%d,%d,%d\0A\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"%d*%d+%d*%d=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 240, ptr %2, align 4
store i32 46, ptr %3, align 4
store i32 1, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 1, ptr %7, align 4
%15 = load i32, ptr %2, align 4
store i32 %15, ptr %8, align 4
%16 = load i32, ptr %3, align 4
store i32 %16, ptr %9, align 4
%17 = load i32, ptr %2, align 4
%18 = load i32, ptr %3, align 4
%19 = load i32, ptr %2, align 4
%20 = load i32, ptr %3, align 4
%21 = call i32 @gcd(i32 noundef %19, i32 noundef %20)
%22 = call i32 (ptr, i32, i32, i32, ...) @printf(ptr noundef @.str, i32 noundef %17, i32 noundef %18, i32 noundef %21)
store i32 0, ptr %10, align 4
br label %23
23: ; preds = %23, %0
%24 = load i32, ptr %8, align 4
%25 = load i32, ptr %9, align 4
%26 = sdiv i32 %24, %25
store i32 %26, ptr %11, align 4
%27 = load i32, ptr %8, align 4
%28 = load i32, ptr %11, align 4
%29 = load i32, ptr %9, align 4
%30 = mul nsw i32 %28, %29
%31 = sub nsw i32 %27, %30
store i32 %31, ptr %12, align 4
%32 = load i32, ptr %4, align 4
%33 = load i32, ptr %11, align 4
%34 = load i32, ptr %5, align 4
%35 = mul nsw i32 %33, %34
%36 = sub nsw i32 %32, %35
store i32 %36, ptr %13, align 4
%37 = load i32, ptr %6, align 4
%38 = load i32, ptr %11, align 4
%39 = load i32, ptr %7, align 4
%40 = mul nsw i32 %38, %39
%41 = sub nsw i32 %37, %40
store i32 %41, ptr %14, align 4
%42 = load i32, ptr %10, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %10, align 4
%44 = load i32, ptr %10, align 4
%45 = load i32, ptr %11, align 4
%46 = load i32, ptr %12, align 4
%47 = load i32, ptr %13, align 4
%48 = load i32, ptr %14, align 4
%49 = call i32 (ptr, i32, i32, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %44, i32 noundef %45, i32 noundef %46, i32 noundef %47, i32 noundef %48)
%50 = load i32, ptr %9, align 4
store i32 %50, ptr %8, align 4
%51 = load i32, ptr %12, align 4
store i32 %51, ptr %9, align 4
%52 = load i32, ptr %5, align 4
store i32 %52, ptr %4, align 4
%53 = load i32, ptr %13, align 4
store i32 %53, ptr %5, align 4
%54 = load i32, ptr %7, align 4
store i32 %54, ptr %6, align 4
%55 = load i32, ptr %14, align 4
store i32 %55, ptr %7, align 4
%56 = load i32, ptr %9, align 4
%57 = icmp eq i32 %56, 0
br i1 %57, label %58, label %23
58: ; preds = %23
%59 = load i32, ptr %2, align 4
%60 = load i32, ptr %4, align 4
%61 = load i32, ptr %3, align 4
%62 = load i32, ptr %6, align 4
%63 = load i32, ptr %8, align 4
%64 = call i32 (ptr, i32, i32, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %59, i32 noundef %60, i32 noundef %61, i32 noundef %62, i32 noundef %63)
br label %65
65: ; preds = %58
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ...) #1
declare i32 @gcd(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/tmp3rensf5z.c'
source_filename = "/tmp/tmp3rensf5z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @HibernateTamperExtOscRecover() #0 {
store volatile i32 -1556769452, ptr inttoptr (i64 1074774880 to ptr), align 4
%1 = call i32 (...) @_HibernateWriteComplete()
%2 = load volatile i32, ptr inttoptr (i64 1074775044 to ptr), align 4
%3 = or i32 %2, 1
store volatile i32 %3, ptr inttoptr (i64 1074775044 to ptr), align 4
%4 = call i32 (...) @_HibernateWriteComplete()
store volatile i32 0, ptr inttoptr (i64 1074774880 to ptr), align 4
%5 = call i32 (...) @_HibernateWriteComplete()
ret void
}
declare i32 @_HibernateWriteComplete(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3rensf5z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @HibernateTamperExtOscRecover() #0 {
store volatile i32 -1556769452, ptr inttoptr (i64 1074774880 to ptr), align 4
%1 = call i32 (...) @_HibernateWriteComplete()
%2 = load volatile i32, ptr inttoptr (i64 1074775044 to ptr), align 4
%3 = or i32 %2, 1
store volatile i32 %3, ptr inttoptr (i64 1074775044 to ptr), align 4
%4 = call i32 (...) @_HibernateWriteComplete()
store volatile i32 0, ptr inttoptr (i64 1074774880 to ptr), align 4
%5 = call i32 (...) @_HibernateWriteComplete()
ret void
}
declare i32 @_HibernateWriteComplete(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpg8lho7ei.c'
source_filename = "/tmp/tmpg8lho7ei.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @device_close(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = call i32 @closeInputDevice(i32 noundef %4)
%6 = load i32, ptr %2, align 4
ret i32 %6
}
declare i32 @closeInputDevice(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/tmpg8lho7ei.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @device_close(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = call i32 @closeInputDevice(i32 noundef %4)
%6 = load i32, ptr %2, align 4
ret i32 %6
}
declare i32 @closeInputDevice(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/tmpiwh8_dra.c'
source_filename = "/tmp/tmpiwh8_dra.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %4
4: ; preds = %23, %0
%5 = call signext i8 (...) @getchar()
store i8 %5, ptr %3, align 1
%6 = load i8, ptr %3, align 1
%7 = sext i8 %6 to i32
switch i32 %7, label %21 [
i32 97, label %8
i32 100, label %8
i32 103, label %8
i32 106, label %8
i32 109, label %8
i32 112, label %8
i32 116, label %8
i32 119, label %8
i32 32, label %8
i32 98, label %11
i32 101, label %11
i32 104, label %11
i32 107, label %11
i32 110, label %11
i32 113, label %11
i32 117, label %11
i32 120, label %11
i32 99, label %14
i32 102, label %14
i32 105, label %14
i32 108, label %14
i32 111, label %14
i32 114, label %14
i32 118, label %14
i32 121, label %14
i32 115, label %17
i32 122, label %17
i32 10, label %20
]
8: ; preds = %4, %4, %4, %4, %4, %4, %4, %4, %4
%9 = load i32, ptr %2, align 4
%10 = add nsw i32 %9, 1
store i32 %10, ptr %2, align 4
br label %22
11: ; preds = %4, %4, %4, %4, %4, %4, %4, %4
%12 = load i32, ptr %2, align 4
%13 = add nsw i32 %12, 2
store i32 %13, ptr %2, align 4
br label %22
14: ; preds = %4, %4, %4, %4, %4, %4, %4, %4
%15 = load i32, ptr %2, align 4
%16 = add nsw i32 %15, 3
store i32 %16, ptr %2, align 4
br label %22
17: ; preds = %4, %4
%18 = load i32, ptr %2, align 4
%19 = add nsw i32 %18, 4
store i32 %19, ptr %2, align 4
br label %22
20: ; preds = %4
br label %22
21: ; preds = %4
store i32 -666, ptr %1, align 4
br label %30
22: ; preds = %20, %17, %14, %11, %8
br label %23
23: ; preds = %22
%24 = load i8, ptr %3, align 1
%25 = sext i8 %24 to i32
%26 = icmp ne i32 %25, 10
br i1 %26, label %4, label %27, !llvm.loop !6
27: ; preds = %23
%28 = load i32, ptr %2, align 4
%29 = call i32 @printf(ptr noundef @.str, i32 noundef %28)
store i32 0, ptr %1, align 4
br label %30
30: ; preds = %27, %21
%31 = load i32, ptr %1, align 4
ret i32 %31
}
declare signext i8 @getchar(...) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpiwh8_dra.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %4
4: ; preds = %23, %0
%5 = call signext i8 (...) @getchar()
store i8 %5, ptr %3, align 1
%6 = load i8, ptr %3, align 1
%7 = sext i8 %6 to i32
switch i32 %7, label %21 [
i32 97, label %8
i32 100, label %8
i32 103, label %8
i32 106, label %8
i32 109, label %8
i32 112, label %8
i32 116, label %8
i32 119, label %8
i32 32, label %8
i32 98, label %11
i32 101, label %11
i32 104, label %11
i32 107, label %11
i32 110, label %11
i32 113, label %11
i32 117, label %11
i32 120, label %11
i32 99, label %14
i32 102, label %14
i32 105, label %14
i32 108, label %14
i32 111, label %14
i32 114, label %14
i32 118, label %14
i32 121, label %14
i32 115, label %17
i32 122, label %17
i32 10, label %20
]
8: ; preds = %4, %4, %4, %4, %4, %4, %4, %4, %4
%9 = load i32, ptr %2, align 4
%10 = add nsw i32 %9, 1
store i32 %10, ptr %2, align 4
br label %22
11: ; preds = %4, %4, %4, %4, %4, %4, %4, %4
%12 = load i32, ptr %2, align 4
%13 = add nsw i32 %12, 2
store i32 %13, ptr %2, align 4
br label %22
14: ; preds = %4, %4, %4, %4, %4, %4, %4, %4
%15 = load i32, ptr %2, align 4
%16 = add nsw i32 %15, 3
store i32 %16, ptr %2, align 4
br label %22
17: ; preds = %4, %4
%18 = load i32, ptr %2, align 4
%19 = add nsw i32 %18, 4
store i32 %19, ptr %2, align 4
br label %22
20: ; preds = %4
br label %22
21: ; preds = %4
store i32 -666, ptr %1, align 4
br label %30
22: ; preds = %20, %17, %14, %11, %8
br label %23
23: ; preds = %22
%24 = load i8, ptr %3, align 1
%25 = sext i8 %24 to i32
%26 = icmp ne i32 %25, 10
br i1 %26, label %4, label %27, !llvm.loop !6
27: ; preds = %23
%28 = load i32, ptr %2, align 4
%29 = call i32 @printf(ptr noundef @.str, i32 noundef %28)
store i32 0, ptr %1, align 4
br label %30
30: ; preds = %27, %21
%31 = load i32, ptr %1, align 4
ret i32 %31
}
declare signext i8 @getchar(...) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpxuzuqob6.c'
source_filename = "/tmp/tmpxuzuqob6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @NewCharacterDeviceInSystem(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @LoadRegistre(i32 noundef 0, i32 noundef 5)
%4 = call i32 @LoadRegistre(i32 noundef 1, i32 noundef 5)
%5 = call i32 @LoadRegistre(i32 noundef 2, i32 noundef 0)
%6 = call i32 @LoadRegistre(i32 noundef 3, i32 noundef 0)
%7 = load i32, ptr %2, align 4
%8 = call i32 @LoadRegistre(i32 noundef 4, i32 noundef %7)
%9 = call i32 @ipc(i32 noundef 3, i32 noundef 5)
%10 = call i32 @StoreRegistre(i32 noundef 2)
ret i32 %10
}
declare i32 @LoadRegistre(i32 noundef, i32 noundef) #1
declare i32 @ipc(i32 noundef, i32 noundef) #1
declare i32 @StoreRegistre(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/tmpxuzuqob6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @NewCharacterDeviceInSystem(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @LoadRegistre(i32 noundef 0, i32 noundef 5)
%4 = call i32 @LoadRegistre(i32 noundef 1, i32 noundef 5)
%5 = call i32 @LoadRegistre(i32 noundef 2, i32 noundef 0)
%6 = call i32 @LoadRegistre(i32 noundef 3, i32 noundef 0)
%7 = load i32, ptr %2, align 4
%8 = call i32 @LoadRegistre(i32 noundef 4, i32 noundef %7)
%9 = call i32 @ipc(i32 noundef 3, i32 noundef 5)
%10 = call i32 @StoreRegistre(i32 noundef 2)
ret i32 %10
}
declare i32 @LoadRegistre(i32 noundef, i32 noundef) #1
declare i32 @ipc(i32 noundef, i32 noundef) #1
declare i32 @StoreRegistre(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/tmp3_sl0rax.c'
source_filename = "/tmp/tmp3_sl0rax.c"
target datalayout = "e-m:e-p270: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/tmp3_sl0rax.c"
target datalayout = "e-m:e-p270: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/tmp511wk44b.c'
source_filename = "/tmp/tmp511wk44b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @write_mode(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = call i32 (...) @write_float()
%7 = call i32 (...) @write_zero()
br label %11
8: ; preds = %1
%9 = call i32 (...) @write_zero()
%10 = call i32 (...) @write_float()
br label %11
11: ; preds = %8, %5
ret void
}
declare i32 @write_float(...) #1
declare i32 @write_zero(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp511wk44b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @write_mode(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = call i32 (...) @write_float()
%7 = call i32 (...) @write_zero()
br label %11
8: ; preds = %1
%9 = call i32 (...) @write_zero()
%10 = call i32 (...) @write_float()
br label %11
11: ; preds = %8, %5
ret void
}
declare i32 @write_float(...) #1
declare i32 @write_zero(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1eo9pe5b.c'
source_filename = "/tmp/tmp1eo9pe5b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_be32() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @get_be16()
%3 = shl i32 %2, 16
store i32 %3, ptr %1, align 4
%4 = call i32 (...) @get_be16()
%5 = load i32, ptr %1, align 4
%6 = or i32 %5, %4
store i32 %6, ptr %1, align 4
%7 = load i32, ptr %1, align 4
ret i32 %7
}
declare i32 @get_be16(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1eo9pe5b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_be32() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @get_be16()
%3 = shl i32 %2, 16
store i32 %3, ptr %1, align 4
%4 = call i32 (...) @get_be16()
%5 = load i32, ptr %1, align 4
%6 = or i32 %5, %4
store i32 %6, ptr %1, align 4
%7 = load i32, ptr %1, align 4
ret i32 %7
}
declare i32 @get_be16(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5l4c0h79.c'
source_filename = "/tmp/tmp5l4c0h79.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"OCL_KERNELS_PATH\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [36 x i8] c"Can not open kernel source file:%s\0A\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @oclGetProgramSrcFromFile(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca [512 x i8], align 16
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%10 = getelementptr inbounds [512 x i8], ptr %6, i64 0, i64 0
store i8 0, ptr %10, align 16
%11 = call ptr @getenv(ptr noundef @.str)
store ptr %11, ptr %7, align 8
%12 = load ptr, ptr %7, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %18
14: ; preds = %2
%15 = getelementptr inbounds [512 x i8], ptr %6, i64 0, i64 0
%16 = load ptr, ptr %7, align 8
%17 = call i32 @strncat(ptr noundef %15, ptr noundef %16, i32 noundef 511)
br label %18
18: ; preds = %14, %2
%19 = getelementptr inbounds [512 x i8], ptr %6, i64 0, i64 0
%20 = load ptr, ptr %3, align 8
%21 = call i32 @strncat(ptr noundef %19, ptr noundef %20, i32 noundef 511)
%22 = getelementptr inbounds [512 x i8], ptr %6, i64 0, i64 0
%23 = call ptr @fopen(ptr noundef %22, ptr noundef @.str.1)
store ptr %23, ptr %5, align 8
%24 = icmp eq ptr %23, null
br i1 %24, label %25, label %30
25: ; preds = %18
%26 = load i32, ptr @stderr, align 4
%27 = getelementptr inbounds [512 x i8], ptr %6, i64 0, i64 0
%28 = call i32 @fprintf(i32 noundef %26, ptr noundef @.str.2, ptr noundef %27)
%29 = call i32 @exit(i32 noundef 1) #3
unreachable
30: ; preds = %18
%31 = load ptr, ptr %5, align 8
%32 = load i32, ptr @SEEK_END, align 4
%33 = call i32 @fseek(ptr noundef %31, i32 noundef 0, i32 noundef %32)
%34 = load ptr, ptr %5, align 8
%35 = call i64 @ftell(ptr noundef %34)
store i64 %35, ptr %8, align 8
%36 = load i64, ptr %8, align 8
%37 = load ptr, ptr %4, align 8
store i64 %36, ptr %37, align 8
%38 = load ptr, ptr %5, align 8
%39 = load i32, ptr @SEEK_SET, align 4
%40 = call i32 @fseek(ptr noundef %38, i32 noundef 0, i32 noundef %39)
%41 = load i64, ptr %8, align 8
%42 = add i64 %41, 1
%43 = call ptr @malloc(i64 noundef %42)
store ptr %43, ptr %9, align 8
%44 = load ptr, ptr %9, align 8
%45 = load i64, ptr %8, align 8
%46 = load ptr, ptr %5, align 8
%47 = call i32 @fread(ptr noundef %44, i64 noundef %45, i32 noundef 1, ptr noundef %46)
%48 = load ptr, ptr %9, align 8
%49 = load i64, ptr %8, align 8
%50 = getelementptr inbounds i8, ptr %48, i64 %49
store i8 0, ptr %50, align 1
%51 = load ptr, ptr %5, align 8
%52 = call i32 @fclose(ptr noundef %51)
%53 = load ptr, ptr %9, align 8
ret ptr %53
}
declare ptr @getenv(ptr noundef) #1
declare i32 @strncat(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @fread(ptr noundef, i64 noundef, i32 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" }
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/tmp5l4c0h79.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"OCL_KERNELS_PATH\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [36 x i8] c"Can not open kernel source file:%s\0A\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @oclGetProgramSrcFromFile(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca [512 x i8], align 16
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%10 = getelementptr inbounds [512 x i8], ptr %6, i64 0, i64 0
store i8 0, ptr %10, align 16
%11 = call ptr @getenv(ptr noundef @.str)
store ptr %11, ptr %7, align 8
%12 = load ptr, ptr %7, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %18
14: ; preds = %2
%15 = getelementptr inbounds [512 x i8], ptr %6, i64 0, i64 0
%16 = load ptr, ptr %7, align 8
%17 = call i32 @strncat(ptr noundef %15, ptr noundef %16, i32 noundef 511)
br label %18
18: ; preds = %14, %2
%19 = getelementptr inbounds [512 x i8], ptr %6, i64 0, i64 0
%20 = load ptr, ptr %3, align 8
%21 = call i32 @strncat(ptr noundef %19, ptr noundef %20, i32 noundef 511)
%22 = getelementptr inbounds [512 x i8], ptr %6, i64 0, i64 0
%23 = call ptr @fopen(ptr noundef %22, ptr noundef @.str.1)
store ptr %23, ptr %5, align 8
%24 = icmp eq ptr %23, null
br i1 %24, label %25, label %30
25: ; preds = %18
%26 = load i32, ptr @stderr, align 4
%27 = getelementptr inbounds [512 x i8], ptr %6, i64 0, i64 0
%28 = call i32 @fprintf(i32 noundef %26, ptr noundef @.str.2, ptr noundef %27)
%29 = call i32 @exit(i32 noundef 1) #3
unreachable
30: ; preds = %18
%31 = load ptr, ptr %5, align 8
%32 = load i32, ptr @SEEK_END, align 4
%33 = call i32 @fseek(ptr noundef %31, i32 noundef 0, i32 noundef %32)
%34 = load ptr, ptr %5, align 8
%35 = call i64 @ftell(ptr noundef %34)
store i64 %35, ptr %8, align 8
%36 = load i64, ptr %8, align 8
%37 = load ptr, ptr %4, align 8
store i64 %36, ptr %37, align 8
%38 = load ptr, ptr %5, align 8
%39 = load i32, ptr @SEEK_SET, align 4
%40 = call i32 @fseek(ptr noundef %38, i32 noundef 0, i32 noundef %39)
%41 = load i64, ptr %8, align 8
%42 = add i64 %41, 1
%43 = call ptr @malloc(i64 noundef %42)
store ptr %43, ptr %9, align 8
%44 = load ptr, ptr %9, align 8
%45 = load i64, ptr %8, align 8
%46 = load ptr, ptr %5, align 8
%47 = call i32 @fread(ptr noundef %44, i64 noundef %45, i32 noundef 1, ptr noundef %46)
%48 = load ptr, ptr %9, align 8
%49 = load i64, ptr %8, align 8
%50 = getelementptr inbounds i8, ptr %48, i64 %49
store i8 0, ptr %50, align 1
%51 = load ptr, ptr %5, align 8
%52 = call i32 @fclose(ptr noundef %51)
%53 = load ptr, ptr %9, align 8
ret ptr %53
}
declare ptr @getenv(ptr noundef) #1
declare i32 @strncat(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @fread(ptr noundef, i64 noundef, i32 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" }
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/tmp7rpfrfq2.c'
source_filename = "/tmp/tmp7rpfrfq2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fpsr64_getter() #0 {
%1 = alloca i64, align 8
%2 = call i64 (...) @__builtin_aarch64_get_fpsr64()
store i64 %2, ptr %1, align 8
ret void
}
declare i64 @__builtin_aarch64_get_fpsr64(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7rpfrfq2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fpsr64_getter() #0 {
%1 = alloca i64, align 8
%2 = call i64 (...) @__builtin_aarch64_get_fpsr64()
store i64 %2, ptr %1, align 8
ret void
}
declare i64 @__builtin_aarch64_get_fpsr64(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpf6d0chpw.c'
source_filename = "/tmp/tmpf6d0chpw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"### RPi Car Stop ###\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @rpi_car_stop() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf6d0chpw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"### RPi Car Stop ###\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @rpi_car_stop() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppbqbmpur.c'
source_filename = "/tmp/tmppbqbmpur.c"
target datalayout = "e-m:e-p270: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/tmppbqbmpur.c"
target datalayout = "e-m:e-p270: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/tmp0lhdkt57.c'
source_filename = "/tmp/tmp0lhdkt57.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sigurg_handler(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @exit(i32 noundef 0) #2
unreachable
}
; Function Attrs: noreturn
declare i32 @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 = { 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 = { 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/tmp0lhdkt57.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sigurg_handler(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @exit(i32 noundef 0) #2
unreachable
}
; Function Attrs: noreturn
declare i32 @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 = { 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 = { 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/tmpt_bzzbdd.c'
source_filename = "/tmp/tmpt_bzzbdd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@_sbrk.end_of_heap = internal global ptr null, align 8
@end = external global i8, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @_sbrk(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
%6 = load ptr, ptr @_sbrk.end_of_heap, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %9
8: ; preds = %1
store ptr @end, ptr @_sbrk.end_of_heap, align 8
br label %9
9: ; preds = %8, %1
%10 = load ptr, ptr @_sbrk.end_of_heap, align 8
%11 = load i32, ptr %3, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i8, ptr %10, i64 %12
%14 = load ptr, ptr %4, align 8
%15 = icmp ugt ptr %13, %14
br i1 %15, label %16, label %17
16: ; preds = %9
store i32 -1, ptr %2, align 4
br label %25
17: ; preds = %9
%18 = load ptr, ptr @_sbrk.end_of_heap, align 8
store ptr %18, ptr %5, align 8
%19 = load i32, ptr %3, align 4
%20 = load ptr, ptr @_sbrk.end_of_heap, align 8
%21 = sext i32 %19 to i64
%22 = getelementptr inbounds i8, ptr %20, i64 %21
store ptr %22, ptr @_sbrk.end_of_heap, align 8
%23 = load ptr, ptr %5, align 8
%24 = ptrtoint ptr %23 to i32
store i32 %24, ptr %2, align 4
br label %25
25: ; preds = %17, %16
%26 = load i32, ptr %2, align 4
ret i32 %26
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt_bzzbdd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@_sbrk.end_of_heap = internal global ptr null, align 8
@end = external global i8, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @_sbrk(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
%6 = load ptr, ptr @_sbrk.end_of_heap, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %9
8: ; preds = %1
store ptr @end, ptr @_sbrk.end_of_heap, align 8
br label %9
9: ; preds = %8, %1
%10 = load ptr, ptr @_sbrk.end_of_heap, align 8
%11 = load i32, ptr %3, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i8, ptr %10, i64 %12
%14 = load ptr, ptr %4, align 8
%15 = icmp ugt ptr %13, %14
br i1 %15, label %16, label %17
16: ; preds = %9
store i32 -1, ptr %2, align 4
br label %25
17: ; preds = %9
%18 = load ptr, ptr @_sbrk.end_of_heap, align 8
store ptr %18, ptr %5, align 8
%19 = load i32, ptr %3, align 4
%20 = load ptr, ptr @_sbrk.end_of_heap, align 8
%21 = sext i32 %19 to i64
%22 = getelementptr inbounds i8, ptr %20, i64 %21
store ptr %22, ptr @_sbrk.end_of_heap, align 8
%23 = load ptr, ptr %5, align 8
%24 = ptrtoint ptr %23 to i32
store i32 %24, ptr %2, align 4
br label %25
25: ; preds = %17, %16
%26 = load i32, ptr %2, align 4
ret i32 %26
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7remw_8w.c'
source_filename = "/tmp/tmp7remw_8w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bar(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
ret ptr %3
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7remw_8w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bar(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
ret ptr %3
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4f0jzayj.c'
source_filename = "/tmp/tmp4f0jzayj.c"
target datalayout = "e-m:e-p270: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/tmp4f0jzayj.c"
target datalayout = "e-m:e-p270: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/tmpk5arytbi.c'
source_filename = "/tmp/tmpk5arytbi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i64, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @milli_time_d() #0 {
%1 = alloca %struct.timeval, align 8
%2 = alloca i32, align 4
%3 = call i32 @gettimeofday(ptr noundef %1, ptr noundef null)
store i32 %3, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp ne i32 %4, 0
%6 = xor i1 %5, true
%7 = zext i1 %6 to i32
%8 = call i32 @assert(i32 noundef %7)
%9 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 1
%10 = load i64, ptr %9, align 8
%11 = sitofp i64 %10 to double
%12 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 0
%13 = load i64, ptr %12, align 8
%14 = sitofp i64 %13 to double
%15 = call double @llvm.fmuladd.f64(double %14, double 0x3EB0C6F7A0B5ED8D, double %11)
ret double %15
}
declare i32 @gettimeofday(ptr noundef, ptr noundef) #1
declare i32 @assert(i32 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/tmpk5arytbi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i64, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @milli_time_d() #0 {
%1 = alloca %struct.timeval, align 8
%2 = alloca i32, align 4
%3 = call i32 @gettimeofday(ptr noundef %1, ptr noundef null)
store i32 %3, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp ne i32 %4, 0
%6 = xor i1 %5, true
%7 = zext i1 %6 to i32
%8 = call i32 @assert(i32 noundef %7)
%9 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 1
%10 = load i64, ptr %9, align 8
%11 = sitofp i64 %10 to double
%12 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 0
%13 = load i64, ptr %12, align 8
%14 = sitofp i64 %13 to double
%15 = call double @llvm.fmuladd.f64(double %14, double 0x3EB0C6F7A0B5ED8D, double %11)
ret double %15
}
declare i32 @gettimeofday(ptr noundef, ptr noundef) #1
declare i32 @assert(i32 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/tmp265ykn86.c'
source_filename = "/tmp/tmp265ykn86.c"
target datalayout = "e-m:e-p270: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/tmp265ykn86.c"
target datalayout = "e-m:e-p270: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/tmpzwpqd0zb.c'
source_filename = "/tmp/tmpzwpqd0zb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @matrix_set_layer(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
store i32 0, ptr %11, align 4
%14 = load i32, ptr %7, align 4
store i32 %14, ptr %12, align 4
%15 = load i32, ptr %6, align 4
%16 = sub i32 %15, 1
%17 = load i32, ptr %7, align 4
%18 = sub i32 %16, %17
store i32 %18, ptr %13, align 4
%19 = load ptr, ptr %5, align 8
%20 = icmp ne ptr %19, null
%21 = zext i1 %20 to i32
%22 = call i32 @assert(i32 noundef %21)
%23 = load ptr, ptr %8, align 8
%24 = icmp ne ptr %23, null
%25 = zext i1 %24 to i32
%26 = call i32 @assert(i32 noundef %25)
%27 = load i32, ptr %7, align 4
%28 = load i32, ptr %6, align 4
%29 = udiv i32 %28, 2
%30 = icmp ult i32 %27, %29
%31 = zext i1 %30 to i32
%32 = call i32 @assert(i32 noundef %31)
%33 = load i32, ptr %12, align 4
store i32 %33, ptr %9, align 4
br label %34
34: ; preds = %102, %4
%35 = load i32, ptr %9, align 4
%36 = load i32, ptr %13, align 4
%37 = icmp ult i32 %35, %36
br i1 %37, label %38, label %105
38: ; preds = %34
%39 = load i32, ptr %9, align 4
%40 = load i32, ptr %12, align 4
%41 = sub i32 %39, %40
store i32 %41, ptr %10, align 4
%42 = load ptr, ptr %8, align 8
%43 = load i32, ptr %11, align 4
%44 = add i32 %43, 1
store i32 %44, ptr %11, align 4
%45 = zext i32 %43 to i64
%46 = getelementptr inbounds i8, ptr %42, i64 %45
%47 = load i8, ptr %46, align 1
%48 = load ptr, ptr %5, align 8
%49 = load i32, ptr %12, align 4
%50 = load i32, ptr %6, align 4
%51 = mul i32 %49, %50
%52 = load i32, ptr %9, align 4
%53 = add i32 %51, %52
%54 = zext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %48, i64 %54
store i8 %47, ptr %55, align 1
%56 = load ptr, ptr %8, align 8
%57 = load i32, ptr %11, align 4
%58 = add i32 %57, 1
store i32 %58, ptr %11, align 4
%59 = zext i32 %57 to i64
%60 = getelementptr inbounds i8, ptr %56, i64 %59
%61 = load i8, ptr %60, align 1
%62 = load ptr, ptr %5, align 8
%63 = load i32, ptr %9, align 4
%64 = load i32, ptr %6, align 4
%65 = mul i32 %63, %64
%66 = load i32, ptr %13, align 4
%67 = add i32 %65, %66
%68 = zext i32 %67 to i64
%69 = getelementptr inbounds i8, ptr %62, i64 %68
store i8 %61, ptr %69, align 1
%70 = load ptr, ptr %8, align 8
%71 = load i32, ptr %11, align 4
%72 = add i32 %71, 1
store i32 %72, ptr %11, align 4
%73 = zext i32 %71 to i64
%74 = getelementptr inbounds i8, ptr %70, i64 %73
%75 = load i8, ptr %74, align 1
%76 = load ptr, ptr %5, align 8
%77 = load i32, ptr %13, align 4
%78 = load i32, ptr %6, align 4
%79 = mul i32 %77, %78
%80 = load i32, ptr %13, align 4
%81 = add i32 %79, %80
%82 = load i32, ptr %10, align 4
%83 = sub i32 %81, %82
%84 = zext i32 %83 to i64
%85 = getelementptr inbounds i8, ptr %76, i64 %84
store i8 %75, ptr %85, align 1
%86 = load ptr, ptr %8, align 8
%87 = load i32, ptr %11, align 4
%88 = add i32 %87, 1
store i32 %88, ptr %11, align 4
%89 = zext i32 %87 to i64
%90 = getelementptr inbounds i8, ptr %86, i64 %89
%91 = load i8, ptr %90, align 1
%92 = load ptr, ptr %5, align 8
%93 = load i32, ptr %13, align 4
%94 = load i32, ptr %10, align 4
%95 = sub i32 %93, %94
%96 = load i32, ptr %6, align 4
%97 = mul i32 %95, %96
%98 = load i32, ptr %12, align 4
%99 = add i32 %97, %98
%100 = zext i32 %99 to i64
%101 = getelementptr inbounds i8, ptr %92, i64 %100
store i8 %91, ptr %101, align 1
br label %102
102: ; preds = %38
%103 = load i32, ptr %9, align 4
%104 = add i32 %103, 1
store i32 %104, ptr %9, align 4
br label %34, !llvm.loop !6
105: ; preds = %34
ret void
}
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzwpqd0zb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @matrix_set_layer(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
store i32 0, ptr %11, align 4
%14 = load i32, ptr %7, align 4
store i32 %14, ptr %12, align 4
%15 = load i32, ptr %6, align 4
%16 = sub i32 %15, 1
%17 = load i32, ptr %7, align 4
%18 = sub i32 %16, %17
store i32 %18, ptr %13, align 4
%19 = load ptr, ptr %5, align 8
%20 = icmp ne ptr %19, null
%21 = zext i1 %20 to i32
%22 = call i32 @assert(i32 noundef %21)
%23 = load ptr, ptr %8, align 8
%24 = icmp ne ptr %23, null
%25 = zext i1 %24 to i32
%26 = call i32 @assert(i32 noundef %25)
%27 = load i32, ptr %7, align 4
%28 = load i32, ptr %6, align 4
%29 = udiv i32 %28, 2
%30 = icmp ult i32 %27, %29
%31 = zext i1 %30 to i32
%32 = call i32 @assert(i32 noundef %31)
%33 = load i32, ptr %12, align 4
store i32 %33, ptr %9, align 4
%34 = load i32, ptr %9, align 4
%35 = load i32, ptr %13, align 4
%36 = icmp ult i32 %34, %35
br i1 %36, label %.lr.ph, label %107
.lr.ph: ; preds = %4
br label %37
37: ; preds = %.lr.ph, %101
%38 = load i32, ptr %9, align 4
%39 = load i32, ptr %12, align 4
%40 = sub i32 %38, %39
store i32 %40, ptr %10, align 4
%41 = load ptr, ptr %8, align 8
%42 = load i32, ptr %11, align 4
%43 = add i32 %42, 1
store i32 %43, ptr %11, align 4
%44 = zext i32 %42 to i64
%45 = getelementptr inbounds i8, ptr %41, i64 %44
%46 = load i8, ptr %45, align 1
%47 = load ptr, ptr %5, align 8
%48 = load i32, ptr %12, align 4
%49 = load i32, ptr %6, align 4
%50 = mul i32 %48, %49
%51 = load i32, ptr %9, align 4
%52 = add i32 %50, %51
%53 = zext i32 %52 to i64
%54 = getelementptr inbounds i8, ptr %47, i64 %53
store i8 %46, ptr %54, align 1
%55 = load ptr, ptr %8, align 8
%56 = load i32, ptr %11, align 4
%57 = add i32 %56, 1
store i32 %57, ptr %11, align 4
%58 = zext i32 %56 to i64
%59 = getelementptr inbounds i8, ptr %55, i64 %58
%60 = load i8, ptr %59, align 1
%61 = load ptr, ptr %5, align 8
%62 = load i32, ptr %9, align 4
%63 = load i32, ptr %6, align 4
%64 = mul i32 %62, %63
%65 = load i32, ptr %13, align 4
%66 = add i32 %64, %65
%67 = zext i32 %66 to i64
%68 = getelementptr inbounds i8, ptr %61, i64 %67
store i8 %60, ptr %68, align 1
%69 = load ptr, ptr %8, align 8
%70 = load i32, ptr %11, align 4
%71 = add i32 %70, 1
store i32 %71, ptr %11, align 4
%72 = zext i32 %70 to i64
%73 = getelementptr inbounds i8, ptr %69, i64 %72
%74 = load i8, ptr %73, align 1
%75 = load ptr, ptr %5, align 8
%76 = load i32, ptr %13, align 4
%77 = load i32, ptr %6, align 4
%78 = mul i32 %76, %77
%79 = load i32, ptr %13, align 4
%80 = add i32 %78, %79
%81 = load i32, ptr %10, align 4
%82 = sub i32 %80, %81
%83 = zext i32 %82 to i64
%84 = getelementptr inbounds i8, ptr %75, i64 %83
store i8 %74, ptr %84, align 1
%85 = load ptr, ptr %8, align 8
%86 = load i32, ptr %11, align 4
%87 = add i32 %86, 1
store i32 %87, ptr %11, align 4
%88 = zext i32 %86 to i64
%89 = getelementptr inbounds i8, ptr %85, i64 %88
%90 = load i8, ptr %89, align 1
%91 = load ptr, ptr %5, align 8
%92 = load i32, ptr %13, align 4
%93 = load i32, ptr %10, align 4
%94 = sub i32 %92, %93
%95 = load i32, ptr %6, align 4
%96 = mul i32 %94, %95
%97 = load i32, ptr %12, align 4
%98 = add i32 %96, %97
%99 = zext i32 %98 to i64
%100 = getelementptr inbounds i8, ptr %91, i64 %99
store i8 %90, ptr %100, align 1
br label %101
101: ; preds = %37
%102 = load i32, ptr %9, align 4
%103 = add i32 %102, 1
store i32 %103, ptr %9, align 4
%104 = load i32, ptr %9, align 4
%105 = load i32, ptr %13, align 4
%106 = icmp ult i32 %104, %105
br i1 %106, label %37, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %101
br label %107
107: ; preds = %._crit_edge, %4
ret void
}
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpa64seyqj.c'
source_filename = "/tmp/tmpa64seyqj.c"
target datalayout = "e-m:e-p270: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/tmpa64seyqj.c"
target datalayout = "e-m:e-p270: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/tmpojnpk_5p.c'
source_filename = "/tmp/tmpojnpk_5p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"path:ray_depth\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @microfacet_roughness(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca i32, align 4
store float %0, ptr %4, align 4
store float %1, ptr %5, align 4
%7 = load float, ptr %5, align 4
%8 = fpext float %7 to double
%9 = fcmp ogt double %8, 1.000000e+00
br i1 %9, label %10, label %23
10: ; preds = %2
%11 = load i32, ptr %6, align 4
%12 = call i32 @getattribute(ptr noundef @.str, i32 noundef %11)
%13 = load i32, ptr %6, align 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %22
15: ; preds = %10
%16 = load float, ptr %4, align 4
%17 = load float, ptr %5, align 4
%18 = fmul float %16, %17
%19 = load i32, ptr %6, align 4
%20 = sitofp i32 %19 to float
%21 = fmul float %18, %20
store float %21, ptr %3, align 4
br label %25
22: ; preds = %10
br label %23
23: ; preds = %22, %2
%24 = load float, ptr %4, align 4
store float %24, ptr %3, align 4
br label %25
25: ; preds = %23, %15
%26 = load float, ptr %3, align 4
ret float %26
}
declare i32 @getattribute(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/tmpojnpk_5p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"path:ray_depth\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @microfacet_roughness(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca i32, align 4
store float %0, ptr %4, align 4
store float %1, ptr %5, align 4
%7 = load float, ptr %5, align 4
%8 = fpext float %7 to double
%9 = fcmp ogt double %8, 1.000000e+00
br i1 %9, label %10, label %23
10: ; preds = %2
%11 = load i32, ptr %6, align 4
%12 = call i32 @getattribute(ptr noundef @.str, i32 noundef %11)
%13 = load i32, ptr %6, align 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %22
15: ; preds = %10
%16 = load float, ptr %4, align 4
%17 = load float, ptr %5, align 4
%18 = fmul float %16, %17
%19 = load i32, ptr %6, align 4
%20 = sitofp i32 %19 to float
%21 = fmul float %18, %20
store float %21, ptr %3, align 4
br label %25
22: ; preds = %10
br label %23
23: ; preds = %22, %2
%24 = load float, ptr %4, align 4
store float %24, ptr %3, align 4
br label %25
25: ; preds = %23, %15
%26 = load float, ptr %3, align 4
ret float %26
}
declare i32 @getattribute(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/tmpjpn03nic.c'
source_filename = "/tmp/tmpjpn03nic.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"My process ID is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (...) @getpid()
store i32 %3, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
%6 = call i32 @sleep(i32 noundef 30)
ret i32 0
}
declare i32 @getpid(...) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @sleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjpn03nic.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"My process ID is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (...) @getpid()
store i32 %3, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
%6 = call i32 @sleep(i32 noundef 30)
ret i32 0
}
declare i32 @getpid(...) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @sleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzcl8_ydz.c'
source_filename = "/tmp/tmpzcl8_ydz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"w\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [28 x i8] c"can't open output file: %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [20 x i8] c"can't create pipe!\0A\00", align 1
@.str.4 = private unnamed_addr constant [28 x i8] c"can't fork. bring a spoon.\0A\00", align 1
@.str.5 = private unnamed_addr constant [42 x i8] c"failed to setup I/O for the interpreter.\0A\00", align 1
@.str.6 = private unnamed_addr constant [25 x i8] c"failed to spawn: %s: %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @prepare_output(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca [2 x i32], align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr null, ptr %8, align 8
store i32 0, ptr %13, align 4
store i32 1, ptr %14, align 4
%15 = load ptr, ptr %6, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %17, label %31
17: ; preds = %3
%18 = load ptr, ptr %6, align 8
%19 = call i32 @streq(ptr noundef %18, ptr noundef @.str)
%20 = icmp ne i32 %19, 0
br i1 %20, label %31, label %21
21: ; preds = %17
%22 = load ptr, ptr %6, align 8
%23 = call ptr @fopen(ptr noundef %22, ptr noundef @.str.1)
store ptr %23, ptr %8, align 8
%24 = load ptr, ptr %8, align 8
%25 = icmp ne ptr %24, null
br i1 %25, label %30, label %26
26: ; preds = %21
%27 = load i32, ptr @stderr, align 4
%28 = load ptr, ptr %6, align 8
%29 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %27, ptr noundef @.str.2, ptr noundef %28)
store ptr null, ptr %4, align 8
br label %117
30: ; preds = %21
br label %31
31: ; preds = %30, %17, %3
%32 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
%33 = call i32 @pipe(ptr noundef %32)
store i32 %33, ptr %11, align 4
%34 = load i32, ptr %11, align 4
%35 = icmp eq i32 %34, -1
br i1 %35, label %36, label %39
36: ; preds = %31
%37 = load i32, ptr @stderr, align 4
%38 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %37, ptr noundef @.str.3)
store ptr null, ptr %4, align 8
br label %117
39: ; preds = %31
%40 = call i32 (...) @fork()
store i32 %40, ptr %10, align 4
%41 = load i32, ptr %10, align 4
%42 = icmp eq i32 %41, -1
br i1 %42, label %43, label %46
43: ; preds = %39
%44 = load i32, ptr @stderr, align 4
%45 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %44, ptr noundef @.str.4)
store ptr null, ptr %4, align 8
br label %117
46: ; preds = %39
%47 = load i32, ptr %10, align 4
%48 = icmp ne i32 %47, 0
br i1 %48, label %49, label %68
49: ; preds = %46
%50 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
%51 = load i32, ptr %50, align 4
%52 = call i32 @close(i32 noundef %51)
%53 = load ptr, ptr %8, align 8
%54 = icmp ne ptr %53, null
br i1 %54, label %55, label %58
55: ; preds = %49
%56 = load ptr, ptr %8, align 8
%57 = call i32 @fclose(ptr noundef %56)
br label %58
58: ; preds = %55, %49
%59 = load ptr, ptr %7, align 8
%60 = icmp ne ptr %59, null
br i1 %60, label %61, label %64
61: ; preds = %58
%62 = load i32, ptr %10, align 4
%63 = load ptr, ptr %7, align 8
store i32 %62, ptr %63, align 4
br label %64
64: ; preds = %61, %58
%65 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 1
%66 = load i32, ptr %65, align 4
%67 = call ptr @fdopen(i32 noundef %66, ptr noundef @.str.1)
store ptr %67, ptr %4, align 8
br label %117
68: ; preds = %46
%69 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 1
%70 = load i32, ptr %69, align 4
%71 = call i32 @close(i32 noundef %70)
%72 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
%73 = load i32, ptr %72, align 4
%74 = call i32 @dup2(i32 noundef %73, i32 noundef 0)
store i32 %74, ptr %11, align 4
%75 = load ptr, ptr %8, align 8
%76 = icmp ne ptr %75, null
br i1 %76, label %77, label %81
77: ; preds = %68
%78 = load ptr, ptr %8, align 8
%79 = call i32 @fileno(ptr noundef %78)
%80 = call i32 @dup2(i32 noundef %79, i32 noundef 1)
br label %82
81: ; preds = %68
br label %82
82: ; preds = %81, %77
%83 = phi i32 [ %80, %77 ], [ 0, %81 ]
store i32 %83, ptr %12, align 4
%84 = load i32, ptr %11, align 4
%85 = icmp eq i32 %84, -1
br i1 %85, label %89, label %86
86: ; preds = %82
%87 = load i32, ptr %12, align 4
%88 = icmp eq i32 %87, -1
br i1 %88, label %89, label %93
89: ; preds = %86, %82
%90 = load i32, ptr @stderr, align 4
%91 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %90, ptr noundef @.str.5)
%92 = call i32 @exit(i32 noundef 1) #3
unreachable
93: ; preds = %86
%94 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
%95 = load i32, ptr %94, align 4
%96 = call i32 @close(i32 noundef %95)
%97 = load ptr, ptr %8, align 8
%98 = icmp ne ptr %97, null
br i1 %98, label %99, label %102
99: ; preds = %93
%100 = load ptr, ptr %8, align 8
%101 = call i32 @fclose(ptr noundef %100)
br label %102
102: ; preds = %99, %93
%103 = load ptr, ptr %5, align 8
%104 = getelementptr inbounds ptr, ptr %103, i64 0
%105 = load ptr, ptr %104, align 8
%106 = load ptr, ptr %5, align 8
%107 = getelementptr inbounds ptr, ptr %106, i64 1
%108 = call i32 @execv(ptr noundef %105, ptr noundef %107)
store i32 %108, ptr %11, align 4
%109 = load i32, ptr @stderr, align 4
%110 = load ptr, ptr %5, align 8
%111 = getelementptr inbounds ptr, ptr %110, i64 1
%112 = load ptr, ptr %111, align 8
%113 = load i32, ptr @errno, align 4
%114 = call ptr @strerror(i32 noundef %113)
%115 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %109, ptr noundef @.str.6, ptr noundef %112, ptr noundef %114)
%116 = call i32 @exit(i32 noundef 1) #3
unreachable
117: ; preds = %64, %43, %36, %26
%118 = load ptr, ptr %4, align 8
ret ptr %118
}
declare i32 @streq(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @pipe(ptr noundef) #1
declare i32 @fork(...) #1
declare i32 @close(i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
declare ptr @fdopen(i32 noundef, ptr noundef) #1
declare i32 @dup2(i32 noundef, i32 noundef) #1
declare i32 @fileno(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @execv(ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzcl8_ydz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"w\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [28 x i8] c"can't open output file: %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [20 x i8] c"can't create pipe!\0A\00", align 1
@.str.4 = private unnamed_addr constant [28 x i8] c"can't fork. bring a spoon.\0A\00", align 1
@.str.5 = private unnamed_addr constant [42 x i8] c"failed to setup I/O for the interpreter.\0A\00", align 1
@.str.6 = private unnamed_addr constant [25 x i8] c"failed to spawn: %s: %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @prepare_output(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca [2 x i32], align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr null, ptr %8, align 8
store i32 0, ptr %13, align 4
store i32 1, ptr %14, align 4
%15 = load ptr, ptr %6, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %17, label %31
17: ; preds = %3
%18 = load ptr, ptr %6, align 8
%19 = call i32 @streq(ptr noundef %18, ptr noundef @.str)
%20 = icmp ne i32 %19, 0
br i1 %20, label %31, label %21
21: ; preds = %17
%22 = load ptr, ptr %6, align 8
%23 = call ptr @fopen(ptr noundef %22, ptr noundef @.str.1)
store ptr %23, ptr %8, align 8
%24 = load ptr, ptr %8, align 8
%25 = icmp ne ptr %24, null
br i1 %25, label %30, label %26
26: ; preds = %21
%27 = load i32, ptr @stderr, align 4
%28 = load ptr, ptr %6, align 8
%29 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %27, ptr noundef @.str.2, ptr noundef %28)
store ptr null, ptr %4, align 8
br label %117
30: ; preds = %21
br label %31
31: ; preds = %30, %17, %3
%32 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
%33 = call i32 @pipe(ptr noundef %32)
store i32 %33, ptr %11, align 4
%34 = load i32, ptr %11, align 4
%35 = icmp eq i32 %34, -1
br i1 %35, label %36, label %39
36: ; preds = %31
%37 = load i32, ptr @stderr, align 4
%38 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %37, ptr noundef @.str.3)
store ptr null, ptr %4, align 8
br label %117
39: ; preds = %31
%40 = call i32 (...) @fork()
store i32 %40, ptr %10, align 4
%41 = load i32, ptr %10, align 4
%42 = icmp eq i32 %41, -1
br i1 %42, label %43, label %46
43: ; preds = %39
%44 = load i32, ptr @stderr, align 4
%45 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %44, ptr noundef @.str.4)
store ptr null, ptr %4, align 8
br label %117
46: ; preds = %39
%47 = load i32, ptr %10, align 4
%48 = icmp ne i32 %47, 0
br i1 %48, label %49, label %68
49: ; preds = %46
%50 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
%51 = load i32, ptr %50, align 4
%52 = call i32 @close(i32 noundef %51)
%53 = load ptr, ptr %8, align 8
%54 = icmp ne ptr %53, null
br i1 %54, label %55, label %58
55: ; preds = %49
%56 = load ptr, ptr %8, align 8
%57 = call i32 @fclose(ptr noundef %56)
br label %58
58: ; preds = %55, %49
%59 = load ptr, ptr %7, align 8
%60 = icmp ne ptr %59, null
br i1 %60, label %61, label %64
61: ; preds = %58
%62 = load i32, ptr %10, align 4
%63 = load ptr, ptr %7, align 8
store i32 %62, ptr %63, align 4
br label %64
64: ; preds = %61, %58
%65 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 1
%66 = load i32, ptr %65, align 4
%67 = call ptr @fdopen(i32 noundef %66, ptr noundef @.str.1)
store ptr %67, ptr %4, align 8
br label %117
68: ; preds = %46
%69 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 1
%70 = load i32, ptr %69, align 4
%71 = call i32 @close(i32 noundef %70)
%72 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
%73 = load i32, ptr %72, align 4
%74 = call i32 @dup2(i32 noundef %73, i32 noundef 0)
store i32 %74, ptr %11, align 4
%75 = load ptr, ptr %8, align 8
%76 = icmp ne ptr %75, null
br i1 %76, label %77, label %81
77: ; preds = %68
%78 = load ptr, ptr %8, align 8
%79 = call i32 @fileno(ptr noundef %78)
%80 = call i32 @dup2(i32 noundef %79, i32 noundef 1)
br label %82
81: ; preds = %68
br label %82
82: ; preds = %81, %77
%83 = phi i32 [ %80, %77 ], [ 0, %81 ]
store i32 %83, ptr %12, align 4
%84 = load i32, ptr %11, align 4
%85 = icmp eq i32 %84, -1
br i1 %85, label %89, label %86
86: ; preds = %82
%87 = load i32, ptr %12, align 4
%88 = icmp eq i32 %87, -1
br i1 %88, label %89, label %93
89: ; preds = %86, %82
%90 = load i32, ptr @stderr, align 4
%91 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %90, ptr noundef @.str.5)
%92 = call i32 @exit(i32 noundef 1) #3
unreachable
93: ; preds = %86
%94 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
%95 = load i32, ptr %94, align 4
%96 = call i32 @close(i32 noundef %95)
%97 = load ptr, ptr %8, align 8
%98 = icmp ne ptr %97, null
br i1 %98, label %99, label %102
99: ; preds = %93
%100 = load ptr, ptr %8, align 8
%101 = call i32 @fclose(ptr noundef %100)
br label %102
102: ; preds = %99, %93
%103 = load ptr, ptr %5, align 8
%104 = getelementptr inbounds ptr, ptr %103, i64 0
%105 = load ptr, ptr %104, align 8
%106 = load ptr, ptr %5, align 8
%107 = getelementptr inbounds ptr, ptr %106, i64 1
%108 = call i32 @execv(ptr noundef %105, ptr noundef %107)
store i32 %108, ptr %11, align 4
%109 = load i32, ptr @stderr, align 4
%110 = load ptr, ptr %5, align 8
%111 = getelementptr inbounds ptr, ptr %110, i64 1
%112 = load ptr, ptr %111, align 8
%113 = load i32, ptr @errno, align 4
%114 = call ptr @strerror(i32 noundef %113)
%115 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %109, ptr noundef @.str.6, ptr noundef %112, ptr noundef %114)
%116 = call i32 @exit(i32 noundef 1) #3
unreachable
117: ; preds = %64, %43, %36, %26
%118 = load ptr, ptr %4, align 8
ret ptr %118
}
declare i32 @streq(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @pipe(ptr noundef) #1
declare i32 @fork(...) #1
declare i32 @close(i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
declare ptr @fdopen(i32 noundef, ptr noundef) #1
declare i32 @dup2(i32 noundef, i32 noundef) #1
declare i32 @fileno(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @execv(ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.