llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
|---|---|
; ModuleID = '/tmp/tmpzzks5gy8.c'
source_filename = "/tmp/tmpzzks5gy8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %4
4: ; preds = %18, %0
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
br label %6
6: ; preds = %4
%7 = load i32, ptr %2, align 4
%8 = icmp sgt i32 0, %7
br i1 %8, label %18, label %9
9: ; preds = %6
%10 = load i32, ptr %2, align 4
%11 = icmp sgt i32 %10, 7
br i1 %11, label %18, label %12
12: ; preds = %9
%13 = load i32, ptr %3, align 4
%14 = icmp sgt i32 0, %13
br i1 %14, label %18, label %15
15: ; preds = %12
%16 = load i32, ptr %3, align 4
%17 = icmp sgt i32 %16, 200
br label %18
18: ; preds = %15, %12, %9, %6
%19 = phi i1 [ true, %12 ], [ true, %9 ], [ true, %6 ], [ %17, %15 ]
br i1 %19, label %4, label %20, !llvm.loop !6
20: ; preds = %18
%21 = load i32, ptr %3, align 4
%22 = load i32, ptr %2, align 4
%23 = ashr i32 %21, %22
%24 = and i32 %23, 1
%25 = call i32 @printf(ptr noundef @.str.1, i32 noundef %24)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzzks5gy8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %4
4: ; preds = %18, %0
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
br label %6
6: ; preds = %4
%7 = load i32, ptr %2, align 4
%8 = icmp sgt i32 0, %7
br i1 %8, label %18, label %9
9: ; preds = %6
%10 = load i32, ptr %2, align 4
%11 = icmp sgt i32 %10, 7
br i1 %11, label %18, label %12
12: ; preds = %9
%13 = load i32, ptr %3, align 4
%14 = icmp sgt i32 0, %13
br i1 %14, label %18, label %15
15: ; preds = %12
%16 = load i32, ptr %3, align 4
%17 = icmp sgt i32 %16, 200
br label %18
18: ; preds = %15, %12, %9, %6
%19 = phi i1 [ true, %12 ], [ true, %9 ], [ true, %6 ], [ %17, %15 ]
br i1 %19, label %4, label %20, !llvm.loop !6
20: ; preds = %18
%21 = load i32, ptr %3, align 4
%22 = load i32, ptr %2, align 4
%23 = ashr i32 %21, %22
%24 = and i32 %23, 1
%25 = call i32 @printf(ptr noundef @.str.1, i32 noundef %24)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmps8p8aj72.c'
source_filename = "/tmp/tmps8p8aj72.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"Found %d primes.\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [80 x i8], align 16
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 1, ptr %4, align 4
br label %5
5: ; preds = %16, %0
%6 = load i32, ptr %4, align 4
%7 = icmp sle i32 %6, 30000000
br i1 %7, label %8, label %19
8: ; preds = %5
%9 = load i32, ptr %4, align 4
%10 = call i64 @isPrime(i32 noundef %9)
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %8
%13 = load i32, ptr %2, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %2, align 4
br label %16
15: ; preds = %8
br label %16
16: ; preds = %15, %12
%17 = load i32, ptr %4, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %4, align 4
br label %5, !llvm.loop !6
19: ; preds = %5
%20 = getelementptr inbounds [80 x i8], ptr %3, i64 0, i64 0
%21 = load i32, ptr %2, align 4
%22 = call i32 @sprintf(ptr noundef %20, ptr noundef @.str, i32 noundef %21)
%23 = getelementptr inbounds [80 x i8], ptr %3, i64 0, i64 0
%24 = call i32 @printf(ptr noundef @.str.1, ptr noundef %23)
%25 = load i32, ptr %1, align 4
ret i32 %25
}
declare i64 @isPrime(i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmps8p8aj72.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"Found %d primes.\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [80 x i8], align 16
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = icmp sle i32 %5, 30000000
br i1 %6, label %.lr.ph, label %20
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %15
%8 = load i32, ptr %4, align 4
%9 = call i64 @isPrime(i32 noundef %8)
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %7
%12 = load i32, ptr %2, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %2, align 4
br label %15
14: ; preds = %7
br label %15
15: ; preds = %14, %11
%16 = load i32, ptr %4, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %4, align 4
%18 = load i32, ptr %4, align 4
%19 = icmp sle i32 %18, 30000000
br i1 %19, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %20
20: ; preds = %._crit_edge, %0
%21 = getelementptr inbounds [80 x i8], ptr %3, i64 0, i64 0
%22 = load i32, ptr %2, align 4
%23 = call i32 @sprintf(ptr noundef %21, ptr noundef @.str, i32 noundef %22)
%24 = getelementptr inbounds [80 x i8], ptr %3, i64 0, i64 0
%25 = call i32 @printf(ptr noundef @.str.1, ptr noundef %24)
%26 = load i32, ptr %1, align 4
ret i32 %26
}
declare i64 @isPrime(i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp_abe02jj.c'
source_filename = "/tmp/tmp_abe02jj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"\1B[31m\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [14 x i8] c"[GCErr] - %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"\1B[0m\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @log_error(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @printf(ptr noundef @.str)
%4 = load i32, ptr @stderr, align 4
%5 = load ptr, ptr %2, align 8
%6 = call i32 @fprintf(i32 noundef %4, ptr noundef @.str.1, ptr noundef %5)
%7 = call i32 @printf(ptr noundef @.str.2)
%8 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_abe02jj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"\1B[31m\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [14 x i8] c"[GCErr] - %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"\1B[0m\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @log_error(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @printf(ptr noundef @.str)
%4 = load i32, ptr @stderr, align 4
%5 = load ptr, ptr %2, align 8
%6 = call i32 @fprintf(i32 noundef %4, ptr noundef @.str.1, ptr noundef %5)
%7 = call i32 @printf(ptr noundef @.str.2)
%8 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5w2kc_8v.c'
source_filename = "/tmp/tmp5w2kc_8v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @RoomyList_compareByKey(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%9 = load ptr, ptr %5, align 8
%10 = load i32, ptr %7, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i8, ptr %9, i64 %11
%13 = load ptr, ptr %6, align 8
%14 = load i32, ptr %7, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = load i32, ptr %8, align 4
%18 = call i32 @memcmp(ptr noundef %12, ptr noundef %16, i32 noundef %17)
ret i32 %18
}
declare i32 @memcmp(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5w2kc_8v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @RoomyList_compareByKey(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%9 = load ptr, ptr %5, align 8
%10 = load i32, ptr %7, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i8, ptr %9, i64 %11
%13 = load ptr, ptr %6, align 8
%14 = load i32, ptr %7, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = load i32, ptr %8, align 4
%18 = call i32 @memcmp(ptr noundef %12, ptr noundef %16, i32 noundef %17)
ret i32 %18
}
declare i32 @memcmp(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplrwxvc5v.c'
source_filename = "/tmp/tmplrwxvc5v.c"
target datalayout = "e-m:e-p270: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/tmplrwxvc5v.c"
target datalayout = "e-m:e-p270: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/tmpn00n7rnt.c'
source_filename = "/tmp/tmpn00n7rnt.c"
target datalayout = "e-m:e-p270: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/tmpn00n7rnt.c"
target datalayout = "e-m:e-p270: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/tmp8mdpvfoh.c'
source_filename = "/tmp/tmp8mdpvfoh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @readString() #0 {
%1 = alloca ptr, align 8
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store ptr null, ptr %1, align 8
store i32 0, ptr %2, align 4
br label %4
4: ; preds = %14, %0
%5 = call i32 (...) @getchar()
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp ne i32 %6, 10
br i1 %7, label %8, label %12
8: ; preds = %4
%9 = load i32, ptr %3, align 4
%10 = load i32, ptr @EOF, align 4
%11 = icmp ne i32 %9, %10
br label %12
12: ; preds = %8, %4
%13 = phi i1 [ false, %4 ], [ %11, %8 ]
br i1 %13, label %14, label %29
14: ; preds = %12
%15 = load ptr, ptr %1, align 8
%16 = load i32, ptr %2, align 4
%17 = add nsw i32 %16, 2
%18 = sext i32 %17 to i64
%19 = mul i64 1, %18
%20 = trunc i64 %19 to i32
%21 = call ptr @realloc(ptr noundef %15, i32 noundef %20)
store ptr %21, ptr %1, align 8
%22 = load i32, ptr %3, align 4
%23 = trunc i32 %22 to i8
%24 = load ptr, ptr %1, align 8
%25 = load i32, ptr %2, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %2, align 4
%27 = sext i32 %25 to i64
%28 = getelementptr inbounds i8, ptr %24, i64 %27
store i8 %23, ptr %28, align 1
br label %4, !llvm.loop !6
29: ; preds = %12
%30 = load ptr, ptr %1, align 8
%31 = icmp ne ptr %30, null
br i1 %31, label %32, label %37
32: ; preds = %29
%33 = load ptr, ptr %1, align 8
%34 = load i32, ptr %2, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
store i8 0, ptr %36, align 1
br label %37
37: ; preds = %32, %29
%38 = load ptr, ptr %1, align 8
ret ptr %38
}
declare i32 @getchar(...) #1
declare ptr @realloc(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/tmp8mdpvfoh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @readString() #0 {
%1 = alloca ptr, align 8
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store ptr null, ptr %1, align 8
store i32 0, ptr %2, align 4
br label %4
4: ; preds = %14, %0
%5 = call i32 (...) @getchar()
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp ne i32 %6, 10
br i1 %7, label %8, label %12
8: ; preds = %4
%9 = load i32, ptr %3, align 4
%10 = load i32, ptr @EOF, align 4
%11 = icmp ne i32 %9, %10
br label %12
12: ; preds = %8, %4
%13 = phi i1 [ false, %4 ], [ %11, %8 ]
br i1 %13, label %14, label %29
14: ; preds = %12
%15 = load ptr, ptr %1, align 8
%16 = load i32, ptr %2, align 4
%17 = add nsw i32 %16, 2
%18 = sext i32 %17 to i64
%19 = mul i64 1, %18
%20 = trunc i64 %19 to i32
%21 = call ptr @realloc(ptr noundef %15, i32 noundef %20)
store ptr %21, ptr %1, align 8
%22 = load i32, ptr %3, align 4
%23 = trunc i32 %22 to i8
%24 = load ptr, ptr %1, align 8
%25 = load i32, ptr %2, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %2, align 4
%27 = sext i32 %25 to i64
%28 = getelementptr inbounds i8, ptr %24, i64 %27
store i8 %23, ptr %28, align 1
br label %4, !llvm.loop !6
29: ; preds = %12
%30 = load ptr, ptr %1, align 8
%31 = icmp ne ptr %30, null
br i1 %31, label %32, label %37
32: ; preds = %29
%33 = load ptr, ptr %1, align 8
%34 = load i32, ptr %2, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
store i8 0, ptr %36, align 1
br label %37
37: ; preds = %32, %29
%38 = load ptr, ptr %1, align 8
ret ptr %38
}
declare i32 @getchar(...) #1
declare ptr @realloc(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/tmpu6obzys3.c'
source_filename = "/tmp/tmpu6obzys3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"!! Debug exception \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @idt_int1() #0 {
%1 = call i32 @print(ptr noundef @.str)
ret void
}
declare i32 @print(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu6obzys3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"!! Debug exception \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @idt_int1() #0 {
%1 = call i32 @print(ptr noundef @.str)
ret void
}
declare i32 @print(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgy0j1x_3.c'
source_filename = "/tmp/tmpgy0j1x_3.c"
target datalayout = "e-m:e-p270: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/tmpgy0j1x_3.c"
target datalayout = "e-m:e-p270: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/tmp2j8hfmku.c'
source_filename = "/tmp/tmp2j8hfmku.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"break Command Example 3\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"Please enter either A, B or C: \00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%c%c\00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"Invalid response, try again.\0A\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"Your valid entry was %c.\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = alloca i8, align 1
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %5
5: ; preds = %22, %0
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%7 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %2, ptr noundef %3)
%8 = load i8, ptr %2, align 1
%9 = sext i8 %8 to i32
%10 = icmp eq i32 %9, 65
br i1 %10, label %19, label %11
11: ; preds = %5
%12 = load i8, ptr %2, align 1
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %13, 66
br i1 %14, label %19, label %15
15: ; preds = %11
%16 = load i8, ptr %2, align 1
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 67
br i1 %18, label %19, label %20
19: ; preds = %15, %11, %5
br label %23
20: ; preds = %15
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %22
22: ; preds = %20
br i1 true, label %5, label %23
23: ; preds = %22, %19
%24 = load i8, ptr %2, align 1
%25 = sext i8 %24 to i32
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %25)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2j8hfmku.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"break Command Example 3\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"Please enter either A, B or C: \00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%c%c\00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"Invalid response, try again.\0A\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"Your valid entry was %c.\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = alloca i8, align 1
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %5
5: ; preds = %22, %0
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%7 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %2, ptr noundef %3)
%8 = load i8, ptr %2, align 1
%9 = sext i8 %8 to i32
%10 = icmp eq i32 %9, 65
br i1 %10, label %19, label %11
11: ; preds = %5
%12 = load i8, ptr %2, align 1
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %13, 66
br i1 %14, label %19, label %15
15: ; preds = %11
%16 = load i8, ptr %2, align 1
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 67
br i1 %18, label %19, label %20
19: ; preds = %15, %11, %5
br label %23
20: ; preds = %15
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %22
22: ; preds = %20
br i1 true, label %5, label %.loopexit
.loopexit: ; preds = %22
br label %23
23: ; preds = %.loopexit, %19
%24 = load i8, ptr %2, align 1
%25 = sext i8 %24 to i32
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %25)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppz3uzj_2.c'
source_filename = "/tmp/tmppz3uzj_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 @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 = load i32, ptr %4, align 4
%9 = icmp eq i32 %8, 3
br i1 %9, label %10, label %60
10: ; preds = %2
br label %11
11: ; preds = %55, %10
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 2
%14 = load ptr, ptr %13, align 8
%15 = load i32, ptr %6, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %58
21: ; preds = %11
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = load i32, ptr %7, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %24, i64 %26
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds ptr, ptr %30, i64 2
%32 = load ptr, ptr %31, align 8
%33 = load i32, ptr %6, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %32, i64 %34
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %29, %37
br i1 %38, label %39, label %42
39: ; preds = %21
%40 = load i32, ptr %7, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %7, align 4
br label %42
42: ; preds = %39, %21
%43 = load ptr, ptr %5, align 8
%44 = getelementptr inbounds ptr, ptr %43, i64 1
%45 = load ptr, ptr %44, align 8
%46 = load i32, ptr %7, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8, ptr %45, i64 %47
%49 = load i8, ptr %48, align 1
%50 = sext i8 %49 to i32
%51 = icmp eq i32 %50, 0
br i1 %51, label %52, label %55
52: ; preds = %42
%53 = call i32 @ft_putchar(i8 noundef signext 49)
%54 = call i32 @ft_putchar(i8 noundef signext 10)
store i32 0, ptr %3, align 4
br label %62
55: ; preds = %42
%56 = load i32, ptr %6, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %6, align 4
br label %11, !llvm.loop !6
58: ; preds = %11
%59 = call i32 @ft_putchar(i8 noundef signext 48)
br label %60
60: ; preds = %58, %2
%61 = call i32 @ft_putchar(i8 noundef signext 10)
store i32 0, ptr %3, align 4
br label %62
62: ; preds = %60, %52
%63 = load i32, ptr %3, align 4
ret i32 %63
}
declare i32 @ft_putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmppz3uzj_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 @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 = load i32, ptr %4, align 4
%9 = icmp eq i32 %8, 3
br i1 %9, label %10, label %68
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
%14 = load i32, ptr %6, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp ne i32 %18, 0
br i1 %19, label %.lr.ph, label %66
.lr.ph: ; preds = %10
br label %20
20: ; preds = %.lr.ph, %54
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 1
%23 = load ptr, ptr %22, align 8
%24 = load i32, ptr %7, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %23, i64 %25
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds ptr, ptr %29, i64 2
%31 = load ptr, ptr %30, align 8
%32 = load i32, ptr %6, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8, ptr %31, i64 %33
%35 = load i8, ptr %34, align 1
%36 = sext i8 %35 to i32
%37 = icmp eq i32 %28, %36
br i1 %37, label %38, label %41
38: ; preds = %20
%39 = load i32, ptr %7, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %7, align 4
br label %41
41: ; preds = %38, %20
%42 = load ptr, ptr %5, align 8
%43 = getelementptr inbounds ptr, ptr %42, i64 1
%44 = load ptr, ptr %43, align 8
%45 = load i32, ptr %7, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i8, ptr %44, i64 %46
%48 = load i8, ptr %47, align 1
%49 = sext i8 %48 to i32
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %54
51: ; preds = %41
%52 = call i32 @ft_putchar(i8 noundef signext 49)
%53 = call i32 @ft_putchar(i8 noundef signext 10)
store i32 0, ptr %3, align 4
br label %70
54: ; preds = %41
%55 = load i32, ptr %6, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %6, align 4
%57 = load ptr, ptr %5, align 8
%58 = getelementptr inbounds ptr, ptr %57, i64 2
%59 = load ptr, ptr %58, align 8
%60 = load i32, ptr %6, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i8, ptr %59, i64 %61
%63 = load i8, ptr %62, align 1
%64 = sext i8 %63 to i32
%65 = icmp ne i32 %64, 0
br i1 %65, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %54
br label %66
66: ; preds = %._crit_edge, %10
%67 = call i32 @ft_putchar(i8 noundef signext 48)
br label %68
68: ; preds = %66, %2
%69 = call i32 @ft_putchar(i8 noundef signext 10)
store i32 0, ptr %3, align 4
br label %70
70: ; preds = %68, %51
%71 = load i32, ptr %3, align 4
ret i32 %71
}
declare i32 @ft_putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpevnz6h6x.c'
source_filename = "/tmp/tmpevnz6h6x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @error(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 (...) @usage()
%6 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @usage(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpevnz6h6x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @error(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 (...) @usage()
%6 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @usage(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpw19mfb1b.c'
source_filename = "/tmp/tmpw19mfb1b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mt_genrand_res53() #0 {
%1 = alloca i64, align 8
%2 = alloca i64, align 8
%3 = call i32 (...) @mt_genrand_int32()
%4 = ashr i32 %3, 5
%5 = sext i32 %4 to i64
store i64 %5, ptr %1, align 8
%6 = call i32 (...) @mt_genrand_int32()
%7 = ashr i32 %6, 6
%8 = sext i32 %7 to i64
store i64 %8, ptr %2, align 8
%9 = load i64, ptr %1, align 8
%10 = uitofp i64 %9 to double
%11 = load i64, ptr %2, align 8
%12 = uitofp i64 %11 to double
%13 = call double @llvm.fmuladd.f64(double %10, double 0x4190000000000000, double %12)
%14 = fmul double %13, 0x3CA0000000000000
ret double %14
}
declare i32 @mt_genrand_int32(...) #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/tmpw19mfb1b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mt_genrand_res53() #0 {
%1 = alloca i64, align 8
%2 = alloca i64, align 8
%3 = call i32 (...) @mt_genrand_int32()
%4 = ashr i32 %3, 5
%5 = sext i32 %4 to i64
store i64 %5, ptr %1, align 8
%6 = call i32 (...) @mt_genrand_int32()
%7 = ashr i32 %6, 6
%8 = sext i32 %7 to i64
store i64 %8, ptr %2, align 8
%9 = load i64, ptr %1, align 8
%10 = uitofp i64 %9 to double
%11 = load i64, ptr %2, align 8
%12 = uitofp i64 %11 to double
%13 = call double @llvm.fmuladd.f64(double %10, double 0x4190000000000000, double %12)
%14 = fmul double %13, 0x3CA0000000000000
ret double %14
}
declare i32 @mt_genrand_int32(...) #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/tmpvz28emb_.c'
source_filename = "/tmp/tmpvz28emb_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @simplecnt(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i64, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i64 0, ptr %5, align 8
store i32 0, ptr %6, align 4
br label %9
9: ; preds = %37, %2
%10 = load i32, ptr %6, align 4
%11 = load i32, ptr %4, align 4
%12 = mul nsw i32 %11, 16
%13 = icmp slt i32 %10, %12
br i1 %13, label %14, label %40
14: ; preds = %9
store i32 1, ptr %8, align 4
store i32 0, ptr %7, align 4
br label %15
15: ; preds = %33, %14
%16 = load i32, ptr %7, align 4
%17 = icmp slt i32 %16, 64
br i1 %17, label %18, label %36
18: ; preds = %15
%19 = load ptr, ptr %3, align 8
%20 = load i32, ptr %6, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i32, ptr %19, i64 %21
%23 = load i32, ptr %22, align 4
%24 = load i32, ptr %8, align 4
%25 = and i32 %23, %24
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %18
%28 = load i64, ptr %5, align 8
%29 = add nsw i64 %28, 1
store i64 %29, ptr %5, align 8
br label %30
30: ; preds = %27, %18
%31 = load i32, ptr %8, align 4
%32 = shl i32 %31, 1
store i32 %32, ptr %8, align 4
br label %33
33: ; preds = %30
%34 = load i32, ptr %7, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %7, align 4
br label %15, !llvm.loop !6
36: ; preds = %15
br label %37
37: ; preds = %36
%38 = load i32, ptr %6, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %6, align 4
br label %9, !llvm.loop !8
40: ; preds = %9
%41 = load i64, ptr %5, align 8
ret i64 %41
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpvz28emb_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @simplecnt(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i64, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i64 0, ptr %5, align 8
store i32 0, ptr %6, align 4
%9 = load i32, ptr %6, align 4
%10 = load i32, ptr %4, align 4
%11 = mul nsw i32 %10, 16
%12 = icmp slt i32 %9, %11
br i1 %12, label %.lr.ph2, label %44
.lr.ph2: ; preds = %2
br label %13
13: ; preds = %.lr.ph2, %37
store i32 1, ptr %8, align 4
store i32 0, ptr %7, align 4
%14 = load i32, ptr %7, align 4
%15 = icmp slt i32 %14, 64
br i1 %15, label %.lr.ph, label %36
.lr.ph: ; preds = %13
br label %16
16: ; preds = %.lr.ph, %31
%17 = load ptr, ptr %3, align 8
%18 = load i32, ptr %6, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %17, i64 %19
%21 = load i32, ptr %20, align 4
%22 = load i32, ptr %8, align 4
%23 = and i32 %21, %22
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %28
25: ; preds = %16
%26 = load i64, ptr %5, align 8
%27 = add nsw i64 %26, 1
store i64 %27, ptr %5, align 8
br label %28
28: ; preds = %25, %16
%29 = load i32, ptr %8, align 4
%30 = shl i32 %29, 1
store i32 %30, ptr %8, align 4
br label %31
31: ; preds = %28
%32 = load i32, ptr %7, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %7, align 4
%34 = load i32, ptr %7, align 4
%35 = icmp slt i32 %34, 64
br i1 %35, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %31
br label %36
36: ; preds = %._crit_edge, %13
br label %37
37: ; preds = %36
%38 = load i32, ptr %6, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %6, align 4
%40 = load i32, ptr %6, align 4
%41 = load i32, ptr %4, align 4
%42 = mul nsw i32 %41, 16
%43 = icmp slt i32 %40, %42
br i1 %43, label %13, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %37
br label %44
44: ; preds = %._crit_edge3, %2
%45 = load i64, ptr %5, align 8
ret i64 %45
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpaom53s_p.c'
source_filename = "/tmp/tmpaom53s_p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpaom53s_p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7mkhzv96.c'
source_filename = "/tmp/tmp7mkhzv96.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dftrxb(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca float, align 4
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%16 = load i32, ptr %10, align 4
%17 = load i32, ptr %9, align 4
%18 = icmp sgt i32 %16, %17
br i1 %18, label %19, label %31
19: ; preds = %6
%20 = load ptr, ptr %7, align 8
%21 = load i32, ptr %9, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds float, ptr %20, i64 %22
%24 = load i32, ptr %10, align 4
%25 = load i32, ptr %9, align 4
%26 = sub nsw i32 %24, %25
%27 = sext i32 %26 to i64
%28 = mul i64 4, %27
%29 = trunc i64 %28 to i32
%30 = call i32 @memset(ptr noundef %23, i32 noundef 0, i32 noundef %29)
br label %31
31: ; preds = %19, %6
%32 = load ptr, ptr %8, align 8
%33 = load i32, ptr %10, align 4
%34 = sext i32 %33 to i64
%35 = mul i64 4, %34
%36 = mul i64 %35, 2
%37 = trunc i64 %36 to i32
%38 = call i32 @memset(ptr noundef %32, i32 noundef 0, i32 noundef %37)
%39 = load i32, ptr %10, align 4
%40 = mul nsw i32 2, %39
store i32 %40, ptr %14, align 4
%41 = load ptr, ptr %7, align 8
%42 = load i32, ptr %10, align 4
%43 = sub nsw i32 %42, 1
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds float, ptr %41, i64 %44
%46 = load float, ptr %45, align 4
%47 = load ptr, ptr %7, align 8
%48 = load i32, ptr %10, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds float, ptr %47, i64 %49
store float %46, ptr %50, align 4
store i32 1, ptr %13, align 4
br label %51
51: ; preds = %79, %31
%52 = load i32, ptr %13, align 4
%53 = load i32, ptr %10, align 4
%54 = icmp slt i32 %52, %53
br i1 %54, label %55, label %82
55: ; preds = %51
%56 = load ptr, ptr %7, align 8
%57 = load i32, ptr %13, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds float, ptr %56, i64 %58
%60 = load float, ptr %59, align 4
%61 = load ptr, ptr %7, align 8
%62 = load i32, ptr %14, align 4
%63 = load i32, ptr %13, align 4
%64 = sub nsw i32 %62, %63
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds float, ptr %61, i64 %65
store float %60, ptr %66, align 4
%67 = load ptr, ptr %8, align 8
%68 = load i32, ptr %13, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds float, ptr %67, i64 %69
%71 = load float, ptr %70, align 4
%72 = fneg float %71
%73 = load ptr, ptr %8, align 8
%74 = load i32, ptr %14, align 4
%75 = load i32, ptr %13, align 4
%76 = sub nsw i32 %74, %75
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds float, ptr %73, i64 %77
store float %72, ptr %78, align 4
br label %79
79: ; preds = %55
%80 = load i32, ptr %13, align 4
%81 = add nsw i32 %80, 1
store i32 %81, ptr %13, align 4
br label %51, !llvm.loop !6
82: ; preds = %51
%83 = load i32, ptr %10, align 4
%84 = mul nsw i32 %83, 2
store i32 %84, ptr %14, align 4
%85 = load ptr, ptr %7, align 8
%86 = load ptr, ptr %8, align 8
%87 = load ptr, ptr %11, align 8
%88 = load ptr, ptr %12, align 8
%89 = call i32 @fourt(ptr noundef %85, ptr noundef %86, ptr noundef %14, i32 noundef 1, i32 noundef 0, i32 noundef 0, ptr noundef %87, ptr noundef %88)
%90 = load i32, ptr %10, align 4
%91 = sitofp i32 %90 to double
%92 = fdiv double 1.000000e+00, %91
%93 = fptrunc double %92 to float
store float %93, ptr %15, align 4
store i32 0, ptr %13, align 4
br label %94
94: ; preds = %113, %82
%95 = load i32, ptr %13, align 4
%96 = load i32, ptr %14, align 4
%97 = icmp slt i32 %95, %96
br i1 %97, label %98, label %116
98: ; preds = %94
%99 = load float, ptr %15, align 4
%100 = load ptr, ptr %7, align 8
%101 = load i32, ptr %13, align 4
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds float, ptr %100, i64 %102
%104 = load float, ptr %103, align 4
%105 = fmul float %104, %99
store float %105, ptr %103, align 4
%106 = load float, ptr %15, align 4
%107 = load ptr, ptr %8, align 8
%108 = load i32, ptr %13, align 4
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds float, ptr %107, i64 %109
%111 = load float, ptr %110, align 4
%112 = fmul float %111, %106
store float %112, ptr %110, align 4
br label %113
113: ; preds = %98
%114 = load i32, ptr %13, align 4
%115 = add nsw i32 %114, 1
store i32 %115, ptr %13, align 4
br label %94, !llvm.loop !8
116: ; preds = %94
%117 = load i32, ptr %10, align 4
ret i32 %117
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fourt(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7mkhzv96.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dftrxb(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca float, align 4
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%16 = load i32, ptr %10, align 4
%17 = load i32, ptr %9, align 4
%18 = icmp sgt i32 %16, %17
br i1 %18, label %19, label %31
19: ; preds = %6
%20 = load ptr, ptr %7, align 8
%21 = load i32, ptr %9, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds float, ptr %20, i64 %22
%24 = load i32, ptr %10, align 4
%25 = load i32, ptr %9, align 4
%26 = sub nsw i32 %24, %25
%27 = sext i32 %26 to i64
%28 = mul i64 4, %27
%29 = trunc i64 %28 to i32
%30 = call i32 @memset(ptr noundef %23, i32 noundef 0, i32 noundef %29)
br label %31
31: ; preds = %19, %6
%32 = load ptr, ptr %8, align 8
%33 = load i32, ptr %10, align 4
%34 = sext i32 %33 to i64
%35 = mul i64 4, %34
%36 = mul i64 %35, 2
%37 = trunc i64 %36 to i32
%38 = call i32 @memset(ptr noundef %32, i32 noundef 0, i32 noundef %37)
%39 = load i32, ptr %10, align 4
%40 = mul nsw i32 2, %39
store i32 %40, ptr %14, align 4
%41 = load ptr, ptr %7, align 8
%42 = load i32, ptr %10, align 4
%43 = sub nsw i32 %42, 1
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds float, ptr %41, i64 %44
%46 = load float, ptr %45, align 4
%47 = load ptr, ptr %7, align 8
%48 = load i32, ptr %10, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds float, ptr %47, i64 %49
store float %46, ptr %50, align 4
store i32 1, ptr %13, align 4
%51 = load i32, ptr %13, align 4
%52 = load i32, ptr %10, align 4
%53 = icmp slt i32 %51, %52
br i1 %53, label %.lr.ph, label %84
.lr.ph: ; preds = %31
br label %54
54: ; preds = %.lr.ph, %78
%55 = load ptr, ptr %7, align 8
%56 = load i32, ptr %13, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds float, ptr %55, i64 %57
%59 = load float, ptr %58, align 4
%60 = load ptr, ptr %7, align 8
%61 = load i32, ptr %14, align 4
%62 = load i32, ptr %13, align 4
%63 = sub nsw i32 %61, %62
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds float, ptr %60, i64 %64
store float %59, ptr %65, align 4
%66 = load ptr, ptr %8, align 8
%67 = load i32, ptr %13, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds float, ptr %66, i64 %68
%70 = load float, ptr %69, align 4
%71 = fneg float %70
%72 = load ptr, ptr %8, align 8
%73 = load i32, ptr %14, align 4
%74 = load i32, ptr %13, align 4
%75 = sub nsw i32 %73, %74
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds float, ptr %72, i64 %76
store float %71, ptr %77, align 4
br label %78
78: ; preds = %54
%79 = load i32, ptr %13, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %13, align 4
%81 = load i32, ptr %13, align 4
%82 = load i32, ptr %10, align 4
%83 = icmp slt i32 %81, %82
br i1 %83, label %54, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %78
br label %84
84: ; preds = %._crit_edge, %31
%85 = load i32, ptr %10, align 4
%86 = mul nsw i32 %85, 2
store i32 %86, ptr %14, align 4
%87 = load ptr, ptr %7, align 8
%88 = load ptr, ptr %8, align 8
%89 = load ptr, ptr %11, align 8
%90 = load ptr, ptr %12, align 8
%91 = call i32 @fourt(ptr noundef %87, ptr noundef %88, ptr noundef %14, i32 noundef 1, i32 noundef 0, i32 noundef 0, ptr noundef %89, ptr noundef %90)
%92 = load i32, ptr %10, align 4
%93 = sitofp i32 %92 to double
%94 = fdiv double 1.000000e+00, %93
%95 = fptrunc double %94 to float
store float %95, ptr %15, align 4
store i32 0, ptr %13, align 4
%96 = load i32, ptr %13, align 4
%97 = load i32, ptr %14, align 4
%98 = icmp slt i32 %96, %97
br i1 %98, label %.lr.ph2, label %120
.lr.ph2: ; preds = %84
br label %99
99: ; preds = %.lr.ph2, %114
%100 = load float, ptr %15, align 4
%101 = load ptr, ptr %7, align 8
%102 = load i32, ptr %13, align 4
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds float, ptr %101, i64 %103
%105 = load float, ptr %104, align 4
%106 = fmul float %105, %100
store float %106, ptr %104, align 4
%107 = load float, ptr %15, align 4
%108 = load ptr, ptr %8, align 8
%109 = load i32, ptr %13, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds float, ptr %108, i64 %110
%112 = load float, ptr %111, align 4
%113 = fmul float %112, %107
store float %113, ptr %111, align 4
br label %114
114: ; preds = %99
%115 = load i32, ptr %13, align 4
%116 = add nsw i32 %115, 1
store i32 %116, ptr %13, align 4
%117 = load i32, ptr %13, align 4
%118 = load i32, ptr %14, align 4
%119 = icmp slt i32 %117, %118
br i1 %119, label %99, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %114
br label %120
120: ; preds = %._crit_edge3, %84
%121 = load i32, ptr %10, align 4
ret i32 %121
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fourt(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp1isxq3cr.c'
source_filename = "/tmp/tmp1isxq3cr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @icalmemory_tmp_copy(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i64 @strlen(ptr noundef %4)
%6 = add nsw i64 %5, 1
%7 = call ptr @icalmemory_tmp_buffer(i64 noundef %6)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = load ptr, ptr %2, align 8
%10 = call i32 @strcpy(ptr noundef %8, ptr noundef %9)
%11 = load ptr, ptr %3, align 8
ret ptr %11
}
declare ptr @icalmemory_tmp_buffer(i64 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/tmp1isxq3cr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @icalmemory_tmp_copy(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i64 @strlen(ptr noundef %4)
%6 = add nsw i64 %5, 1
%7 = call ptr @icalmemory_tmp_buffer(i64 noundef %6)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = load ptr, ptr %2, align 8
%10 = call i32 @strcpy(ptr noundef %8, ptr noundef %9)
%11 = load ptr, ptr %3, align 8
ret ptr %11
}
declare ptr @icalmemory_tmp_buffer(i64 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/tmpjle2jz3c.c'
source_filename = "/tmp/tmpjle2jz3c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%4s%21s\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"Year\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"Amount on deposit\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"%4d%21.2f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store double 1.000000e+03, ptr %3, align 8
store double 5.000000e-01, ptr %4, align 8
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.2)
store i32 1, ptr %5, align 4
br label %7
7: ; preds = %20, %0
%8 = load i32, ptr %5, align 4
%9 = icmp sle i32 %8, 10
br i1 %9, label %10, label %23
10: ; preds = %7
%11 = load double, ptr %3, align 8
%12 = load double, ptr %4, align 8
%13 = fadd double 1.000000e+00, %12
%14 = load i32, ptr %5, align 4
%15 = call double @pow(double noundef %13, i32 noundef %14)
%16 = fmul double %11, %15
store double %16, ptr %2, align 8
%17 = load i32, ptr %5, align 4
%18 = load double, ptr %2, align 8
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %17, double noundef %18)
br label %20
20: ; preds = %10
%21 = load i32, ptr %5, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %5, align 4
br label %7, !llvm.loop !6
23: ; preds = %7
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare double @pow(double 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/tmpjle2jz3c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%4s%21s\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"Year\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"Amount on deposit\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"%4d%21.2f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store double 1.000000e+03, ptr %3, align 8
store double 5.000000e-01, ptr %4, align 8
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.2)
store i32 1, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = icmp sle i32 %7, 10
br i1 %8, label %.lr.ph, label %24
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %19
%10 = load double, ptr %3, align 8
%11 = load double, ptr %4, align 8
%12 = fadd double 1.000000e+00, %11
%13 = load i32, ptr %5, align 4
%14 = call double @pow(double noundef %12, i32 noundef %13)
%15 = fmul double %10, %14
store double %15, ptr %2, align 8
%16 = load i32, ptr %5, align 4
%17 = load double, ptr %2, align 8
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %16, double noundef %17)
br label %19
19: ; preds = %9
%20 = load i32, ptr %5, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %5, align 4
%22 = load i32, ptr %5, align 4
%23 = icmp sle i32 %22, 10
br i1 %23, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %24
24: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare double @pow(double 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/tmp8nqzp0el.c'
source_filename = "/tmp/tmp8nqzp0el.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @triangle(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) #0 {
%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 %8, align 4
store i32 %1, ptr %9, align 4
store i32 %2, ptr %10, align 4
store i32 %3, ptr %11, align 4
store i32 %4, ptr %12, align 4
store i32 %5, ptr %13, align 4
store i32 %6, ptr %14, align 4
%15 = load i32, ptr %8, align 4
%16 = load i32, ptr %9, align 4
%17 = load i32, ptr %10, align 4
%18 = load i32, ptr %11, align 4
%19 = load i32, ptr %14, align 4
%20 = call i32 @drawline(i32 noundef %15, i32 noundef %16, i32 noundef %17, i32 noundef %18, i32 noundef %19)
%21 = load i32, ptr %10, align 4
%22 = load i32, ptr %11, align 4
%23 = load i32, ptr %12, align 4
%24 = load i32, ptr %13, align 4
%25 = load i32, ptr %14, align 4
%26 = call i32 @drawline(i32 noundef %21, i32 noundef %22, i32 noundef %23, i32 noundef %24, i32 noundef %25)
%27 = load i32, ptr %12, align 4
%28 = load i32, ptr %13, align 4
%29 = load i32, ptr %8, align 4
%30 = load i32, ptr %9, align 4
%31 = load i32, ptr %14, align 4
%32 = call i32 @drawline(i32 noundef %27, i32 noundef %28, i32 noundef %29, i32 noundef %30, i32 noundef %31)
ret void
}
declare i32 @drawline(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8nqzp0el.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @triangle(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) #0 {
%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 %8, align 4
store i32 %1, ptr %9, align 4
store i32 %2, ptr %10, align 4
store i32 %3, ptr %11, align 4
store i32 %4, ptr %12, align 4
store i32 %5, ptr %13, align 4
store i32 %6, ptr %14, align 4
%15 = load i32, ptr %8, align 4
%16 = load i32, ptr %9, align 4
%17 = load i32, ptr %10, align 4
%18 = load i32, ptr %11, align 4
%19 = load i32, ptr %14, align 4
%20 = call i32 @drawline(i32 noundef %15, i32 noundef %16, i32 noundef %17, i32 noundef %18, i32 noundef %19)
%21 = load i32, ptr %10, align 4
%22 = load i32, ptr %11, align 4
%23 = load i32, ptr %12, align 4
%24 = load i32, ptr %13, align 4
%25 = load i32, ptr %14, align 4
%26 = call i32 @drawline(i32 noundef %21, i32 noundef %22, i32 noundef %23, i32 noundef %24, i32 noundef %25)
%27 = load i32, ptr %12, align 4
%28 = load i32, ptr %13, align 4
%29 = load i32, ptr %8, align 4
%30 = load i32, ptr %9, align 4
%31 = load i32, ptr %14, align 4
%32 = call i32 @drawline(i32 noundef %27, i32 noundef %28, i32 noundef %29, i32 noundef %30, i32 noundef %31)
ret void
}
declare i32 @drawline(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwnsr1qu1.c'
source_filename = "/tmp/tmpwnsr1qu1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @partition_version2(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%10 = load ptr, ptr %4, align 8
%11 = load i32, ptr %5, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i32, ptr %10, i64 %12
%14 = load i32, ptr %13, align 4
store i32 %14, ptr %9, align 4
%15 = load i32, ptr %5, align 4
store i32 %15, ptr %7, align 4
%16 = load i32, ptr %6, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %8, align 4
br label %18
18: ; preds = %67, %3
%19 = load i32, ptr %7, align 4
%20 = load i32, ptr %8, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %68
22: ; preds = %18
br label %23
23: ; preds = %38, %22
%24 = load i32, ptr %8, align 4
%25 = add nsw i32 %24, -1
store i32 %25, ptr %8, align 4
br label %26
26: ; preds = %23
%27 = load i32, ptr %7, align 4
%28 = load i32, ptr %8, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %30, label %38
30: ; preds = %26
%31 = load ptr, ptr %4, align 8
%32 = load i32, ptr %8, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i32, ptr %31, i64 %33
%35 = load i32, ptr %34, align 4
%36 = load i32, ptr %9, align 4
%37 = icmp sgt i32 %35, %36
br label %38
38: ; preds = %30, %26
%39 = phi i1 [ false, %26 ], [ %37, %30 ]
br i1 %39, label %23, label %40, !llvm.loop !6
40: ; preds = %38
br label %41
41: ; preds = %56, %40
%42 = load i32, ptr %7, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %7, align 4
br label %44
44: ; preds = %41
%45 = load i32, ptr %7, align 4
%46 = load i32, ptr %8, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %48, label %56
48: ; preds = %44
%49 = load ptr, ptr %4, align 8
%50 = load i32, ptr %7, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i32, ptr %49, i64 %51
%53 = load i32, ptr %52, align 4
%54 = load i32, ptr %9, align 4
%55 = icmp slt i32 %53, %54
br label %56
56: ; preds = %48, %44
%57 = phi i1 [ false, %44 ], [ %55, %48 ]
br i1 %57, label %41, label %58, !llvm.loop !8
58: ; preds = %56
%59 = load i32, ptr %7, align 4
%60 = load i32, ptr %8, align 4
%61 = icmp slt i32 %59, %60
br i1 %61, label %62, label %67
62: ; preds = %58
%63 = load ptr, ptr %4, align 8
%64 = load i32, ptr %7, align 4
%65 = load i32, ptr %8, align 4
%66 = call i32 @swap(ptr noundef %63, i32 noundef %64, i32 noundef %65)
br label %67
67: ; preds = %62, %58
br label %18, !llvm.loop !9
68: ; preds = %18
%69 = load ptr, ptr %4, align 8
%70 = load i32, ptr %5, align 4
%71 = load i32, ptr %8, align 4
%72 = call i32 @swap(ptr noundef %69, i32 noundef %70, i32 noundef %71)
%73 = load i32, ptr %8, align 4
ret i32 %73
}
declare i32 @swap(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwnsr1qu1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @partition_version2(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%10 = load ptr, ptr %4, align 8
%11 = load i32, ptr %5, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i32, ptr %10, i64 %12
%14 = load i32, ptr %13, align 4
store i32 %14, ptr %9, align 4
%15 = load i32, ptr %5, align 4
store i32 %15, ptr %7, align 4
%16 = load i32, ptr %6, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %8, align 4
%18 = load i32, ptr %7, align 4
%19 = load i32, ptr %8, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %.lr.ph, label %70
.lr.ph: ; preds = %3
br label %21
21: ; preds = %.lr.ph, %66
br label %22
22: ; preds = %37, %21
%23 = load i32, ptr %8, align 4
%24 = add nsw i32 %23, -1
store i32 %24, ptr %8, align 4
br label %25
25: ; preds = %22
%26 = load i32, ptr %7, align 4
%27 = load i32, ptr %8, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %29, label %37
29: ; preds = %25
%30 = load ptr, ptr %4, align 8
%31 = load i32, ptr %8, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i32, ptr %30, i64 %32
%34 = load i32, ptr %33, align 4
%35 = load i32, ptr %9, align 4
%36 = icmp sgt i32 %34, %35
br label %37
37: ; preds = %29, %25
%38 = phi i1 [ false, %25 ], [ %36, %29 ]
br i1 %38, label %22, label %39, !llvm.loop !6
39: ; preds = %37
br label %40
40: ; preds = %55, %39
%41 = load i32, ptr %7, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %7, align 4
br label %43
43: ; preds = %40
%44 = load i32, ptr %7, align 4
%45 = load i32, ptr %8, align 4
%46 = icmp slt i32 %44, %45
br i1 %46, label %47, label %55
47: ; preds = %43
%48 = load ptr, ptr %4, align 8
%49 = load i32, ptr %7, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i32, ptr %48, i64 %50
%52 = load i32, ptr %51, align 4
%53 = load i32, ptr %9, align 4
%54 = icmp slt i32 %52, %53
br label %55
55: ; preds = %47, %43
%56 = phi i1 [ false, %43 ], [ %54, %47 ]
br i1 %56, label %40, label %57, !llvm.loop !8
57: ; preds = %55
%58 = load i32, ptr %7, align 4
%59 = load i32, ptr %8, align 4
%60 = icmp slt i32 %58, %59
br i1 %60, label %61, label %66
61: ; preds = %57
%62 = load ptr, ptr %4, align 8
%63 = load i32, ptr %7, align 4
%64 = load i32, ptr %8, align 4
%65 = call i32 @swap(ptr noundef %62, i32 noundef %63, i32 noundef %64)
br label %66
66: ; preds = %61, %57
%67 = load i32, ptr %7, align 4
%68 = load i32, ptr %8, align 4
%69 = icmp slt i32 %67, %68
br i1 %69, label %21, label %._crit_edge, !llvm.loop !9
._crit_edge: ; preds = %66
br label %70
70: ; preds = %._crit_edge, %3
%71 = load ptr, ptr %4, align 8
%72 = load i32, ptr %5, align 4
%73 = load i32, ptr %8, align 4
%74 = call i32 @swap(ptr noundef %71, i32 noundef %72, i32 noundef %73)
%75 = load i32, ptr %8, align 4
ret i32 %75
}
declare i32 @swap(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp_jlpv4tx.c'
source_filename = "/tmp/tmp_jlpv4tx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [1001 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %4, align 4
br label %6
6: ; preds = %13, %0
%7 = load i32, ptr %4, align 4
%8 = icmp sle i32 %7, 1000
br i1 %8, label %9, label %16
9: ; preds = %6
%10 = load i32, ptr %4, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [1001 x i32], ptr %2, i64 0, i64 %11
store i32 0, ptr %12, align 4
br label %13
13: ; preds = %9
%14 = load i32, ptr %4, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %4, align 4
br label %6, !llvm.loop !6
16: ; preds = %6
%17 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
store i32 1, ptr %4, align 4
br label %18
18: ; preds = %27, %16
%19 = load i32, ptr %4, align 4
%20 = load i32, ptr %3, align 4
%21 = icmp sle i32 %19, %20
br i1 %21, label %22, label %30
22: ; preds = %18
%23 = call i32 @scanf(ptr noundef @.str, ptr noundef %5)
%24 = load i32, ptr %5, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [1001 x i32], ptr %2, i64 0, i64 %25
store i32 1, ptr %26, align 4
br label %27
27: ; preds = %22
%28 = load i32, ptr %4, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %4, align 4
br label %18, !llvm.loop !8
30: ; preds = %18
store i32 1, ptr %4, align 4
br label %31
31: ; preds = %44, %30
%32 = load i32, ptr %4, align 4
%33 = icmp sle i32 %32, 1000
br i1 %33, label %34, label %47
34: ; preds = %31
%35 = load i32, ptr %4, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [1001 x i32], ptr %2, i64 0, i64 %36
%38 = load i32, ptr %37, align 4
%39 = icmp eq i32 %38, 1
br i1 %39, label %40, label %43
40: ; preds = %34
%41 = load i32, ptr %4, align 4
%42 = call i32 @printf(ptr noundef @.str.1, i32 noundef %41)
br label %43
43: ; preds = %40, %34
br label %44
44: ; preds = %43
%45 = load i32, ptr %4, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %4, align 4
br label %31, !llvm.loop !9
47: ; preds = %31
%48 = call i32 (...) @getchar()
%49 = call i32 (...) @getchar()
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_jlpv4tx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [1001 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = icmp sle i32 %6, 1000
br i1 %7, label %.lr.ph, label %17
.lr.ph: ; preds = %0
br label %8
8: ; preds = %.lr.ph, %12
%9 = load i32, ptr %4, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [1001 x i32], ptr %2, i64 0, i64 %10
store i32 0, ptr %11, align 4
br label %12
12: ; preds = %8
%13 = load i32, ptr %4, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %4, align 4
%15 = load i32, ptr %4, align 4
%16 = icmp sle i32 %15, 1000
br i1 %16, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %17
17: ; preds = %._crit_edge, %0
%18 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
store i32 1, ptr %4, align 4
%19 = load i32, ptr %4, align 4
%20 = load i32, ptr %3, align 4
%21 = icmp sle i32 %19, %20
br i1 %21, label %.lr.ph2, label %33
.lr.ph2: ; preds = %17
br label %22
22: ; preds = %.lr.ph2, %27
%23 = call i32 @scanf(ptr noundef @.str, ptr noundef %5)
%24 = load i32, ptr %5, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [1001 x i32], ptr %2, i64 0, i64 %25
store i32 1, ptr %26, align 4
br label %27
27: ; preds = %22
%28 = load i32, ptr %4, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %4, align 4
%30 = load i32, ptr %4, align 4
%31 = load i32, ptr %3, align 4
%32 = icmp sle i32 %30, %31
br i1 %32, label %22, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %27
br label %33
33: ; preds = %._crit_edge3, %17
store i32 1, ptr %4, align 4
%34 = load i32, ptr %4, align 4
%35 = icmp sle i32 %34, 1000
br i1 %35, label %.lr.ph5, label %51
.lr.ph5: ; preds = %33
br label %36
36: ; preds = %.lr.ph5, %46
%37 = load i32, ptr %4, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [1001 x i32], ptr %2, i64 0, i64 %38
%40 = load i32, ptr %39, align 4
%41 = icmp eq i32 %40, 1
br i1 %41, label %42, label %45
42: ; preds = %36
%43 = load i32, ptr %4, align 4
%44 = call i32 @printf(ptr noundef @.str.1, i32 noundef %43)
br label %45
45: ; preds = %42, %36
br label %46
46: ; preds = %45
%47 = load i32, ptr %4, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %4, align 4
%49 = load i32, ptr %4, align 4
%50 = icmp sle i32 %49, 1000
br i1 %50, label %36, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %46
br label %51
51: ; preds = %._crit_edge6, %33
%52 = call i32 (...) @getchar()
%53 = call i32 (...) @getchar()
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpw14oiqy0.c'
source_filename = "/tmp/tmpw14oiqy0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINTR = dso_local global i64 0, align 8
@MSG_CTRUNC = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw14oiqy0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINTR = dso_local global i64 0, align 8
@MSG_CTRUNC = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqzhxvpke.c'
source_filename = "/tmp/tmpqzhxvpke.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"foo3.dylib\00", align 1
@RTLD_LAZY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [35 x i8] c"dlsym-indirect dlopen(\22%s\22) failed\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"foo\00", align 1
@.str.3 = private unnamed_addr constant [43 x i8] c"dlsym-indirect dlsym(handle, \22foo\22) failed\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"foo1\00", align 1
@.str.5 = private unnamed_addr constant [44 x i8] c"dlsym-indirect dlsym(handle, \22foo1\22) failed\00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c"foo2\00", align 1
@.str.7 = private unnamed_addr constant [44 x i8] c"dlsym-indirect dlsym(handle, \22foo2\22) failed\00", align 1
@.str.8 = private unnamed_addr constant [5 x i8] c"foo3\00", align 1
@.str.9 = private unnamed_addr constant [56 x i8] c"dlsym-indirect dlsym(handle, \22foo3\22) should have failed\00", align 1
@.str.10 = private unnamed_addr constant [18 x i8] c"dlsym-indirect %s\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = 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
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 1
%16 = load ptr, ptr %15, align 8
store ptr %16, ptr %6, align 8
store ptr @.str, ptr %7, align 8
%17 = load ptr, ptr %6, align 8
%18 = load i32, ptr @RTLD_LAZY, align 4
%19 = call ptr @dlopen(ptr noundef %17, i32 noundef %18)
store ptr %19, ptr %8, align 8
%20 = load ptr, ptr %8, align 8
%21 = icmp eq ptr %20, null
br i1 %21, label %22, label %26
22: ; preds = %2
%23 = load ptr, ptr %6, align 8
%24 = call i32 (ptr, ...) @FAIL(ptr noundef @.str.1, ptr noundef %23)
%25 = call i32 @exit(i32 noundef 0) #3
unreachable
26: ; preds = %2
%27 = load ptr, ptr %7, align 8
%28 = load i32, ptr @RTLD_LAZY, align 4
%29 = call ptr @dlopen(ptr noundef %27, i32 noundef %28)
store ptr %29, ptr %9, align 8
%30 = load ptr, ptr %9, align 8
%31 = icmp eq ptr %30, null
br i1 %31, label %32, label %36
32: ; preds = %26
%33 = load ptr, ptr %7, align 8
%34 = call i32 (ptr, ...) @FAIL(ptr noundef @.str.1, ptr noundef %33)
%35 = call i32 @exit(i32 noundef 0) #3
unreachable
36: ; preds = %26
%37 = load ptr, ptr %8, align 8
%38 = call ptr @dlsym(ptr noundef %37, ptr noundef @.str.2)
store ptr %38, ptr %10, align 8
%39 = load ptr, ptr %10, align 8
%40 = icmp eq ptr %39, null
br i1 %40, label %41, label %44
41: ; preds = %36
%42 = call i32 (ptr, ...) @FAIL(ptr noundef @.str.3)
%43 = call i32 @exit(i32 noundef 0) #3
unreachable
44: ; preds = %36
%45 = load ptr, ptr %8, align 8
%46 = call ptr @dlsym(ptr noundef %45, ptr noundef @.str.4)
store ptr %46, ptr %11, align 8
%47 = load ptr, ptr %11, align 8
%48 = icmp eq ptr %47, null
br i1 %48, label %49, label %51
49: ; preds = %44
%50 = call i32 (ptr, ...) @FAIL(ptr noundef @.str.5)
br label %51
51: ; preds = %49, %44
%52 = load ptr, ptr %8, align 8
%53 = call ptr @dlsym(ptr noundef %52, ptr noundef @.str.6)
store ptr %53, ptr %12, align 8
%54 = load ptr, ptr %12, align 8
%55 = icmp eq ptr %54, null
br i1 %55, label %56, label %58
56: ; preds = %51
%57 = call i32 (ptr, ...) @FAIL(ptr noundef @.str.7)
br label %58
58: ; preds = %56, %51
%59 = load ptr, ptr %8, align 8
%60 = call ptr @dlsym(ptr noundef %59, ptr noundef @.str.8)
store ptr %60, ptr %13, align 8
%61 = load ptr, ptr %13, align 8
%62 = icmp ne ptr %61, null
br i1 %62, label %63, label %65
63: ; preds = %58
%64 = call i32 (ptr, ...) @FAIL(ptr noundef @.str.9)
br label %65
65: ; preds = %63, %58
%66 = load ptr, ptr %6, align 8
%67 = call i32 @PASS(ptr noundef @.str.10, ptr noundef %66)
%68 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %68
}
declare ptr @dlopen(ptr noundef, i32 noundef) #1
declare i32 @FAIL(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @dlsym(ptr noundef, ptr noundef) #1
declare i32 @PASS(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/tmpqzhxvpke.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"foo3.dylib\00", align 1
@RTLD_LAZY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [35 x i8] c"dlsym-indirect dlopen(\22%s\22) failed\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"foo\00", align 1
@.str.3 = private unnamed_addr constant [43 x i8] c"dlsym-indirect dlsym(handle, \22foo\22) failed\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"foo1\00", align 1
@.str.5 = private unnamed_addr constant [44 x i8] c"dlsym-indirect dlsym(handle, \22foo1\22) failed\00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c"foo2\00", align 1
@.str.7 = private unnamed_addr constant [44 x i8] c"dlsym-indirect dlsym(handle, \22foo2\22) failed\00", align 1
@.str.8 = private unnamed_addr constant [5 x i8] c"foo3\00", align 1
@.str.9 = private unnamed_addr constant [56 x i8] c"dlsym-indirect dlsym(handle, \22foo3\22) should have failed\00", align 1
@.str.10 = private unnamed_addr constant [18 x i8] c"dlsym-indirect %s\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = 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
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 1
%16 = load ptr, ptr %15, align 8
store ptr %16, ptr %6, align 8
store ptr @.str, ptr %7, align 8
%17 = load ptr, ptr %6, align 8
%18 = load i32, ptr @RTLD_LAZY, align 4
%19 = call ptr @dlopen(ptr noundef %17, i32 noundef %18)
store ptr %19, ptr %8, align 8
%20 = load ptr, ptr %8, align 8
%21 = icmp eq ptr %20, null
br i1 %21, label %22, label %26
22: ; preds = %2
%23 = load ptr, ptr %6, align 8
%24 = call i32 (ptr, ...) @FAIL(ptr noundef @.str.1, ptr noundef %23)
%25 = call i32 @exit(i32 noundef 0) #3
unreachable
26: ; preds = %2
%27 = load ptr, ptr %7, align 8
%28 = load i32, ptr @RTLD_LAZY, align 4
%29 = call ptr @dlopen(ptr noundef %27, i32 noundef %28)
store ptr %29, ptr %9, align 8
%30 = load ptr, ptr %9, align 8
%31 = icmp eq ptr %30, null
br i1 %31, label %32, label %36
32: ; preds = %26
%33 = load ptr, ptr %7, align 8
%34 = call i32 (ptr, ...) @FAIL(ptr noundef @.str.1, ptr noundef %33)
%35 = call i32 @exit(i32 noundef 0) #3
unreachable
36: ; preds = %26
%37 = load ptr, ptr %8, align 8
%38 = call ptr @dlsym(ptr noundef %37, ptr noundef @.str.2)
store ptr %38, ptr %10, align 8
%39 = load ptr, ptr %10, align 8
%40 = icmp eq ptr %39, null
br i1 %40, label %41, label %44
41: ; preds = %36
%42 = call i32 (ptr, ...) @FAIL(ptr noundef @.str.3)
%43 = call i32 @exit(i32 noundef 0) #3
unreachable
44: ; preds = %36
%45 = load ptr, ptr %8, align 8
%46 = call ptr @dlsym(ptr noundef %45, ptr noundef @.str.4)
store ptr %46, ptr %11, align 8
%47 = load ptr, ptr %11, align 8
%48 = icmp eq ptr %47, null
br i1 %48, label %49, label %51
49: ; preds = %44
%50 = call i32 (ptr, ...) @FAIL(ptr noundef @.str.5)
br label %51
51: ; preds = %49, %44
%52 = load ptr, ptr %8, align 8
%53 = call ptr @dlsym(ptr noundef %52, ptr noundef @.str.6)
store ptr %53, ptr %12, align 8
%54 = load ptr, ptr %12, align 8
%55 = icmp eq ptr %54, null
br i1 %55, label %56, label %58
56: ; preds = %51
%57 = call i32 (ptr, ...) @FAIL(ptr noundef @.str.7)
br label %58
58: ; preds = %56, %51
%59 = load ptr, ptr %8, align 8
%60 = call ptr @dlsym(ptr noundef %59, ptr noundef @.str.8)
store ptr %60, ptr %13, align 8
%61 = load ptr, ptr %13, align 8
%62 = icmp ne ptr %61, null
br i1 %62, label %63, label %65
63: ; preds = %58
%64 = call i32 (ptr, ...) @FAIL(ptr noundef @.str.9)
br label %65
65: ; preds = %63, %58
%66 = load ptr, ptr %6, align 8
%67 = call i32 @PASS(ptr noundef @.str.10, ptr noundef %66)
%68 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %68
}
declare ptr @dlopen(ptr noundef, i32 noundef) #1
declare i32 @FAIL(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @dlsym(ptr noundef, ptr noundef) #1
declare i32 @PASS(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/tmpzfmat7uc.c'
source_filename = "/tmp/tmpzfmat7uc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @fibsequence()
%3 = call i32 @printf(ptr noundef @.str, i32 noundef %2)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @fibsequence(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzfmat7uc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @fibsequence()
%3 = call i32 @printf(ptr noundef @.str, i32 noundef %2)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @fibsequence(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0s3lens3.c'
source_filename = "/tmp/tmp0s3lens3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Character: %c\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"Integer: %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"Real Number: %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = alloca i32, align 4
%4 = alloca float, align 4
store i32 0, ptr %1, align 4
store i8 77, ptr %2, align 1
%5 = load i8, ptr %2, align 1
%6 = sitofp i8 %5 to float
%7 = call i32 @printf(ptr noundef @.str, float noundef %6)
store i32 100, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = sitofp i32 %8 to float
%10 = call i32 @printf(ptr noundef @.str.1, float noundef %9)
store float 0x402470A3E0000000, ptr %4, align 4
%11 = load float, ptr %4, align 4
%12 = call i32 @printf(ptr noundef @.str.2, float noundef %11)
ret i32 0
}
declare i32 @printf(ptr noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0s3lens3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Character: %c\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"Integer: %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"Real Number: %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = alloca i32, align 4
%4 = alloca float, align 4
store i32 0, ptr %1, align 4
store i8 77, ptr %2, align 1
%5 = load i8, ptr %2, align 1
%6 = sitofp i8 %5 to float
%7 = call i32 @printf(ptr noundef @.str, float noundef %6)
store i32 100, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = sitofp i32 %8 to float
%10 = call i32 @printf(ptr noundef @.str.1, float noundef %9)
store float 0x402470A3E0000000, ptr %4, align 4
%11 = load float, ptr %4, align 4
%12 = call i32 @printf(ptr noundef @.str.2, float noundef %11)
ret i32 0
}
declare i32 @printf(ptr noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxh472h_4.c'
source_filename = "/tmp/tmpxh472h_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"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [15 x i8] c"usage: %s <N>\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%ld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = 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
%11 = load i32, ptr %4, align 4
%12 = icmp ne i32 %11, 2
br i1 %12, label %13, label %19
13: ; preds = %2
%14 = load i32, ptr @stderr, align 4
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 0
%17 = load ptr, ptr %16, align 8
%18 = call i32 @fprintf(i32 noundef %14, ptr noundef @.str, ptr noundef %17)
store i32 1, ptr %3, align 4
br label %57
19: ; preds = %2
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
%23 = call i32 @atoi(ptr noundef %22)
store i32 %23, ptr %6, align 4
%24 = load i32, ptr %6, align 4
%25 = icmp slt i32 %24, 7
br i1 %25, label %26, label %27
26: ; preds = %19
store i32 1, ptr %3, align 4
br label %57
27: ; preds = %19
store i64 0, ptr %7, align 8
%28 = load i32, ptr %6, align 4
%29 = add nsw i32 %28, 1
%30 = call ptr @primes_under(ptr noundef null, i32 noundef %29, ptr noundef %7)
store ptr %30, ptr %8, align 8
store i64 0, ptr %9, align 8
store i64 2, ptr %10, align 8
br label %31
31: ; preds = %49, %27
%32 = load i64, ptr %10, align 8
%33 = load i64, ptr %7, align 8
%34 = sub i64 %33, 1
%35 = icmp ult i64 %32, %34
br i1 %35, label %36, label %52
36: ; preds = %31
%37 = load ptr, ptr %8, align 8
%38 = load i64, ptr %10, align 8
%39 = getelementptr inbounds i32, ptr %37, i64 %38
%40 = load i32, ptr %39, align 4
%41 = load ptr, ptr %8, align 8
%42 = load i64, ptr %10, align 8
%43 = add i64 %42, 1
%44 = getelementptr inbounds i32, ptr %41, i64 %43
%45 = load i32, ptr %44, align 4
%46 = call i64 @find_multiple(i32 noundef %40, i32 noundef %45)
%47 = load i64, ptr %9, align 8
%48 = add nsw i64 %47, %46
store i64 %48, ptr %9, align 8
br label %49
49: ; preds = %36
%50 = load i64, ptr %10, align 8
%51 = add i64 %50, 1
store i64 %51, ptr %10, align 8
br label %31, !llvm.loop !6
52: ; preds = %31
%53 = load i64, ptr %9, align 8
%54 = call i32 @printf(ptr noundef @.str.1, i64 noundef %53)
%55 = load ptr, ptr %8, align 8
%56 = call i32 @free(ptr noundef %55)
store i32 0, ptr %3, align 4
br label %57
57: ; preds = %52, %26, %13
%58 = load i32, ptr %3, align 4
ret i32 %58
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare ptr @primes_under(ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @find_multiple(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxh472h_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"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [15 x i8] c"usage: %s <N>\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%ld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = 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
%11 = load i32, ptr %4, align 4
%12 = icmp ne i32 %11, 2
br i1 %12, label %13, label %19
13: ; preds = %2
%14 = load i32, ptr @stderr, align 4
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 0
%17 = load ptr, ptr %16, align 8
%18 = call i32 @fprintf(i32 noundef %14, ptr noundef @.str, ptr noundef %17)
store i32 1, ptr %3, align 4
br label %60
19: ; preds = %2
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
%23 = call i32 @atoi(ptr noundef %22)
store i32 %23, ptr %6, align 4
%24 = load i32, ptr %6, align 4
%25 = icmp slt i32 %24, 7
br i1 %25, label %26, label %27
26: ; preds = %19
store i32 1, ptr %3, align 4
br label %60
27: ; preds = %19
store i64 0, ptr %7, align 8
%28 = load i32, ptr %6, align 4
%29 = add nsw i32 %28, 1
%30 = call ptr @primes_under(ptr noundef null, i32 noundef %29, ptr noundef %7)
store ptr %30, ptr %8, align 8
store i64 0, ptr %9, align 8
store i64 2, ptr %10, align 8
%31 = load i64, ptr %10, align 8
%32 = load i64, ptr %7, align 8
%33 = sub i64 %32, 1
%34 = icmp ult i64 %31, %33
br i1 %34, label %.lr.ph, label %55
.lr.ph: ; preds = %27
br label %35
35: ; preds = %.lr.ph, %48
%36 = load ptr, ptr %8, align 8
%37 = load i64, ptr %10, align 8
%38 = getelementptr inbounds i32, ptr %36, i64 %37
%39 = load i32, ptr %38, align 4
%40 = load ptr, ptr %8, align 8
%41 = load i64, ptr %10, align 8
%42 = add i64 %41, 1
%43 = getelementptr inbounds i32, ptr %40, i64 %42
%44 = load i32, ptr %43, align 4
%45 = call i64 @find_multiple(i32 noundef %39, i32 noundef %44)
%46 = load i64, ptr %9, align 8
%47 = add nsw i64 %46, %45
store i64 %47, ptr %9, align 8
br label %48
48: ; preds = %35
%49 = load i64, ptr %10, align 8
%50 = add i64 %49, 1
store i64 %50, ptr %10, align 8
%51 = load i64, ptr %10, align 8
%52 = load i64, ptr %7, align 8
%53 = sub i64 %52, 1
%54 = icmp ult i64 %51, %53
br i1 %54, label %35, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %48
br label %55
55: ; preds = %._crit_edge, %27
%56 = load i64, ptr %9, align 8
%57 = call i32 @printf(ptr noundef @.str.1, i64 noundef %56)
%58 = load ptr, ptr %8, align 8
%59 = call i32 @free(ptr noundef %58)
store i32 0, ptr %3, align 4
br label %60
60: ; preds = %55, %26, %13
%61 = load i32, ptr %3, align 4
ret i32 %61
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare ptr @primes_under(ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @find_multiple(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmphw9rtyd6.c'
source_filename = "/tmp/tmphw9rtyd6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isPrimaryStress(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = call signext i8 @lastChar(ptr noundef %4)
%6 = sext i8 %5 to i32
%7 = icmp eq i32 %6, 49
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 1, ptr %2, align 4
br label %10
9: ; preds = %1
store i32 0, ptr %2, align 4
br label %10
10: ; preds = %9, %8
%11 = load i32, ptr %2, align 4
ret i32 %11
}
declare signext i8 @lastChar(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmphw9rtyd6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isPrimaryStress(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = call signext i8 @lastChar(ptr noundef %4)
%6 = sext i8 %5 to i32
%7 = icmp eq i32 %6, 49
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 1, ptr %2, align 4
br label %10
9: ; preds = %1
store i32 0, ptr %2, align 4
br label %10
10: ; preds = %9, %8
%11 = load i32, ptr %2, align 4
ret i32 %11
}
declare signext i8 @lastChar(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpm5v64vrr.c'
source_filename = "/tmp/tmpm5v64vrr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"Hello World!\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 ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = 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/tmpm5v64vrr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"Hello World!\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 ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = 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/tmph8iyp0z0.c'
source_filename = "/tmp/tmph8iyp0z0.c"
target datalayout = "e-m:e-p270: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/tmph8iyp0z0.c"
target datalayout = "e-m:e-p270: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/tmpd2gbpre3.c'
source_filename = "/tmp/tmpd2gbpre3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s = %s %% %s;\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @__func_mod_uint(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %6, align 8
%10 = load ptr, ptr %7, align 8
%11 = load ptr, ptr %8, align 8
%12 = call i32 @pA(ptr noundef @.str, ptr noundef %9, ptr noundef %10, ptr noundef %11)
ret void
}
declare i32 @pA(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpd2gbpre3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s = %s %% %s;\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @__func_mod_uint(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %6, align 8
%10 = load ptr, ptr %7, align 8
%11 = load ptr, ptr %8, align 8
%12 = call i32 @pA(ptr noundef @.str, ptr noundef %9, ptr noundef %10, ptr noundef %11)
ret void
}
declare i32 @pA(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpr12ppolh.c'
source_filename = "/tmp/tmpr12ppolh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @thread_exit() #0 {
%1 = call i32 @pthread_exit(ptr noundef null)
ret void
}
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/tmpr12ppolh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @thread_exit() #0 {
%1 = call i32 @pthread_exit(ptr noundef null)
ret void
}
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/tmpc1c1ut4s.c'
source_filename = "/tmp/tmpc1c1ut4s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @showA(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = load i32, ptr %3, align 4
%7 = zext i32 %6 to i64
store i32 0, ptr %5, align 4
br label %8
8: ; preds = %27, %2
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %30
12: ; preds = %8
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %5, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i32, ptr %13, i64 %15
%17 = load i32, ptr %16, align 4
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %26
19: ; preds = %12
%20 = load ptr, ptr %4, align 8
%21 = load i32, ptr %5, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i32, ptr %20, i64 %22
%24 = load i32, ptr %23, align 4
%25 = call i32 @printw(ptr noundef @.str, i32 noundef %24)
br label %26
26: ; preds = %19, %12
br label %27
27: ; preds = %26
%28 = load i32, ptr %5, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %5, align 4
br label %8, !llvm.loop !6
30: ; preds = %8
ret void
}
declare i32 @printw(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/tmpc1c1ut4s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @showA(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = load i32, ptr %3, align 4
%7 = zext i32 %6 to i64
store i32 0, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %3, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %32
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %26
%12 = load ptr, ptr %4, align 8
%13 = load i32, ptr %5, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i32, ptr %12, i64 %14
%16 = load i32, ptr %15, align 4
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %25
18: ; preds = %11
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %5, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i32, ptr %19, i64 %21
%23 = load i32, ptr %22, align 4
%24 = call i32 @printw(ptr noundef @.str, i32 noundef %23)
br label %25
25: ; preds = %18, %11
br label %26
26: ; preds = %25
%27 = load i32, ptr %5, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %5, align 4
%29 = load i32, ptr %5, align 4
%30 = load i32, ptr %3, align 4
%31 = icmp slt i32 %29, %30
br i1 %31, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %32
32: ; preds = %._crit_edge, %2
ret void
}
declare i32 @printw(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/tmp592aol71.c'
source_filename = "/tmp/tmp592aol71.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ascii85_open_tilemap(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i64 @_ascii85_open_tilemap(ptr noundef %5, i32 noundef %6)
%8 = inttoptr i64 %7 to ptr
ret ptr %8
}
declare i64 @_ascii85_open_tilemap(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/tmp592aol71.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ascii85_open_tilemap(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i64 @_ascii85_open_tilemap(ptr noundef %5, i32 noundef %6)
%8 = inttoptr i64 %7 to ptr
ret ptr %8
}
declare i64 @_ascii85_open_tilemap(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/tmpfd120duw.c'
source_filename = "/tmp/tmpfd120duw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @init_permutation()
ret i32 0
}
declare i32 @init_permutation(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfd120duw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @init_permutation()
ret i32 0
}
declare i32 @init_permutation(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpywllei95.c'
source_filename = "/tmp/tmpywllei95.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mdaq_uart_init() #0 {
%1 = call i32 (...) @mdaq_rpc_init()
ret i32 0
}
declare i32 @mdaq_rpc_init(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpywllei95.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mdaq_uart_init() #0 {
%1 = call i32 (...) @mdaq_rpc_init()
ret i32 0
}
declare i32 @mdaq_rpc_init(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp90xwxuvo.c'
source_filename = "/tmp/tmp90xwxuvo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @R_InitPlanes() #0 {
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp90xwxuvo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @R_InitPlanes() #0 {
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1vq1btk1.c'
source_filename = "/tmp/tmp1vq1btk1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"NSTACK too small in sort.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @quicksorti(i64 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca float, align 4
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca float, align 4
%16 = alloca float, align 4
store i64 %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%17 = load i64, ptr %4, align 8
store i64 %17, ptr %8, align 8
store i64 1, ptr %11, align 8
store i32 0, ptr %14, align 4
%18 = call ptr @lvector(i32 noundef 1, i32 noundef 200)
store ptr %18, ptr %13, align 8
br label %19
19: ; preds = %433, %3
%20 = load i64, ptr %8, align 8
%21 = load i64, ptr %11, align 8
%22 = sub i64 %20, %21
%23 = icmp ult i64 %22, 7
br i1 %23, label %24, label %108
24: ; preds = %19
%25 = load i64, ptr %11, align 8
%26 = add i64 %25, 1
store i64 %26, ptr %9, align 8
br label %27
27: ; preds = %88, %24
%28 = load i64, ptr %9, align 8
%29 = load i64, ptr %8, align 8
%30 = icmp ule i64 %28, %29
br i1 %30, label %31, label %91
31: ; preds = %27
%32 = load ptr, ptr %5, align 8
%33 = load i64, ptr %9, align 8
%34 = getelementptr inbounds i32, ptr %32, i64 %33
%35 = load i32, ptr %34, align 4
%36 = sitofp i32 %35 to float
store float %36, ptr %15, align 4
%37 = load ptr, ptr %6, align 8
%38 = load i64, ptr %9, align 8
%39 = getelementptr inbounds float, ptr %37, i64 %38
%40 = load float, ptr %39, align 4
store float %40, ptr %12, align 4
%41 = load i64, ptr %9, align 8
%42 = sub i64 %41, 1
store i64 %42, ptr %7, align 8
br label %43
43: ; preds = %73, %31
%44 = load i64, ptr %7, align 8
%45 = load i64, ptr %11, align 8
%46 = icmp uge i64 %44, %45
br i1 %46, label %47, label %76
47: ; preds = %43
%48 = load ptr, ptr %5, align 8
%49 = load i64, ptr %7, align 8
%50 = getelementptr inbounds i32, ptr %48, i64 %49
%51 = load i32, ptr %50, align 4
%52 = sitofp i32 %51 to float
%53 = load float, ptr %15, align 4
%54 = fcmp ole float %52, %53
br i1 %54, label %55, label %56
55: ; preds = %47
br label %76
56: ; preds = %47
%57 = load ptr, ptr %5, align 8
%58 = load i64, ptr %7, align 8
%59 = getelementptr inbounds i32, ptr %57, i64 %58
%60 = load i32, ptr %59, align 4
%61 = load ptr, ptr %5, align 8
%62 = load i64, ptr %7, align 8
%63 = add i64 %62, 1
%64 = getelementptr inbounds i32, ptr %61, i64 %63
store i32 %60, ptr %64, align 4
%65 = load ptr, ptr %6, align 8
%66 = load i64, ptr %7, align 8
%67 = getelementptr inbounds float, ptr %65, i64 %66
%68 = load float, ptr %67, align 4
%69 = load ptr, ptr %6, align 8
%70 = load i64, ptr %7, align 8
%71 = add i64 %70, 1
%72 = getelementptr inbounds float, ptr %69, i64 %71
store float %68, ptr %72, align 4
br label %73
73: ; preds = %56
%74 = load i64, ptr %7, align 8
%75 = add i64 %74, -1
store i64 %75, ptr %7, align 8
br label %43, !llvm.loop !6
76: ; preds = %55, %43
%77 = load float, ptr %15, align 4
%78 = fptosi float %77 to i32
%79 = load ptr, ptr %5, align 8
%80 = load i64, ptr %7, align 8
%81 = add i64 %80, 1
%82 = getelementptr inbounds i32, ptr %79, i64 %81
store i32 %78, ptr %82, align 4
%83 = load float, ptr %12, align 4
%84 = load ptr, ptr %6, align 8
%85 = load i64, ptr %7, align 8
%86 = add i64 %85, 1
%87 = getelementptr inbounds float, ptr %84, i64 %86
store float %83, ptr %87, align 4
br label %88
88: ; preds = %76
%89 = load i64, ptr %9, align 8
%90 = add i64 %89, 1
store i64 %90, ptr %9, align 8
br label %27, !llvm.loop !8
91: ; preds = %27
%92 = load i32, ptr %14, align 4
%93 = icmp eq i32 %92, 0
br i1 %93, label %94, label %95
94: ; preds = %91
br label %434
95: ; preds = %91
%96 = load ptr, ptr %13, align 8
%97 = load i32, ptr %14, align 4
%98 = add nsw i32 %97, -1
store i32 %98, ptr %14, align 4
%99 = sext i32 %97 to i64
%100 = getelementptr inbounds i64, ptr %96, i64 %99
%101 = load i64, ptr %100, align 8
store i64 %101, ptr %8, align 8
%102 = load ptr, ptr %13, align 8
%103 = load i32, ptr %14, align 4
%104 = add nsw i32 %103, -1
store i32 %104, ptr %14, align 4
%105 = sext i32 %103 to i64
%106 = getelementptr inbounds i64, ptr %102, i64 %105
%107 = load i64, ptr %106, align 8
store i64 %107, ptr %11, align 8
br label %433
108: ; preds = %19
%109 = load i64, ptr %11, align 8
%110 = load i64, ptr %8, align 8
%111 = add i64 %109, %110
%112 = lshr i64 %111, 1
store i64 %112, ptr %10, align 8
%113 = load ptr, ptr %5, align 8
%114 = load i64, ptr %10, align 8
%115 = getelementptr inbounds i32, ptr %113, i64 %114
%116 = load i32, ptr %115, align 4
%117 = sitofp i32 %116 to float
store float %117, ptr %16, align 4
%118 = load ptr, ptr %5, align 8
%119 = load i64, ptr %11, align 8
%120 = add i64 %119, 1
%121 = getelementptr inbounds i32, ptr %118, i64 %120
%122 = load i32, ptr %121, align 4
%123 = load ptr, ptr %5, align 8
%124 = load i64, ptr %10, align 8
%125 = getelementptr inbounds i32, ptr %123, i64 %124
store i32 %122, ptr %125, align 4
%126 = load float, ptr %16, align 4
%127 = fptosi float %126 to i32
%128 = load ptr, ptr %5, align 8
%129 = load i64, ptr %11, align 8
%130 = add i64 %129, 1
%131 = getelementptr inbounds i32, ptr %128, i64 %130
store i32 %127, ptr %131, align 4
%132 = load ptr, ptr %6, align 8
%133 = load i64, ptr %10, align 8
%134 = getelementptr inbounds float, ptr %132, i64 %133
%135 = load float, ptr %134, align 4
store float %135, ptr %16, align 4
%136 = load ptr, ptr %6, align 8
%137 = load i64, ptr %11, align 8
%138 = add i64 %137, 1
%139 = getelementptr inbounds float, ptr %136, i64 %138
%140 = load float, ptr %139, align 4
%141 = load ptr, ptr %6, align 8
%142 = load i64, ptr %10, align 8
%143 = getelementptr inbounds float, ptr %141, i64 %142
store float %140, ptr %143, align 4
%144 = load float, ptr %16, align 4
%145 = load ptr, ptr %6, align 8
%146 = load i64, ptr %11, align 8
%147 = add i64 %146, 1
%148 = getelementptr inbounds float, ptr %145, i64 %147
store float %144, ptr %148, align 4
%149 = load ptr, ptr %5, align 8
%150 = load i64, ptr %11, align 8
%151 = getelementptr inbounds i32, ptr %149, i64 %150
%152 = load i32, ptr %151, align 4
%153 = load ptr, ptr %5, align 8
%154 = load i64, ptr %8, align 8
%155 = getelementptr inbounds i32, ptr %153, i64 %154
%156 = load i32, ptr %155, align 4
%157 = icmp sgt i32 %152, %156
br i1 %157, label %158, label %191
158: ; preds = %108
%159 = load ptr, ptr %5, align 8
%160 = load i64, ptr %11, align 8
%161 = getelementptr inbounds i32, ptr %159, i64 %160
%162 = load i32, ptr %161, align 4
%163 = sitofp i32 %162 to float
store float %163, ptr %16, align 4
%164 = load ptr, ptr %5, align 8
%165 = load i64, ptr %8, align 8
%166 = getelementptr inbounds i32, ptr %164, i64 %165
%167 = load i32, ptr %166, align 4
%168 = load ptr, ptr %5, align 8
%169 = load i64, ptr %11, align 8
%170 = getelementptr inbounds i32, ptr %168, i64 %169
store i32 %167, ptr %170, align 4
%171 = load float, ptr %16, align 4
%172 = fptosi float %171 to i32
%173 = load ptr, ptr %5, align 8
%174 = load i64, ptr %8, align 8
%175 = getelementptr inbounds i32, ptr %173, i64 %174
store i32 %172, ptr %175, align 4
%176 = load ptr, ptr %6, align 8
%177 = load i64, ptr %11, align 8
%178 = getelementptr inbounds float, ptr %176, i64 %177
%179 = load float, ptr %178, align 4
store float %179, ptr %16, align 4
%180 = load ptr, ptr %6, align 8
%181 = load i64, ptr %8, align 8
%182 = getelementptr inbounds float, ptr %180, i64 %181
%183 = load float, ptr %182, align 4
%184 = load ptr, ptr %6, align 8
%185 = load i64, ptr %11, align 8
%186 = getelementptr inbounds float, ptr %184, i64 %185
store float %183, ptr %186, align 4
%187 = load float, ptr %16, align 4
%188 = load ptr, ptr %6, align 8
%189 = load i64, ptr %8, align 8
%190 = getelementptr inbounds float, ptr %188, i64 %189
store float %187, ptr %190, align 4
br label %191
191: ; preds = %158, %108
%192 = load ptr, ptr %5, align 8
%193 = load i64, ptr %11, align 8
%194 = add i64 %193, 1
%195 = getelementptr inbounds i32, ptr %192, i64 %194
%196 = load i32, ptr %195, align 4
%197 = load ptr, ptr %5, align 8
%198 = load i64, ptr %8, align 8
%199 = getelementptr inbounds i32, ptr %197, i64 %198
%200 = load i32, ptr %199, align 4
%201 = icmp sgt i32 %196, %200
br i1 %201, label %202, label %239
202: ; preds = %191
%203 = load ptr, ptr %5, align 8
%204 = load i64, ptr %11, align 8
%205 = add i64 %204, 1
%206 = getelementptr inbounds i32, ptr %203, i64 %205
%207 = load i32, ptr %206, align 4
%208 = sitofp i32 %207 to float
store float %208, ptr %16, align 4
%209 = load ptr, ptr %5, align 8
%210 = load i64, ptr %8, align 8
%211 = getelementptr inbounds i32, ptr %209, i64 %210
%212 = load i32, ptr %211, align 4
%213 = load ptr, ptr %5, align 8
%214 = load i64, ptr %11, align 8
%215 = add i64 %214, 1
%216 = getelementptr inbounds i32, ptr %213, i64 %215
store i32 %212, ptr %216, align 4
%217 = load float, ptr %16, align 4
%218 = fptosi float %217 to i32
%219 = load ptr, ptr %5, align 8
%220 = load i64, ptr %8, align 8
%221 = getelementptr inbounds i32, ptr %219, i64 %220
store i32 %218, ptr %221, align 4
%222 = load ptr, ptr %6, align 8
%223 = load i64, ptr %11, align 8
%224 = add i64 %223, 1
%225 = getelementptr inbounds float, ptr %222, i64 %224
%226 = load float, ptr %225, align 4
store float %226, ptr %16, align 4
%227 = load ptr, ptr %6, align 8
%228 = load i64, ptr %8, align 8
%229 = getelementptr inbounds float, ptr %227, i64 %228
%230 = load float, ptr %229, align 4
%231 = load ptr, ptr %6, align 8
%232 = load i64, ptr %11, align 8
%233 = add i64 %232, 1
%234 = getelementptr inbounds float, ptr %231, i64 %233
store float %230, ptr %234, align 4
%235 = load float, ptr %16, align 4
%236 = load ptr, ptr %6, align 8
%237 = load i64, ptr %8, align 8
%238 = getelementptr inbounds float, ptr %236, i64 %237
store float %235, ptr %238, align 4
br label %239
239: ; preds = %202, %191
%240 = load ptr, ptr %5, align 8
%241 = load i64, ptr %11, align 8
%242 = getelementptr inbounds i32, ptr %240, i64 %241
%243 = load i32, ptr %242, align 4
%244 = load ptr, ptr %5, align 8
%245 = load i64, ptr %11, align 8
%246 = add i64 %245, 1
%247 = getelementptr inbounds i32, ptr %244, i64 %246
%248 = load i32, ptr %247, align 4
%249 = icmp sgt i32 %243, %248
br i1 %249, label %250, label %287
250: ; preds = %239
%251 = load ptr, ptr %5, align 8
%252 = load i64, ptr %11, align 8
%253 = getelementptr inbounds i32, ptr %251, i64 %252
%254 = load i32, ptr %253, align 4
%255 = sitofp i32 %254 to float
store float %255, ptr %16, align 4
%256 = load ptr, ptr %5, align 8
%257 = load i64, ptr %11, align 8
%258 = add i64 %257, 1
%259 = getelementptr inbounds i32, ptr %256, i64 %258
%260 = load i32, ptr %259, align 4
%261 = load ptr, ptr %5, align 8
%262 = load i64, ptr %11, align 8
%263 = getelementptr inbounds i32, ptr %261, i64 %262
store i32 %260, ptr %263, align 4
%264 = load float, ptr %16, align 4
%265 = fptosi float %264 to i32
%266 = load ptr, ptr %5, align 8
%267 = load i64, ptr %11, align 8
%268 = add i64 %267, 1
%269 = getelementptr inbounds i32, ptr %266, i64 %268
store i32 %265, ptr %269, align 4
%270 = load ptr, ptr %6, align 8
%271 = load i64, ptr %11, align 8
%272 = getelementptr inbounds float, ptr %270, i64 %271
%273 = load float, ptr %272, align 4
store float %273, ptr %16, align 4
%274 = load ptr, ptr %6, align 8
%275 = load i64, ptr %11, align 8
%276 = add i64 %275, 1
%277 = getelementptr inbounds float, ptr %274, i64 %276
%278 = load float, ptr %277, align 4
%279 = load ptr, ptr %6, align 8
%280 = load i64, ptr %11, align 8
%281 = getelementptr inbounds float, ptr %279, i64 %280
store float %278, ptr %281, align 4
%282 = load float, ptr %16, align 4
%283 = load ptr, ptr %6, align 8
%284 = load i64, ptr %11, align 8
%285 = add i64 %284, 1
%286 = getelementptr inbounds float, ptr %283, i64 %285
store float %282, ptr %286, align 4
br label %287
287: ; preds = %250, %239
%288 = load i64, ptr %11, align 8
%289 = add i64 %288, 1
store i64 %289, ptr %7, align 8
%290 = load i64, ptr %8, align 8
store i64 %290, ptr %9, align 8
%291 = load ptr, ptr %5, align 8
%292 = load i64, ptr %11, align 8
%293 = add i64 %292, 1
%294 = getelementptr inbounds i32, ptr %291, i64 %293
%295 = load i32, ptr %294, align 4
%296 = sitofp i32 %295 to float
store float %296, ptr %15, align 4
%297 = load ptr, ptr %6, align 8
%298 = load i64, ptr %11, align 8
%299 = add i64 %298, 1
%300 = getelementptr inbounds float, ptr %297, i64 %299
%301 = load float, ptr %300, align 4
store float %301, ptr %12, align 4
br label %302
302: ; preds = %331, %287
br label %303
303: ; preds = %306, %302
%304 = load i64, ptr %7, align 8
%305 = add i64 %304, 1
store i64 %305, ptr %7, align 8
br label %306
306: ; preds = %303
%307 = load ptr, ptr %5, align 8
%308 = load i64, ptr %7, align 8
%309 = getelementptr inbounds i32, ptr %307, i64 %308
%310 = load i32, ptr %309, align 4
%311 = sitofp i32 %310 to float
%312 = load float, ptr %15, align 4
%313 = fcmp olt float %311, %312
br i1 %313, label %303, label %314, !llvm.loop !9
314: ; preds = %306
br label %315
315: ; preds = %318, %314
%316 = load i64, ptr %9, align 8
%317 = add i64 %316, -1
store i64 %317, ptr %9, align 8
br label %318
318: ; preds = %315
%319 = load ptr, ptr %5, align 8
%320 = load i64, ptr %9, align 8
%321 = getelementptr inbounds i32, ptr %319, i64 %320
%322 = load i32, ptr %321, align 4
%323 = sitofp i32 %322 to float
%324 = load float, ptr %15, align 4
%325 = fcmp ogt float %323, %324
br i1 %325, label %315, label %326, !llvm.loop !10
326: ; preds = %318
%327 = load i64, ptr %9, align 8
%328 = load i64, ptr %7, align 8
%329 = icmp ult i64 %327, %328
br i1 %329, label %330, label %331
330: ; preds = %326
br label %364
331: ; preds = %326
%332 = load ptr, ptr %5, align 8
%333 = load i64, ptr %7, align 8
%334 = getelementptr inbounds i32, ptr %332, i64 %333
%335 = load i32, ptr %334, align 4
%336 = sitofp i32 %335 to float
store float %336, ptr %16, align 4
%337 = load ptr, ptr %5, align 8
%338 = load i64, ptr %9, align 8
%339 = getelementptr inbounds i32, ptr %337, i64 %338
%340 = load i32, ptr %339, align 4
%341 = load ptr, ptr %5, align 8
%342 = load i64, ptr %7, align 8
%343 = getelementptr inbounds i32, ptr %341, i64 %342
store i32 %340, ptr %343, align 4
%344 = load float, ptr %16, align 4
%345 = fptosi float %344 to i32
%346 = load ptr, ptr %5, align 8
%347 = load i64, ptr %9, align 8
%348 = getelementptr inbounds i32, ptr %346, i64 %347
store i32 %345, ptr %348, align 4
%349 = load ptr, ptr %6, align 8
%350 = load i64, ptr %7, align 8
%351 = getelementptr inbounds float, ptr %349, i64 %350
%352 = load float, ptr %351, align 4
store float %352, ptr %16, align 4
%353 = load ptr, ptr %6, align 8
%354 = load i64, ptr %9, align 8
%355 = getelementptr inbounds float, ptr %353, i64 %354
%356 = load float, ptr %355, align 4
%357 = load ptr, ptr %6, align 8
%358 = load i64, ptr %7, align 8
%359 = getelementptr inbounds float, ptr %357, i64 %358
store float %356, ptr %359, align 4
%360 = load float, ptr %16, align 4
%361 = load ptr, ptr %6, align 8
%362 = load i64, ptr %9, align 8
%363 = getelementptr inbounds float, ptr %361, i64 %362
store float %360, ptr %363, align 4
br label %302
364: ; preds = %330
%365 = load ptr, ptr %5, align 8
%366 = load i64, ptr %9, align 8
%367 = getelementptr inbounds i32, ptr %365, i64 %366
%368 = load i32, ptr %367, align 4
%369 = load ptr, ptr %5, align 8
%370 = load i64, ptr %11, align 8
%371 = add i64 %370, 1
%372 = getelementptr inbounds i32, ptr %369, i64 %371
store i32 %368, ptr %372, align 4
%373 = load ptr, ptr %6, align 8
%374 = load i64, ptr %9, align 8
%375 = getelementptr inbounds float, ptr %373, i64 %374
%376 = load float, ptr %375, align 4
%377 = load ptr, ptr %6, align 8
%378 = load i64, ptr %11, align 8
%379 = add i64 %378, 1
%380 = getelementptr inbounds float, ptr %377, i64 %379
store float %376, ptr %380, align 4
%381 = load float, ptr %15, align 4
%382 = fptosi float %381 to i32
%383 = load ptr, ptr %5, align 8
%384 = load i64, ptr %9, align 8
%385 = getelementptr inbounds i32, ptr %383, i64 %384
store i32 %382, ptr %385, align 4
%386 = load float, ptr %12, align 4
%387 = load ptr, ptr %6, align 8
%388 = load i64, ptr %9, align 8
%389 = getelementptr inbounds float, ptr %387, i64 %388
store float %386, ptr %389, align 4
%390 = load i32, ptr %14, align 4
%391 = add nsw i32 %390, 2
store i32 %391, ptr %14, align 4
%392 = load i32, ptr %14, align 4
%393 = icmp sgt i32 %392, 200
br i1 %393, label %394, label %396
394: ; preds = %364
%395 = call i32 @nrerror(ptr noundef @.str)
br label %396
396: ; preds = %394, %364
%397 = load i64, ptr %8, align 8
%398 = load i64, ptr %7, align 8
%399 = sub i64 %397, %398
%400 = add i64 %399, 1
%401 = load i64, ptr %9, align 8
%402 = sub i64 %401, 1
%403 = icmp uge i64 %400, %402
br i1 %403, label %404, label %418
404: ; preds = %396
%405 = load i64, ptr %8, align 8
%406 = load ptr, ptr %13, align 8
%407 = load i32, ptr %14, align 4
%408 = sext i32 %407 to i64
%409 = getelementptr inbounds i64, ptr %406, i64 %408
store i64 %405, ptr %409, align 8
%410 = load i64, ptr %7, align 8
%411 = load ptr, ptr %13, align 8
%412 = load i32, ptr %14, align 4
%413 = sub nsw i32 %412, 1
%414 = sext i32 %413 to i64
%415 = getelementptr inbounds i64, ptr %411, i64 %414
store i64 %410, ptr %415, align 8
%416 = load i64, ptr %9, align 8
%417 = sub i64 %416, 1
store i64 %417, ptr %8, align 8
br label %432
418: ; preds = %396
%419 = load i64, ptr %9, align 8
%420 = sub i64 %419, 1
%421 = load ptr, ptr %13, align 8
%422 = load i32, ptr %14, align 4
%423 = sext i32 %422 to i64
%424 = getelementptr inbounds i64, ptr %421, i64 %423
store i64 %420, ptr %424, align 8
%425 = load i64, ptr %11, align 8
%426 = load ptr, ptr %13, align 8
%427 = load i32, ptr %14, align 4
%428 = sub nsw i32 %427, 1
%429 = sext i32 %428 to i64
%430 = getelementptr inbounds i64, ptr %426, i64 %429
store i64 %425, ptr %430, align 8
%431 = load i64, ptr %7, align 8
store i64 %431, ptr %11, align 8
br label %432
432: ; preds = %418, %404
br label %433
433: ; preds = %432, %95
br label %19
434: ; preds = %94
%435 = load ptr, ptr %13, align 8
%436 = call i32 @free_lvector(ptr noundef %435, i32 noundef 1, i32 noundef 200)
ret void
}
declare ptr @lvector(i32 noundef, i32 noundef) #1
declare i32 @nrerror(ptr noundef) #1
declare i32 @free_lvector(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1vq1btk1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"NSTACK too small in sort.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @quicksorti(i64 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca float, align 4
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca float, align 4
%16 = alloca float, align 4
store i64 %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%17 = load i64, ptr %4, align 8
store i64 %17, ptr %8, align 8
store i64 1, ptr %11, align 8
store i32 0, ptr %14, align 4
%18 = call ptr @lvector(i32 noundef 1, i32 noundef 200)
store ptr %18, ptr %13, align 8
br label %19
19: ; preds = %437, %3
%20 = load i64, ptr %8, align 8
%21 = load i64, ptr %11, align 8
%22 = sub i64 %20, %21
%23 = icmp ult i64 %22, 7
br i1 %23, label %24, label %112
24: ; preds = %19
%25 = load i64, ptr %11, align 8
%26 = add i64 %25, 1
store i64 %26, ptr %9, align 8
%27 = load i64, ptr %9, align 8
%28 = load i64, ptr %8, align 8
%29 = icmp ule i64 %27, %28
br i1 %29, label %.lr.ph1, label %95
.lr.ph1: ; preds = %24
br label %30
30: ; preds = %.lr.ph1, %89
%31 = load ptr, ptr %5, align 8
%32 = load i64, ptr %9, align 8
%33 = getelementptr inbounds i32, ptr %31, i64 %32
%34 = load i32, ptr %33, align 4
%35 = sitofp i32 %34 to float
store float %35, ptr %15, align 4
%36 = load ptr, ptr %6, align 8
%37 = load i64, ptr %9, align 8
%38 = getelementptr inbounds float, ptr %36, i64 %37
%39 = load float, ptr %38, align 4
store float %39, ptr %12, align 4
%40 = load i64, ptr %9, align 8
%41 = sub i64 %40, 1
store i64 %41, ptr %7, align 8
%42 = load i64, ptr %7, align 8
%43 = load i64, ptr %11, align 8
%44 = icmp uge i64 %42, %43
br i1 %44, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %30
br label %45
45: ; preds = %.lr.ph, %71
%46 = load ptr, ptr %5, align 8
%47 = load i64, ptr %7, align 8
%48 = getelementptr inbounds i32, ptr %46, i64 %47
%49 = load i32, ptr %48, align 4
%50 = sitofp i32 %49 to float
%51 = load float, ptr %15, align 4
%52 = fcmp ole float %50, %51
br i1 %52, label %53, label %54
53: ; preds = %45
br label %77
54: ; preds = %45
%55 = load ptr, ptr %5, align 8
%56 = load i64, ptr %7, align 8
%57 = getelementptr inbounds i32, ptr %55, i64 %56
%58 = load i32, ptr %57, align 4
%59 = load ptr, ptr %5, align 8
%60 = load i64, ptr %7, align 8
%61 = add i64 %60, 1
%62 = getelementptr inbounds i32, ptr %59, i64 %61
store i32 %58, ptr %62, align 4
%63 = load ptr, ptr %6, align 8
%64 = load i64, ptr %7, align 8
%65 = getelementptr inbounds float, ptr %63, i64 %64
%66 = load float, ptr %65, align 4
%67 = load ptr, ptr %6, align 8
%68 = load i64, ptr %7, align 8
%69 = add i64 %68, 1
%70 = getelementptr inbounds float, ptr %67, i64 %69
store float %66, ptr %70, align 4
br label %71
71: ; preds = %54
%72 = load i64, ptr %7, align 8
%73 = add i64 %72, -1
store i64 %73, ptr %7, align 8
%74 = load i64, ptr %7, align 8
%75 = load i64, ptr %11, align 8
%76 = icmp uge i64 %74, %75
br i1 %76, label %45, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %71
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %30
br label %77
77: ; preds = %.loopexit, %53
%78 = load float, ptr %15, align 4
%79 = fptosi float %78 to i32
%80 = load ptr, ptr %5, align 8
%81 = load i64, ptr %7, align 8
%82 = add i64 %81, 1
%83 = getelementptr inbounds i32, ptr %80, i64 %82
store i32 %79, ptr %83, align 4
%84 = load float, ptr %12, align 4
%85 = load ptr, ptr %6, align 8
%86 = load i64, ptr %7, align 8
%87 = add i64 %86, 1
%88 = getelementptr inbounds float, ptr %85, i64 %87
store float %84, ptr %88, align 4
br label %89
89: ; preds = %77
%90 = load i64, ptr %9, align 8
%91 = add i64 %90, 1
store i64 %91, ptr %9, align 8
%92 = load i64, ptr %9, align 8
%93 = load i64, ptr %8, align 8
%94 = icmp ule i64 %92, %93
br i1 %94, label %30, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %89
br label %95
95: ; preds = %._crit_edge, %24
%96 = load i32, ptr %14, align 4
%97 = icmp eq i32 %96, 0
br i1 %97, label %98, label %99
98: ; preds = %95
br label %438
99: ; preds = %95
%100 = load ptr, ptr %13, align 8
%101 = load i32, ptr %14, align 4
%102 = add nsw i32 %101, -1
store i32 %102, ptr %14, align 4
%103 = sext i32 %101 to i64
%104 = getelementptr inbounds i64, ptr %100, i64 %103
%105 = load i64, ptr %104, align 8
store i64 %105, ptr %8, align 8
%106 = load ptr, ptr %13, align 8
%107 = load i32, ptr %14, align 4
%108 = add nsw i32 %107, -1
store i32 %108, ptr %14, align 4
%109 = sext i32 %107 to i64
%110 = getelementptr inbounds i64, ptr %106, i64 %109
%111 = load i64, ptr %110, align 8
store i64 %111, ptr %11, align 8
br label %437
112: ; preds = %19
%113 = load i64, ptr %11, align 8
%114 = load i64, ptr %8, align 8
%115 = add i64 %113, %114
%116 = lshr i64 %115, 1
store i64 %116, ptr %10, align 8
%117 = load ptr, ptr %5, align 8
%118 = load i64, ptr %10, align 8
%119 = getelementptr inbounds i32, ptr %117, i64 %118
%120 = load i32, ptr %119, align 4
%121 = sitofp i32 %120 to float
store float %121, ptr %16, align 4
%122 = load ptr, ptr %5, align 8
%123 = load i64, ptr %11, align 8
%124 = add i64 %123, 1
%125 = getelementptr inbounds i32, ptr %122, i64 %124
%126 = load i32, ptr %125, align 4
%127 = load ptr, ptr %5, align 8
%128 = load i64, ptr %10, align 8
%129 = getelementptr inbounds i32, ptr %127, i64 %128
store i32 %126, ptr %129, align 4
%130 = load float, ptr %16, align 4
%131 = fptosi float %130 to i32
%132 = load ptr, ptr %5, align 8
%133 = load i64, ptr %11, align 8
%134 = add i64 %133, 1
%135 = getelementptr inbounds i32, ptr %132, i64 %134
store i32 %131, ptr %135, align 4
%136 = load ptr, ptr %6, align 8
%137 = load i64, ptr %10, align 8
%138 = getelementptr inbounds float, ptr %136, i64 %137
%139 = load float, ptr %138, align 4
store float %139, ptr %16, align 4
%140 = load ptr, ptr %6, align 8
%141 = load i64, ptr %11, align 8
%142 = add i64 %141, 1
%143 = getelementptr inbounds float, ptr %140, i64 %142
%144 = load float, ptr %143, align 4
%145 = load ptr, ptr %6, align 8
%146 = load i64, ptr %10, align 8
%147 = getelementptr inbounds float, ptr %145, i64 %146
store float %144, ptr %147, align 4
%148 = load float, ptr %16, align 4
%149 = load ptr, ptr %6, align 8
%150 = load i64, ptr %11, align 8
%151 = add i64 %150, 1
%152 = getelementptr inbounds float, ptr %149, i64 %151
store float %148, ptr %152, align 4
%153 = load ptr, ptr %5, align 8
%154 = load i64, ptr %11, align 8
%155 = getelementptr inbounds i32, ptr %153, i64 %154
%156 = load i32, ptr %155, align 4
%157 = load ptr, ptr %5, align 8
%158 = load i64, ptr %8, align 8
%159 = getelementptr inbounds i32, ptr %157, i64 %158
%160 = load i32, ptr %159, align 4
%161 = icmp sgt i32 %156, %160
br i1 %161, label %162, label %195
162: ; preds = %112
%163 = load ptr, ptr %5, align 8
%164 = load i64, ptr %11, align 8
%165 = getelementptr inbounds i32, ptr %163, i64 %164
%166 = load i32, ptr %165, align 4
%167 = sitofp i32 %166 to float
store float %167, ptr %16, align 4
%168 = load ptr, ptr %5, align 8
%169 = load i64, ptr %8, align 8
%170 = getelementptr inbounds i32, ptr %168, i64 %169
%171 = load i32, ptr %170, align 4
%172 = load ptr, ptr %5, align 8
%173 = load i64, ptr %11, align 8
%174 = getelementptr inbounds i32, ptr %172, i64 %173
store i32 %171, ptr %174, align 4
%175 = load float, ptr %16, align 4
%176 = fptosi float %175 to i32
%177 = load ptr, ptr %5, align 8
%178 = load i64, ptr %8, align 8
%179 = getelementptr inbounds i32, ptr %177, i64 %178
store i32 %176, ptr %179, align 4
%180 = load ptr, ptr %6, align 8
%181 = load i64, ptr %11, align 8
%182 = getelementptr inbounds float, ptr %180, i64 %181
%183 = load float, ptr %182, align 4
store float %183, ptr %16, align 4
%184 = load ptr, ptr %6, align 8
%185 = load i64, ptr %8, align 8
%186 = getelementptr inbounds float, ptr %184, i64 %185
%187 = load float, ptr %186, align 4
%188 = load ptr, ptr %6, align 8
%189 = load i64, ptr %11, align 8
%190 = getelementptr inbounds float, ptr %188, i64 %189
store float %187, ptr %190, align 4
%191 = load float, ptr %16, align 4
%192 = load ptr, ptr %6, align 8
%193 = load i64, ptr %8, align 8
%194 = getelementptr inbounds float, ptr %192, i64 %193
store float %191, ptr %194, align 4
br label %195
195: ; preds = %162, %112
%196 = load ptr, ptr %5, align 8
%197 = load i64, ptr %11, align 8
%198 = add i64 %197, 1
%199 = getelementptr inbounds i32, ptr %196, i64 %198
%200 = load i32, ptr %199, align 4
%201 = load ptr, ptr %5, align 8
%202 = load i64, ptr %8, align 8
%203 = getelementptr inbounds i32, ptr %201, i64 %202
%204 = load i32, ptr %203, align 4
%205 = icmp sgt i32 %200, %204
br i1 %205, label %206, label %243
206: ; preds = %195
%207 = load ptr, ptr %5, align 8
%208 = load i64, ptr %11, align 8
%209 = add i64 %208, 1
%210 = getelementptr inbounds i32, ptr %207, i64 %209
%211 = load i32, ptr %210, align 4
%212 = sitofp i32 %211 to float
store float %212, ptr %16, align 4
%213 = load ptr, ptr %5, align 8
%214 = load i64, ptr %8, align 8
%215 = getelementptr inbounds i32, ptr %213, i64 %214
%216 = load i32, ptr %215, align 4
%217 = load ptr, ptr %5, align 8
%218 = load i64, ptr %11, align 8
%219 = add i64 %218, 1
%220 = getelementptr inbounds i32, ptr %217, i64 %219
store i32 %216, ptr %220, align 4
%221 = load float, ptr %16, align 4
%222 = fptosi float %221 to i32
%223 = load ptr, ptr %5, align 8
%224 = load i64, ptr %8, align 8
%225 = getelementptr inbounds i32, ptr %223, i64 %224
store i32 %222, ptr %225, align 4
%226 = load ptr, ptr %6, align 8
%227 = load i64, ptr %11, align 8
%228 = add i64 %227, 1
%229 = getelementptr inbounds float, ptr %226, i64 %228
%230 = load float, ptr %229, align 4
store float %230, ptr %16, align 4
%231 = load ptr, ptr %6, align 8
%232 = load i64, ptr %8, align 8
%233 = getelementptr inbounds float, ptr %231, i64 %232
%234 = load float, ptr %233, align 4
%235 = load ptr, ptr %6, align 8
%236 = load i64, ptr %11, align 8
%237 = add i64 %236, 1
%238 = getelementptr inbounds float, ptr %235, i64 %237
store float %234, ptr %238, align 4
%239 = load float, ptr %16, align 4
%240 = load ptr, ptr %6, align 8
%241 = load i64, ptr %8, align 8
%242 = getelementptr inbounds float, ptr %240, i64 %241
store float %239, ptr %242, align 4
br label %243
243: ; preds = %206, %195
%244 = load ptr, ptr %5, align 8
%245 = load i64, ptr %11, align 8
%246 = getelementptr inbounds i32, ptr %244, i64 %245
%247 = load i32, ptr %246, align 4
%248 = load ptr, ptr %5, align 8
%249 = load i64, ptr %11, align 8
%250 = add i64 %249, 1
%251 = getelementptr inbounds i32, ptr %248, i64 %250
%252 = load i32, ptr %251, align 4
%253 = icmp sgt i32 %247, %252
br i1 %253, label %254, label %291
254: ; preds = %243
%255 = load ptr, ptr %5, align 8
%256 = load i64, ptr %11, align 8
%257 = getelementptr inbounds i32, ptr %255, i64 %256
%258 = load i32, ptr %257, align 4
%259 = sitofp i32 %258 to float
store float %259, ptr %16, align 4
%260 = load ptr, ptr %5, align 8
%261 = load i64, ptr %11, align 8
%262 = add i64 %261, 1
%263 = getelementptr inbounds i32, ptr %260, i64 %262
%264 = load i32, ptr %263, align 4
%265 = load ptr, ptr %5, align 8
%266 = load i64, ptr %11, align 8
%267 = getelementptr inbounds i32, ptr %265, i64 %266
store i32 %264, ptr %267, align 4
%268 = load float, ptr %16, align 4
%269 = fptosi float %268 to i32
%270 = load ptr, ptr %5, align 8
%271 = load i64, ptr %11, align 8
%272 = add i64 %271, 1
%273 = getelementptr inbounds i32, ptr %270, i64 %272
store i32 %269, ptr %273, align 4
%274 = load ptr, ptr %6, align 8
%275 = load i64, ptr %11, align 8
%276 = getelementptr inbounds float, ptr %274, i64 %275
%277 = load float, ptr %276, align 4
store float %277, ptr %16, align 4
%278 = load ptr, ptr %6, align 8
%279 = load i64, ptr %11, align 8
%280 = add i64 %279, 1
%281 = getelementptr inbounds float, ptr %278, i64 %280
%282 = load float, ptr %281, align 4
%283 = load ptr, ptr %6, align 8
%284 = load i64, ptr %11, align 8
%285 = getelementptr inbounds float, ptr %283, i64 %284
store float %282, ptr %285, align 4
%286 = load float, ptr %16, align 4
%287 = load ptr, ptr %6, align 8
%288 = load i64, ptr %11, align 8
%289 = add i64 %288, 1
%290 = getelementptr inbounds float, ptr %287, i64 %289
store float %286, ptr %290, align 4
br label %291
291: ; preds = %254, %243
%292 = load i64, ptr %11, align 8
%293 = add i64 %292, 1
store i64 %293, ptr %7, align 8
%294 = load i64, ptr %8, align 8
store i64 %294, ptr %9, align 8
%295 = load ptr, ptr %5, align 8
%296 = load i64, ptr %11, align 8
%297 = add i64 %296, 1
%298 = getelementptr inbounds i32, ptr %295, i64 %297
%299 = load i32, ptr %298, align 4
%300 = sitofp i32 %299 to float
store float %300, ptr %15, align 4
%301 = load ptr, ptr %6, align 8
%302 = load i64, ptr %11, align 8
%303 = add i64 %302, 1
%304 = getelementptr inbounds float, ptr %301, i64 %303
%305 = load float, ptr %304, align 4
store float %305, ptr %12, align 4
br label %306
306: ; preds = %335, %291
br label %307
307: ; preds = %310, %306
%308 = load i64, ptr %7, align 8
%309 = add i64 %308, 1
store i64 %309, ptr %7, align 8
br label %310
310: ; preds = %307
%311 = load ptr, ptr %5, align 8
%312 = load i64, ptr %7, align 8
%313 = getelementptr inbounds i32, ptr %311, i64 %312
%314 = load i32, ptr %313, align 4
%315 = sitofp i32 %314 to float
%316 = load float, ptr %15, align 4
%317 = fcmp olt float %315, %316
br i1 %317, label %307, label %318, !llvm.loop !9
318: ; preds = %310
br label %319
319: ; preds = %322, %318
%320 = load i64, ptr %9, align 8
%321 = add i64 %320, -1
store i64 %321, ptr %9, align 8
br label %322
322: ; preds = %319
%323 = load ptr, ptr %5, align 8
%324 = load i64, ptr %9, align 8
%325 = getelementptr inbounds i32, ptr %323, i64 %324
%326 = load i32, ptr %325, align 4
%327 = sitofp i32 %326 to float
%328 = load float, ptr %15, align 4
%329 = fcmp ogt float %327, %328
br i1 %329, label %319, label %330, !llvm.loop !10
330: ; preds = %322
%331 = load i64, ptr %9, align 8
%332 = load i64, ptr %7, align 8
%333 = icmp ult i64 %331, %332
br i1 %333, label %334, label %335
334: ; preds = %330
br label %368
335: ; preds = %330
%336 = load ptr, ptr %5, align 8
%337 = load i64, ptr %7, align 8
%338 = getelementptr inbounds i32, ptr %336, i64 %337
%339 = load i32, ptr %338, align 4
%340 = sitofp i32 %339 to float
store float %340, ptr %16, align 4
%341 = load ptr, ptr %5, align 8
%342 = load i64, ptr %9, align 8
%343 = getelementptr inbounds i32, ptr %341, i64 %342
%344 = load i32, ptr %343, align 4
%345 = load ptr, ptr %5, align 8
%346 = load i64, ptr %7, align 8
%347 = getelementptr inbounds i32, ptr %345, i64 %346
store i32 %344, ptr %347, align 4
%348 = load float, ptr %16, align 4
%349 = fptosi float %348 to i32
%350 = load ptr, ptr %5, align 8
%351 = load i64, ptr %9, align 8
%352 = getelementptr inbounds i32, ptr %350, i64 %351
store i32 %349, ptr %352, align 4
%353 = load ptr, ptr %6, align 8
%354 = load i64, ptr %7, align 8
%355 = getelementptr inbounds float, ptr %353, i64 %354
%356 = load float, ptr %355, align 4
store float %356, ptr %16, align 4
%357 = load ptr, ptr %6, align 8
%358 = load i64, ptr %9, align 8
%359 = getelementptr inbounds float, ptr %357, i64 %358
%360 = load float, ptr %359, align 4
%361 = load ptr, ptr %6, align 8
%362 = load i64, ptr %7, align 8
%363 = getelementptr inbounds float, ptr %361, i64 %362
store float %360, ptr %363, align 4
%364 = load float, ptr %16, align 4
%365 = load ptr, ptr %6, align 8
%366 = load i64, ptr %9, align 8
%367 = getelementptr inbounds float, ptr %365, i64 %366
store float %364, ptr %367, align 4
br label %306
368: ; preds = %334
%369 = load ptr, ptr %5, align 8
%370 = load i64, ptr %9, align 8
%371 = getelementptr inbounds i32, ptr %369, i64 %370
%372 = load i32, ptr %371, align 4
%373 = load ptr, ptr %5, align 8
%374 = load i64, ptr %11, align 8
%375 = add i64 %374, 1
%376 = getelementptr inbounds i32, ptr %373, i64 %375
store i32 %372, ptr %376, align 4
%377 = load ptr, ptr %6, align 8
%378 = load i64, ptr %9, align 8
%379 = getelementptr inbounds float, ptr %377, i64 %378
%380 = load float, ptr %379, align 4
%381 = load ptr, ptr %6, align 8
%382 = load i64, ptr %11, align 8
%383 = add i64 %382, 1
%384 = getelementptr inbounds float, ptr %381, i64 %383
store float %380, ptr %384, align 4
%385 = load float, ptr %15, align 4
%386 = fptosi float %385 to i32
%387 = load ptr, ptr %5, align 8
%388 = load i64, ptr %9, align 8
%389 = getelementptr inbounds i32, ptr %387, i64 %388
store i32 %386, ptr %389, align 4
%390 = load float, ptr %12, align 4
%391 = load ptr, ptr %6, align 8
%392 = load i64, ptr %9, align 8
%393 = getelementptr inbounds float, ptr %391, i64 %392
store float %390, ptr %393, align 4
%394 = load i32, ptr %14, align 4
%395 = add nsw i32 %394, 2
store i32 %395, ptr %14, align 4
%396 = load i32, ptr %14, align 4
%397 = icmp sgt i32 %396, 200
br i1 %397, label %398, label %400
398: ; preds = %368
%399 = call i32 @nrerror(ptr noundef @.str)
br label %400
400: ; preds = %398, %368
%401 = load i64, ptr %8, align 8
%402 = load i64, ptr %7, align 8
%403 = sub i64 %401, %402
%404 = add i64 %403, 1
%405 = load i64, ptr %9, align 8
%406 = sub i64 %405, 1
%407 = icmp uge i64 %404, %406
br i1 %407, label %408, label %422
408: ; preds = %400
%409 = load i64, ptr %8, align 8
%410 = load ptr, ptr %13, align 8
%411 = load i32, ptr %14, align 4
%412 = sext i32 %411 to i64
%413 = getelementptr inbounds i64, ptr %410, i64 %412
store i64 %409, ptr %413, align 8
%414 = load i64, ptr %7, align 8
%415 = load ptr, ptr %13, align 8
%416 = load i32, ptr %14, align 4
%417 = sub nsw i32 %416, 1
%418 = sext i32 %417 to i64
%419 = getelementptr inbounds i64, ptr %415, i64 %418
store i64 %414, ptr %419, align 8
%420 = load i64, ptr %9, align 8
%421 = sub i64 %420, 1
store i64 %421, ptr %8, align 8
br label %436
422: ; preds = %400
%423 = load i64, ptr %9, align 8
%424 = sub i64 %423, 1
%425 = load ptr, ptr %13, align 8
%426 = load i32, ptr %14, align 4
%427 = sext i32 %426 to i64
%428 = getelementptr inbounds i64, ptr %425, i64 %427
store i64 %424, ptr %428, align 8
%429 = load i64, ptr %11, align 8
%430 = load ptr, ptr %13, align 8
%431 = load i32, ptr %14, align 4
%432 = sub nsw i32 %431, 1
%433 = sext i32 %432 to i64
%434 = getelementptr inbounds i64, ptr %430, i64 %433
store i64 %429, ptr %434, align 8
%435 = load i64, ptr %7, align 8
store i64 %435, ptr %11, align 8
br label %436
436: ; preds = %422, %408
br label %437
437: ; preds = %436, %99
br label %19
438: ; preds = %98
%439 = load ptr, ptr %13, align 8
%440 = call i32 @free_lvector(ptr noundef %439, i32 noundef 1, i32 noundef 200)
ret void
}
declare ptr @lvector(i32 noundef, i32 noundef) #1
declare i32 @nrerror(ptr noundef) #1
declare i32 @free_lvector(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmp8zwi02as.c'
source_filename = "/tmp/tmp8zwi02as.c"
target datalayout = "e-m:e-p270: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/tmp8zwi02as.c"
target datalayout = "e-m:e-p270: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/tmpn0yhqe_z.c'
source_filename = "/tmp/tmpn0yhqe_z.c"
target datalayout = "e-m:e-p270: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, i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [9 x i8] c"socket()\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [23 x i8] c"setnonblock() failed!\0A\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"127.0.0.1\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"inet_pton()\00", align 1
@errno = dso_local global i64 0, align 8
@EINPROGRESS = dso_local global i64 0, align 8
@EALREADY = dso_local global i64 0, align 8
@.str.4 = private unnamed_addr constant [10 x i8] c"connect()\00", align 1
@__const.main.sbuf = private unnamed_addr constant [1024 x i8] c"hello world\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", align 16
@.str.5 = private unnamed_addr constant [8 x i8] c"ret=%d\0A\00", align 1
@.str.6 = private unnamed_addr constant [11 x i8] c"ret=%d %s\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 %struct.sockaddr_in, align 4
%8 = alloca i32, align 4
%9 = alloca [1024 x i8], align 16
%10 = alloca [1024 x i8], align 16
%11 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%12 = load i32, ptr @AF_INET, align 4
%13 = load i32, ptr @SOCK_STREAM, align 4
%14 = call i32 @socket(i32 noundef %12, i32 noundef %13, i32 noundef 0)
store i32 %14, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = icmp slt i32 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %2
%18 = call i32 @perror(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %68
19: ; preds = %2
%20 = load i32, ptr %6, align 4
%21 = call i64 @setnonblock(i32 noundef %20)
%22 = icmp slt i64 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %19
%24 = load i32, ptr @stderr, align 4
%25 = call i32 @fprintf(i32 noundef %24, ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %68
26: ; preds = %19
%27 = load i32, ptr @AF_INET, align 4
%28 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 2
store i32 %27, ptr %28, align 4
%29 = call i32 @htons(i32 noundef 8080)
%30 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 1
store i32 %29, ptr %30, align 4
%31 = load i32, ptr @AF_INET, align 4
%32 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 0
%33 = call i32 @inet_pton(i32 noundef %31, ptr noundef @.str.2, ptr noundef %32)
%34 = icmp ne i32 %33, 1
br i1 %34, label %35, label %37
35: ; preds = %26
%36 = call i32 @perror(ptr noundef @.str.3)
store i32 -1, ptr %3, align 4
br label %68
37: ; preds = %26
%38 = load i32, ptr %6, align 4
%39 = call i32 @connect(i32 noundef %38, ptr noundef %7, i32 noundef 12)
store i32 %39, ptr %8, align 4
%40 = load i32, ptr %8, align 4
%41 = icmp slt i32 %40, 0
br i1 %41, label %42, label %52
42: ; preds = %37
%43 = load i64, ptr @errno, align 8
%44 = load i64, ptr @EINPROGRESS, align 8
%45 = icmp ne i64 %43, %44
br i1 %45, label %46, label %52
46: ; preds = %42
%47 = load i64, ptr @errno, align 8
%48 = load i64, ptr @EALREADY, align 8
%49 = icmp ne i64 %47, %48
br i1 %49, label %50, label %52
50: ; preds = %46
%51 = call i32 @perror(ptr noundef @.str.4)
store i32 -1, ptr %3, align 4
br label %68
52: ; preds = %46, %42, %37
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 @__const.main.sbuf, i64 1024, i1 false)
br label %53
53: ; preds = %52, %53
%54 = load i32, ptr %6, align 4
%55 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
%56 = call i32 @write(i32 noundef %54, ptr noundef %55, i32 noundef 11)
store i32 %56, ptr %11, align 4
%57 = load i32, ptr %11, align 4
%58 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.5, i32 noundef %57)
%59 = load i32, ptr %6, align 4
%60 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%61 = call i32 @read(i32 noundef %59, ptr noundef %60, i32 noundef 1024)
store i32 %61, ptr %11, align 4
%62 = load i32, ptr %11, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 %63
store i8 0, ptr %64, align 1
%65 = load i32, ptr %11, align 4
%66 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%67 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.6, i32 noundef %65, ptr noundef %66)
br label %53
68: ; preds = %50, %35, %23, %17
%69 = load i32, ptr %3, align 4
ret i32 %69
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i64 @setnonblock(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @inet_pton(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @connect(i32 noundef, ptr noundef, i32 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) #2
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpn0yhqe_z.c"
target datalayout = "e-m:e-p270: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, i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [9 x i8] c"socket()\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [23 x i8] c"setnonblock() failed!\0A\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"127.0.0.1\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"inet_pton()\00", align 1
@errno = dso_local global i64 0, align 8
@EINPROGRESS = dso_local global i64 0, align 8
@EALREADY = dso_local global i64 0, align 8
@.str.4 = private unnamed_addr constant [10 x i8] c"connect()\00", align 1
@__const.main.sbuf = private unnamed_addr constant [1024 x i8] c"hello world\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", align 16
@.str.5 = private unnamed_addr constant [8 x i8] c"ret=%d\0A\00", align 1
@.str.6 = private unnamed_addr constant [11 x i8] c"ret=%d %s\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 %struct.sockaddr_in, align 4
%8 = alloca i32, align 4
%9 = alloca [1024 x i8], align 16
%10 = alloca [1024 x i8], align 16
%11 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%12 = load i32, ptr @AF_INET, align 4
%13 = load i32, ptr @SOCK_STREAM, align 4
%14 = call i32 @socket(i32 noundef %12, i32 noundef %13, i32 noundef 0)
store i32 %14, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = icmp slt i32 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %2
%18 = call i32 @perror(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %68
19: ; preds = %2
%20 = load i32, ptr %6, align 4
%21 = call i64 @setnonblock(i32 noundef %20)
%22 = icmp slt i64 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %19
%24 = load i32, ptr @stderr, align 4
%25 = call i32 @fprintf(i32 noundef %24, ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %68
26: ; preds = %19
%27 = load i32, ptr @AF_INET, align 4
%28 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 2
store i32 %27, ptr %28, align 4
%29 = call i32 @htons(i32 noundef 8080)
%30 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 1
store i32 %29, ptr %30, align 4
%31 = load i32, ptr @AF_INET, align 4
%32 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 0
%33 = call i32 @inet_pton(i32 noundef %31, ptr noundef @.str.2, ptr noundef %32)
%34 = icmp ne i32 %33, 1
br i1 %34, label %35, label %37
35: ; preds = %26
%36 = call i32 @perror(ptr noundef @.str.3)
store i32 -1, ptr %3, align 4
br label %68
37: ; preds = %26
%38 = load i32, ptr %6, align 4
%39 = call i32 @connect(i32 noundef %38, ptr noundef %7, i32 noundef 12)
store i32 %39, ptr %8, align 4
%40 = load i32, ptr %8, align 4
%41 = icmp slt i32 %40, 0
br i1 %41, label %42, label %52
42: ; preds = %37
%43 = load i64, ptr @errno, align 8
%44 = load i64, ptr @EINPROGRESS, align 8
%45 = icmp ne i64 %43, %44
br i1 %45, label %46, label %52
46: ; preds = %42
%47 = load i64, ptr @errno, align 8
%48 = load i64, ptr @EALREADY, align 8
%49 = icmp ne i64 %47, %48
br i1 %49, label %50, label %52
50: ; preds = %46
%51 = call i32 @perror(ptr noundef @.str.4)
store i32 -1, ptr %3, align 4
br label %68
52: ; preds = %46, %42, %37
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 @__const.main.sbuf, i64 1024, i1 false)
br label %53
53: ; preds = %53, %52
%54 = load i32, ptr %6, align 4
%55 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
%56 = call i32 @write(i32 noundef %54, ptr noundef %55, i32 noundef 11)
store i32 %56, ptr %11, align 4
%57 = load i32, ptr %11, align 4
%58 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.5, i32 noundef %57)
%59 = load i32, ptr %6, align 4
%60 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%61 = call i32 @read(i32 noundef %59, ptr noundef %60, i32 noundef 1024)
store i32 %61, ptr %11, align 4
%62 = load i32, ptr %11, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 %63
store i8 0, ptr %64, align 1
%65 = load i32, ptr %11, align 4
%66 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%67 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.6, i32 noundef %65, ptr noundef %66)
br label %53
68: ; preds = %50, %35, %23, %17
%69 = load i32, ptr %3, align 4
ret i32 %69
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i64 @setnonblock(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @inet_pton(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @connect(i32 noundef, ptr noundef, i32 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) #2
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpa48jmfsz.c'
source_filename = "/tmp/tmpa48jmfsz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp sge i32 %6, 1
br i1 %7, label %8, label %13
8: ; preds = %2
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 0
%11 = load ptr, ptr %10, align 8
%12 = call i32 @ft_putstr(ptr noundef %11)
br label %13
13: ; preds = %8, %2
%14 = call i32 @ft_putchar(i8 noundef signext 10)
ret i32 0
}
declare i32 @ft_putstr(ptr noundef) #1
declare i32 @ft_putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa48jmfsz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp sge i32 %6, 1
br i1 %7, label %8, label %13
8: ; preds = %2
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 0
%11 = load ptr, ptr %10, align 8
%12 = call i32 @ft_putstr(ptr noundef %11)
br label %13
13: ; preds = %8, %2
%14 = call i32 @ft_putchar(i8 noundef signext 10)
ret i32 0
}
declare i32 @ft_putstr(ptr noundef) #1
declare i32 @ft_putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpj2936dld.c'
source_filename = "/tmp/tmpj2936dld.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @remove_last_slash(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i64 @has_last_slash(ptr noundef %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %13
6: ; preds = %1
%7 = load ptr, ptr %2, align 8
%8 = load ptr, ptr %2, align 8
%9 = call i32 @strlen(ptr noundef %8)
%10 = sub nsw i32 %9, 1
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i8, ptr %7, i64 %11
store i8 0, ptr %12, align 1
br label %13
13: ; preds = %6, %1
%14 = load ptr, ptr %2, align 8
ret ptr %14
}
declare i64 @has_last_slash(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj2936dld.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @remove_last_slash(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i64 @has_last_slash(ptr noundef %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %13
6: ; preds = %1
%7 = load ptr, ptr %2, align 8
%8 = load ptr, ptr %2, align 8
%9 = call i32 @strlen(ptr noundef %8)
%10 = sub nsw i32 %9, 1
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i8, ptr %7, i64 %11
store i8 0, ptr %12, align 1
br label %13
13: ; preds = %6, %1
%14 = load ptr, ptr %2, align 8
ret ptr %14
}
declare i64 @has_last_slash(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprgyu59b1.c'
source_filename = "/tmp/tmprgyu59b1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%i\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"%i is an armstrong number.\00", align 1
@.str.3 = private unnamed_addr constant [31 x i8] c"%i is not an armstrong number.\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 = call i64 @isArmstrong(i32 noundef %5)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %0
%9 = load i32, ptr %2, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %9)
br label %14
11: ; preds = %0
%12 = load i32, ptr %2, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %12)
br label %14
14: ; preds = %11, %8
%15 = call i32 (...) @getch()
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @isArmstrong(i32 noundef) #1
declare i32 @getch(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmprgyu59b1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%i\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"%i is an armstrong number.\00", align 1
@.str.3 = private unnamed_addr constant [31 x i8] c"%i is not an armstrong number.\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 = call i64 @isArmstrong(i32 noundef %5)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %0
%9 = load i32, ptr %2, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %9)
br label %14
11: ; preds = %0
%12 = load i32, ptr %2, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %12)
br label %14
14: ; preds = %11, %8
%15 = call i32 (...) @getch()
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @isArmstrong(i32 noundef) #1
declare i32 @getch(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnmqr7x35.c'
source_filename = "/tmp/tmpnmqr7x35.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @heapSort(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = sdiv i32 %8, 2
store i32 %9, ptr %5, align 4
br label %10
10: ; preds = %18, %2
%11 = load i32, ptr %5, align 4
%12 = icmp sge i32 %11, 0
br i1 %12, label %13, label %21
13: ; preds = %10
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %5, align 4
%16 = load i32, ptr %4, align 4
%17 = call i32 @percDown(ptr noundef %14, i32 noundef %15, i32 noundef %16)
br label %18
18: ; preds = %13
%19 = load i32, ptr %5, align 4
%20 = add nsw i32 %19, -1
store i32 %20, ptr %5, align 4
br label %10, !llvm.loop !6
21: ; preds = %10
%22 = load i32, ptr %4, align 4
%23 = sub nsw i32 %22, 1
store i32 %23, ptr %6, align 4
br label %24
24: ; preds = %46, %21
%25 = load i32, ptr %6, align 4
%26 = icmp sgt i32 %25, 0
br i1 %26, label %27, label %49
27: ; preds = %24
%28 = load ptr, ptr %3, align 8
%29 = getelementptr inbounds i32, ptr %28, i64 0
%30 = load i32, ptr %29, align 4
store i32 %30, ptr %7, align 4
%31 = load ptr, ptr %3, align 8
%32 = load i32, ptr %6, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i32, ptr %31, i64 %33
%35 = load i32, ptr %34, align 4
%36 = load ptr, ptr %3, align 8
%37 = getelementptr inbounds i32, ptr %36, i64 0
store i32 %35, ptr %37, align 4
%38 = load i32, ptr %7, align 4
%39 = load ptr, ptr %3, align 8
%40 = load i32, ptr %6, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i32, ptr %39, i64 %41
store i32 %38, ptr %42, align 4
%43 = load ptr, ptr %3, align 8
%44 = load i32, ptr %6, align 4
%45 = call i32 @percDown(ptr noundef %43, i32 noundef 0, i32 noundef %44)
br label %46
46: ; preds = %27
%47 = load i32, ptr %6, align 4
%48 = add nsw i32 %47, -1
store i32 %48, ptr %6, align 4
br label %24, !llvm.loop !8
49: ; preds = %24
ret void
}
declare i32 @percDown(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnmqr7x35.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @heapSort(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = sdiv i32 %8, 2
store i32 %9, ptr %5, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp sge i32 %10, 0
br i1 %11, label %.lr.ph, label %22
.lr.ph: ; preds = %2
br label %12
12: ; preds = %.lr.ph, %17
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %4, align 4
%16 = call i32 @percDown(ptr noundef %13, i32 noundef %14, i32 noundef %15)
br label %17
17: ; preds = %12
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, -1
store i32 %19, ptr %5, align 4
%20 = load i32, ptr %5, align 4
%21 = icmp sge i32 %20, 0
br i1 %21, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %22
22: ; preds = %._crit_edge, %2
%23 = load i32, ptr %4, align 4
%24 = sub nsw i32 %23, 1
store i32 %24, ptr %6, align 4
%25 = load i32, ptr %6, align 4
%26 = icmp sgt i32 %25, 0
br i1 %26, label %.lr.ph2, label %51
.lr.ph2: ; preds = %22
br label %27
27: ; preds = %.lr.ph2, %46
%28 = load ptr, ptr %3, align 8
%29 = getelementptr inbounds i32, ptr %28, i64 0
%30 = load i32, ptr %29, align 4
store i32 %30, ptr %7, align 4
%31 = load ptr, ptr %3, align 8
%32 = load i32, ptr %6, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i32, ptr %31, i64 %33
%35 = load i32, ptr %34, align 4
%36 = load ptr, ptr %3, align 8
%37 = getelementptr inbounds i32, ptr %36, i64 0
store i32 %35, ptr %37, align 4
%38 = load i32, ptr %7, align 4
%39 = load ptr, ptr %3, align 8
%40 = load i32, ptr %6, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i32, ptr %39, i64 %41
store i32 %38, ptr %42, align 4
%43 = load ptr, ptr %3, align 8
%44 = load i32, ptr %6, align 4
%45 = call i32 @percDown(ptr noundef %43, i32 noundef 0, i32 noundef %44)
br label %46
46: ; preds = %27
%47 = load i32, ptr %6, align 4
%48 = add nsw i32 %47, -1
store i32 %48, ptr %6, align 4
%49 = load i32, ptr %6, align 4
%50 = icmp sgt i32 %49, 0
br i1 %50, label %27, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %46
br label %51
51: ; preds = %._crit_edge3, %22
ret void
}
declare i32 @percDown(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp_7enlvq5.c'
source_filename = "/tmp/tmp_7enlvq5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @testBit_fun_uint64_t(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = shl i32 1, %6
%8 = and i32 %5, %7
%9 = icmp ne i32 %8, 0
%10 = zext i1 %9 to i32
ret i32 %10
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!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_7enlvq5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @testBit_fun_uint64_t(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = shl i32 1, %6
%8 = and i32 %5, %7
%9 = icmp ne i32 %8, 0
%10 = zext i1 %9 to i32
ret i32 %10
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxayhkb59.c'
source_filename = "/tmp/tmpxayhkb59.c"
target datalayout = "e-m:e-p270: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/tmpxayhkb59.c"
target datalayout = "e-m:e-p270: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/tmpdp_3en6e.c'
source_filename = "/tmp/tmpdp_3en6e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"./scanf\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"popen\00", align 1
@__const.main.buf = private unnamed_addr constant [13 x i8] c"hello world!\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"fwrite\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 [13 x i8], align 1
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call ptr @popen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %5, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %11, label %8
8: ; preds = %0
%9 = call i32 @perror(ptr noundef @.str.2)
%10 = call i32 @exit(i32 noundef -1) #4
unreachable
11: ; preds = %0
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.buf, i64 13, i1 false)
%12 = getelementptr inbounds [13 x i8], ptr %3, i64 0, i64 0
%13 = getelementptr inbounds [13 x i8], ptr %3, i64 0, i64 0
%14 = call i32 @strlen(ptr noundef %13)
%15 = load ptr, ptr %2, align 8
%16 = call i32 @fwrite(ptr noundef %12, i32 noundef 1, i32 noundef %14, ptr noundef %15)
store i32 %16, ptr %4, align 4
%17 = load i32, ptr %4, align 4
%18 = icmp slt i32 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %11
%20 = call i32 @perror(ptr noundef @.str.3)
%21 = call i32 @exit(i32 noundef -1) #4
unreachable
22: ; preds = %11
%23 = load ptr, ptr %2, align 8
%24 = call i32 @pclose(ptr noundef %23)
ret i32 0
}
declare ptr @popen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
; 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) #3
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @pclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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: readwrite) }
attributes #4 = { 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/tmpdp_3en6e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"./scanf\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"popen\00", align 1
@__const.main.buf = private unnamed_addr constant [13 x i8] c"hello world!\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"fwrite\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 [13 x i8], align 1
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call ptr @popen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %5, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %11, label %8
8: ; preds = %0
%9 = call i32 @perror(ptr noundef @.str.2)
%10 = call i32 @exit(i32 noundef -1) #4
unreachable
11: ; preds = %0
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.buf, i64 13, i1 false)
%12 = getelementptr inbounds [13 x i8], ptr %3, i64 0, i64 0
%13 = getelementptr inbounds [13 x i8], ptr %3, i64 0, i64 0
%14 = call i32 @strlen(ptr noundef %13)
%15 = load ptr, ptr %2, align 8
%16 = call i32 @fwrite(ptr noundef %12, i32 noundef 1, i32 noundef %14, ptr noundef %15)
store i32 %16, ptr %4, align 4
%17 = load i32, ptr %4, align 4
%18 = icmp slt i32 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %11
%20 = call i32 @perror(ptr noundef @.str.3)
%21 = call i32 @exit(i32 noundef -1) #4
unreachable
22: ; preds = %11
%23 = load ptr, ptr %2, align 8
%24 = call i32 @pclose(ptr noundef %23)
ret i32 0
}
declare ptr @popen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
; 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) #3
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @pclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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: readwrite) }
attributes #4 = { 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/tmptj8puldf.c'
source_filename = "/tmp/tmptj8puldf.c"
target datalayout = "e-m:e-p270: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 [30 x i8] c"PE: Memory allocation fails!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @allocate_int_RT_3D(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%10 = load i32, ptr %4, align 4
%11 = sext i32 %10 to i64
%12 = mul i64 %11, 8
%13 = trunc i64 %12 to i32
%14 = call i64 @malloc(i32 noundef %13)
%15 = inttoptr i64 %14 to ptr
store ptr %15, ptr %9, align 8
%16 = load ptr, ptr %9, align 8
%17 = icmp eq ptr %16, null
br i1 %17, label %18, label %22
18: ; preds = %3
%19 = load i32, ptr @stderr, align 4
%20 = call i32 @fprintf(i32 noundef %19, ptr noundef @.str)
%21 = call i32 @exit(i32 noundef 1) #3
unreachable
22: ; preds = %3
store i32 0, ptr %7, align 4
br label %23
23: ; preds = %68, %22
%24 = load i32, ptr %7, align 4
%25 = load i32, ptr %4, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %27, label %71
27: ; preds = %23
%28 = load i32, ptr %5, align 4
%29 = sext i32 %28 to i64
%30 = mul i64 %29, 8
%31 = trunc i64 %30 to i32
%32 = call i64 @malloc(i32 noundef %31)
%33 = inttoptr i64 %32 to ptr
%34 = load ptr, ptr %9, align 8
%35 = load i32, ptr %7, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds ptr, ptr %34, i64 %36
store ptr %33, ptr %37, align 8
%38 = load ptr, ptr %9, align 8
%39 = load i32, ptr %7, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds ptr, ptr %38, i64 %40
%42 = load ptr, ptr %41, align 8
%43 = icmp eq ptr %42, null
br i1 %43, label %44, label %48
44: ; preds = %27
%45 = load i32, ptr @stderr, align 4
%46 = call i32 @fprintf(i32 noundef %45, ptr noundef @.str)
%47 = call i32 @exit(i32 noundef 1) #3
unreachable
48: ; preds = %27
store i32 0, ptr %8, align 4
br label %49
49: ; preds = %64, %48
%50 = load i32, ptr %8, align 4
%51 = load i32, ptr %5, align 4
%52 = icmp slt i32 %50, %51
br i1 %52, label %53, label %67
53: ; preds = %49
%54 = load i32, ptr %6, align 4
%55 = call ptr @allocate_int_1D(i32 noundef %54)
%56 = load ptr, ptr %9, align 8
%57 = load i32, ptr %7, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds ptr, ptr %56, i64 %58
%60 = load ptr, ptr %59, align 8
%61 = load i32, ptr %8, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds ptr, ptr %60, i64 %62
store ptr %55, ptr %63, align 8
br label %64
64: ; preds = %53
%65 = load i32, ptr %8, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %8, align 4
br label %49, !llvm.loop !6
67: ; preds = %49
br label %68
68: ; preds = %67
%69 = load i32, ptr %7, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %7, align 4
br label %23, !llvm.loop !8
71: ; preds = %23
%72 = load ptr, ptr %9, align 8
ret ptr %72
}
declare i64 @malloc(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @allocate_int_1D(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmptj8puldf.c"
target datalayout = "e-m:e-p270: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 [30 x i8] c"PE: Memory allocation fails!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @allocate_int_RT_3D(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%10 = load i32, ptr %4, align 4
%11 = sext i32 %10 to i64
%12 = mul i64 %11, 8
%13 = trunc i64 %12 to i32
%14 = call i64 @malloc(i32 noundef %13)
%15 = inttoptr i64 %14 to ptr
store ptr %15, ptr %9, align 8
%16 = load ptr, ptr %9, align 8
%17 = icmp eq ptr %16, null
br i1 %17, label %18, label %22
18: ; preds = %3
%19 = load i32, ptr @stderr, align 4
%20 = call i32 @fprintf(i32 noundef %19, ptr noundef @.str)
%21 = call i32 @exit(i32 noundef 1) #3
unreachable
22: ; preds = %3
store i32 0, ptr %7, align 4
%23 = load i32, ptr %7, align 4
%24 = load i32, ptr %4, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %.lr.ph2, label %75
.lr.ph2: ; preds = %22
br label %26
26: ; preds = %.lr.ph2, %69
%27 = load i32, ptr %5, align 4
%28 = sext i32 %27 to i64
%29 = mul i64 %28, 8
%30 = trunc i64 %29 to i32
%31 = call i64 @malloc(i32 noundef %30)
%32 = inttoptr i64 %31 to ptr
%33 = load ptr, ptr %9, align 8
%34 = load i32, ptr %7, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds ptr, ptr %33, i64 %35
store ptr %32, ptr %36, align 8
%37 = load ptr, ptr %9, align 8
%38 = load i32, ptr %7, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds ptr, ptr %37, i64 %39
%41 = load ptr, ptr %40, align 8
%42 = icmp eq ptr %41, null
br i1 %42, label %43, label %47
43: ; preds = %26
%44 = load i32, ptr @stderr, align 4
%45 = call i32 @fprintf(i32 noundef %44, ptr noundef @.str)
%46 = call i32 @exit(i32 noundef 1) #3
unreachable
47: ; preds = %26
store i32 0, ptr %8, align 4
%48 = load i32, ptr %8, align 4
%49 = load i32, ptr %5, align 4
%50 = icmp slt i32 %48, %49
br i1 %50, label %.lr.ph, label %68
.lr.ph: ; preds = %47
br label %51
51: ; preds = %.lr.ph, %62
%52 = load i32, ptr %6, align 4
%53 = call ptr @allocate_int_1D(i32 noundef %52)
%54 = load ptr, ptr %9, align 8
%55 = load i32, ptr %7, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds ptr, ptr %54, i64 %56
%58 = load ptr, ptr %57, align 8
%59 = load i32, ptr %8, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds ptr, ptr %58, i64 %60
store ptr %53, ptr %61, align 8
br label %62
62: ; preds = %51
%63 = load i32, ptr %8, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %8, align 4
%65 = load i32, ptr %8, align 4
%66 = load i32, ptr %5, align 4
%67 = icmp slt i32 %65, %66
br i1 %67, label %51, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %62
br label %68
68: ; preds = %._crit_edge, %47
br label %69
69: ; preds = %68
%70 = load i32, ptr %7, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %7, align 4
%72 = load i32, ptr %7, align 4
%73 = load i32, ptr %4, align 4
%74 = icmp slt i32 %72, %73
br i1 %74, label %26, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %69
br label %75
75: ; preds = %._crit_edge3, %22
%76 = load ptr, ptr %9, align 8
ret ptr %76
}
declare i64 @malloc(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @allocate_int_1D(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpr6q1a2nt.c'
source_filename = "/tmp/tmpr6q1a2nt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @scalbn(double noundef %0, i32 noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca i32, align 4
store double %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = call double (...) @__infer_nondet_double()
ret double %5
}
declare double @__infer_nondet_double(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr6q1a2nt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @scalbn(double noundef %0, i32 noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca i32, align 4
store double %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = call double (...) @__infer_nondet_double()
ret double %5
}
declare double @__infer_nondet_double(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1cr6paqn.c'
source_filename = "/tmp/tmp1cr6paqn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @strnlen(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = load i64, ptr %4, align 8
%8 = call ptr @memchr(ptr noundef %6, i32 noundef 0, i64 noundef %7)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %15, label %11
11: ; preds = %2
%12 = load ptr, ptr %3, align 8
%13 = load i64, ptr %4, align 8
%14 = getelementptr inbounds i8, ptr %12, i64 %13
store ptr %14, ptr %5, align 8
br label %15
15: ; preds = %11, %2
%16 = load ptr, ptr %5, align 8
%17 = load ptr, ptr %3, align 8
%18 = ptrtoint ptr %16 to i64
%19 = ptrtoint ptr %17 to i64
%20 = sub i64 %18, %19
ret i64 %20
}
declare ptr @memchr(ptr noundef, i32 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1cr6paqn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @strnlen(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = load i64, ptr %4, align 8
%8 = call ptr @memchr(ptr noundef %6, i32 noundef 0, i64 noundef %7)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %15, label %11
11: ; preds = %2
%12 = load ptr, ptr %3, align 8
%13 = load i64, ptr %4, align 8
%14 = getelementptr inbounds i8, ptr %12, i64 %13
store ptr %14, ptr %5, align 8
br label %15
15: ; preds = %11, %2
%16 = load ptr, ptr %5, align 8
%17 = load ptr, ptr %3, align 8
%18 = ptrtoint ptr %16 to i64
%19 = ptrtoint ptr %17 to i64
%20 = sub i64 %18, %19
ret i64 %20
}
declare ptr @memchr(ptr noundef, i32 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1qnmzapl.c'
source_filename = "/tmp/tmp1qnmzapl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @write(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load ptr, ptr %5, align 8
%8 = load i64, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
%10 = call i32 @fwrite(ptr noundef %7, i32 noundef 1, i64 noundef %8, ptr noundef %9)
%11 = load i64, ptr %6, align 8
ret i64 %11
}
declare i32 @fwrite(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1qnmzapl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @write(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load ptr, ptr %5, align 8
%8 = load i64, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
%10 = call i32 @fwrite(ptr noundef %7, i32 noundef 1, i64 noundef %8, ptr noundef %9)
%11 = load i64, ptr %6, align 8
ret i64 %11
}
declare i32 @fwrite(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmwjtmkqw.c'
source_filename = "/tmp/tmpmwjtmkqw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDONLY = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @read_unsigned_int(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca [16 x i8], align 16
%7 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%8 = load ptr, ptr %3, align 8
%9 = load i32, ptr @O_RDONLY, align 4
%10 = call i32 @open(ptr noundef %8, i32 noundef %9)
store i32 %10, ptr %5, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %2
br label %40
14: ; preds = %2
%15 = load i32, ptr %5, align 4
%16 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%17 = call i64 @read(i32 noundef %15, ptr noundef %16, i32 noundef 15)
%18 = icmp sgt i64 %17, 0
br i1 %18, label %19, label %37
19: ; preds = %14
%20 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%21 = load i8, ptr %20, align 16
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %37
24: ; preds = %19
store i64 0, ptr @errno, align 8
%25 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%26 = call i64 @strtoul(ptr noundef %25, ptr noundef null, i32 noundef 10)
store i64 %26, ptr %7, align 8
%27 = load i64, ptr @errno, align 8
%28 = icmp ne i64 %27, 0
br i1 %28, label %36, label %29
29: ; preds = %24
%30 = load i64, ptr %7, align 8
%31 = icmp ule i64 %30, 4294967295
br i1 %31, label %32, label %36
32: ; preds = %29
%33 = load i64, ptr %7, align 8
%34 = trunc i64 %33 to i32
%35 = load ptr, ptr %4, align 8
store i32 %34, ptr %35, align 4
br label %36
36: ; preds = %32, %29, %24
br label %37
37: ; preds = %36, %19, %14
%38 = load i32, ptr %5, align 4
%39 = call i32 @close(i32 noundef %38)
br label %40
40: ; preds = %37, %13
ret void
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @strtoul(ptr 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/tmpmwjtmkqw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDONLY = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @read_unsigned_int(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca [16 x i8], align 16
%7 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%8 = load ptr, ptr %3, align 8
%9 = load i32, ptr @O_RDONLY, align 4
%10 = call i32 @open(ptr noundef %8, i32 noundef %9)
store i32 %10, ptr %5, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %2
br label %40
14: ; preds = %2
%15 = load i32, ptr %5, align 4
%16 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%17 = call i64 @read(i32 noundef %15, ptr noundef %16, i32 noundef 15)
%18 = icmp sgt i64 %17, 0
br i1 %18, label %19, label %37
19: ; preds = %14
%20 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%21 = load i8, ptr %20, align 16
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %37
24: ; preds = %19
store i64 0, ptr @errno, align 8
%25 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%26 = call i64 @strtoul(ptr noundef %25, ptr noundef null, i32 noundef 10)
store i64 %26, ptr %7, align 8
%27 = load i64, ptr @errno, align 8
%28 = icmp ne i64 %27, 0
br i1 %28, label %36, label %29
29: ; preds = %24
%30 = load i64, ptr %7, align 8
%31 = icmp ule i64 %30, 4294967295
br i1 %31, label %32, label %36
32: ; preds = %29
%33 = load i64, ptr %7, align 8
%34 = trunc i64 %33 to i32
%35 = load ptr, ptr %4, align 8
store i32 %34, ptr %35, align 4
br label %36
36: ; preds = %32, %29, %24
br label %37
37: ; preds = %36, %19, %14
%38 = load i32, ptr %5, align 4
%39 = call i32 @close(i32 noundef %38)
br label %40
40: ; preds = %37, %13
ret void
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @strtoul(ptr 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/tmpumida12z.c'
source_filename = "/tmp/tmpumida12z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = call ptr @dasm_malloc(i32 noundef 23)
store ptr %10, ptr %6, align 8
%11 = call ptr @dasm_malloc(i32 noundef 24)
store ptr %11, ptr %7, align 8
%12 = call ptr @dasm_malloc(i32 noundef 25)
store ptr %12, ptr %8, align 8
%13 = call ptr @dasm_malloc(i32 noundef 26)
store ptr %13, ptr %9, align 8
%14 = call i32 (...) @dasm_mfree()
ret i32 1
}
declare ptr @dasm_malloc(i32 noundef) #1
declare i32 @dasm_mfree(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpumida12z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = call ptr @dasm_malloc(i32 noundef 23)
store ptr %10, ptr %6, align 8
%11 = call ptr @dasm_malloc(i32 noundef 24)
store ptr %11, ptr %7, align 8
%12 = call ptr @dasm_malloc(i32 noundef 25)
store ptr %12, ptr %8, align 8
%13 = call ptr @dasm_malloc(i32 noundef 26)
store ptr %13, ptr %9, align 8
%14 = call i32 (...) @dasm_mfree()
ret i32 1
}
declare ptr @dasm_malloc(i32 noundef) #1
declare i32 @dasm_mfree(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphowk8xxw.c'
source_filename = "/tmp/tmphowk8xxw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOSYS = dso_local global i64 0, align 8
@O_CLOEXEC = dso_local global i32 0, align 4
@O_DIRECTORY = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmphowk8xxw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOSYS = dso_local global i64 0, align 8
@O_CLOEXEC = dso_local global i32 0, align 4
@O_DIRECTORY = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1ypihueo.c'
source_filename = "/tmp/tmp1ypihueo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @String_count_char(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i8 %1, ptr %4, align 1
%7 = load ptr, ptr %3, align 8
store ptr %7, ptr %5, align 8
store i64 0, ptr %6, align 8
br label %8
8: ; preds = %23, %2
%9 = load ptr, ptr %5, align 8
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %26
13: ; preds = %8
%14 = load ptr, ptr %5, align 8
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = load i8, ptr %4, align 1
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %16, %18
br i1 %19, label %20, label %23
20: ; preds = %13
%21 = load i64, ptr %6, align 8
%22 = add i64 %21, 1
store i64 %22, ptr %6, align 8
br label %23
23: ; preds = %20, %13
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %5, align 8
br label %8, !llvm.loop !6
26: ; preds = %8
%27 = load i64, ptr %6, align 8
ret i64 %27
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp1ypihueo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @String_count_char(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i8 %1, ptr %4, align 1
%7 = load ptr, ptr %3, align 8
store ptr %7, ptr %5, align 8
store i64 0, ptr %6, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i8, ptr %8, align 1
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %10, 0
br i1 %11, label %.lr.ph, label %29
.lr.ph: ; preds = %2
br label %12
12: ; preds = %.lr.ph, %22
%13 = load ptr, ptr %5, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = load i8, ptr %4, align 1
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %15, %17
br i1 %18, label %19, label %22
19: ; preds = %12
%20 = load i64, ptr %6, align 8
%21 = add i64 %20, 1
store i64 %21, ptr %6, align 8
br label %22
22: ; preds = %19, %12
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds i8, ptr %23, i32 1
store ptr %24, ptr %5, align 8
%25 = load ptr, ptr %5, align 8
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = icmp ne i32 %27, 0
br i1 %28, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %29
29: ; preds = %._crit_edge, %2
%30 = load i64, ptr %6, align 8
ret i64 %30
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp9uam6p7r.c'
source_filename = "/tmp/tmp9uam6p7r.c"
target datalayout = "e-m:e-p270: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/tmp9uam6p7r.c"
target datalayout = "e-m:e-p270: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/tmphfnw28cd.c'
source_filename = "/tmp/tmphfnw28cd.c"
target datalayout = "e-m:e-p270: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/tmphfnw28cd.c"
target datalayout = "e-m:e-p270: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/tmpm_8psz2c.c'
source_filename = "/tmp/tmpm_8psz2c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @camsensor_parser_find_addr(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca [20 x i8], align 16
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 0
%8 = call i32 @memset(ptr noundef %7, i32 noundef 0, i32 noundef 20)
%9 = load ptr, ptr %3, align 8
%10 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 0
%11 = call ptr @find_next_token(ptr noundef %9, ptr noundef %10)
store ptr %11, ptr %5, align 8
%12 = load ptr, ptr %5, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %19
14: ; preds = %2
%15 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 0
%16 = call i64 @convert_str_to_number(ptr noundef %15)
%17 = trunc i64 %16 to i16
%18 = load ptr, ptr %4, align 8
store i16 %17, ptr %18, align 2
br label %19
19: ; preds = %14, %2
%20 = load ptr, ptr %5, align 8
ret ptr %20
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @find_next_token(ptr noundef, ptr noundef) #1
declare i64 @convert_str_to_number(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm_8psz2c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @camsensor_parser_find_addr(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca [20 x i8], align 16
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 0
%8 = call i32 @memset(ptr noundef %7, i32 noundef 0, i32 noundef 20)
%9 = load ptr, ptr %3, align 8
%10 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 0
%11 = call ptr @find_next_token(ptr noundef %9, ptr noundef %10)
store ptr %11, ptr %5, align 8
%12 = load ptr, ptr %5, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %19
14: ; preds = %2
%15 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 0
%16 = call i64 @convert_str_to_number(ptr noundef %15)
%17 = trunc i64 %16 to i16
%18 = load ptr, ptr %4, align 8
store i16 %17, ptr %18, align 2
br label %19
19: ; preds = %14, %2
%20 = load ptr, ptr %5, align 8
ret ptr %20
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @find_next_token(ptr noundef, ptr noundef) #1
declare i64 @convert_str_to_number(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpv968fzc2.c'
source_filename = "/tmp/tmpv968fzc2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"%d:%d.%3.3d\0A\0D\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printTime(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca float, align 4
store i64 %0, ptr %2, align 8
%6 = load i64, ptr %2, align 8
%7 = udiv i64 %6, 50000000
%8 = trunc i64 %7 to i32
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %3, align 4
%10 = udiv i32 %9, 60
store i32 %10, ptr %4, align 4
%11 = load i32, ptr %3, align 4
%12 = urem i32 %11, 60
store i32 %12, ptr %3, align 4
%13 = load i64, ptr %2, align 8
%14 = urem i64 %13, 50000000
%15 = uitofp i64 %14 to float
%16 = fdiv float %15, 5.000000e+07
store float %16, ptr %5, align 4
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr %3, align 4
%19 = load float, ptr %5, align 4
%20 = fmul float %19, 1.000000e+03
%21 = fptosi float %20 to i32
%22 = call i32 @printf(ptr noundef @.str, i32 noundef %17, i32 noundef %18, i32 noundef %21)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv968fzc2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"%d:%d.%3.3d\0A\0D\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printTime(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca float, align 4
store i64 %0, ptr %2, align 8
%6 = load i64, ptr %2, align 8
%7 = udiv i64 %6, 50000000
%8 = trunc i64 %7 to i32
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %3, align 4
%10 = udiv i32 %9, 60
store i32 %10, ptr %4, align 4
%11 = load i32, ptr %3, align 4
%12 = urem i32 %11, 60
store i32 %12, ptr %3, align 4
%13 = load i64, ptr %2, align 8
%14 = urem i64 %13, 50000000
%15 = uitofp i64 %14 to float
%16 = fdiv float %15, 5.000000e+07
store float %16, ptr %5, align 4
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr %3, align 4
%19 = load float, ptr %5, align 4
%20 = fmul float %19, 1.000000e+03
%21 = fptosi float %20 to i32
%22 = call i32 @printf(ptr noundef @.str, i32 noundef %17, i32 noundef %18, i32 noundef %21)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9hbwpnbe.c'
source_filename = "/tmp/tmp9hbwpnbe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"gethostbyname3\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @_nss_inject_gethostbyname3_r(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) #0 {
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i64, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
store ptr %0, ptr %10, align 8
store i32 %1, ptr %11, align 4
store ptr %2, ptr %12, align 8
store ptr %3, ptr %13, align 8
store i64 %4, ptr %14, align 8
store ptr %5, ptr %15, align 8
store ptr %6, ptr %16, align 8
store ptr %7, ptr %17, align 8
store ptr %8, ptr %18, align 8
%19 = call i32 @inject(ptr noundef @.str)
ret i32 %19
}
declare i32 @inject(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9hbwpnbe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"gethostbyname3\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @_nss_inject_gethostbyname3_r(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) #0 {
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i64, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
store ptr %0, ptr %10, align 8
store i32 %1, ptr %11, align 4
store ptr %2, ptr %12, align 8
store ptr %3, ptr %13, align 8
store i64 %4, ptr %14, align 8
store ptr %5, ptr %15, align 8
store ptr %6, ptr %16, align 8
store ptr %7, ptr %17, align 8
store ptr %8, ptr %18, align 8
%19 = call i32 @inject(ptr noundef @.str)
ret i32 %19
}
declare i32 @inject(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp67jotjgg.c'
source_filename = "/tmp/tmp67jotjgg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [38 x i8] c"Masukkan panjang sisi sisi segitiga: \00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"%d %d %d\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"Segitiga siku-siku.\0A\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"Segitiga tumpul.\0A\00", align 1
@.str.4 = private unnamed_addr constant [18 x i8] c"Segitiga lancip.\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
store i32 0, ptr %1, align 4
%8 = call i32 @printf(ptr noundef @.str)
%9 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%10 = load i32, ptr %2, align 4
%11 = load i32, ptr %3, align 4
%12 = icmp sge i32 %10, %11
br i1 %12, label %13, label %21
13: ; preds = %0
%14 = load i32, ptr %2, align 4
%15 = load i32, ptr %4, align 4
%16 = icmp sge i32 %14, %15
br i1 %16, label %17, label %21
17: ; preds = %13
%18 = load i32, ptr %2, align 4
store i32 %18, ptr %5, align 4
%19 = load i32, ptr %3, align 4
store i32 %19, ptr %6, align 4
%20 = load i32, ptr %4, align 4
store i32 %20, ptr %7, align 4
br label %38
21: ; preds = %13, %0
%22 = load i32, ptr %3, align 4
%23 = load i32, ptr %2, align 4
%24 = icmp sge i32 %22, %23
br i1 %24, label %25, label %33
25: ; preds = %21
%26 = load i32, ptr %3, align 4
%27 = load i32, ptr %4, align 4
%28 = icmp sge i32 %26, %27
br i1 %28, label %29, label %33
29: ; preds = %25
%30 = load i32, ptr %3, align 4
store i32 %30, ptr %5, align 4
%31 = load i32, ptr %2, align 4
store i32 %31, ptr %6, align 4
%32 = load i32, ptr %4, align 4
store i32 %32, ptr %7, align 4
br label %37
33: ; preds = %25, %21
%34 = load i32, ptr %4, align 4
store i32 %34, ptr %5, align 4
%35 = load i32, ptr %2, align 4
store i32 %35, ptr %6, align 4
%36 = load i32, ptr %3, align 4
store i32 %36, ptr %7, align 4
br label %37
37: ; preds = %33, %29
br label %38
38: ; preds = %37, %17
%39 = load i32, ptr %5, align 4
%40 = load i32, ptr %5, align 4
%41 = mul nsw i32 %39, %40
%42 = load i32, ptr %6, align 4
%43 = load i32, ptr %6, align 4
%44 = mul nsw i32 %42, %43
%45 = load i32, ptr %7, align 4
%46 = load i32, ptr %7, align 4
%47 = mul nsw i32 %45, %46
%48 = add nsw i32 %44, %47
%49 = icmp eq i32 %41, %48
br i1 %49, label %50, label %52
50: ; preds = %38
%51 = call i32 @printf(ptr noundef @.str.2)
br label %69
52: ; preds = %38
%53 = load i32, ptr %5, align 4
%54 = load i32, ptr %5, align 4
%55 = mul nsw i32 %53, %54
%56 = load i32, ptr %6, align 4
%57 = load i32, ptr %6, align 4
%58 = mul nsw i32 %56, %57
%59 = load i32, ptr %7, align 4
%60 = load i32, ptr %7, align 4
%61 = mul nsw i32 %59, %60
%62 = add nsw i32 %58, %61
%63 = icmp sgt i32 %55, %62
br i1 %63, label %64, label %66
64: ; preds = %52
%65 = call i32 @printf(ptr noundef @.str.3)
br label %68
66: ; preds = %52
%67 = call i32 @printf(ptr noundef @.str.4)
br label %68
68: ; preds = %66, %64
br label %69
69: ; preds = %68, %50
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp67jotjgg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [38 x i8] c"Masukkan panjang sisi sisi segitiga: \00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"%d %d %d\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"Segitiga siku-siku.\0A\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"Segitiga tumpul.\0A\00", align 1
@.str.4 = private unnamed_addr constant [18 x i8] c"Segitiga lancip.\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
store i32 0, ptr %1, align 4
%8 = call i32 @printf(ptr noundef @.str)
%9 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%10 = load i32, ptr %2, align 4
%11 = load i32, ptr %3, align 4
%12 = icmp sge i32 %10, %11
br i1 %12, label %13, label %21
13: ; preds = %0
%14 = load i32, ptr %2, align 4
%15 = load i32, ptr %4, align 4
%16 = icmp sge i32 %14, %15
br i1 %16, label %17, label %21
17: ; preds = %13
%18 = load i32, ptr %2, align 4
store i32 %18, ptr %5, align 4
%19 = load i32, ptr %3, align 4
store i32 %19, ptr %6, align 4
%20 = load i32, ptr %4, align 4
store i32 %20, ptr %7, align 4
br label %38
21: ; preds = %13, %0
%22 = load i32, ptr %3, align 4
%23 = load i32, ptr %2, align 4
%24 = icmp sge i32 %22, %23
br i1 %24, label %25, label %33
25: ; preds = %21
%26 = load i32, ptr %3, align 4
%27 = load i32, ptr %4, align 4
%28 = icmp sge i32 %26, %27
br i1 %28, label %29, label %33
29: ; preds = %25
%30 = load i32, ptr %3, align 4
store i32 %30, ptr %5, align 4
%31 = load i32, ptr %2, align 4
store i32 %31, ptr %6, align 4
%32 = load i32, ptr %4, align 4
store i32 %32, ptr %7, align 4
br label %37
33: ; preds = %25, %21
%34 = load i32, ptr %4, align 4
store i32 %34, ptr %5, align 4
%35 = load i32, ptr %2, align 4
store i32 %35, ptr %6, align 4
%36 = load i32, ptr %3, align 4
store i32 %36, ptr %7, align 4
br label %37
37: ; preds = %33, %29
br label %38
38: ; preds = %37, %17
%39 = load i32, ptr %5, align 4
%40 = load i32, ptr %5, align 4
%41 = mul nsw i32 %39, %40
%42 = load i32, ptr %6, align 4
%43 = load i32, ptr %6, align 4
%44 = mul nsw i32 %42, %43
%45 = load i32, ptr %7, align 4
%46 = load i32, ptr %7, align 4
%47 = mul nsw i32 %45, %46
%48 = add nsw i32 %44, %47
%49 = icmp eq i32 %41, %48
br i1 %49, label %50, label %52
50: ; preds = %38
%51 = call i32 @printf(ptr noundef @.str.2)
br label %69
52: ; preds = %38
%53 = load i32, ptr %5, align 4
%54 = load i32, ptr %5, align 4
%55 = mul nsw i32 %53, %54
%56 = load i32, ptr %6, align 4
%57 = load i32, ptr %6, align 4
%58 = mul nsw i32 %56, %57
%59 = load i32, ptr %7, align 4
%60 = load i32, ptr %7, align 4
%61 = mul nsw i32 %59, %60
%62 = add nsw i32 %58, %61
%63 = icmp sgt i32 %55, %62
br i1 %63, label %64, label %66
64: ; preds = %52
%65 = call i32 @printf(ptr noundef @.str.3)
br label %68
66: ; preds = %52
%67 = call i32 @printf(ptr noundef @.str.4)
br label %68
68: ; preds = %66, %64
br label %69
69: ; preds = %68, %50
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6mdx3y2q.c'
source_filename = "/tmp/tmp6mdx3y2q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [13 x i8] c"%s/LCK_%s_%d\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @os_SetLock(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca %struct.stat, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%14 = load ptr, ptr %4, align 8
%15 = call ptr @os_DirName(ptr noundef %14)
store ptr %15, ptr %7, align 8
%16 = call ptr (...) @os_NodeName()
store ptr %16, ptr %8, align 8
store ptr null, ptr %9, align 8
store i32 -1, ptr %10, align 4
store i32 0, ptr %11, align 4
store i32 0, ptr %12, align 4
%17 = load ptr, ptr %7, align 8
%18 = call i64 @strlen(ptr noundef %17)
%19 = load ptr, ptr %8, align 8
%20 = call i64 @strlen(ptr noundef %19)
%21 = add nsw i64 %18, %20
%22 = add nsw i64 %21, 32
%23 = call ptr @xmalloc(i64 noundef %22)
store ptr %23, ptr %9, align 8
%24 = load ptr, ptr %9, align 8
%25 = load ptr, ptr %7, align 8
%26 = load ptr, ptr %8, align 8
%27 = call i64 (...) @getpid()
%28 = trunc i64 %27 to i32
%29 = call i32 @sprintf(ptr noundef %24, ptr noundef @.str, ptr noundef %25, ptr noundef %26, i32 noundef %28)
%30 = load ptr, ptr %9, align 8
%31 = load i32, ptr @O_WRONLY, align 4
%32 = load i32, ptr @O_CREAT, align 4
%33 = or i32 %31, %32
%34 = load i32, ptr %5, align 4
%35 = call i32 @open(ptr noundef %30, i32 noundef %33, i32 noundef %34)
store i32 %35, ptr %10, align 4
%36 = icmp slt i32 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %3
store i32 -2, ptr %11, align 4
br label %57
38: ; preds = %3
store i32 1, ptr %12, align 4
%39 = load ptr, ptr %9, align 8
%40 = load ptr, ptr %4, align 8
%41 = call i32 @link(ptr noundef %39, ptr noundef %40)
%42 = load i32, ptr %10, align 4
%43 = call i64 @fstat(i32 noundef %42, ptr noundef %13)
%44 = icmp slt i64 %43, 0
br i1 %44, label %45, label %46
45: ; preds = %38
store i32 -2, ptr %11, align 4
br label %57
46: ; preds = %38
%47 = getelementptr inbounds %struct.stat, ptr %13, i32 0, i32 0
%48 = load i32, ptr %47, align 4
%49 = icmp ne i32 %48, 2
br i1 %49, label %50, label %51
50: ; preds = %46
store i32 -1, ptr %11, align 4
br label %57
51: ; preds = %46
%52 = load i32, ptr %6, align 4
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %56
54: ; preds = %51
%55 = load i32, ptr %10, align 4
store i32 %55, ptr %11, align 4
store i32 -1, ptr %10, align 4
br label %56
56: ; preds = %54, %51
br label %57
57: ; preds = %56, %50, %45, %37
%58 = load i32, ptr %12, align 4
%59 = icmp ne i32 %58, 0
br i1 %59, label %60, label %63
60: ; preds = %57
%61 = load ptr, ptr %9, align 8
%62 = call i32 @unlink(ptr noundef %61)
br label %63
63: ; preds = %60, %57
%64 = load ptr, ptr %9, align 8
%65 = call i32 @free(ptr noundef %64)
%66 = load ptr, ptr %7, align 8
%67 = call i32 @free(ptr noundef %66)
%68 = load i32, ptr %10, align 4
%69 = icmp sge i32 %68, 0
br i1 %69, label %70, label %73
70: ; preds = %63
%71 = load i32, ptr %10, align 4
%72 = call i32 @close(i32 noundef %71)
br label %73
73: ; preds = %70, %63
%74 = load i32, ptr %11, align 4
ret i32 %74
}
declare ptr @os_DirName(ptr noundef) #1
declare ptr @os_NodeName(...) #1
declare ptr @xmalloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @getpid(...) #1
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @link(ptr noundef, ptr noundef) #1
declare i64 @fstat(i32 noundef, ptr noundef) #1
declare i32 @unlink(ptr noundef) #1
declare i32 @free(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/tmp6mdx3y2q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [13 x i8] c"%s/LCK_%s_%d\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @os_SetLock(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca %struct.stat, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%14 = load ptr, ptr %4, align 8
%15 = call ptr @os_DirName(ptr noundef %14)
store ptr %15, ptr %7, align 8
%16 = call ptr (...) @os_NodeName()
store ptr %16, ptr %8, align 8
store ptr null, ptr %9, align 8
store i32 -1, ptr %10, align 4
store i32 0, ptr %11, align 4
store i32 0, ptr %12, align 4
%17 = load ptr, ptr %7, align 8
%18 = call i64 @strlen(ptr noundef %17)
%19 = load ptr, ptr %8, align 8
%20 = call i64 @strlen(ptr noundef %19)
%21 = add nsw i64 %18, %20
%22 = add nsw i64 %21, 32
%23 = call ptr @xmalloc(i64 noundef %22)
store ptr %23, ptr %9, align 8
%24 = load ptr, ptr %9, align 8
%25 = load ptr, ptr %7, align 8
%26 = load ptr, ptr %8, align 8
%27 = call i64 (...) @getpid()
%28 = trunc i64 %27 to i32
%29 = call i32 @sprintf(ptr noundef %24, ptr noundef @.str, ptr noundef %25, ptr noundef %26, i32 noundef %28)
%30 = load ptr, ptr %9, align 8
%31 = load i32, ptr @O_WRONLY, align 4
%32 = load i32, ptr @O_CREAT, align 4
%33 = or i32 %31, %32
%34 = load i32, ptr %5, align 4
%35 = call i32 @open(ptr noundef %30, i32 noundef %33, i32 noundef %34)
store i32 %35, ptr %10, align 4
%36 = icmp slt i32 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %3
store i32 -2, ptr %11, align 4
br label %57
38: ; preds = %3
store i32 1, ptr %12, align 4
%39 = load ptr, ptr %9, align 8
%40 = load ptr, ptr %4, align 8
%41 = call i32 @link(ptr noundef %39, ptr noundef %40)
%42 = load i32, ptr %10, align 4
%43 = call i64 @fstat(i32 noundef %42, ptr noundef %13)
%44 = icmp slt i64 %43, 0
br i1 %44, label %45, label %46
45: ; preds = %38
store i32 -2, ptr %11, align 4
br label %57
46: ; preds = %38
%47 = getelementptr inbounds %struct.stat, ptr %13, i32 0, i32 0
%48 = load i32, ptr %47, align 4
%49 = icmp ne i32 %48, 2
br i1 %49, label %50, label %51
50: ; preds = %46
store i32 -1, ptr %11, align 4
br label %57
51: ; preds = %46
%52 = load i32, ptr %6, align 4
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %56
54: ; preds = %51
%55 = load i32, ptr %10, align 4
store i32 %55, ptr %11, align 4
store i32 -1, ptr %10, align 4
br label %56
56: ; preds = %54, %51
br label %57
57: ; preds = %56, %50, %45, %37
%58 = load i32, ptr %12, align 4
%59 = icmp ne i32 %58, 0
br i1 %59, label %60, label %63
60: ; preds = %57
%61 = load ptr, ptr %9, align 8
%62 = call i32 @unlink(ptr noundef %61)
br label %63
63: ; preds = %60, %57
%64 = load ptr, ptr %9, align 8
%65 = call i32 @free(ptr noundef %64)
%66 = load ptr, ptr %7, align 8
%67 = call i32 @free(ptr noundef %66)
%68 = load i32, ptr %10, align 4
%69 = icmp sge i32 %68, 0
br i1 %69, label %70, label %73
70: ; preds = %63
%71 = load i32, ptr %10, align 4
%72 = call i32 @close(i32 noundef %71)
br label %73
73: ; preds = %70, %63
%74 = load i32, ptr %11, align 4
ret i32 %74
}
declare ptr @os_DirName(ptr noundef) #1
declare ptr @os_NodeName(...) #1
declare ptr @xmalloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @getpid(...) #1
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @link(ptr noundef, ptr noundef) #1
declare i64 @fstat(i32 noundef, ptr noundef) #1
declare i32 @unlink(ptr noundef) #1
declare i32 @free(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/tmpi1yh6bea.c'
source_filename = "/tmp/tmpi1yh6bea.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CHAR_BIT = 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 = load i32, ptr @CHAR_BIT, align 4
%3 = sext i32 %2 to i64
%4 = mul i64 4, %3
%5 = trunc i64 %4 to i32
%6 = shl i32 1, %5
ret i32 %6
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi1yh6bea.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CHAR_BIT = 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 = load i32, ptr @CHAR_BIT, align 4
%3 = sext i32 %2 to i64
%4 = mul i64 4, %3
%5 = trunc i64 %4 to i32
%6 = shl i32 1, %5
ret i32 %6
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp12irv16m.c'
source_filename = "/tmp/tmp12irv16m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lookup(ptr noundef %0, ptr noundef %1, i8 noundef signext %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i8, align 1
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i8 %2, ptr %7, align 1
store ptr %3, ptr %8, align 8
%11 = load ptr, ptr %5, align 8
%12 = call i32 @strlen(ptr noundef %11)
store i32 %12, ptr %9, align 4
store i32 0, ptr %10, align 4
br label %13
13: ; preds = %36, %4
%14 = load i32, ptr %10, align 4
%15 = load i32, ptr %9, align 4
%16 = icmp ult i32 %14, %15
br i1 %16, label %17, label %39
17: ; preds = %13
%18 = load i8, ptr %7, align 1
%19 = sext i8 %18 to i32
%20 = load ptr, ptr %5, align 8
%21 = load i32, ptr %10, align 4
%22 = zext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %20, i64 %22
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %19, %25
br i1 %26, label %27, label %35
27: ; preds = %17
%28 = load ptr, ptr %8, align 8
%29 = load ptr, ptr %6, align 8
%30 = load i32, ptr %10, align 4
%31 = zext i32 %30 to i64
%32 = getelementptr inbounds ptr, ptr %29, i64 %31
%33 = load ptr, ptr %32, align 8
%34 = call i32 @concat(ptr noundef %28, ptr noundef %33)
br label %35
35: ; preds = %27, %17
br label %36
36: ; preds = %35
%37 = load i32, ptr %10, align 4
%38 = add i32 %37, 1
store i32 %38, ptr %10, align 4
br label %13, !llvm.loop !6
39: ; preds = %13
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i32 @concat(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/tmp12irv16m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lookup(ptr noundef %0, ptr noundef %1, i8 noundef signext %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i8, align 1
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i8 %2, ptr %7, align 1
store ptr %3, ptr %8, align 8
%11 = load ptr, ptr %5, align 8
%12 = call i32 @strlen(ptr noundef %11)
store i32 %12, ptr %9, align 4
store i32 0, ptr %10, align 4
%13 = load i32, ptr %10, align 4
%14 = load i32, ptr %9, align 4
%15 = icmp ult i32 %13, %14
br i1 %15, label %.lr.ph, label %41
.lr.ph: ; preds = %4
br label %16
16: ; preds = %.lr.ph, %35
%17 = load i8, ptr %7, align 1
%18 = sext i8 %17 to i32
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %10, align 4
%21 = zext 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 %18, %24
br i1 %25, label %26, label %34
26: ; preds = %16
%27 = load ptr, ptr %8, align 8
%28 = load ptr, ptr %6, align 8
%29 = load i32, ptr %10, align 4
%30 = zext i32 %29 to i64
%31 = getelementptr inbounds ptr, ptr %28, i64 %30
%32 = load ptr, ptr %31, align 8
%33 = call i32 @concat(ptr noundef %27, ptr noundef %32)
br label %34
34: ; preds = %26, %16
br label %35
35: ; preds = %34
%36 = load i32, ptr %10, align 4
%37 = add i32 %36, 1
store i32 %37, ptr %10, align 4
%38 = load i32, ptr %10, align 4
%39 = load i32, ptr %9, align 4
%40 = icmp ult i32 %38, %39
br i1 %40, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %35
br label %41
41: ; preds = %._crit_edge, %4
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i32 @concat(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/tmpolyu6kmp.c'
source_filename = "/tmp/tmpolyu6kmp.c"
target datalayout = "e-m:e-p270: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/tmpolyu6kmp.c"
target datalayout = "e-m:e-p270: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/tmph7hzhi_t.c'
source_filename = "/tmp/tmph7hzhi_t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.trapMain.array = private unnamed_addr constant [24 x i32] [i32 0, i32 1, i32 0, i32 2, i32 1, i32 0, i32 1, i32 3, i32 2, i32 1, i32 2, i32 1, i32 0, i32 1, i32 0, i32 2, i32 1, i32 0, i32 1, i32 3, i32 2, i32 1, i32 2, i32 1], align 16
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @trapMain() #0 {
%1 = alloca [24 x i32], align 16
%2 = alloca i32, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.trapMain.array, i64 96, i1 false)
store i32 0, ptr %2, align 4
store i32 24, ptr %2, align 4
%3 = getelementptr inbounds [24 x i32], ptr %1, i64 0, i64 0
%4 = load i32, ptr %2, align 4
%5 = call i32 @trap(ptr noundef %3, i32 noundef %4)
%6 = call i32 @printf(ptr noundef @.str, i32 noundef %5)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, i32 noundef) #2
declare i32 @trap(ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmph7hzhi_t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.trapMain.array = private unnamed_addr constant [24 x i32] [i32 0, i32 1, i32 0, i32 2, i32 1, i32 0, i32 1, i32 3, i32 2, i32 1, i32 2, i32 1, i32 0, i32 1, i32 0, i32 2, i32 1, i32 0, i32 1, i32 3, i32 2, i32 1, i32 2, i32 1], align 16
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @trapMain() #0 {
%1 = alloca [24 x i32], align 16
%2 = alloca i32, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.trapMain.array, i64 96, i1 false)
store i32 0, ptr %2, align 4
store i32 24, ptr %2, align 4
%3 = getelementptr inbounds [24 x i32], ptr %1, i64 0, i64 0
%4 = load i32, ptr %2, align 4
%5 = call i32 @trap(ptr noundef %3, i32 noundef %4)
%6 = call i32 @printf(ptr noundef @.str, i32 noundef %5)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, i32 noundef) #2
declare i32 @trap(ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2ikhzau4.c'
source_filename = "/tmp/tmp2ikhzau4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"gravity %f cycle per loop\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @calc_gravity(ptr noundef %0, ptr noundef %1, ptr noundef %2, double noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6) #0 {
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca double, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca double, align 8
%16 = alloca i32, align 4
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
store ptr %0, ptr %8, align 8
store ptr %1, ptr %9, align 8
store ptr %2, ptr %10, align 8
store double %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
store i32 %6, ptr %14, align 4
%20 = load i32, ptr %14, align 4
%21 = load ptr, ptr %9, align 8
%22 = load ptr, ptr %8, align 8
%23 = call i32 @g5_set_xmj(i32 noundef 0, i32 noundef %20, ptr noundef %21, ptr noundef %22)
%24 = load double, ptr %11, align 8
%25 = call i32 @g5_set_eps_to_all(double noundef %24)
%26 = load i32, ptr %14, align 4
%27 = call i32 @g5_set_n(i32 noundef %26)
%28 = call double (...) @get_dtime()
store double %28, ptr %18, align 8
%29 = load ptr, ptr %9, align 8
%30 = load ptr, ptr %12, align 8
%31 = load ptr, ptr %13, align 8
%32 = load i32, ptr %14, align 4
%33 = call i32 @g5_calculate_force_on_x(ptr noundef %29, ptr noundef %30, ptr noundef %31, i32 noundef %32)
%34 = call double (...) @get_dtime()
store double %34, ptr %19, align 8
%35 = load double, ptr %19, align 8
%36 = load double, ptr %18, align 8
%37 = fsub double %35, %36
%38 = fmul double %37, 3.800000e+00
%39 = fmul double %38, 1.000000e+09
%40 = load i32, ptr %14, align 4
%41 = sitofp i32 %40 to double
%42 = load i32, ptr %14, align 4
%43 = sitofp i32 %42 to double
%44 = fmul double %41, %43
%45 = fdiv double %44, 4.000000e+00
%46 = fdiv double %39, %45
store double %46, ptr %17, align 8
%47 = load double, ptr %17, align 8
%48 = call i32 @printf(ptr noundef @.str, double noundef %47)
store i32 0, ptr %16, align 4
br label %49
49: ; preds = %64, %7
%50 = load i32, ptr %16, align 4
%51 = load i32, ptr %14, align 4
%52 = icmp slt i32 %50, %51
br i1 %52, label %53, label %67
53: ; preds = %49
%54 = load ptr, ptr %13, align 8
%55 = load i32, ptr %16, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds double, ptr %54, i64 %56
%58 = load double, ptr %57, align 8
%59 = fneg double %58
%60 = load ptr, ptr %13, align 8
%61 = load i32, ptr %16, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds double, ptr %60, i64 %62
store double %59, ptr %63, align 8
br label %64
64: ; preds = %53
%65 = load i32, ptr %16, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %16, align 4
br label %49, !llvm.loop !6
67: ; preds = %49
%68 = load double, ptr %11, align 8
%69 = fcmp une double %68, 0.000000e+00
br i1 %69, label %70, label %98
70: ; preds = %67
%71 = load double, ptr %11, align 8
%72 = fdiv double 1.000000e+00, %71
store double %72, ptr %15, align 8
store i32 0, ptr %16, align 4
br label %73
73: ; preds = %94, %70
%74 = load i32, ptr %16, align 4
%75 = load i32, ptr %14, align 4
%76 = icmp slt i32 %74, %75
br i1 %76, label %77, label %97
77: ; preds = %73
%78 = load ptr, ptr %13, align 8
%79 = load i32, ptr %16, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds double, ptr %78, i64 %80
%82 = load double, ptr %81, align 8
%83 = load ptr, ptr %8, align 8
%84 = load i32, ptr %16, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds double, ptr %83, i64 %85
%87 = load double, ptr %86, align 8
%88 = load double, ptr %15, align 8
%89 = call double @llvm.fmuladd.f64(double %87, double %88, double %82)
%90 = load ptr, ptr %13, align 8
%91 = load i32, ptr %16, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds double, ptr %90, i64 %92
store double %89, ptr %93, align 8
br label %94
94: ; preds = %77
%95 = load i32, ptr %16, align 4
%96 = add nsw i32 %95, 1
store i32 %96, ptr %16, align 4
br label %73, !llvm.loop !8
97: ; preds = %73
br label %98
98: ; preds = %97, %67
ret void
}
declare i32 @g5_set_xmj(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @g5_set_eps_to_all(double noundef) #1
declare i32 @g5_set_n(i32 noundef) #1
declare double @get_dtime(...) #1
declare i32 @g5_calculate_force_on_x(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2ikhzau4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"gravity %f cycle per loop\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @calc_gravity(ptr noundef %0, ptr noundef %1, ptr noundef %2, double noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6) #0 {
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca double, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca double, align 8
%16 = alloca i32, align 4
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
store ptr %0, ptr %8, align 8
store ptr %1, ptr %9, align 8
store ptr %2, ptr %10, align 8
store double %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
store i32 %6, ptr %14, align 4
%20 = load i32, ptr %14, align 4
%21 = load ptr, ptr %9, align 8
%22 = load ptr, ptr %8, align 8
%23 = call i32 @g5_set_xmj(i32 noundef 0, i32 noundef %20, ptr noundef %21, ptr noundef %22)
%24 = load double, ptr %11, align 8
%25 = call i32 @g5_set_eps_to_all(double noundef %24)
%26 = load i32, ptr %14, align 4
%27 = call i32 @g5_set_n(i32 noundef %26)
%28 = call double (...) @get_dtime()
store double %28, ptr %18, align 8
%29 = load ptr, ptr %9, align 8
%30 = load ptr, ptr %12, align 8
%31 = load ptr, ptr %13, align 8
%32 = load i32, ptr %14, align 4
%33 = call i32 @g5_calculate_force_on_x(ptr noundef %29, ptr noundef %30, ptr noundef %31, i32 noundef %32)
%34 = call double (...) @get_dtime()
store double %34, ptr %19, align 8
%35 = load double, ptr %19, align 8
%36 = load double, ptr %18, align 8
%37 = fsub double %35, %36
%38 = fmul double %37, 3.800000e+00
%39 = fmul double %38, 1.000000e+09
%40 = load i32, ptr %14, align 4
%41 = sitofp i32 %40 to double
%42 = load i32, ptr %14, align 4
%43 = sitofp i32 %42 to double
%44 = fmul double %41, %43
%45 = fdiv double %44, 4.000000e+00
%46 = fdiv double %39, %45
store double %46, ptr %17, align 8
%47 = load double, ptr %17, align 8
%48 = call i32 @printf(ptr noundef @.str, double noundef %47)
store i32 0, ptr %16, align 4
%49 = load i32, ptr %16, align 4
%50 = load i32, ptr %14, align 4
%51 = icmp slt i32 %49, %50
br i1 %51, label %.lr.ph, label %69
.lr.ph: ; preds = %7
br label %52
52: ; preds = %.lr.ph, %63
%53 = load ptr, ptr %13, align 8
%54 = load i32, ptr %16, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds double, ptr %53, i64 %55
%57 = load double, ptr %56, align 8
%58 = fneg double %57
%59 = load ptr, ptr %13, align 8
%60 = load i32, ptr %16, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds double, ptr %59, i64 %61
store double %58, ptr %62, align 8
br label %63
63: ; preds = %52
%64 = load i32, ptr %16, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %16, align 4
%66 = load i32, ptr %16, align 4
%67 = load i32, ptr %14, align 4
%68 = icmp slt i32 %66, %67
br i1 %68, label %52, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %63
br label %69
69: ; preds = %._crit_edge, %7
%70 = load double, ptr %11, align 8
%71 = fcmp une double %70, 0.000000e+00
br i1 %71, label %72, label %102
72: ; preds = %69
%73 = load double, ptr %11, align 8
%74 = fdiv double 1.000000e+00, %73
store double %74, ptr %15, align 8
store i32 0, ptr %16, align 4
%75 = load i32, ptr %16, align 4
%76 = load i32, ptr %14, align 4
%77 = icmp slt i32 %75, %76
br i1 %77, label %.lr.ph2, label %101
.lr.ph2: ; preds = %72
br label %78
78: ; preds = %.lr.ph2, %95
%79 = load ptr, ptr %13, align 8
%80 = load i32, ptr %16, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds double, ptr %79, i64 %81
%83 = load double, ptr %82, align 8
%84 = load ptr, ptr %8, align 8
%85 = load i32, ptr %16, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds double, ptr %84, i64 %86
%88 = load double, ptr %87, align 8
%89 = load double, ptr %15, align 8
%90 = call double @llvm.fmuladd.f64(double %88, double %89, double %83)
%91 = load ptr, ptr %13, align 8
%92 = load i32, ptr %16, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds double, ptr %91, i64 %93
store double %90, ptr %94, align 8
br label %95
95: ; preds = %78
%96 = load i32, ptr %16, align 4
%97 = add nsw i32 %96, 1
store i32 %97, ptr %16, align 4
%98 = load i32, ptr %16, align 4
%99 = load i32, ptr %14, align 4
%100 = icmp slt i32 %98, %99
br i1 %100, label %78, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %95
br label %101
101: ; preds = %._crit_edge3, %72
br label %102
102: ; preds = %101, %69
ret void
}
declare i32 @g5_set_xmj(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @g5_set_eps_to_all(double noundef) #1
declare i32 @g5_set_n(i32 noundef) #1
declare double @get_dtime(...) #1
declare i32 @g5_calculate_force_on_x(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpj0tdhxtf.c'
source_filename = "/tmp/tmpj0tdhxtf.c"
target datalayout = "e-m:e-p270: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.s1 = type { ptr, i8, i8 }
@.str = private unnamed_addr constant [12 x i8] c"%p, %p, %p\0A\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"sizeof(s1)=%zu, s2=%zu\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 i8, align 1
%8 = alloca [3 x i8], align 1
%9 = alloca i32, align 4
%10 = alloca %struct.s1, align 8
%11 = alloca [4 x %struct.s1], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %6, ptr noundef %7, ptr noundef %9)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef 16, i64 noundef 64)
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/tmpj0tdhxtf.c"
target datalayout = "e-m:e-p270: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.s1 = type { ptr, i8, i8 }
@.str = private unnamed_addr constant [12 x i8] c"%p, %p, %p\0A\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"sizeof(s1)=%zu, s2=%zu\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 i8, align 1
%8 = alloca [3 x i8], align 1
%9 = alloca i32, align 4
%10 = alloca %struct.s1, align 8
%11 = alloca [4 x %struct.s1], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %6, ptr noundef %7, ptr noundef %9)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef 16, i64 noundef 64)
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/tmpqqwa9cry.c'
source_filename = "/tmp/tmpqqwa9cry.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @initOs() #0 {
%1 = call i32 (...) @gdt_install()
%2 = call i32 (...) @idt_install()
%3 = call i32 (...) @isrs_install()
%4 = call i32 (...) @irq_install()
%5 = call i32 (...) @timer_install()
%6 = call i32 (...) @keyboard_install()
ret void
}
declare i32 @gdt_install(...) #1
declare i32 @idt_install(...) #1
declare i32 @isrs_install(...) #1
declare i32 @irq_install(...) #1
declare i32 @timer_install(...) #1
declare i32 @keyboard_install(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqqwa9cry.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @initOs() #0 {
%1 = call i32 (...) @gdt_install()
%2 = call i32 (...) @idt_install()
%3 = call i32 (...) @isrs_install()
%4 = call i32 (...) @irq_install()
%5 = call i32 (...) @timer_install()
%6 = call i32 (...) @keyboard_install()
ret void
}
declare i32 @gdt_install(...) #1
declare i32 @idt_install(...) #1
declare i32 @isrs_install(...) #1
declare i32 @irq_install(...) #1
declare i32 @timer_install(...) #1
declare i32 @keyboard_install(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnv9km7rd.c'
source_filename = "/tmp/tmpnv9km7rd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isupper(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = sext i8 %3 to i32
%5 = icmp sge i32 %4, 65
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load i8, ptr %2, align 1
%8 = sext i8 %7 to i32
%9 = icmp sle i32 %8, 90
br label %10
10: ; preds = %6, %1
%11 = phi i1 [ false, %1 ], [ %9, %6 ]
%12 = zext i1 %11 to i32
ret i32 %12
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnv9km7rd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isupper(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = sext i8 %3 to i32
%5 = icmp sge i32 %4, 65
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load i8, ptr %2, align 1
%8 = sext i8 %7 to i32
%9 = icmp sle i32 %8, 90
br label %10
10: ; preds = %6, %1
%11 = phi i1 [ false, %1 ], [ %9, %6 ]
%12 = zext i1 %11 to i32
ret i32 %12
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjaf0p4si.c'
source_filename = "/tmp/tmpjaf0p4si.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"\0A===== test_break_for\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_break_for() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 @printf(ptr noundef @.str)
store i32 1, ptr %1, align 4
store i32 1, ptr %2, align 4
br label %4
4: ; preds = %14, %0
%5 = load i32, ptr %2, align 4
%6 = icmp slt i32 %5, 10
br i1 %6, label %7, label %17
7: ; preds = %4
%8 = load i32, ptr %1, align 4
%9 = add nsw i32 %8, 1
store i32 %9, ptr %1, align 4
%10 = load i32, ptr %1, align 4
%11 = icmp eq i32 %10, 5
br i1 %11, label %12, label %13
12: ; preds = %7
br label %17
13: ; preds = %7
br label %14
14: ; preds = %13
%15 = load i32, ptr %2, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %2, align 4
br label %4, !llvm.loop !6
17: ; preds = %12, %4
%18 = load i32, ptr %1, align 4
%19 = icmp eq i32 %18, 5
%20 = zext i1 %19 to i32
%21 = call i32 @assert(i32 noundef %20)
ret void
}
declare i32 @printf(ptr noundef) #1
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/tmpjaf0p4si.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"\0A===== test_break_for\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_break_for() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 @printf(ptr noundef @.str)
store i32 1, ptr %1, align 4
store i32 1, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 10
br i1 %5, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %13
%7 = load i32, ptr %1, align 4
%8 = add nsw i32 %7, 1
store i32 %8, ptr %1, align 4
%9 = load i32, ptr %1, align 4
%10 = icmp eq i32 %9, 5
br i1 %10, label %11, label %12
11: ; preds = %6
br label %18
12: ; preds = %6
br label %13
13: ; preds = %12
%14 = load i32, ptr %2, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %2, align 4
%16 = load i32, ptr %2, align 4
%17 = icmp slt i32 %16, 10
br i1 %17, label %6, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %13
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %0
br label %18
18: ; preds = %.loopexit, %11
%19 = load i32, ptr %1, align 4
%20 = icmp eq i32 %19, 5
%21 = zext i1 %20 to i32
%22 = call i32 @assert(i32 noundef %21)
ret void
}
declare i32 @printf(ptr noundef) #1
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/tmpjtsdey_p.c'
source_filename = "/tmp/tmpjtsdey_p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjtsdey_p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzrcic8q8.c'
source_filename = "/tmp/tmpzrcic8q8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"Input string: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"/dev/my_driver\00", align 1
@O_RDWR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca [100 x i8], align 16
%6 = alloca i8, align 1
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%8 = load i32, ptr %3, align 4
%9 = icmp sgt i32 %8, 1
%10 = zext i1 %9 to i32
%11 = call i32 @assert(i32 noundef %10)
store i8 0, ptr %6, align 1
%12 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%13 = call i32 @memset(ptr noundef %12, i32 noundef 0, i32 noundef 100)
%14 = load ptr, ptr %4, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 1
%16 = load ptr, ptr %15, align 8
%17 = call i32 @printf(ptr noundef @.str, ptr noundef %16)
%18 = load i32, ptr @O_RDWR, align 4
%19 = call i32 @open(ptr noundef @.str.1, i32 noundef %18)
store i32 %19, ptr %7, align 4
%20 = load i32, ptr %7, align 4
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 1
%23 = load ptr, ptr %22, align 8
%24 = load ptr, ptr %4, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 1
%26 = load ptr, ptr %25, align 8
%27 = call i32 @strlen(ptr noundef %26)
%28 = call i32 @write(i32 noundef %20, ptr noundef %23, i32 noundef %27)
ret i32 0
}
declare i32 @assert(i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr 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
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzrcic8q8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"Input string: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"/dev/my_driver\00", align 1
@O_RDWR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca [100 x i8], align 16
%6 = alloca i8, align 1
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%8 = load i32, ptr %3, align 4
%9 = icmp sgt i32 %8, 1
%10 = zext i1 %9 to i32
%11 = call i32 @assert(i32 noundef %10)
store i8 0, ptr %6, align 1
%12 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%13 = call i32 @memset(ptr noundef %12, i32 noundef 0, i32 noundef 100)
%14 = load ptr, ptr %4, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 1
%16 = load ptr, ptr %15, align 8
%17 = call i32 @printf(ptr noundef @.str, ptr noundef %16)
%18 = load i32, ptr @O_RDWR, align 4
%19 = call i32 @open(ptr noundef @.str.1, i32 noundef %18)
store i32 %19, ptr %7, align 4
%20 = load i32, ptr %7, align 4
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 1
%23 = load ptr, ptr %22, align 8
%24 = load ptr, ptr %4, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 1
%26 = load ptr, ptr %25, align 8
%27 = call i32 @strlen(ptr noundef %26)
%28 = call i32 @write(i32 noundef %20, ptr noundef %23, i32 noundef %27)
ret i32 0
}
declare i32 @assert(i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr 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
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0_fta3tq.c'
source_filename = "/tmp/tmp0_fta3tq.c"
target datalayout = "e-m:e-p270: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 [30 x i8] c"\0AProgram: mbrChunker v0.3.17\0A\00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"Author: JD Durick <jd@vmforensics.org>\0A\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"Website: http://vmforensics.org\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [254 x i8] c"Description: mbrChunker is a *nix-based program that allows you to mount raw disk images\0Aas well as perform analysis on partition tables within the master boot record. Furthermore,\0AmbrChunker can search for hex patterns within any type of binary file\0A\00", align 1
@.str.4 = private unnamed_addr constant [344 x i8] c"Usage: %s -i <path to dd image> -v <output path of vmdk>...\0A\0AOPTIONS:\0A -i image file name that you will be analyzing\0A -v VMDK metadata file that you will be creating for your dd2vmdk conversion\0A -a creation of a metadata file to be created (file location required)\0A -x search for hex code patterns within your file (not 0x80, just 80)\0A\00", align 1
@.str.5 = private unnamed_addr constant [55 x i8] c"Examples:\0A%s -x 493961 -i /data/images/testsector.img\0A\00", align 1
@.str.6 = private unnamed_addr constant [64 x i8] c"%s -i <raw image path location> -v <vmdk output file location>\0A\00", align 1
@.str.7 = private unnamed_addr constant [63 x i8] c"%s -i <raw image path location> -a <output of analysis file>\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %3, ptr noundef @.str)
%5 = load i32, ptr @stderr, align 4
%6 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %5, ptr noundef @.str.1)
%7 = load i32, ptr @stderr, align 4
%8 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %7, ptr noundef @.str.2)
%9 = load i32, ptr @stderr, align 4
%10 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %9, ptr noundef @.str.3)
%11 = load i32, ptr @stderr, align 4
%12 = load ptr, ptr %2, align 8
%13 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %11, ptr noundef @.str.4, ptr noundef %12)
%14 = load i32, ptr @stderr, align 4
%15 = load ptr, ptr %2, align 8
%16 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %14, ptr noundef @.str.5, ptr noundef %15)
%17 = load i32, ptr @stderr, align 4
%18 = load ptr, ptr %2, align 8
%19 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %17, ptr noundef @.str.6, ptr noundef %18)
%20 = load i32, ptr @stderr, align 4
%21 = load ptr, ptr %2, align 8
%22 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %20, ptr noundef @.str.7, ptr noundef %21)
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/tmp0_fta3tq.c"
target datalayout = "e-m:e-p270: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 [30 x i8] c"\0AProgram: mbrChunker v0.3.17\0A\00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"Author: JD Durick <jd@vmforensics.org>\0A\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"Website: http://vmforensics.org\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [254 x i8] c"Description: mbrChunker is a *nix-based program that allows you to mount raw disk images\0Aas well as perform analysis on partition tables within the master boot record. Furthermore,\0AmbrChunker can search for hex patterns within any type of binary file\0A\00", align 1
@.str.4 = private unnamed_addr constant [344 x i8] c"Usage: %s -i <path to dd image> -v <output path of vmdk>...\0A\0AOPTIONS:\0A -i image file name that you will be analyzing\0A -v VMDK metadata file that you will be creating for your dd2vmdk conversion\0A -a creation of a metadata file to be created (file location required)\0A -x search for hex code patterns within your file (not 0x80, just 80)\0A\00", align 1
@.str.5 = private unnamed_addr constant [55 x i8] c"Examples:\0A%s -x 493961 -i /data/images/testsector.img\0A\00", align 1
@.str.6 = private unnamed_addr constant [64 x i8] c"%s -i <raw image path location> -v <vmdk output file location>\0A\00", align 1
@.str.7 = private unnamed_addr constant [63 x i8] c"%s -i <raw image path location> -a <output of analysis file>\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %3, ptr noundef @.str)
%5 = load i32, ptr @stderr, align 4
%6 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %5, ptr noundef @.str.1)
%7 = load i32, ptr @stderr, align 4
%8 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %7, ptr noundef @.str.2)
%9 = load i32, ptr @stderr, align 4
%10 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %9, ptr noundef @.str.3)
%11 = load i32, ptr @stderr, align 4
%12 = load ptr, ptr %2, align 8
%13 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %11, ptr noundef @.str.4, ptr noundef %12)
%14 = load i32, ptr @stderr, align 4
%15 = load ptr, ptr %2, align 8
%16 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %14, ptr noundef @.str.5, ptr noundef %15)
%17 = load i32, ptr @stderr, align 4
%18 = load ptr, ptr %2, align 8
%19 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %17, ptr noundef @.str.6, ptr noundef %18)
%20 = load i32, ptr @stderr, align 4
%21 = load ptr, ptr %2, align 8
%22 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %20, ptr noundef @.str.7, ptr noundef %21)
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/tmpzvtxif1c.c'
source_filename = "/tmp/tmpzvtxif1c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"Content-type:text/html\0D\0A\0D\0A\00", align 1
@.str.1 = private unnamed_addr constant [133 x i8] c"<html><head><title>PARTITION INFO</title> <meta http-equiv='Content-Type' content='text/html; charset=utf-8'/></head>\00", align 1
@.str.2 = private unnamed_addr constant [97 x i8] c"<body><div width=900px><div align=center> <h1>PARTITION INFO</h1></div><hr> <div>\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"/proc/partitions\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.5 = private unnamed_addr constant [15 x i8] c"can not open!\0A\00", align 1
@.str.6 = private unnamed_addr constant [8 x i8] c"%s <br>\00", align 1
@.str.7 = private unnamed_addr constant [32 x i8] c"</div><hr></div></body></html>\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 [1024 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
store ptr null, ptr %6, align 8
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%11 = call ptr @fopen(ptr noundef @.str.3, ptr noundef @.str.4)
store ptr %11, ptr %6, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 -1, ptr %3, align 4
br label %30
15: ; preds = %2
br label %16
16: ; preds = %22, %15
%17 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%18 = load ptr, ptr %6, align 8
%19 = call i32 @fgets(ptr noundef %17, i32 noundef 1024, ptr noundef %18)
%20 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %20)
br label %22
22: ; preds = %16
%23 = load ptr, ptr %6, align 8
%24 = call i64 @feof(ptr noundef %23)
%25 = icmp eq i64 %24, 0
br i1 %25, label %16, label %26, !llvm.loop !6
26: ; preds = %22
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%28 = load ptr, ptr %6, align 8
%29 = call i32 @fclose(ptr noundef %28)
store i32 0, ptr %3, align 4
br label %30
30: ; preds = %26, %13
%31 = load i32, ptr %3, align 4
ret i32 %31
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @feof(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzvtxif1c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"Content-type:text/html\0D\0A\0D\0A\00", align 1
@.str.1 = private unnamed_addr constant [133 x i8] c"<html><head><title>PARTITION INFO</title> <meta http-equiv='Content-Type' content='text/html; charset=utf-8'/></head>\00", align 1
@.str.2 = private unnamed_addr constant [97 x i8] c"<body><div width=900px><div align=center> <h1>PARTITION INFO</h1></div><hr> <div>\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"/proc/partitions\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.5 = private unnamed_addr constant [15 x i8] c"can not open!\0A\00", align 1
@.str.6 = private unnamed_addr constant [8 x i8] c"%s <br>\00", align 1
@.str.7 = private unnamed_addr constant [32 x i8] c"</div><hr></div></body></html>\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 [1024 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
store ptr null, ptr %6, align 8
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%11 = call ptr @fopen(ptr noundef @.str.3, ptr noundef @.str.4)
store ptr %11, ptr %6, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 -1, ptr %3, align 4
br label %30
15: ; preds = %2
br label %16
16: ; preds = %22, %15
%17 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%18 = load ptr, ptr %6, align 8
%19 = call i32 @fgets(ptr noundef %17, i32 noundef 1024, ptr noundef %18)
%20 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %20)
br label %22
22: ; preds = %16
%23 = load ptr, ptr %6, align 8
%24 = call i64 @feof(ptr noundef %23)
%25 = icmp eq i64 %24, 0
br i1 %25, label %16, label %26, !llvm.loop !6
26: ; preds = %22
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%28 = load ptr, ptr %6, align 8
%29 = call i32 @fclose(ptr noundef %28)
store i32 0, ptr %3, align 4
br label %30
30: ; preds = %26, %13
%31 = load i32, ptr %3, align 4
ret i32 %31
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @feof(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp3gzv11e4.c'
source_filename = "/tmp/tmp3gzv11e4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @mgetline(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %5
5: ; preds = %17, %1
%6 = call i32 (...) @getchar()
store i32 %6, ptr %4, align 4
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %15
8: ; preds = %5
%9 = load i32, ptr %4, align 4
%10 = icmp ne i32 %9, 10
br i1 %10, label %11, label %15
11: ; preds = %8
%12 = load i32, ptr %4, align 4
%13 = load i32, ptr @EOF, align 4
%14 = icmp ne i32 %12, %13
br label %15
15: ; preds = %11, %8, %5
%16 = phi i1 [ false, %8 ], [ false, %5 ], [ %14, %11 ]
br i1 %16, label %17, label %25
17: ; preds = %15
%18 = load i32, ptr %4, align 4
%19 = trunc i32 %18 to i8
%20 = load ptr, ptr %2, align 8
%21 = load i32, ptr %3, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %3, align 4
%23 = sext i32 %21 to i64
%24 = getelementptr inbounds i8, ptr %20, i64 %23
store i8 %19, ptr %24, align 1
br label %5, !llvm.loop !6
25: ; preds = %15
%26 = load ptr, ptr %2, align 8
%27 = load i32, ptr %3, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
store i8 10, ptr %29, align 1
ret void
}
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3gzv11e4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @mgetline(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %5
5: ; preds = %17, %1
%6 = call i32 (...) @getchar()
store i32 %6, ptr %4, align 4
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %15
8: ; preds = %5
%9 = load i32, ptr %4, align 4
%10 = icmp ne i32 %9, 10
br i1 %10, label %11, label %15
11: ; preds = %8
%12 = load i32, ptr %4, align 4
%13 = load i32, ptr @EOF, align 4
%14 = icmp ne i32 %12, %13
br label %15
15: ; preds = %11, %8, %5
%16 = phi i1 [ false, %8 ], [ false, %5 ], [ %14, %11 ]
br i1 %16, label %17, label %25
17: ; preds = %15
%18 = load i32, ptr %4, align 4
%19 = trunc i32 %18 to i8
%20 = load ptr, ptr %2, align 8
%21 = load i32, ptr %3, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %3, align 4
%23 = sext i32 %21 to i64
%24 = getelementptr inbounds i8, ptr %20, i64 %23
store i8 %19, ptr %24, align 1
br label %5, !llvm.loop !6
25: ; preds = %15
%26 = load ptr, ptr %2, align 8
%27 = load i32, ptr %3, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
store i8 10, ptr %29, align 1
ret void
}
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp56iyu080.c'
source_filename = "/tmp/tmp56iyu080.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp56iyu080.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE 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_pnm1_xq.c'
source_filename = "/tmp/tmp_pnm1_xq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @csort(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%14 = load i32, ptr %6, align 4
%15 = zext i32 %14 to i64
%16 = load i32, ptr %6, align 4
%17 = zext i32 %16 to i64
%18 = load i32, ptr %5, align 4
%19 = zext i32 %18 to i64
%20 = call ptr @llvm.stacksave()
store ptr %20, ptr %9, align 8
%21 = alloca i32, i64 %19, align 16
store i64 %19, ptr %10, align 8
%22 = load i32, ptr %5, align 4
%23 = zext i32 %22 to i64
%24 = mul i64 4, %23
%25 = trunc i64 %24 to i32
%26 = call i32 @memset(ptr noundef %21, i32 noundef 0, i32 noundef %25)
store i64 0, ptr %11, align 8
br label %27
27: ; preds = %41, %4
%28 = load i64, ptr %11, align 8
%29 = load i32, ptr %6, align 4
%30 = zext i32 %29 to i64
%31 = icmp ult i64 %28, %30
br i1 %31, label %32, label %44
32: ; preds = %27
%33 = load ptr, ptr %7, align 8
%34 = load i64, ptr %11, align 8
%35 = getelementptr inbounds i32, ptr %33, i64 %34
%36 = load i32, ptr %35, align 4
%37 = zext i32 %36 to i64
%38 = getelementptr inbounds i32, ptr %21, i64 %37
%39 = load i32, ptr %38, align 4
%40 = add i32 %39, 1
store i32 %40, ptr %38, align 4
br label %41
41: ; preds = %32
%42 = load i64, ptr %11, align 8
%43 = add i64 %42, 1
store i64 %43, ptr %11, align 8
br label %27, !llvm.loop !6
44: ; preds = %27
store i64 0, ptr %12, align 8
store i64 0, ptr %13, align 8
br label %45
45: ; preds = %67, %44
%46 = load i64, ptr %13, align 8
%47 = load i32, ptr %5, align 4
%48 = zext i32 %47 to i64
%49 = icmp ule i64 %46, %48
br i1 %49, label %50, label %69
50: ; preds = %45
%51 = load i64, ptr %13, align 8
%52 = getelementptr inbounds i32, ptr %21, i64 %51
%53 = load i32, ptr %52, align 4
%54 = add i32 %53, -1
store i32 %54, ptr %52, align 4
%55 = icmp ne i32 %53, 0
br i1 %55, label %56, label %64
56: ; preds = %50
%57 = load i64, ptr %13, align 8
%58 = trunc i64 %57 to i32
%59 = load ptr, ptr %8, align 8
%60 = load i64, ptr %12, align 8
%61 = add i64 %60, 1
store i64 %61, ptr %12, align 8
%62 = getelementptr inbounds i32, ptr %59, i64 %60
store i32 %58, ptr %62, align 4
%63 = zext i32 %58 to i64
br label %67
64: ; preds = %50
%65 = load i64, ptr %13, align 8
%66 = add i64 %65, 1
store i64 %66, ptr %13, align 8
br label %67
67: ; preds = %64, %56
%68 = phi i64 [ %63, %56 ], [ %66, %64 ]
br label %45, !llvm.loop !8
69: ; preds = %45
%70 = load ptr, ptr %9, align 8
call void @llvm.stackrestore(ptr %70)
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_pnm1_xq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @csort(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%14 = load i32, ptr %6, align 4
%15 = zext i32 %14 to i64
%16 = load i32, ptr %6, align 4
%17 = zext i32 %16 to i64
%18 = load i32, ptr %5, align 4
%19 = zext i32 %18 to i64
%20 = call ptr @llvm.stacksave()
store ptr %20, ptr %9, align 8
%21 = alloca i32, i64 %19, align 16
store i64 %19, ptr %10, align 8
%22 = load i32, ptr %5, align 4
%23 = zext i32 %22 to i64
%24 = mul i64 4, %23
%25 = trunc i64 %24 to i32
%26 = call i32 @memset(ptr noundef %21, i32 noundef 0, i32 noundef %25)
store i64 0, ptr %11, align 8
%27 = load i64, ptr %11, align 8
%28 = load i32, ptr %6, align 4
%29 = zext i32 %28 to i64
%30 = icmp ult i64 %27, %29
br i1 %30, label %.lr.ph, label %47
.lr.ph: ; preds = %4
br label %31
31: ; preds = %.lr.ph, %40
%32 = load ptr, ptr %7, align 8
%33 = load i64, ptr %11, align 8
%34 = getelementptr inbounds i32, ptr %32, i64 %33
%35 = load i32, ptr %34, align 4
%36 = zext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %21, i64 %36
%38 = load i32, ptr %37, align 4
%39 = add i32 %38, 1
store i32 %39, ptr %37, align 4
br label %40
40: ; preds = %31
%41 = load i64, ptr %11, align 8
%42 = add i64 %41, 1
store i64 %42, ptr %11, align 8
%43 = load i64, ptr %11, align 8
%44 = load i32, ptr %6, align 4
%45 = zext i32 %44 to i64
%46 = icmp ult i64 %43, %45
br i1 %46, label %31, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %40
br label %47
47: ; preds = %._crit_edge, %4
store i64 0, ptr %12, align 8
store i64 0, ptr %13, align 8
%48 = load i64, ptr %13, align 8
%49 = load i32, ptr %5, align 4
%50 = zext i32 %49 to i64
%51 = icmp ule i64 %48, %50
br i1 %51, label %.lr.ph2, label %75
.lr.ph2: ; preds = %47
br label %52
52: ; preds = %.lr.ph2, %69
%53 = load i64, ptr %13, align 8
%54 = getelementptr inbounds i32, ptr %21, i64 %53
%55 = load i32, ptr %54, align 4
%56 = add i32 %55, -1
store i32 %56, ptr %54, align 4
%57 = icmp ne i32 %55, 0
br i1 %57, label %58, label %66
58: ; preds = %52
%59 = load i64, ptr %13, align 8
%60 = trunc i64 %59 to i32
%61 = load ptr, ptr %8, align 8
%62 = load i64, ptr %12, align 8
%63 = add i64 %62, 1
store i64 %63, ptr %12, align 8
%64 = getelementptr inbounds i32, ptr %61, i64 %62
store i32 %60, ptr %64, align 4
%65 = zext i32 %60 to i64
br label %69
66: ; preds = %52
%67 = load i64, ptr %13, align 8
%68 = add i64 %67, 1
store i64 %68, ptr %13, align 8
br label %69
69: ; preds = %66, %58
%70 = phi i64 [ %65, %58 ], [ %68, %66 ]
%71 = load i64, ptr %13, align 8
%72 = load i32, ptr %5, align 4
%73 = zext i32 %72 to i64
%74 = icmp ule i64 %71, %73
br i1 %74, label %52, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %69
br label %75
75: ; preds = %._crit_edge3, %47
%76 = load ptr, ptr %9, align 8
call void @llvm.stackrestore(ptr %76)
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp2tqq8nhw.c'
source_filename = "/tmp/tmp2tqq8nhw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@BUFSIZ = dso_local global i32 0, align 4
@S_IRGRP = dso_local global i32 0, align 4
@S_IROTH = dso_local global i32 0, align 4
@S_IRUSR = dso_local global i32 0, align 4
@S_IWGRP = dso_local global i32 0, align 4
@S_IWOTH = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@S_IXGRP = dso_local global i32 0, align 4
@S_IXOTH = dso_local global i32 0, align 4
@S_IXUSR = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2tqq8nhw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@BUFSIZ = dso_local global i32 0, align 4
@S_IRGRP = dso_local global i32 0, align 4
@S_IROTH = dso_local global i32 0, align 4
@S_IRUSR = dso_local global i32 0, align 4
@S_IWGRP = dso_local global i32 0, align 4
@S_IWOTH = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@S_IXGRP = dso_local global i32 0, align 4
@S_IXOTH = dso_local global i32 0, align 4
@S_IXUSR = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpulfftek7.c'
source_filename = "/tmp/tmpulfftek7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [52 x i8] c"Mesh size must must be greater than 2, use default\0A\00", align 1
@.str.1 = private unnamed_addr constant [64 x i8] c"Mesh size: %d x %d, epsilon=%6.4f, total Jacobi iterations: %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 ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 8, ptr %6, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp sgt i32 %11, 1
br i1 %12, label %13, label %22
13: ; preds = %2
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 1
%16 = load ptr, ptr %15, align 8
%17 = call i32 @atoi(ptr noundef %16)
store i32 %17, ptr %6, align 4
%18 = icmp slt i32 %17, 2
br i1 %18, label %19, label %21
19: ; preds = %13
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 8, ptr %6, align 4
br label %21
21: ; preds = %19, %13
br label %22
22: ; preds = %21, %2
%23 = load i32, ptr %6, align 4
%24 = zext i32 %23 to i64
%25 = load i32, ptr %6, align 4
%26 = zext i32 %25 to i64
%27 = call ptr @llvm.stacksave()
store ptr %27, ptr %7, align 8
%28 = mul nuw i64 %24, %26
%29 = alloca double, i64 %28, align 16
store i64 %24, ptr %8, align 8
store i64 %26, ptr %9, align 8
%30 = load i32, ptr %6, align 4
%31 = call i32 @init_array(i32 noundef %30, ptr noundef %29)
%32 = load i32, ptr %6, align 4
%33 = call i32 @jacobi(i32 noundef %32, ptr noundef %29, double noundef 1.000000e-03)
store i32 %33, ptr %10, align 4
%34 = load i32, ptr %6, align 4
%35 = load i32, ptr %6, align 4
%36 = load i32, ptr %10, align 4
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %34, i32 noundef %35, double noundef 1.000000e-03, i32 noundef %36)
%38 = load i32, ptr %6, align 4
%39 = call i32 @print_array(i32 noundef %38, ptr noundef %29)
%40 = load ptr, ptr %7, align 8
call void @llvm.stackrestore(ptr %40)
%41 = load i32, ptr %3, align 4
ret i32 %41
}
declare i32 @atoi(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @init_array(i32 noundef, ptr noundef) #1
declare i32 @jacobi(i32 noundef, ptr noundef, double noundef) #1
declare i32 @print_array(i32 noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpulfftek7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [52 x i8] c"Mesh size must must be greater than 2, use default\0A\00", align 1
@.str.1 = private unnamed_addr constant [64 x i8] c"Mesh size: %d x %d, epsilon=%6.4f, total Jacobi iterations: %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 ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 8, ptr %6, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp sgt i32 %11, 1
br i1 %12, label %13, label %22
13: ; preds = %2
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 1
%16 = load ptr, ptr %15, align 8
%17 = call i32 @atoi(ptr noundef %16)
store i32 %17, ptr %6, align 4
%18 = icmp slt i32 %17, 2
br i1 %18, label %19, label %21
19: ; preds = %13
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 8, ptr %6, align 4
br label %21
21: ; preds = %19, %13
br label %22
22: ; preds = %21, %2
%23 = load i32, ptr %6, align 4
%24 = zext i32 %23 to i64
%25 = load i32, ptr %6, align 4
%26 = zext i32 %25 to i64
%27 = call ptr @llvm.stacksave()
store ptr %27, ptr %7, align 8
%28 = mul nuw i64 %24, %26
%29 = alloca double, i64 %28, align 16
store i64 %24, ptr %8, align 8
store i64 %26, ptr %9, align 8
%30 = load i32, ptr %6, align 4
%31 = call i32 @init_array(i32 noundef %30, ptr noundef %29)
%32 = load i32, ptr %6, align 4
%33 = call i32 @jacobi(i32 noundef %32, ptr noundef %29, double noundef 1.000000e-03)
store i32 %33, ptr %10, align 4
%34 = load i32, ptr %6, align 4
%35 = load i32, ptr %6, align 4
%36 = load i32, ptr %10, align 4
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %34, i32 noundef %35, double noundef 1.000000e-03, i32 noundef %36)
%38 = load i32, ptr %6, align 4
%39 = call i32 @print_array(i32 noundef %38, ptr noundef %29)
%40 = load ptr, ptr %7, align 8
call void @llvm.stackrestore(ptr %40)
%41 = load i32, ptr %3, align 4
ret i32 %41
}
declare i32 @atoi(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @init_array(i32 noundef, ptr noundef) #1
declare i32 @jacobi(i32 noundef, ptr noundef, double noundef) #1
declare i32 @print_array(i32 noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpk7e7rmpe.c'
source_filename = "/tmp/tmpk7e7rmpe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter your responses\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%i\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"Bad response %i\0A\00", align 1
@.str.3 = private unnamed_addr constant [32 x i8] c"\0A\0ARating Number of Responses\0A\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"------ -------------------\0A\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"%4i%14i\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 [11 x i32], align 16
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
br label %5
5: ; preds = %12, %0
%6 = load i32, ptr %2, align 4
%7 = icmp sle i32 %6, 10
br i1 %7, label %8, label %15
8: ; preds = %5
%9 = load i32, ptr %2, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [11 x i32], ptr %4, i64 0, i64 %10
store i32 0, ptr %11, align 4
br label %12
12: ; preds = %8
%13 = load i32, ptr %2, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %2, align 4
br label %5, !llvm.loop !6
15: ; preds = %5
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 1, ptr %2, align 4
br label %17
17: ; preds = %37, %15
%18 = load i32, ptr %2, align 4
%19 = icmp sle i32 %18, 20
br i1 %19, label %20, label %40
20: ; preds = %17
%21 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%22 = load i32, ptr %3, align 4
%23 = icmp slt i32 %22, 1
br i1 %23, label %27, label %24
24: ; preds = %20
%25 = load i32, ptr %3, align 4
%26 = icmp sgt i32 %25, 10
br i1 %26, label %27, label %30
27: ; preds = %24, %20
%28 = load i32, ptr %3, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %28)
br label %36
30: ; preds = %24
%31 = load i32, ptr %3, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [11 x i32], ptr %4, i64 0, i64 %32
%34 = load i32, ptr %33, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %33, align 4
br label %36
36: ; preds = %30, %27
br label %37
37: ; preds = %36
%38 = load i32, ptr %2, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %2, align 4
br label %17, !llvm.loop !8
40: ; preds = %17
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 1, ptr %2, align 4
br label %43
43: ; preds = %53, %40
%44 = load i32, ptr %2, align 4
%45 = icmp sle i32 %44, 10
br i1 %45, label %46, label %56
46: ; preds = %43
%47 = load i32, ptr %2, align 4
%48 = load i32, ptr %2, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [11 x i32], ptr %4, i64 0, i64 %49
%51 = load i32, ptr %50, align 4
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %47, i32 noundef %51)
br label %53
53: ; preds = %46
%54 = load i32, ptr %2, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %2, align 4
br label %43, !llvm.loop !9
56: ; preds = %43
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk7e7rmpe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter your responses\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%i\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"Bad response %i\0A\00", align 1
@.str.3 = private unnamed_addr constant [32 x i8] c"\0A\0ARating Number of Responses\0A\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"------ -------------------\0A\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"%4i%14i\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 [11 x i32], align 16
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp sle i32 %5, 10
br i1 %6, label %.lr.ph, label %16
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %11
%8 = load i32, ptr %2, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [11 x i32], ptr %4, i64 0, i64 %9
store i32 0, ptr %10, align 4
br label %11
11: ; preds = %7
%12 = load i32, ptr %2, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %2, align 4
%14 = load i32, ptr %2, align 4
%15 = icmp sle i32 %14, 10
br i1 %15, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %11
br label %16
16: ; preds = %._crit_edge, %0
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 1, ptr %2, align 4
%18 = load i32, ptr %2, align 4
%19 = icmp sle i32 %18, 20
br i1 %19, label %.lr.ph2, label %42
.lr.ph2: ; preds = %16
br label %20
20: ; preds = %.lr.ph2, %37
%21 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%22 = load i32, ptr %3, align 4
%23 = icmp slt i32 %22, 1
br i1 %23, label %27, label %24
24: ; preds = %20
%25 = load i32, ptr %3, align 4
%26 = icmp sgt i32 %25, 10
br i1 %26, label %27, label %30
27: ; preds = %24, %20
%28 = load i32, ptr %3, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %28)
br label %36
30: ; preds = %24
%31 = load i32, ptr %3, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [11 x i32], ptr %4, i64 0, i64 %32
%34 = load i32, ptr %33, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %33, align 4
br label %36
36: ; preds = %30, %27
br label %37
37: ; preds = %36
%38 = load i32, ptr %2, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %2, align 4
%40 = load i32, ptr %2, align 4
%41 = icmp sle i32 %40, 20
br i1 %41, label %20, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %37
br label %42
42: ; preds = %._crit_edge3, %16
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 1, ptr %2, align 4
%45 = load i32, ptr %2, align 4
%46 = icmp sle i32 %45, 10
br i1 %46, label %.lr.ph5, label %59
.lr.ph5: ; preds = %42
br label %47
47: ; preds = %.lr.ph5, %54
%48 = load i32, ptr %2, align 4
%49 = load i32, ptr %2, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [11 x i32], ptr %4, i64 0, i64 %50
%52 = load i32, ptr %51, align 4
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %48, i32 noundef %52)
br label %54
54: ; preds = %47
%55 = load i32, ptr %2, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %2, align 4
%57 = load i32, ptr %2, align 4
%58 = icmp sle i32 %57, 10
br i1 %58, label %47, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %54
br label %59
59: ; preds = %._crit_edge6, %42
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpeedzggdp.c'
source_filename = "/tmp/tmpeedzggdp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 i8, align 1
store i8 49, ptr %1, align 1
%2 = load i8, ptr %1, align 1
%3 = sext i8 %2 to i32
%4 = sub nsw i32 %3, 48
%5 = add nsw i32 %4, 1
%6 = trunc i32 %5 to i8
%7 = call i32 @printf(ptr noundef @.str, i8 noundef signext %6)
ret i32 0
}
declare i32 @printf(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpeedzggdp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 i8, align 1
store i8 49, ptr %1, align 1
%2 = load i8, ptr %1, align 1
%3 = sext i8 %2 to i32
%4 = sub nsw i32 %3, 48
%5 = add nsw i32 %4, 1
%6 = trunc i32 %5 to i8
%7 = call i32 @printf(ptr noundef @.str, i8 noundef signext %6)
ret i32 0
}
declare i32 @printf(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_1jnnxjh.c'
source_filename = "/tmp/tmp_1jnnxjh.c"
target datalayout = "e-m:e-p270: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, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @_time() #0 {
%1 = alloca %struct.timeval, align 8
%2 = call i32 @gettimeofday(ptr noundef %1, ptr noundef null)
%3 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 0
%4 = load i32, ptr %3, align 8
%5 = mul nsw i32 %4, 1000000
%6 = sext i32 %5 to i64
%7 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 1
%8 = load i64, ptr %7, align 8
%9 = add nsw i64 %6, %8
ret i64 %9
}
declare i32 @gettimeofday(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/tmp_1jnnxjh.c"
target datalayout = "e-m:e-p270: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, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @_time() #0 {
%1 = alloca %struct.timeval, align 8
%2 = call i32 @gettimeofday(ptr noundef %1, ptr noundef null)
%3 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 0
%4 = load i32, ptr %3, align 8
%5 = mul nsw i32 %4, 1000000
%6 = sext i32 %5 to i64
%7 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 1
%8 = load i64, ptr %7, align 8
%9 = add nsw i64 %6, %8
ret i64 %9
}
declare i32 @gettimeofday(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/tmp6yjky9_l.c'
source_filename = "/tmp/tmp6yjky9_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"
@PATH_MAX = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @canonicalize_file_name(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = load i32, ptr @PATH_MAX, align 4
%6 = call ptr @malloc(i32 noundef %5)
store ptr %6, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %10
9: ; preds = %1
store ptr null, ptr %2, align 8
br label %20
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
%12 = load ptr, ptr %4, align 8
%13 = call ptr @realpath(ptr noundef %11, ptr noundef %12)
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %18
15: ; preds = %10
%16 = load ptr, ptr %4, align 8
%17 = call i32 @free(ptr noundef %16)
store ptr null, ptr %2, align 8
br label %20
18: ; preds = %10
%19 = load ptr, ptr %4, align 8
store ptr %19, ptr %2, align 8
br label %20
20: ; preds = %18, %15, %9
%21 = load ptr, ptr %2, align 8
ret ptr %21
}
declare ptr @malloc(i32 noundef) #1
declare ptr @realpath(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6yjky9_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"
@PATH_MAX = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @canonicalize_file_name(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = load i32, ptr @PATH_MAX, align 4
%6 = call ptr @malloc(i32 noundef %5)
store ptr %6, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %10
9: ; preds = %1
store ptr null, ptr %2, align 8
br label %20
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
%12 = load ptr, ptr %4, align 8
%13 = call ptr @realpath(ptr noundef %11, ptr noundef %12)
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %18
15: ; preds = %10
%16 = load ptr, ptr %4, align 8
%17 = call i32 @free(ptr noundef %16)
store ptr null, ptr %2, align 8
br label %20
18: ; preds = %10
%19 = load ptr, ptr %4, align 8
store ptr %19, ptr %2, align 8
br label %20
20: ; preds = %18, %15, %9
%21 = load ptr, ptr %2, align 8
ret ptr %21
}
declare ptr @malloc(i32 noundef) #1
declare ptr @realpath(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2tkfdqsb.c'
source_filename = "/tmp/tmp2tkfdqsb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 i32 @addFileExtention(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %10, label %9
9: ; preds = %2
store i32 0, ptr %3, align 4
br label %53
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %14, label %13
13: ; preds = %10
store i32 0, ptr %3, align 4
br label %53
14: ; preds = %10
%15 = load ptr, ptr %4, align 8
%16 = call i64 @strrchr(ptr noundef %15, i8 noundef signext 46)
%17 = inttoptr i64 %16 to ptr
store ptr %17, ptr %6, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %19, label %35
19: ; preds = %14
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 0
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 46
br i1 %24, label %25, label %29
25: ; preds = %19
%26 = load ptr, ptr %6, align 8
%27 = load ptr, ptr %5, align 8
%28 = call i32 @strcpy(ptr noundef %26, ptr noundef %27)
br label %34
29: ; preds = %19
%30 = load ptr, ptr %6, align 8
%31 = getelementptr inbounds i8, ptr %30, i32 1
store ptr %31, ptr %6, align 8
%32 = load ptr, ptr %5, align 8
%33 = call i32 @strcpy(ptr noundef %31, ptr noundef %32)
br label %34
34: ; preds = %29, %25
br label %52
35: ; preds = %14
%36 = load ptr, ptr %5, align 8
%37 = getelementptr inbounds i8, ptr %36, i64 0
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %39, 46
br i1 %40, label %41, label %45
41: ; preds = %35
%42 = load ptr, ptr %4, align 8
%43 = load ptr, ptr %5, align 8
%44 = call i32 @strcat(ptr noundef %42, ptr noundef %43)
br label %51
45: ; preds = %35
%46 = load ptr, ptr %4, align 8
%47 = call i32 @strcat(ptr noundef %46, ptr noundef @.str)
%48 = load ptr, ptr %4, align 8
%49 = load ptr, ptr %5, align 8
%50 = call i32 @strcat(ptr noundef %48, ptr noundef %49)
br label %51
51: ; preds = %45, %41
br label %52
52: ; preds = %51, %34
store i32 1, ptr %3, align 4
br label %53
53: ; preds = %52, %13, %9
%54 = load i32, ptr %3, align 4
ret i32 %54
}
declare i64 @strrchr(ptr noundef, i8 noundef signext) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2tkfdqsb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 i32 @addFileExtention(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %10, label %9
9: ; preds = %2
store i32 0, ptr %3, align 4
br label %53
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %14, label %13
13: ; preds = %10
store i32 0, ptr %3, align 4
br label %53
14: ; preds = %10
%15 = load ptr, ptr %4, align 8
%16 = call i64 @strrchr(ptr noundef %15, i8 noundef signext 46)
%17 = inttoptr i64 %16 to ptr
store ptr %17, ptr %6, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %19, label %35
19: ; preds = %14
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 0
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 46
br i1 %24, label %25, label %29
25: ; preds = %19
%26 = load ptr, ptr %6, align 8
%27 = load ptr, ptr %5, align 8
%28 = call i32 @strcpy(ptr noundef %26, ptr noundef %27)
br label %34
29: ; preds = %19
%30 = load ptr, ptr %6, align 8
%31 = getelementptr inbounds i8, ptr %30, i32 1
store ptr %31, ptr %6, align 8
%32 = load ptr, ptr %5, align 8
%33 = call i32 @strcpy(ptr noundef %31, ptr noundef %32)
br label %34
34: ; preds = %29, %25
br label %52
35: ; preds = %14
%36 = load ptr, ptr %5, align 8
%37 = getelementptr inbounds i8, ptr %36, i64 0
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %39, 46
br i1 %40, label %41, label %45
41: ; preds = %35
%42 = load ptr, ptr %4, align 8
%43 = load ptr, ptr %5, align 8
%44 = call i32 @strcat(ptr noundef %42, ptr noundef %43)
br label %51
45: ; preds = %35
%46 = load ptr, ptr %4, align 8
%47 = call i32 @strcat(ptr noundef %46, ptr noundef @.str)
%48 = load ptr, ptr %4, align 8
%49 = load ptr, ptr %5, align 8
%50 = call i32 @strcat(ptr noundef %48, ptr noundef %49)
br label %51
51: ; preds = %45, %41
br label %52
52: ; preds = %51, %34
store i32 1, ptr %3, align 4
br label %53
53: ; preds = %52, %13, %9
%54 = load i32, ptr %3, align 4
ret i32 %54
}
declare i64 @strrchr(ptr noundef, i8 noundef signext) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpf_o09jb7.c'
source_filename = "/tmp/tmpf_o09jb7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINTR = dso_local global i64 0, align 8
@O_CREAT = dso_local global i32 0, align 4
@O_RDWR = dso_local global i32 0, align 4
@O_TRUNC = dso_local global i32 0, align 4
@PATH_MAX = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf_o09jb7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINTR = dso_local global i64 0, align 8
@O_CREAT = dso_local global i32 0, align 4
@O_RDWR = dso_local global i32 0, align 4
@O_TRUNC = dso_local global i32 0, align 4
@PATH_MAX = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpb41gj6h_.c'
source_filename = "/tmp/tmpb41gj6h_.c"
target datalayout = "e-m:e-p270: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/tmpb41gj6h_.c"
target datalayout = "e-m:e-p270: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/tmp0rz9ucmu.c'
source_filename = "/tmp/tmp0rz9ucmu.c"
target datalayout = "e-m:e-p270: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/tmp0rz9ucmu.c"
target datalayout = "e-m:e-p270: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/tmphggkg22_.c'
source_filename = "/tmp/tmphggkg22_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @wave_tx_busy(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @pigpio_command(i32 noundef %3, i32 noundef 32, i32 noundef 0, i32 noundef 0, i32 noundef 1)
ret i32 %4
}
declare i32 @pigpio_command(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmphggkg22_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @wave_tx_busy(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @pigpio_command(i32 noundef %3, i32 noundef 32, i32 noundef 0, i32 noundef 0, i32 noundef 1)
ret i32 %4
}
declare i32 @pigpio_command(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppqjx3uag.c'
source_filename = "/tmp/tmppqjx3uag.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @parse(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 ptr @expr(ptr noundef %3)
ret ptr %4
}
declare ptr @expr(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmppqjx3uag.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @parse(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 ptr @expr(ptr noundef %3)
ret ptr %4
}
declare ptr @expr(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkxm3cvw7.c'
source_filename = "/tmp/tmpkxm3cvw7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @info_decimal(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca [12 x i8], align 1
%4 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp slt i32 %5, 0
br i1 %6, label %7, label %11
7: ; preds = %1
%8 = call i32 @info_putchar(i8 noundef signext 45)
%9 = load i32, ptr %2, align 4
%10 = sub nsw i32 0, %9
store i32 %10, ptr %2, align 4
br label %11
11: ; preds = %7, %1
%12 = getelementptr inbounds [12 x i8], ptr %3, i64 0, i64 0
store ptr %12, ptr %4, align 8
br label %13
13: ; preds = %16, %11
%14 = load i32, ptr %2, align 4
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %25
16: ; preds = %13
%17 = load i32, ptr %2, align 4
%18 = srem i32 %17, 10
%19 = add nsw i32 48, %18
%20 = trunc i32 %19 to i8
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %4, align 8
store i8 %20, ptr %21, align 1
%23 = load i32, ptr %2, align 4
%24 = sdiv i32 %23, 10
store i32 %24, ptr %2, align 4
br label %13, !llvm.loop !6
25: ; preds = %13
%26 = load ptr, ptr %4, align 8
%27 = getelementptr inbounds [12 x i8], ptr %3, i64 0, i64 0
%28 = icmp eq ptr %26, %27
br i1 %28, label %29, label %31
29: ; preds = %25
%30 = call i32 @info_putchar(i8 noundef signext 48)
br label %42
31: ; preds = %25
br label %32
32: ; preds = %36, %31
%33 = load ptr, ptr %4, align 8
%34 = getelementptr inbounds [12 x i8], ptr %3, i64 0, i64 0
%35 = icmp ugt ptr %33, %34
br i1 %35, label %36, label %41
36: ; preds = %32
%37 = load ptr, ptr %4, align 8
%38 = getelementptr inbounds i8, ptr %37, i32 -1
store ptr %38, ptr %4, align 8
%39 = load i8, ptr %38, align 1
%40 = call i32 @info_putchar(i8 noundef signext %39)
br label %32, !llvm.loop !8
41: ; preds = %32
br label %42
42: ; preds = %41, %29
ret void
}
declare i32 @info_putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkxm3cvw7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @info_decimal(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca [12 x i8], align 1
%4 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp slt i32 %5, 0
br i1 %6, label %7, label %11
7: ; preds = %1
%8 = call i32 @info_putchar(i8 noundef signext 45)
%9 = load i32, ptr %2, align 4
%10 = sub nsw i32 0, %9
store i32 %10, ptr %2, align 4
br label %11
11: ; preds = %7, %1
%12 = getelementptr inbounds [12 x i8], ptr %3, i64 0, i64 0
store ptr %12, ptr %4, align 8
%13 = load i32, ptr %2, align 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %.lr.ph, label %26
.lr.ph: ; preds = %11
br label %15
15: ; preds = %.lr.ph, %15
%16 = load i32, ptr %2, align 4
%17 = srem i32 %16, 10
%18 = add nsw i32 48, %17
%19 = trunc i32 %18 to i8
%20 = load ptr, ptr %4, align 8
%21 = getelementptr inbounds i8, ptr %20, i32 1
store ptr %21, ptr %4, align 8
store i8 %19, ptr %20, align 1
%22 = load i32, ptr %2, align 4
%23 = sdiv i32 %22, 10
store i32 %23, ptr %2, align 4
%24 = load i32, ptr %2, align 4
%25 = icmp ne i32 %24, 0
br i1 %25, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %26
26: ; preds = %._crit_edge, %11
%27 = load ptr, ptr %4, align 8
%28 = getelementptr inbounds [12 x i8], ptr %3, i64 0, i64 0
%29 = icmp eq ptr %27, %28
br i1 %29, label %30, label %32
30: ; preds = %26
%31 = call i32 @info_putchar(i8 noundef signext 48)
br label %44
32: ; preds = %26
%33 = load ptr, ptr %4, align 8
%34 = getelementptr inbounds [12 x i8], ptr %3, i64 0, i64 0
%35 = icmp ugt ptr %33, %34
br i1 %35, label %.lr.ph2, label %43
.lr.ph2: ; preds = %32
br label %36
36: ; preds = %.lr.ph2, %36
%37 = load ptr, ptr %4, align 8
%38 = getelementptr inbounds i8, ptr %37, i32 -1
store ptr %38, ptr %4, align 8
%39 = load i8, ptr %38, align 1
%40 = call i32 @info_putchar(i8 noundef signext %39)
%41 = load ptr, ptr %4, align 8
%42 = icmp ugt ptr %41, %34
br i1 %42, label %36, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %36
br label %43
43: ; preds = %._crit_edge3, %32
br label %44
44: ; preds = %43, %30
ret void
}
declare i32 @info_putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpym63nlg_.c'
source_filename = "/tmp/tmpym63nlg_.c"
target datalayout = "e-m:e-p270: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/tmpym63nlg_.c"
target datalayout = "e-m:e-p270: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/tmpi3jepn4w.c'
source_filename = "/tmp/tmpi3jepn4w.c"
target datalayout = "e-m:e-p270: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_in6 = type { i32, i32, i32 }
@AF_INET6 = dso_local global i32 0, align 4
@in6addr_any = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ls_sockaddr_v6_any(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = call i32 @memset(ptr noundef %5, i32 noundef 0, i32 noundef 12)
%7 = load i32, ptr @AF_INET6, align 4
%8 = load ptr, ptr %3, align 8
%9 = getelementptr inbounds %struct.sockaddr_in6, ptr %8, i32 0, i32 2
store i32 %7, ptr %9, align 4
%10 = load i32, ptr @in6addr_any, align 4
%11 = load ptr, ptr %3, align 8
%12 = getelementptr inbounds %struct.sockaddr_in6, ptr %11, i32 0, i32 1
store i32 %10, ptr %12, align 4
%13 = load i32, ptr %4, align 4
%14 = call i32 @htons(i32 noundef %13)
%15 = load ptr, ptr %3, align 8
%16 = getelementptr inbounds %struct.sockaddr_in6, ptr %15, i32 0, i32 0
store i32 %14, ptr %16, align 4
ret void
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @htons(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/tmpi3jepn4w.c"
target datalayout = "e-m:e-p270: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_in6 = type { i32, i32, i32 }
@AF_INET6 = dso_local global i32 0, align 4
@in6addr_any = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ls_sockaddr_v6_any(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = call i32 @memset(ptr noundef %5, i32 noundef 0, i32 noundef 12)
%7 = load i32, ptr @AF_INET6, align 4
%8 = load ptr, ptr %3, align 8
%9 = getelementptr inbounds %struct.sockaddr_in6, ptr %8, i32 0, i32 2
store i32 %7, ptr %9, align 4
%10 = load i32, ptr @in6addr_any, align 4
%11 = load ptr, ptr %3, align 8
%12 = getelementptr inbounds %struct.sockaddr_in6, ptr %11, i32 0, i32 1
store i32 %10, ptr %12, align 4
%13 = load i32, ptr %4, align 4
%14 = call i32 @htons(i32 noundef %13)
%15 = load ptr, ptr %3, align 8
%16 = getelementptr inbounds %struct.sockaddr_in6, ptr %15, i32 0, i32 0
store i32 %14, ptr %16, align 4
ret void
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @htons(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/tmph20jsyrh.c'
source_filename = "/tmp/tmph20jsyrh.c"
target datalayout = "e-m:e-p270: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/tmph20jsyrh.c"
target datalayout = "e-m:e-p270: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/tmpjqryquf_.c'
source_filename = "/tmp/tmpjqryquf_.c"
target datalayout = "e-m:e-p270: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/tmpjqryquf_.c"
target datalayout = "e-m:e-p270: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/tmpqclfn0x0.c'
source_filename = "/tmp/tmpqclfn0x0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fseek(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %6, align 4
%10 = call i64 @lseek(i32 noundef %7, i32 noundef %8, i32 noundef %9)
ret i64 %10
}
declare i64 @lseek(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/tmpqclfn0x0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fseek(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %6, align 4
%10 = call i64 @lseek(i32 noundef %7, i32 noundef %8, i32 noundef %9)
ret i64 %10
}
declare i64 @lseek(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/tmp2f90fkml.c'
source_filename = "/tmp/tmp2f90fkml.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_CREAT = dso_local global i32 0, align 4
@O_RDONLY = dso_local global i32 0, align 4
@O_RDWR = dso_local global i32 0, align 4
@O_TRUNC = dso_local global i32 0, align 4
@S_IRGRP = dso_local global i32 0, align 4
@S_IROTH = dso_local global i32 0, align 4
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2f90fkml.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_CREAT = dso_local global i32 0, align 4
@O_RDONLY = dso_local global i32 0, align 4
@O_RDWR = dso_local global i32 0, align 4
@O_TRUNC = dso_local global i32 0, align 4
@S_IRGRP = dso_local global i32 0, align 4
@S_IROTH = dso_local global i32 0, align 4
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpv1raliuw.c'
source_filename = "/tmp/tmpv1raliuw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @random_priority() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @rand()
%3 = srem i32 %2, 5
store i32 %3, ptr %1, align 4
%4 = load i32, ptr %1, align 4
ret i32 %4
}
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv1raliuw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @random_priority() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @rand()
%3 = srem i32 %2, 5
store i32 %3, ptr %1, align 4
%4 = load i32, ptr %1, align 4
ret i32 %4
}
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqsabklue.c'
source_filename = "/tmp/tmpqsabklue.c"
target datalayout = "e-m:e-p270: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/tmpqsabklue.c"
target datalayout = "e-m:e-p270: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/tmpw1rk7_da.c'
source_filename = "/tmp/tmpw1rk7_da.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CL_SUCCESS = dso_local global i8 0, align 1
@.str = private unnamed_addr constant [42 x i8] c"error: call to 'clGetPlatformIDs' failed\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"Number of platforms: %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"platform=%p\0A\00", align 1
@CL_PLATFORM_NAME = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [43 x i8] c"error: call to 'clGetPlatformInfo' failed\0A\00", align 1
@.str.4 = private unnamed_addr constant [21 x i8] c"platform.name='%s'\0A\0A\00", align 1
@CL_DEVICE_TYPE_GPU = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [40 x i8] c"error: call to 'clGetDeviceIDs' failed\0A\00", align 1
@.str.6 = private unnamed_addr constant [23 x i8] c"Number of devices: %d\0A\00", align 1
@.str.7 = private unnamed_addr constant [11 x i8] c"device=%p\0A\00", align 1
@CL_DEVICE_NAME = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [41 x i8] c"error: call to 'clGetDeviceInfo' failed\0A\00", align 1
@.str.9 = private unnamed_addr constant [18 x i8] c"device.name='%s'\0A\00", align 1
@.str.10 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.11 = private unnamed_addr constant [41 x i8] c"error: call to 'clCreateContext' failed\0A\00", align 1
@.str.12 = private unnamed_addr constant [12 x i8] c"context=%p\0A\00", align 1
@.str.13 = private unnamed_addr constant [46 x i8] c"error: call to 'clCreateCommandQueue' failed\0A\00", align 1
@.str.14 = private unnamed_addr constant [18 x i8] c"command_queue=%p\0A\00", align 1
@.str.15 = private unnamed_addr constant [24 x i8] c"not_equal_shortshort.cl\00", align 1
@.str.16 = private unnamed_addr constant [51 x i8] c"error: call to 'clCreateProgramWithSource' failed\0A\00", align 1
@.str.17 = private unnamed_addr constant [12 x i8] c"program=%p\0A\00", align 1
@CL_PROGRAM_BUILD_LOG = dso_local global i32 0, align 4
@.str.18 = private unnamed_addr constant [44 x i8] c"error: call to 'clBuildProgram' failed:\0A%s\0A\00", align 1
@.str.19 = private unnamed_addr constant [15 x i8] c"program built\0A\00", align 1
@.str.20 = private unnamed_addr constant [21 x i8] c"not_equal_shortshort\00", align 1
@.str.21 = private unnamed_addr constant [40 x i8] c"error: call to 'clCreateKernel' failed\0A\00", align 1
@CL_MEM_READ_ONLY = dso_local global i32 0, align 4
@.str.22 = private unnamed_addr constant [39 x i8] c"error: could not create source buffer\0A\00", align 1
@CL_TRUE = dso_local global i32 0, align 4
@.str.23 = private unnamed_addr constant [46 x i8] c"error: call to 'clEnqueueWriteBuffer' failed\0A\00", align 1
@CL_MEM_WRITE_ONLY = dso_local global i32 0, align 4
@.str.24 = private unnamed_addr constant [36 x i8] c"error: could not create dst buffer\0A\00", align 1
@.str.25 = private unnamed_addr constant [40 x i8] c"error: call to 'clSetKernelArg' failed\0A\00", align 1
@.str.26 = private unnamed_addr constant [48 x i8] c"error: call to 'clEnqueueNDRangeKernel' failed\0A\00", align 1
@.str.27 = private unnamed_addr constant [45 x i8] c"error: call to 'clEnqueueReadBuffer' failed\0A\00", align 1
@.str.28 = private unnamed_addr constant [10 x i8] c"%s.result\00", align 1
@.str.29 = private unnamed_addr constant [21 x i8] c"Result dumped to %s\0A\00", align 1
@.str.30 = private unnamed_addr constant [44 x i8] c"error: call to 'clReleaseMemObject' failed\0A\00", align 1
@.str.31 = private unnamed_addr constant [41 x i8] c"error: call to 'clReleaseKernel' failed\0A\00", align 1
@.str.32 = private unnamed_addr constant [42 x i8] c"error: call to 'clReleaseProgram' failed\0A\00", align 1
@.str.33 = private unnamed_addr constant [47 x i8] c"error: call to 'clReleaseCommandQueue' failed\0A\00", align 1
@.str.34 = private unnamed_addr constant [42 x i8] c"error: call to 'clReleaseContext' failed\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i8, align 1
%9 = alloca [100 x i8], align 16
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca [100 x i8], align 16
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca i64, align 8
%17 = alloca i32, align 4
%18 = alloca i64, align 8
%19 = alloca ptr, align 8
%20 = alloca i32, align 4
%21 = alloca i64, align 8
%22 = alloca ptr, align 8
%23 = alloca i32, align 4
%24 = alloca i32, align 4
%25 = alloca ptr, align 8
%26 = alloca i32, align 4
%27 = alloca i32, align 4
%28 = alloca ptr, align 8
%29 = alloca i32, align 4
%30 = alloca i64, align 8
%31 = alloca i64, align 8
%32 = alloca [100 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
%33 = call signext i8 @clGetPlatformIDs(i32 noundef 1, ptr noundef %6, ptr noundef %7)
store i8 %33, ptr %8, align 1
%34 = load i8, ptr %8, align 1
%35 = sext i8 %34 to i32
%36 = load i8, ptr @CL_SUCCESS, align 1
%37 = sext i8 %36 to i32
%38 = icmp ne i32 %35, %37
br i1 %38, label %39, label %42
39: ; preds = %2
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%41 = call i32 @exit(i32 noundef 1) #3
unreachable
42: ; preds = %2
%43 = load i32, ptr %7, align 4
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %43)
%45 = load i32, ptr %6, align 4
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %45)
%47 = load i32, ptr %6, align 4
%48 = load i32, ptr @CL_PLATFORM_NAME, align 4
%49 = getelementptr inbounds [100 x i8], ptr %9, i64 0, i64 0
%50 = call signext i8 @clGetPlatformInfo(i32 noundef %47, i32 noundef %48, i32 noundef 100, ptr noundef %49, ptr noundef null)
store i8 %50, ptr %8, align 1
%51 = load i8, ptr %8, align 1
%52 = sext i8 %51 to i32
%53 = load i8, ptr @CL_SUCCESS, align 1
%54 = sext i8 %53 to i32
%55 = icmp ne i32 %52, %54
br i1 %55, label %56, label %59
56: ; preds = %42
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%58 = call i32 @exit(i32 noundef 1) #3
unreachable
59: ; preds = %42
%60 = getelementptr inbounds [100 x i8], ptr %9, i64 0, i64 0
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %60)
%62 = load i32, ptr %6, align 4
%63 = load i32, ptr @CL_DEVICE_TYPE_GPU, align 4
%64 = call signext i8 @clGetDeviceIDs(i32 noundef %62, i32 noundef %63, i32 noundef 1, ptr noundef %10, ptr noundef %11)
store i8 %64, ptr %8, align 1
%65 = load i8, ptr %8, align 1
%66 = sext i8 %65 to i32
%67 = load i8, ptr @CL_SUCCESS, align 1
%68 = sext i8 %67 to i32
%69 = icmp ne i32 %66, %68
br i1 %69, label %70, label %73
70: ; preds = %59
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%72 = call i32 @exit(i32 noundef 1) #3
unreachable
73: ; preds = %59
%74 = load i32, ptr %11, align 4
%75 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %74)
%76 = load i32, ptr %10, align 4
%77 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %76)
%78 = load i32, ptr %10, align 4
%79 = load i32, ptr @CL_DEVICE_NAME, align 4
%80 = getelementptr inbounds [100 x i8], ptr %12, i64 0, i64 0
%81 = call signext i8 @clGetDeviceInfo(i32 noundef %78, i32 noundef %79, i32 noundef 100, ptr noundef %80, ptr noundef null)
store i8 %81, ptr %8, align 1
%82 = load i8, ptr %8, align 1
%83 = sext i8 %82 to i32
%84 = load i8, ptr @CL_SUCCESS, align 1
%85 = sext i8 %84 to i32
%86 = icmp ne i32 %83, %85
br i1 %86, label %87, label %90
87: ; preds = %73
%88 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%89 = call i32 @exit(i32 noundef 1) #3
unreachable
90: ; preds = %73
%91 = getelementptr inbounds [100 x i8], ptr %12, i64 0, i64 0
%92 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %91)
%93 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%94 = call i32 @clCreateContext(ptr noundef null, i32 noundef 1, ptr noundef %10, ptr noundef null, ptr noundef null, ptr noundef %8)
store i32 %94, ptr %13, align 4
%95 = load i8, ptr %8, align 1
%96 = sext i8 %95 to i32
%97 = load i8, ptr @CL_SUCCESS, align 1
%98 = sext i8 %97 to i32
%99 = icmp ne i32 %96, %98
br i1 %99, label %100, label %103
100: ; preds = %90
%101 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%102 = call i32 @exit(i32 noundef 1) #3
unreachable
103: ; preds = %90
%104 = load i32, ptr %13, align 4
%105 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %104)
%106 = load i32, ptr %13, align 4
%107 = load i32, ptr %10, align 4
%108 = call i32 @clCreateCommandQueue(i32 noundef %106, i32 noundef %107, i32 noundef 0, ptr noundef %8)
store i32 %108, ptr %14, align 4
%109 = load i8, ptr %8, align 1
%110 = sext i8 %109 to i32
%111 = load i8, ptr @CL_SUCCESS, align 1
%112 = sext i8 %111 to i32
%113 = icmp ne i32 %110, %112
br i1 %113, label %114, label %117
114: ; preds = %103
%115 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
%116 = call i32 @exit(i32 noundef 1) #3
unreachable
117: ; preds = %103
%118 = load i32, ptr %14, align 4
%119 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %118)
%120 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%121 = call ptr @read_buffer(ptr noundef @.str.15, ptr noundef %16)
store ptr %121, ptr %15, align 8
%122 = load i32, ptr %13, align 4
%123 = call i32 @clCreateProgramWithSource(i32 noundef %122, i32 noundef 1, ptr noundef %15, ptr noundef %16, ptr noundef %8)
store i32 %123, ptr %17, align 4
%124 = load i8, ptr %8, align 1
%125 = sext i8 %124 to i32
%126 = load i8, ptr @CL_SUCCESS, align 1
%127 = sext i8 %126 to i32
%128 = icmp ne i32 %125, %127
br i1 %128, label %129, label %132
129: ; preds = %117
%130 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
%131 = call i32 @exit(i32 noundef 1) #3
unreachable
132: ; preds = %117
%133 = load i32, ptr %17, align 4
%134 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, i32 noundef %133)
%135 = load i32, ptr %17, align 4
%136 = call signext i8 @clBuildProgram(i32 noundef %135, i32 noundef 1, ptr noundef %10, ptr noundef null, ptr noundef null, ptr noundef null)
store i8 %136, ptr %8, align 1
%137 = load i8, ptr %8, align 1
%138 = sext i8 %137 to i32
%139 = load i8, ptr @CL_SUCCESS, align 1
%140 = sext i8 %139 to i32
%141 = icmp ne i32 %138, %140
br i1 %141, label %142, label %160
142: ; preds = %132
%143 = load i32, ptr %17, align 4
%144 = load i32, ptr %10, align 4
%145 = load i32, ptr @CL_PROGRAM_BUILD_LOG, align 4
%146 = call i32 @clGetProgramBuildInfo(i32 noundef %143, i32 noundef %144, i32 noundef %145, i64 noundef 0, ptr noundef null, ptr noundef %18)
%147 = load i64, ptr %18, align 8
%148 = call ptr @malloc(i64 noundef %147)
store ptr %148, ptr %19, align 8
%149 = load i32, ptr %17, align 4
%150 = load i32, ptr %10, align 4
%151 = load i32, ptr @CL_PROGRAM_BUILD_LOG, align 4
%152 = load i64, ptr %18, align 8
%153 = load ptr, ptr %19, align 8
%154 = call i32 @clGetProgramBuildInfo(i32 noundef %149, i32 noundef %150, i32 noundef %151, i64 noundef %152, ptr noundef %153, ptr noundef null)
%155 = load ptr, ptr %19, align 8
%156 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, ptr noundef %155)
%157 = load ptr, ptr %19, align 8
%158 = call i32 @free(ptr noundef %157)
%159 = call i32 @exit(i32 noundef 1) #3
unreachable
160: ; preds = %132
%161 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
%162 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%163 = load i32, ptr %17, align 4
%164 = call i32 @clCreateKernel(i32 noundef %163, ptr noundef @.str.20, ptr noundef %8)
store i32 %164, ptr %20, align 4
%165 = load i8, ptr %8, align 1
%166 = sext i8 %165 to i32
%167 = load i8, ptr @CL_SUCCESS, align 1
%168 = sext i8 %167 to i32
%169 = icmp ne i32 %166, %168
br i1 %169, label %170, label %173
170: ; preds = %160
%171 = call i32 (ptr, ...) @printf(ptr noundef @.str.21)
%172 = call i32 @exit(i32 noundef 1) #3
unreachable
173: ; preds = %160
store i64 10, ptr %21, align 8
%174 = load i64, ptr %21, align 8
%175 = mul i64 %174, 1
%176 = call ptr @malloc(i64 noundef %175)
store ptr %176, ptr %22, align 8
store i32 0, ptr %23, align 4
br label %177
177: ; preds = %187, %173
%178 = load i32, ptr %23, align 4
%179 = sext i32 %178 to i64
%180 = load i64, ptr %21, align 8
%181 = icmp ult i64 %179, %180
br i1 %181, label %182, label %190
182: ; preds = %177
%183 = load ptr, ptr %22, align 8
%184 = load i32, ptr %23, align 4
%185 = sext i32 %184 to i64
%186 = getelementptr inbounds i8, ptr %183, i64 %185
store i8 2, ptr %186, align 1
br label %187
187: ; preds = %182
%188 = load i32, ptr %23, align 4
%189 = add nsw i32 %188, 1
store i32 %189, ptr %23, align 4
br label %177, !llvm.loop !6
190: ; preds = %177
%191 = load i32, ptr %13, align 4
%192 = load i32, ptr @CL_MEM_READ_ONLY, align 4
%193 = load i64, ptr %21, align 8
%194 = mul i64 %193, 1
%195 = call i32 @clCreateBuffer(i32 noundef %191, i32 noundef %192, i64 noundef %194, ptr noundef null, ptr noundef %8)
store i32 %195, ptr %24, align 4
%196 = load i8, ptr %8, align 1
%197 = sext i8 %196 to i32
%198 = load i8, ptr @CL_SUCCESS, align 1
%199 = sext i8 %198 to i32
%200 = icmp ne i32 %197, %199
br i1 %200, label %201, label %204
201: ; preds = %190
%202 = call i32 (ptr, ...) @printf(ptr noundef @.str.22)
%203 = call i32 @exit(i32 noundef 1) #3
unreachable
204: ; preds = %190
%205 = load i32, ptr %14, align 4
%206 = load i32, ptr %24, align 4
%207 = load i32, ptr @CL_TRUE, align 4
%208 = load i64, ptr %21, align 8
%209 = mul i64 %208, 1
%210 = load ptr, ptr %22, align 8
%211 = call signext i8 @clEnqueueWriteBuffer(i32 noundef %205, i32 noundef %206, i32 noundef %207, i32 noundef 0, i64 noundef %209, ptr noundef %210, i32 noundef 0, ptr noundef null, ptr noundef null)
store i8 %211, ptr %8, align 1
%212 = load i8, ptr %8, align 1
%213 = sext i8 %212 to i32
%214 = load i8, ptr @CL_SUCCESS, align 1
%215 = sext i8 %214 to i32
%216 = icmp ne i32 %213, %215
br i1 %216, label %217, label %220
217: ; preds = %204
%218 = call i32 (ptr, ...) @printf(ptr noundef @.str.23)
%219 = call i32 @exit(i32 noundef 1) #3
unreachable
220: ; preds = %204
%221 = load i64, ptr %21, align 8
%222 = mul i64 %221, 1
%223 = call ptr @malloc(i64 noundef %222)
store ptr %223, ptr %25, align 8
store i32 0, ptr %26, align 4
br label %224
224: ; preds = %234, %220
%225 = load i32, ptr %26, align 4
%226 = sext i32 %225 to i64
%227 = load i64, ptr %21, align 8
%228 = icmp ult i64 %226, %227
br i1 %228, label %229, label %237
229: ; preds = %224
%230 = load ptr, ptr %25, align 8
%231 = load i32, ptr %26, align 4
%232 = sext i32 %231 to i64
%233 = getelementptr inbounds i8, ptr %230, i64 %232
store i8 2, ptr %233, align 1
br label %234
234: ; preds = %229
%235 = load i32, ptr %26, align 4
%236 = add nsw i32 %235, 1
store i32 %236, ptr %26, align 4
br label %224, !llvm.loop !8
237: ; preds = %224
%238 = load i32, ptr %13, align 4
%239 = load i32, ptr @CL_MEM_READ_ONLY, align 4
%240 = load i64, ptr %21, align 8
%241 = mul i64 %240, 1
%242 = call i32 @clCreateBuffer(i32 noundef %238, i32 noundef %239, i64 noundef %241, ptr noundef null, ptr noundef %8)
store i32 %242, ptr %27, align 4
%243 = load i8, ptr %8, align 1
%244 = sext i8 %243 to i32
%245 = load i8, ptr @CL_SUCCESS, align 1
%246 = sext i8 %245 to i32
%247 = icmp ne i32 %244, %246
br i1 %247, label %248, label %251
248: ; preds = %237
%249 = call i32 (ptr, ...) @printf(ptr noundef @.str.22)
%250 = call i32 @exit(i32 noundef 1) #3
unreachable
251: ; preds = %237
%252 = load i32, ptr %14, align 4
%253 = load i32, ptr %27, align 4
%254 = load i32, ptr @CL_TRUE, align 4
%255 = load i64, ptr %21, align 8
%256 = mul i64 %255, 1
%257 = load ptr, ptr %25, align 8
%258 = call signext i8 @clEnqueueWriteBuffer(i32 noundef %252, i32 noundef %253, i32 noundef %254, i32 noundef 0, i64 noundef %256, ptr noundef %257, i32 noundef 0, ptr noundef null, ptr noundef null)
store i8 %258, ptr %8, align 1
%259 = load i8, ptr %8, align 1
%260 = sext i8 %259 to i32
%261 = load i8, ptr @CL_SUCCESS, align 1
%262 = sext i8 %261 to i32
%263 = icmp ne i32 %260, %262
br i1 %263, label %264, label %267
264: ; preds = %251
%265 = call i32 (ptr, ...) @printf(ptr noundef @.str.23)
%266 = call i32 @exit(i32 noundef 1) #3
unreachable
267: ; preds = %251
%268 = load i64, ptr %21, align 8
%269 = mul i64 %268, 1
%270 = call ptr @malloc(i64 noundef %269)
store ptr %270, ptr %28, align 8
%271 = load ptr, ptr %28, align 8
%272 = load i64, ptr %21, align 8
%273 = mul i64 %272, 1
%274 = call i32 @memset(ptr noundef %271, i32 noundef 1, i64 noundef %273)
%275 = load i32, ptr %13, align 4
%276 = load i32, ptr @CL_MEM_WRITE_ONLY, align 4
%277 = load i64, ptr %21, align 8
%278 = mul i64 %277, 1
%279 = call i32 @clCreateBuffer(i32 noundef %275, i32 noundef %276, i64 noundef %278, ptr noundef null, ptr noundef %8)
store i32 %279, ptr %29, align 4
%280 = load i8, ptr %8, align 1
%281 = sext i8 %280 to i32
%282 = load i8, ptr @CL_SUCCESS, align 1
%283 = sext i8 %282 to i32
%284 = icmp ne i32 %281, %283
br i1 %284, label %285, label %288
285: ; preds = %267
%286 = call i32 (ptr, ...) @printf(ptr noundef @.str.24)
%287 = call i32 @exit(i32 noundef 1) #3
unreachable
288: ; preds = %267
%289 = load i8, ptr @CL_SUCCESS, align 1
store i8 %289, ptr %8, align 1
%290 = load i32, ptr %20, align 4
%291 = call signext i8 @clSetKernelArg(i32 noundef %290, i32 noundef 0, i32 noundef 4, ptr noundef %24)
%292 = sext i8 %291 to i32
%293 = load i8, ptr %8, align 1
%294 = sext i8 %293 to i32
%295 = or i32 %294, %292
%296 = trunc i32 %295 to i8
store i8 %296, ptr %8, align 1
%297 = load i32, ptr %20, align 4
%298 = call signext i8 @clSetKernelArg(i32 noundef %297, i32 noundef 1, i32 noundef 4, ptr noundef %27)
%299 = sext i8 %298 to i32
%300 = load i8, ptr %8, align 1
%301 = sext i8 %300 to i32
%302 = or i32 %301, %299
%303 = trunc i32 %302 to i8
store i8 %303, ptr %8, align 1
%304 = load i32, ptr %20, align 4
%305 = call signext i8 @clSetKernelArg(i32 noundef %304, i32 noundef 2, i32 noundef 4, ptr noundef %29)
%306 = sext i8 %305 to i32
%307 = load i8, ptr %8, align 1
%308 = sext i8 %307 to i32
%309 = or i32 %308, %306
%310 = trunc i32 %309 to i8
store i8 %310, ptr %8, align 1
%311 = load i8, ptr %8, align 1
%312 = sext i8 %311 to i32
%313 = load i8, ptr @CL_SUCCESS, align 1
%314 = sext i8 %313 to i32
%315 = icmp ne i32 %312, %314
br i1 %315, label %316, label %319
316: ; preds = %288
%317 = call i32 (ptr, ...) @printf(ptr noundef @.str.25)
%318 = call i32 @exit(i32 noundef 1) #3
unreachable
319: ; preds = %288
%320 = load i64, ptr %21, align 8
store i64 %320, ptr %30, align 8
%321 = load i64, ptr %21, align 8
store i64 %321, ptr %31, align 8
%322 = load i32, ptr %14, align 4
%323 = load i32, ptr %20, align 4
%324 = call signext i8 @clEnqueueNDRangeKernel(i32 noundef %322, i32 noundef %323, i32 noundef 1, ptr noundef null, ptr noundef %30, ptr noundef %31, i32 noundef 0, ptr noundef null, ptr noundef null)
store i8 %324, ptr %8, align 1
%325 = load i8, ptr %8, align 1
%326 = sext i8 %325 to i32
%327 = load i8, ptr @CL_SUCCESS, align 1
%328 = sext i8 %327 to i32
%329 = icmp ne i32 %326, %328
br i1 %329, label %330, label %333
330: ; preds = %319
%331 = call i32 (ptr, ...) @printf(ptr noundef @.str.26)
%332 = call i32 @exit(i32 noundef 1) #3
unreachable
333: ; preds = %319
%334 = load i32, ptr %14, align 4
%335 = call i32 @clFinish(i32 noundef %334)
%336 = load i32, ptr %14, align 4
%337 = load i32, ptr %29, align 4
%338 = load i32, ptr @CL_TRUE, align 4
%339 = load i64, ptr %21, align 8
%340 = mul i64 %339, 1
%341 = load ptr, ptr %28, align 8
%342 = call signext i8 @clEnqueueReadBuffer(i32 noundef %336, i32 noundef %337, i32 noundef %338, i32 noundef 0, i64 noundef %340, ptr noundef %341, i32 noundef 0, ptr noundef null, ptr noundef null)
store i8 %342, ptr %8, align 1
%343 = load i8, ptr %8, align 1
%344 = sext i8 %343 to i32
%345 = load i8, ptr @CL_SUCCESS, align 1
%346 = sext i8 %345 to i32
%347 = icmp ne i32 %344, %346
br i1 %347, label %348, label %351
348: ; preds = %333
%349 = call i32 (ptr, ...) @printf(ptr noundef @.str.27)
%350 = call i32 @exit(i32 noundef 1) #3
unreachable
351: ; preds = %333
%352 = load ptr, ptr %5, align 8
%353 = getelementptr inbounds ptr, ptr %352, i64 0
%354 = load ptr, ptr %353, align 8
%355 = call i32 @sprintf(ptr noundef %32, ptr noundef @.str.28, ptr noundef %354)
%356 = getelementptr inbounds [100 x i8], ptr %32, i64 0, i64 0
%357 = load ptr, ptr %28, align 8
%358 = load i64, ptr %21, align 8
%359 = mul i64 %358, 1
%360 = call i32 @write_buffer(ptr noundef %356, ptr noundef %357, i64 noundef %359)
%361 = getelementptr inbounds [100 x i8], ptr %32, i64 0, i64 0
%362 = call i32 (ptr, ...) @printf(ptr noundef @.str.29, ptr noundef %361)
%363 = load ptr, ptr %28, align 8
%364 = call i32 @free(ptr noundef %363)
%365 = load i32, ptr %29, align 4
%366 = call signext i8 @clReleaseMemObject(i32 noundef %365)
store i8 %366, ptr %8, align 1
%367 = load i8, ptr %8, align 1
%368 = sext i8 %367 to i32
%369 = load i8, ptr @CL_SUCCESS, align 1
%370 = sext i8 %369 to i32
%371 = icmp ne i32 %368, %370
br i1 %371, label %372, label %375
372: ; preds = %351
%373 = call i32 (ptr, ...) @printf(ptr noundef @.str.30)
%374 = call i32 @exit(i32 noundef 1) #3
unreachable
375: ; preds = %351
%376 = load ptr, ptr %22, align 8
%377 = call i32 @free(ptr noundef %376)
%378 = load i32, ptr %24, align 4
%379 = call signext i8 @clReleaseMemObject(i32 noundef %378)
store i8 %379, ptr %8, align 1
%380 = load i8, ptr %8, align 1
%381 = sext i8 %380 to i32
%382 = load i8, ptr @CL_SUCCESS, align 1
%383 = sext i8 %382 to i32
%384 = icmp ne i32 %381, %383
br i1 %384, label %385, label %388
385: ; preds = %375
%386 = call i32 (ptr, ...) @printf(ptr noundef @.str.30)
%387 = call i32 @exit(i32 noundef 1) #3
unreachable
388: ; preds = %375
%389 = load ptr, ptr %25, align 8
%390 = call i32 @free(ptr noundef %389)
%391 = load i32, ptr %27, align 4
%392 = call signext i8 @clReleaseMemObject(i32 noundef %391)
store i8 %392, ptr %8, align 1
%393 = load i8, ptr %8, align 1
%394 = sext i8 %393 to i32
%395 = load i8, ptr @CL_SUCCESS, align 1
%396 = sext i8 %395 to i32
%397 = icmp ne i32 %394, %396
br i1 %397, label %398, label %401
398: ; preds = %388
%399 = call i32 (ptr, ...) @printf(ptr noundef @.str.30)
%400 = call i32 @exit(i32 noundef 1) #3
unreachable
401: ; preds = %388
%402 = load i32, ptr %20, align 4
%403 = call signext i8 @clReleaseKernel(i32 noundef %402)
store i8 %403, ptr %8, align 1
%404 = load i8, ptr %8, align 1
%405 = sext i8 %404 to i32
%406 = load i8, ptr @CL_SUCCESS, align 1
%407 = sext i8 %406 to i32
%408 = icmp ne i32 %405, %407
br i1 %408, label %409, label %412
409: ; preds = %401
%410 = call i32 (ptr, ...) @printf(ptr noundef @.str.31)
%411 = call i32 @exit(i32 noundef 1) #3
unreachable
412: ; preds = %401
%413 = load i32, ptr %17, align 4
%414 = call signext i8 @clReleaseProgram(i32 noundef %413)
store i8 %414, ptr %8, align 1
%415 = load i8, ptr %8, align 1
%416 = sext i8 %415 to i32
%417 = load i8, ptr @CL_SUCCESS, align 1
%418 = sext i8 %417 to i32
%419 = icmp ne i32 %416, %418
br i1 %419, label %420, label %423
420: ; preds = %412
%421 = call i32 (ptr, ...) @printf(ptr noundef @.str.32)
%422 = call i32 @exit(i32 noundef 1) #3
unreachable
423: ; preds = %412
%424 = load i32, ptr %14, align 4
%425 = call signext i8 @clReleaseCommandQueue(i32 noundef %424)
store i8 %425, ptr %8, align 1
%426 = load i8, ptr %8, align 1
%427 = sext i8 %426 to i32
%428 = load i8, ptr @CL_SUCCESS, align 1
%429 = sext i8 %428 to i32
%430 = icmp ne i32 %427, %429
br i1 %430, label %431, label %434
431: ; preds = %423
%432 = call i32 (ptr, ...) @printf(ptr noundef @.str.33)
%433 = call i32 @exit(i32 noundef 1) #3
unreachable
434: ; preds = %423
%435 = load i32, ptr %13, align 4
%436 = call signext i8 @clReleaseContext(i32 noundef %435)
store i8 %436, ptr %8, align 1
%437 = load i8, ptr %8, align 1
%438 = sext i8 %437 to i32
%439 = load i8, ptr @CL_SUCCESS, align 1
%440 = sext i8 %439 to i32
%441 = icmp ne i32 %438, %440
br i1 %441, label %442, label %445
442: ; preds = %434
%443 = call i32 (ptr, ...) @printf(ptr noundef @.str.34)
%444 = call i32 @exit(i32 noundef 1) #3
unreachable
445: ; preds = %434
ret i32 0
}
declare signext i8 @clGetPlatformIDs(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare signext i8 @clGetPlatformInfo(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare signext i8 @clGetDeviceIDs(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare signext i8 @clGetDeviceInfo(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @clCreateContext(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @clCreateCommandQueue(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare ptr @read_buffer(ptr noundef, ptr noundef) #1
declare i32 @clCreateProgramWithSource(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare signext i8 @clBuildProgram(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @clGetProgramBuildInfo(i32 noundef, i32 noundef, i32 noundef, i64 noundef, ptr noundef, ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @clCreateKernel(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @clCreateBuffer(i32 noundef, i32 noundef, i64 noundef, ptr noundef, ptr noundef) #1
declare signext i8 @clEnqueueWriteBuffer(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i64 noundef) #1
declare signext i8 @clSetKernelArg(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare signext i8 @clEnqueueNDRangeKernel(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @clFinish(i32 noundef) #1
declare signext i8 @clEnqueueReadBuffer(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @write_buffer(ptr noundef, ptr noundef, i64 noundef) #1
declare signext i8 @clReleaseMemObject(i32 noundef) #1
declare signext i8 @clReleaseKernel(i32 noundef) #1
declare signext i8 @clReleaseProgram(i32 noundef) #1
declare signext i8 @clReleaseCommandQueue(i32 noundef) #1
declare signext i8 @clReleaseContext(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw1rk7_da.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CL_SUCCESS = dso_local global i8 0, align 1
@.str = private unnamed_addr constant [42 x i8] c"error: call to 'clGetPlatformIDs' failed\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"Number of platforms: %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"platform=%p\0A\00", align 1
@CL_PLATFORM_NAME = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [43 x i8] c"error: call to 'clGetPlatformInfo' failed\0A\00", align 1
@.str.4 = private unnamed_addr constant [21 x i8] c"platform.name='%s'\0A\0A\00", align 1
@CL_DEVICE_TYPE_GPU = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [40 x i8] c"error: call to 'clGetDeviceIDs' failed\0A\00", align 1
@.str.6 = private unnamed_addr constant [23 x i8] c"Number of devices: %d\0A\00", align 1
@.str.7 = private unnamed_addr constant [11 x i8] c"device=%p\0A\00", align 1
@CL_DEVICE_NAME = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [41 x i8] c"error: call to 'clGetDeviceInfo' failed\0A\00", align 1
@.str.9 = private unnamed_addr constant [18 x i8] c"device.name='%s'\0A\00", align 1
@.str.10 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.11 = private unnamed_addr constant [41 x i8] c"error: call to 'clCreateContext' failed\0A\00", align 1
@.str.12 = private unnamed_addr constant [12 x i8] c"context=%p\0A\00", align 1
@.str.13 = private unnamed_addr constant [46 x i8] c"error: call to 'clCreateCommandQueue' failed\0A\00", align 1
@.str.14 = private unnamed_addr constant [18 x i8] c"command_queue=%p\0A\00", align 1
@.str.15 = private unnamed_addr constant [24 x i8] c"not_equal_shortshort.cl\00", align 1
@.str.16 = private unnamed_addr constant [51 x i8] c"error: call to 'clCreateProgramWithSource' failed\0A\00", align 1
@.str.17 = private unnamed_addr constant [12 x i8] c"program=%p\0A\00", align 1
@CL_PROGRAM_BUILD_LOG = dso_local global i32 0, align 4
@.str.18 = private unnamed_addr constant [44 x i8] c"error: call to 'clBuildProgram' failed:\0A%s\0A\00", align 1
@.str.19 = private unnamed_addr constant [15 x i8] c"program built\0A\00", align 1
@.str.20 = private unnamed_addr constant [21 x i8] c"not_equal_shortshort\00", align 1
@.str.21 = private unnamed_addr constant [40 x i8] c"error: call to 'clCreateKernel' failed\0A\00", align 1
@CL_MEM_READ_ONLY = dso_local global i32 0, align 4
@.str.22 = private unnamed_addr constant [39 x i8] c"error: could not create source buffer\0A\00", align 1
@CL_TRUE = dso_local global i32 0, align 4
@.str.23 = private unnamed_addr constant [46 x i8] c"error: call to 'clEnqueueWriteBuffer' failed\0A\00", align 1
@CL_MEM_WRITE_ONLY = dso_local global i32 0, align 4
@.str.24 = private unnamed_addr constant [36 x i8] c"error: could not create dst buffer\0A\00", align 1
@.str.25 = private unnamed_addr constant [40 x i8] c"error: call to 'clSetKernelArg' failed\0A\00", align 1
@.str.26 = private unnamed_addr constant [48 x i8] c"error: call to 'clEnqueueNDRangeKernel' failed\0A\00", align 1
@.str.27 = private unnamed_addr constant [45 x i8] c"error: call to 'clEnqueueReadBuffer' failed\0A\00", align 1
@.str.28 = private unnamed_addr constant [10 x i8] c"%s.result\00", align 1
@.str.29 = private unnamed_addr constant [21 x i8] c"Result dumped to %s\0A\00", align 1
@.str.30 = private unnamed_addr constant [44 x i8] c"error: call to 'clReleaseMemObject' failed\0A\00", align 1
@.str.31 = private unnamed_addr constant [41 x i8] c"error: call to 'clReleaseKernel' failed\0A\00", align 1
@.str.32 = private unnamed_addr constant [42 x i8] c"error: call to 'clReleaseProgram' failed\0A\00", align 1
@.str.33 = private unnamed_addr constant [47 x i8] c"error: call to 'clReleaseCommandQueue' failed\0A\00", align 1
@.str.34 = private unnamed_addr constant [42 x i8] c"error: call to 'clReleaseContext' failed\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i8, align 1
%9 = alloca [100 x i8], align 16
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca [100 x i8], align 16
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca i64, align 8
%17 = alloca i32, align 4
%18 = alloca i64, align 8
%19 = alloca ptr, align 8
%20 = alloca i32, align 4
%21 = alloca i64, align 8
%22 = alloca ptr, align 8
%23 = alloca i32, align 4
%24 = alloca i32, align 4
%25 = alloca ptr, align 8
%26 = alloca i32, align 4
%27 = alloca i32, align 4
%28 = alloca ptr, align 8
%29 = alloca i32, align 4
%30 = alloca i64, align 8
%31 = alloca i64, align 8
%32 = alloca [100 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
%33 = call signext i8 @clGetPlatformIDs(i32 noundef 1, ptr noundef %6, ptr noundef %7)
store i8 %33, ptr %8, align 1
%34 = load i8, ptr %8, align 1
%35 = sext i8 %34 to i32
%36 = load i8, ptr @CL_SUCCESS, align 1
%37 = sext i8 %36 to i32
%38 = icmp ne i32 %35, %37
br i1 %38, label %39, label %42
39: ; preds = %2
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%41 = call i32 @exit(i32 noundef 1) #3
unreachable
42: ; preds = %2
%43 = load i32, ptr %7, align 4
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %43)
%45 = load i32, ptr %6, align 4
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %45)
%47 = load i32, ptr %6, align 4
%48 = load i32, ptr @CL_PLATFORM_NAME, align 4
%49 = getelementptr inbounds [100 x i8], ptr %9, i64 0, i64 0
%50 = call signext i8 @clGetPlatformInfo(i32 noundef %47, i32 noundef %48, i32 noundef 100, ptr noundef %49, ptr noundef null)
store i8 %50, ptr %8, align 1
%51 = load i8, ptr %8, align 1
%52 = sext i8 %51 to i32
%53 = load i8, ptr @CL_SUCCESS, align 1
%54 = sext i8 %53 to i32
%55 = icmp ne i32 %52, %54
br i1 %55, label %56, label %59
56: ; preds = %42
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%58 = call i32 @exit(i32 noundef 1) #3
unreachable
59: ; preds = %42
%60 = getelementptr inbounds [100 x i8], ptr %9, i64 0, i64 0
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %60)
%62 = load i32, ptr %6, align 4
%63 = load i32, ptr @CL_DEVICE_TYPE_GPU, align 4
%64 = call signext i8 @clGetDeviceIDs(i32 noundef %62, i32 noundef %63, i32 noundef 1, ptr noundef %10, ptr noundef %11)
store i8 %64, ptr %8, align 1
%65 = load i8, ptr %8, align 1
%66 = sext i8 %65 to i32
%67 = load i8, ptr @CL_SUCCESS, align 1
%68 = sext i8 %67 to i32
%69 = icmp ne i32 %66, %68
br i1 %69, label %70, label %73
70: ; preds = %59
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%72 = call i32 @exit(i32 noundef 1) #3
unreachable
73: ; preds = %59
%74 = load i32, ptr %11, align 4
%75 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %74)
%76 = load i32, ptr %10, align 4
%77 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %76)
%78 = load i32, ptr %10, align 4
%79 = load i32, ptr @CL_DEVICE_NAME, align 4
%80 = getelementptr inbounds [100 x i8], ptr %12, i64 0, i64 0
%81 = call signext i8 @clGetDeviceInfo(i32 noundef %78, i32 noundef %79, i32 noundef 100, ptr noundef %80, ptr noundef null)
store i8 %81, ptr %8, align 1
%82 = load i8, ptr %8, align 1
%83 = sext i8 %82 to i32
%84 = load i8, ptr @CL_SUCCESS, align 1
%85 = sext i8 %84 to i32
%86 = icmp ne i32 %83, %85
br i1 %86, label %87, label %90
87: ; preds = %73
%88 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%89 = call i32 @exit(i32 noundef 1) #3
unreachable
90: ; preds = %73
%91 = getelementptr inbounds [100 x i8], ptr %12, i64 0, i64 0
%92 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %91)
%93 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%94 = call i32 @clCreateContext(ptr noundef null, i32 noundef 1, ptr noundef %10, ptr noundef null, ptr noundef null, ptr noundef %8)
store i32 %94, ptr %13, align 4
%95 = load i8, ptr %8, align 1
%96 = sext i8 %95 to i32
%97 = load i8, ptr @CL_SUCCESS, align 1
%98 = sext i8 %97 to i32
%99 = icmp ne i32 %96, %98
br i1 %99, label %100, label %103
100: ; preds = %90
%101 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%102 = call i32 @exit(i32 noundef 1) #3
unreachable
103: ; preds = %90
%104 = load i32, ptr %13, align 4
%105 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %104)
%106 = load i32, ptr %13, align 4
%107 = load i32, ptr %10, align 4
%108 = call i32 @clCreateCommandQueue(i32 noundef %106, i32 noundef %107, i32 noundef 0, ptr noundef %8)
store i32 %108, ptr %14, align 4
%109 = load i8, ptr %8, align 1
%110 = sext i8 %109 to i32
%111 = load i8, ptr @CL_SUCCESS, align 1
%112 = sext i8 %111 to i32
%113 = icmp ne i32 %110, %112
br i1 %113, label %114, label %117
114: ; preds = %103
%115 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
%116 = call i32 @exit(i32 noundef 1) #3
unreachable
117: ; preds = %103
%118 = load i32, ptr %14, align 4
%119 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %118)
%120 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%121 = call ptr @read_buffer(ptr noundef @.str.15, ptr noundef %16)
store ptr %121, ptr %15, align 8
%122 = load i32, ptr %13, align 4
%123 = call i32 @clCreateProgramWithSource(i32 noundef %122, i32 noundef 1, ptr noundef %15, ptr noundef %16, ptr noundef %8)
store i32 %123, ptr %17, align 4
%124 = load i8, ptr %8, align 1
%125 = sext i8 %124 to i32
%126 = load i8, ptr @CL_SUCCESS, align 1
%127 = sext i8 %126 to i32
%128 = icmp ne i32 %125, %127
br i1 %128, label %129, label %132
129: ; preds = %117
%130 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
%131 = call i32 @exit(i32 noundef 1) #3
unreachable
132: ; preds = %117
%133 = load i32, ptr %17, align 4
%134 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, i32 noundef %133)
%135 = load i32, ptr %17, align 4
%136 = call signext i8 @clBuildProgram(i32 noundef %135, i32 noundef 1, ptr noundef %10, ptr noundef null, ptr noundef null, ptr noundef null)
store i8 %136, ptr %8, align 1
%137 = load i8, ptr %8, align 1
%138 = sext i8 %137 to i32
%139 = load i8, ptr @CL_SUCCESS, align 1
%140 = sext i8 %139 to i32
%141 = icmp ne i32 %138, %140
br i1 %141, label %142, label %160
142: ; preds = %132
%143 = load i32, ptr %17, align 4
%144 = load i32, ptr %10, align 4
%145 = load i32, ptr @CL_PROGRAM_BUILD_LOG, align 4
%146 = call i32 @clGetProgramBuildInfo(i32 noundef %143, i32 noundef %144, i32 noundef %145, i64 noundef 0, ptr noundef null, ptr noundef %18)
%147 = load i64, ptr %18, align 8
%148 = call ptr @malloc(i64 noundef %147)
store ptr %148, ptr %19, align 8
%149 = load i32, ptr %17, align 4
%150 = load i32, ptr %10, align 4
%151 = load i32, ptr @CL_PROGRAM_BUILD_LOG, align 4
%152 = load i64, ptr %18, align 8
%153 = load ptr, ptr %19, align 8
%154 = call i32 @clGetProgramBuildInfo(i32 noundef %149, i32 noundef %150, i32 noundef %151, i64 noundef %152, ptr noundef %153, ptr noundef null)
%155 = load ptr, ptr %19, align 8
%156 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, ptr noundef %155)
%157 = load ptr, ptr %19, align 8
%158 = call i32 @free(ptr noundef %157)
%159 = call i32 @exit(i32 noundef 1) #3
unreachable
160: ; preds = %132
%161 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
%162 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%163 = load i32, ptr %17, align 4
%164 = call i32 @clCreateKernel(i32 noundef %163, ptr noundef @.str.20, ptr noundef %8)
store i32 %164, ptr %20, align 4
%165 = load i8, ptr %8, align 1
%166 = sext i8 %165 to i32
%167 = load i8, ptr @CL_SUCCESS, align 1
%168 = sext i8 %167 to i32
%169 = icmp ne i32 %166, %168
br i1 %169, label %170, label %173
170: ; preds = %160
%171 = call i32 (ptr, ...) @printf(ptr noundef @.str.21)
%172 = call i32 @exit(i32 noundef 1) #3
unreachable
173: ; preds = %160
store i64 10, ptr %21, align 8
%174 = load i64, ptr %21, align 8
%175 = mul i64 %174, 1
%176 = call ptr @malloc(i64 noundef %175)
store ptr %176, ptr %22, align 8
store i32 0, ptr %23, align 4
%177 = load i32, ptr %23, align 4
%178 = sext i32 %177 to i64
%179 = load i64, ptr %21, align 8
%180 = icmp ult i64 %178, %179
br i1 %180, label %.lr.ph, label %193
.lr.ph: ; preds = %173
br label %181
181: ; preds = %.lr.ph, %186
%182 = load ptr, ptr %22, align 8
%183 = load i32, ptr %23, align 4
%184 = sext i32 %183 to i64
%185 = getelementptr inbounds i8, ptr %182, i64 %184
store i8 2, ptr %185, align 1
br label %186
186: ; preds = %181
%187 = load i32, ptr %23, align 4
%188 = add nsw i32 %187, 1
store i32 %188, ptr %23, align 4
%189 = load i32, ptr %23, align 4
%190 = sext i32 %189 to i64
%191 = load i64, ptr %21, align 8
%192 = icmp ult i64 %190, %191
br i1 %192, label %181, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %186
br label %193
193: ; preds = %._crit_edge, %173
%194 = load i32, ptr %13, align 4
%195 = load i32, ptr @CL_MEM_READ_ONLY, align 4
%196 = load i64, ptr %21, align 8
%197 = mul i64 %196, 1
%198 = call i32 @clCreateBuffer(i32 noundef %194, i32 noundef %195, i64 noundef %197, ptr noundef null, ptr noundef %8)
store i32 %198, ptr %24, align 4
%199 = load i8, ptr %8, align 1
%200 = sext i8 %199 to i32
%201 = load i8, ptr @CL_SUCCESS, align 1
%202 = sext i8 %201 to i32
%203 = icmp ne i32 %200, %202
br i1 %203, label %204, label %207
204: ; preds = %193
%205 = call i32 (ptr, ...) @printf(ptr noundef @.str.22)
%206 = call i32 @exit(i32 noundef 1) #3
unreachable
207: ; preds = %193
%208 = load i32, ptr %14, align 4
%209 = load i32, ptr %24, align 4
%210 = load i32, ptr @CL_TRUE, align 4
%211 = load i64, ptr %21, align 8
%212 = mul i64 %211, 1
%213 = load ptr, ptr %22, align 8
%214 = call signext i8 @clEnqueueWriteBuffer(i32 noundef %208, i32 noundef %209, i32 noundef %210, i32 noundef 0, i64 noundef %212, ptr noundef %213, i32 noundef 0, ptr noundef null, ptr noundef null)
store i8 %214, ptr %8, align 1
%215 = load i8, ptr %8, align 1
%216 = sext i8 %215 to i32
%217 = load i8, ptr @CL_SUCCESS, align 1
%218 = sext i8 %217 to i32
%219 = icmp ne i32 %216, %218
br i1 %219, label %220, label %223
220: ; preds = %207
%221 = call i32 (ptr, ...) @printf(ptr noundef @.str.23)
%222 = call i32 @exit(i32 noundef 1) #3
unreachable
223: ; preds = %207
%224 = load i64, ptr %21, align 8
%225 = mul i64 %224, 1
%226 = call ptr @malloc(i64 noundef %225)
store ptr %226, ptr %25, align 8
store i32 0, ptr %26, align 4
%227 = load i32, ptr %26, align 4
%228 = sext i32 %227 to i64
%229 = load i64, ptr %21, align 8
%230 = icmp ult i64 %228, %229
br i1 %230, label %.lr.ph2, label %243
.lr.ph2: ; preds = %223
br label %231
231: ; preds = %.lr.ph2, %236
%232 = load ptr, ptr %25, align 8
%233 = load i32, ptr %26, align 4
%234 = sext i32 %233 to i64
%235 = getelementptr inbounds i8, ptr %232, i64 %234
store i8 2, ptr %235, align 1
br label %236
236: ; preds = %231
%237 = load i32, ptr %26, align 4
%238 = add nsw i32 %237, 1
store i32 %238, ptr %26, align 4
%239 = load i32, ptr %26, align 4
%240 = sext i32 %239 to i64
%241 = load i64, ptr %21, align 8
%242 = icmp ult i64 %240, %241
br i1 %242, label %231, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %236
br label %243
243: ; preds = %._crit_edge3, %223
%244 = load i32, ptr %13, align 4
%245 = load i32, ptr @CL_MEM_READ_ONLY, align 4
%246 = load i64, ptr %21, align 8
%247 = mul i64 %246, 1
%248 = call i32 @clCreateBuffer(i32 noundef %244, i32 noundef %245, i64 noundef %247, ptr noundef null, ptr noundef %8)
store i32 %248, ptr %27, align 4
%249 = load i8, ptr %8, align 1
%250 = sext i8 %249 to i32
%251 = load i8, ptr @CL_SUCCESS, align 1
%252 = sext i8 %251 to i32
%253 = icmp ne i32 %250, %252
br i1 %253, label %254, label %257
254: ; preds = %243
%255 = call i32 (ptr, ...) @printf(ptr noundef @.str.22)
%256 = call i32 @exit(i32 noundef 1) #3
unreachable
257: ; preds = %243
%258 = load i32, ptr %14, align 4
%259 = load i32, ptr %27, align 4
%260 = load i32, ptr @CL_TRUE, align 4
%261 = load i64, ptr %21, align 8
%262 = mul i64 %261, 1
%263 = load ptr, ptr %25, align 8
%264 = call signext i8 @clEnqueueWriteBuffer(i32 noundef %258, i32 noundef %259, i32 noundef %260, i32 noundef 0, i64 noundef %262, ptr noundef %263, i32 noundef 0, ptr noundef null, ptr noundef null)
store i8 %264, ptr %8, align 1
%265 = load i8, ptr %8, align 1
%266 = sext i8 %265 to i32
%267 = load i8, ptr @CL_SUCCESS, align 1
%268 = sext i8 %267 to i32
%269 = icmp ne i32 %266, %268
br i1 %269, label %270, label %273
270: ; preds = %257
%271 = call i32 (ptr, ...) @printf(ptr noundef @.str.23)
%272 = call i32 @exit(i32 noundef 1) #3
unreachable
273: ; preds = %257
%274 = load i64, ptr %21, align 8
%275 = mul i64 %274, 1
%276 = call ptr @malloc(i64 noundef %275)
store ptr %276, ptr %28, align 8
%277 = load ptr, ptr %28, align 8
%278 = load i64, ptr %21, align 8
%279 = mul i64 %278, 1
%280 = call i32 @memset(ptr noundef %277, i32 noundef 1, i64 noundef %279)
%281 = load i32, ptr %13, align 4
%282 = load i32, ptr @CL_MEM_WRITE_ONLY, align 4
%283 = load i64, ptr %21, align 8
%284 = mul i64 %283, 1
%285 = call i32 @clCreateBuffer(i32 noundef %281, i32 noundef %282, i64 noundef %284, ptr noundef null, ptr noundef %8)
store i32 %285, ptr %29, align 4
%286 = load i8, ptr %8, align 1
%287 = sext i8 %286 to i32
%288 = load i8, ptr @CL_SUCCESS, align 1
%289 = sext i8 %288 to i32
%290 = icmp ne i32 %287, %289
br i1 %290, label %291, label %294
291: ; preds = %273
%292 = call i32 (ptr, ...) @printf(ptr noundef @.str.24)
%293 = call i32 @exit(i32 noundef 1) #3
unreachable
294: ; preds = %273
%295 = load i8, ptr @CL_SUCCESS, align 1
store i8 %295, ptr %8, align 1
%296 = load i32, ptr %20, align 4
%297 = call signext i8 @clSetKernelArg(i32 noundef %296, i32 noundef 0, i32 noundef 4, ptr noundef %24)
%298 = sext i8 %297 to i32
%299 = load i8, ptr %8, align 1
%300 = sext i8 %299 to i32
%301 = or i32 %300, %298
%302 = trunc i32 %301 to i8
store i8 %302, ptr %8, align 1
%303 = load i32, ptr %20, align 4
%304 = call signext i8 @clSetKernelArg(i32 noundef %303, i32 noundef 1, i32 noundef 4, ptr noundef %27)
%305 = sext i8 %304 to i32
%306 = load i8, ptr %8, align 1
%307 = sext i8 %306 to i32
%308 = or i32 %307, %305
%309 = trunc i32 %308 to i8
store i8 %309, ptr %8, align 1
%310 = load i32, ptr %20, align 4
%311 = call signext i8 @clSetKernelArg(i32 noundef %310, i32 noundef 2, i32 noundef 4, ptr noundef %29)
%312 = sext i8 %311 to i32
%313 = load i8, ptr %8, align 1
%314 = sext i8 %313 to i32
%315 = or i32 %314, %312
%316 = trunc i32 %315 to i8
store i8 %316, ptr %8, align 1
%317 = load i8, ptr %8, align 1
%318 = sext i8 %317 to i32
%319 = load i8, ptr @CL_SUCCESS, align 1
%320 = sext i8 %319 to i32
%321 = icmp ne i32 %318, %320
br i1 %321, label %322, label %325
322: ; preds = %294
%323 = call i32 (ptr, ...) @printf(ptr noundef @.str.25)
%324 = call i32 @exit(i32 noundef 1) #3
unreachable
325: ; preds = %294
%326 = load i64, ptr %21, align 8
store i64 %326, ptr %30, align 8
%327 = load i64, ptr %21, align 8
store i64 %327, ptr %31, align 8
%328 = load i32, ptr %14, align 4
%329 = load i32, ptr %20, align 4
%330 = call signext i8 @clEnqueueNDRangeKernel(i32 noundef %328, i32 noundef %329, i32 noundef 1, ptr noundef null, ptr noundef %30, ptr noundef %31, i32 noundef 0, ptr noundef null, ptr noundef null)
store i8 %330, ptr %8, align 1
%331 = load i8, ptr %8, align 1
%332 = sext i8 %331 to i32
%333 = load i8, ptr @CL_SUCCESS, align 1
%334 = sext i8 %333 to i32
%335 = icmp ne i32 %332, %334
br i1 %335, label %336, label %339
336: ; preds = %325
%337 = call i32 (ptr, ...) @printf(ptr noundef @.str.26)
%338 = call i32 @exit(i32 noundef 1) #3
unreachable
339: ; preds = %325
%340 = load i32, ptr %14, align 4
%341 = call i32 @clFinish(i32 noundef %340)
%342 = load i32, ptr %14, align 4
%343 = load i32, ptr %29, align 4
%344 = load i32, ptr @CL_TRUE, align 4
%345 = load i64, ptr %21, align 8
%346 = mul i64 %345, 1
%347 = load ptr, ptr %28, align 8
%348 = call signext i8 @clEnqueueReadBuffer(i32 noundef %342, i32 noundef %343, i32 noundef %344, i32 noundef 0, i64 noundef %346, ptr noundef %347, i32 noundef 0, ptr noundef null, ptr noundef null)
store i8 %348, ptr %8, align 1
%349 = load i8, ptr %8, align 1
%350 = sext i8 %349 to i32
%351 = load i8, ptr @CL_SUCCESS, align 1
%352 = sext i8 %351 to i32
%353 = icmp ne i32 %350, %352
br i1 %353, label %354, label %357
354: ; preds = %339
%355 = call i32 (ptr, ...) @printf(ptr noundef @.str.27)
%356 = call i32 @exit(i32 noundef 1) #3
unreachable
357: ; preds = %339
%358 = load ptr, ptr %5, align 8
%359 = getelementptr inbounds ptr, ptr %358, i64 0
%360 = load ptr, ptr %359, align 8
%361 = call i32 @sprintf(ptr noundef %32, ptr noundef @.str.28, ptr noundef %360)
%362 = getelementptr inbounds [100 x i8], ptr %32, i64 0, i64 0
%363 = load ptr, ptr %28, align 8
%364 = load i64, ptr %21, align 8
%365 = mul i64 %364, 1
%366 = call i32 @write_buffer(ptr noundef %362, ptr noundef %363, i64 noundef %365)
%367 = getelementptr inbounds [100 x i8], ptr %32, i64 0, i64 0
%368 = call i32 (ptr, ...) @printf(ptr noundef @.str.29, ptr noundef %367)
%369 = load ptr, ptr %28, align 8
%370 = call i32 @free(ptr noundef %369)
%371 = load i32, ptr %29, align 4
%372 = call signext i8 @clReleaseMemObject(i32 noundef %371)
store i8 %372, ptr %8, align 1
%373 = load i8, ptr %8, align 1
%374 = sext i8 %373 to i32
%375 = load i8, ptr @CL_SUCCESS, align 1
%376 = sext i8 %375 to i32
%377 = icmp ne i32 %374, %376
br i1 %377, label %378, label %381
378: ; preds = %357
%379 = call i32 (ptr, ...) @printf(ptr noundef @.str.30)
%380 = call i32 @exit(i32 noundef 1) #3
unreachable
381: ; preds = %357
%382 = load ptr, ptr %22, align 8
%383 = call i32 @free(ptr noundef %382)
%384 = load i32, ptr %24, align 4
%385 = call signext i8 @clReleaseMemObject(i32 noundef %384)
store i8 %385, ptr %8, align 1
%386 = load i8, ptr %8, align 1
%387 = sext i8 %386 to i32
%388 = load i8, ptr @CL_SUCCESS, align 1
%389 = sext i8 %388 to i32
%390 = icmp ne i32 %387, %389
br i1 %390, label %391, label %394
391: ; preds = %381
%392 = call i32 (ptr, ...) @printf(ptr noundef @.str.30)
%393 = call i32 @exit(i32 noundef 1) #3
unreachable
394: ; preds = %381
%395 = load ptr, ptr %25, align 8
%396 = call i32 @free(ptr noundef %395)
%397 = load i32, ptr %27, align 4
%398 = call signext i8 @clReleaseMemObject(i32 noundef %397)
store i8 %398, ptr %8, align 1
%399 = load i8, ptr %8, align 1
%400 = sext i8 %399 to i32
%401 = load i8, ptr @CL_SUCCESS, align 1
%402 = sext i8 %401 to i32
%403 = icmp ne i32 %400, %402
br i1 %403, label %404, label %407
404: ; preds = %394
%405 = call i32 (ptr, ...) @printf(ptr noundef @.str.30)
%406 = call i32 @exit(i32 noundef 1) #3
unreachable
407: ; preds = %394
%408 = load i32, ptr %20, align 4
%409 = call signext i8 @clReleaseKernel(i32 noundef %408)
store i8 %409, ptr %8, align 1
%410 = load i8, ptr %8, align 1
%411 = sext i8 %410 to i32
%412 = load i8, ptr @CL_SUCCESS, align 1
%413 = sext i8 %412 to i32
%414 = icmp ne i32 %411, %413
br i1 %414, label %415, label %418
415: ; preds = %407
%416 = call i32 (ptr, ...) @printf(ptr noundef @.str.31)
%417 = call i32 @exit(i32 noundef 1) #3
unreachable
418: ; preds = %407
%419 = load i32, ptr %17, align 4
%420 = call signext i8 @clReleaseProgram(i32 noundef %419)
store i8 %420, ptr %8, align 1
%421 = load i8, ptr %8, align 1
%422 = sext i8 %421 to i32
%423 = load i8, ptr @CL_SUCCESS, align 1
%424 = sext i8 %423 to i32
%425 = icmp ne i32 %422, %424
br i1 %425, label %426, label %429
426: ; preds = %418
%427 = call i32 (ptr, ...) @printf(ptr noundef @.str.32)
%428 = call i32 @exit(i32 noundef 1) #3
unreachable
429: ; preds = %418
%430 = load i32, ptr %14, align 4
%431 = call signext i8 @clReleaseCommandQueue(i32 noundef %430)
store i8 %431, ptr %8, align 1
%432 = load i8, ptr %8, align 1
%433 = sext i8 %432 to i32
%434 = load i8, ptr @CL_SUCCESS, align 1
%435 = sext i8 %434 to i32
%436 = icmp ne i32 %433, %435
br i1 %436, label %437, label %440
437: ; preds = %429
%438 = call i32 (ptr, ...) @printf(ptr noundef @.str.33)
%439 = call i32 @exit(i32 noundef 1) #3
unreachable
440: ; preds = %429
%441 = load i32, ptr %13, align 4
%442 = call signext i8 @clReleaseContext(i32 noundef %441)
store i8 %442, ptr %8, align 1
%443 = load i8, ptr %8, align 1
%444 = sext i8 %443 to i32
%445 = load i8, ptr @CL_SUCCESS, align 1
%446 = sext i8 %445 to i32
%447 = icmp ne i32 %444, %446
br i1 %447, label %448, label %451
448: ; preds = %440
%449 = call i32 (ptr, ...) @printf(ptr noundef @.str.34)
%450 = call i32 @exit(i32 noundef 1) #3
unreachable
451: ; preds = %440
ret i32 0
}
declare signext i8 @clGetPlatformIDs(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare signext i8 @clGetPlatformInfo(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare signext i8 @clGetDeviceIDs(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare signext i8 @clGetDeviceInfo(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @clCreateContext(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @clCreateCommandQueue(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare ptr @read_buffer(ptr noundef, ptr noundef) #1
declare i32 @clCreateProgramWithSource(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare signext i8 @clBuildProgram(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @clGetProgramBuildInfo(i32 noundef, i32 noundef, i32 noundef, i64 noundef, ptr noundef, ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @clCreateKernel(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @clCreateBuffer(i32 noundef, i32 noundef, i64 noundef, ptr noundef, ptr noundef) #1
declare signext i8 @clEnqueueWriteBuffer(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i64 noundef) #1
declare signext i8 @clSetKernelArg(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare signext i8 @clEnqueueNDRangeKernel(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @clFinish(i32 noundef) #1
declare signext i8 @clEnqueueReadBuffer(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @write_buffer(ptr noundef, ptr noundef, i64 noundef) #1
declare signext i8 @clReleaseMemObject(i32 noundef) #1
declare signext i8 @clReleaseKernel(i32 noundef) #1
declare signext i8 @clReleaseProgram(i32 noundef) #1
declare signext i8 @clReleaseCommandQueue(i32 noundef) #1
declare signext i8 @clReleaseContext(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpv578zrte.c'
source_filename = "/tmp/tmpv578zrte.c"
target datalayout = "e-m:e-p270: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/tmpv578zrte.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.