llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmpo_uw3agk.c'
source_filename = "/tmp/tmpo_uw3agk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIG_IGN = dso_local global i32 0, align 4
@SYS_rt_sigaction = 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/tmpo_uw3agk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIG_IGN = dso_local global i32 0, align 4
@SYS_rt_sigaction = 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/tmph90qjjaj.c'
source_filename = "/tmp/tmph90qjjaj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [49 x i8] c"Endereco: %d , numero de cidades associadas: %d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [1021 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [50 x i8], align 16
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
store i32 10, ptr %5, align 4
store i32 0, ptr %3, align 4
br label %7
7: ; preds = %14, %0
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %8, 1021
br i1 %9, label %10, label %17
10: ; preds = %7
%11 = load i32, ptr %3, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [1021 x i32], ptr %2, i64 0, i64 %12
store i32 0, ptr %13, align 4
br label %14
14: ; preds = %10
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %3, align 4
br label %7, !llvm.loop !6
17: ; preds = %7
br label %18
18: ; preds = %41, %17
%19 = load i32, ptr %5, align 4
%20 = icmp sgt i32 %19, 0
br i1 %20, label %21, label %44
21: ; preds = %18
%22 = getelementptr inbounds [50 x i8], ptr %6, i64 0, i64 0
%23 = call i32 @gets(ptr noundef %22)
%24 = getelementptr inbounds [50 x i8], ptr %6, i64 0, i64 0
%25 = call i32 @hash(ptr noundef %24, i32 noundef 1021)
store i32 %25, ptr %3, align 4
%26 = load i32, ptr %3, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [1021 x i32], ptr %2, i64 0, i64 %27
%29 = load i32, ptr %28, align 4
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %35
31: ; preds = %21
%32 = load i32, ptr %3, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [1021 x i32], ptr %2, i64 0, i64 %33
store i32 1, ptr %34, align 4
br label %41
35: ; preds = %21
%36 = load i32, ptr %3, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [1021 x i32], ptr %2, i64 0, i64 %37
%39 = load i32, ptr %38, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %38, align 4
br label %41
41: ; preds = %35, %31
%42 = load i32, ptr %5, align 4
%43 = add nsw i32 %42, -1
store i32 %43, ptr %5, align 4
br label %18, !llvm.loop !8
44: ; preds = %18
store i32 0, ptr %3, align 4
br label %45
45: ; preds = %55, %44
%46 = load i32, ptr %3, align 4
%47 = icmp slt i32 %46, 1021
br i1 %47, label %48, label %58
48: ; preds = %45
%49 = load i32, ptr %4, align 4
%50 = load i32, ptr %3, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [1021 x i32], ptr %2, i64 0, i64 %51
%53 = load i32, ptr %52, align 4
%54 = add nsw i32 %49, %53
store i32 %54, ptr %4, align 4
br label %55
55: ; preds = %48
%56 = load i32, ptr %3, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %3, align 4
br label %45, !llvm.loop !9
58: ; preds = %45
store i32 0, ptr %3, align 4
br label %59
59: ; preds = %69, %58
%60 = load i32, ptr %3, align 4
%61 = icmp slt i32 %60, 1021
br i1 %61, label %62, label %72
62: ; preds = %59
%63 = load i32, ptr %3, align 4
%64 = load i32, ptr %3, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [1021 x i32], ptr %2, i64 0, i64 %65
%67 = load i32, ptr %66, align 4
%68 = call i32 @printf(ptr noundef @.str, i32 noundef %63, i32 noundef %67)
br label %69
69: ; preds = %62
%70 = load i32, ptr %3, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %3, align 4
br label %59, !llvm.loop !10
72: ; preds = %59
ret i32 0
}
declare i32 @gets(ptr noundef) #1
declare i32 @hash(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmph90qjjaj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [49 x i8] c"Endereco: %d , numero de cidades associadas: %d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [1021 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [50 x i8], align 16
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
store i32 10, ptr %5, align 4
store i32 0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %7, 1021
br i1 %8, label %.lr.ph, label %18
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %13
%10 = load i32, ptr %3, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [1021 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 %3, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %3, align 4
%16 = load i32, ptr %3, align 4
%17 = icmp slt i32 %16, 1021
br i1 %17, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %18
18: ; preds = %._crit_edge, %0
%19 = load i32, ptr %5, align 4
%20 = icmp sgt i32 %19, 0
br i1 %20, label %.lr.ph2, label %46
.lr.ph2: ; preds = %18
br label %21
21: ; preds = %.lr.ph2, %41
%22 = getelementptr inbounds [50 x i8], ptr %6, i64 0, i64 0
%23 = call i32 @gets(ptr noundef %22)
%24 = getelementptr inbounds [50 x i8], ptr %6, i64 0, i64 0
%25 = call i32 @hash(ptr noundef %24, i32 noundef 1021)
store i32 %25, ptr %3, align 4
%26 = load i32, ptr %3, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [1021 x i32], ptr %2, i64 0, i64 %27
%29 = load i32, ptr %28, align 4
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %35
31: ; preds = %21
%32 = load i32, ptr %3, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [1021 x i32], ptr %2, i64 0, i64 %33
store i32 1, ptr %34, align 4
br label %41
35: ; preds = %21
%36 = load i32, ptr %3, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [1021 x i32], ptr %2, i64 0, i64 %37
%39 = load i32, ptr %38, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %38, align 4
br label %41
41: ; preds = %35, %31
%42 = load i32, ptr %5, align 4
%43 = add nsw i32 %42, -1
store i32 %43, ptr %5, align 4
%44 = load i32, ptr %5, align 4
%45 = icmp sgt i32 %44, 0
br i1 %45, label %21, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %41
br label %46
46: ; preds = %._crit_edge3, %18
store i32 0, ptr %3, align 4
%47 = load i32, ptr %3, align 4
%48 = icmp slt i32 %47, 1021
br i1 %48, label %.lr.ph5, label %61
.lr.ph5: ; preds = %46
br label %49
49: ; preds = %.lr.ph5, %56
%50 = load i32, ptr %4, align 4
%51 = load i32, ptr %3, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [1021 x i32], ptr %2, i64 0, i64 %52
%54 = load i32, ptr %53, align 4
%55 = add nsw i32 %50, %54
store i32 %55, ptr %4, align 4
br label %56
56: ; preds = %49
%57 = load i32, ptr %3, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %3, align 4
%59 = load i32, ptr %3, align 4
%60 = icmp slt i32 %59, 1021
br i1 %60, label %49, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %56
br label %61
61: ; preds = %._crit_edge6, %46
store i32 0, ptr %3, align 4
%62 = load i32, ptr %3, align 4
%63 = icmp slt i32 %62, 1021
br i1 %63, label %.lr.ph8, label %76
.lr.ph8: ; preds = %61
br label %64
64: ; preds = %.lr.ph8, %71
%65 = load i32, ptr %3, align 4
%66 = load i32, ptr %3, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [1021 x i32], ptr %2, i64 0, i64 %67
%69 = load i32, ptr %68, align 4
%70 = call i32 @printf(ptr noundef @.str, i32 noundef %65, i32 noundef %69)
br label %71
71: ; preds = %64
%72 = load i32, ptr %3, align 4
%73 = add nsw i32 %72, 1
store i32 %73, ptr %3, align 4
%74 = load i32, ptr %3, align 4
%75 = icmp slt i32 %74, 1021
br i1 %75, label %64, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %71
br label %76
76: ; preds = %._crit_edge9, %61
ret i32 0
}
declare i32 @gets(ptr noundef) #1
declare i32 @hash(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpenr2iumi.c'
source_filename = "/tmp/tmpenr2iumi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @syspool_copy_to_quaddobl_container(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%6 = load ptr, ptr %4, align 8
%7 = load ptr, ptr %5, align 8
%8 = call i32 @_ada_use_c2phc4c(i32 noundef 315, ptr noundef %2, ptr noundef %6, ptr noundef %7, i32 noundef 0)
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %3, align 4
ret i32 %9
}
declare i32 @_ada_use_c2phc4c(i32 noundef, ptr noundef, 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/tmpenr2iumi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @syspool_copy_to_quaddobl_container(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%6 = load ptr, ptr %4, align 8
%7 = load ptr, ptr %5, align 8
%8 = call i32 @_ada_use_c2phc4c(i32 noundef 315, ptr noundef %2, ptr noundef %6, ptr noundef %7, i32 noundef 0)
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %3, align 4
ret i32 %9
}
declare i32 @_ada_use_c2phc4c(i32 noundef, ptr noundef, 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/tmpsazjymav.c'
source_filename = "/tmp/tmpsazjymav.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rand_int(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 (...) @rand()
%4 = load i32, ptr %2, align 4
%5 = srem i32 %3, %4
ret i32 %5
}
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/tmpsazjymav.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rand_int(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 (...) @rand()
%4 = load i32, ptr %2, align 4
%5 = srem i32 %3, %4
ret i32 %5
}
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/tmpo3m_n1ru.c'
source_filename = "/tmp/tmpo3m_n1ru.c"
target datalayout = "e-m:e-p270: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/tmpo3m_n1ru.c"
target datalayout = "e-m:e-p270: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/tmpp6yjwe2o.c'
source_filename = "/tmp/tmpp6yjwe2o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.n = private unnamed_addr constant [7 x i32] [i32 1, i32 2, i32 3, i32 5, i32 6, i32 7, i32 9], align 16
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [7 x i32], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.n, i64 28, i1 false)
%3 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 0
%4 = call i32 @searchInsert(ptr noundef %3, i32 noundef 7, i32 noundef 0)
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
%6 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 0
%7 = call i32 @searchInsert(ptr noundef %6, i32 noundef 7, i32 noundef 1)
%8 = call i32 @printf(ptr noundef @.str, i32 noundef %7)
%9 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 0
%10 = call i32 @searchInsert(ptr noundef %9, i32 noundef 7, i32 noundef 2)
%11 = call i32 @printf(ptr noundef @.str, i32 noundef %10)
%12 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 0
%13 = call i32 @searchInsert(ptr noundef %12, i32 noundef 7, i32 noundef 3)
%14 = call i32 @printf(ptr noundef @.str, i32 noundef %13)
%15 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 0
%16 = call i32 @searchInsert(ptr noundef %15, i32 noundef 7, i32 noundef 4)
%17 = call i32 @printf(ptr noundef @.str, i32 noundef %16)
%18 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 0
%19 = call i32 @searchInsert(ptr noundef %18, i32 noundef 7, i32 noundef 5)
%20 = call i32 @printf(ptr noundef @.str, i32 noundef %19)
%21 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 0
%22 = call i32 @searchInsert(ptr noundef %21, i32 noundef 7, i32 noundef 6)
%23 = call i32 @printf(ptr noundef @.str, i32 noundef %22)
%24 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 0
%25 = call i32 @searchInsert(ptr noundef %24, i32 noundef 7, i32 noundef 7)
%26 = call i32 @printf(ptr noundef @.str, i32 noundef %25)
%27 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 0
%28 = call i32 @searchInsert(ptr noundef %27, i32 noundef 7, i32 noundef 8)
%29 = call i32 @printf(ptr noundef @.str, i32 noundef %28)
%30 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 0
%31 = call i32 @searchInsert(ptr noundef %30, i32 noundef 7, i32 noundef 9)
%32 = call i32 @printf(ptr noundef @.str, i32 noundef %31)
%33 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 0
%34 = call i32 @searchInsert(ptr noundef %33, i32 noundef 7, i32 noundef 10)
%35 = call i32 @printf(ptr noundef @.str, i32 noundef %34)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, i32 noundef) #2
declare i32 @searchInsert(ptr noundef, i32 noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp6yjwe2o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.n = private unnamed_addr constant [7 x i32] [i32 1, i32 2, i32 3, i32 5, i32 6, i32 7, i32 9], align 16
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [7 x i32], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.n, i64 28, i1 false)
%3 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 0
%4 = call i32 @searchInsert(ptr noundef %3, i32 noundef 7, i32 noundef 0)
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
%6 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 0
%7 = call i32 @searchInsert(ptr noundef %6, i32 noundef 7, i32 noundef 1)
%8 = call i32 @printf(ptr noundef @.str, i32 noundef %7)
%9 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 0
%10 = call i32 @searchInsert(ptr noundef %9, i32 noundef 7, i32 noundef 2)
%11 = call i32 @printf(ptr noundef @.str, i32 noundef %10)
%12 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 0
%13 = call i32 @searchInsert(ptr noundef %12, i32 noundef 7, i32 noundef 3)
%14 = call i32 @printf(ptr noundef @.str, i32 noundef %13)
%15 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 0
%16 = call i32 @searchInsert(ptr noundef %15, i32 noundef 7, i32 noundef 4)
%17 = call i32 @printf(ptr noundef @.str, i32 noundef %16)
%18 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 0
%19 = call i32 @searchInsert(ptr noundef %18, i32 noundef 7, i32 noundef 5)
%20 = call i32 @printf(ptr noundef @.str, i32 noundef %19)
%21 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 0
%22 = call i32 @searchInsert(ptr noundef %21, i32 noundef 7, i32 noundef 6)
%23 = call i32 @printf(ptr noundef @.str, i32 noundef %22)
%24 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 0
%25 = call i32 @searchInsert(ptr noundef %24, i32 noundef 7, i32 noundef 7)
%26 = call i32 @printf(ptr noundef @.str, i32 noundef %25)
%27 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 0
%28 = call i32 @searchInsert(ptr noundef %27, i32 noundef 7, i32 noundef 8)
%29 = call i32 @printf(ptr noundef @.str, i32 noundef %28)
%30 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 0
%31 = call i32 @searchInsert(ptr noundef %30, i32 noundef 7, i32 noundef 9)
%32 = call i32 @printf(ptr noundef @.str, i32 noundef %31)
%33 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 0
%34 = call i32 @searchInsert(ptr noundef %33, i32 noundef 7, i32 noundef 10)
%35 = call i32 @printf(ptr noundef @.str, i32 noundef %34)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, i32 noundef) #2
declare i32 @searchInsert(ptr noundef, i32 noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp40h0q7ap.c'
source_filename = "/tmp/tmp40h0q7ap.c"
target datalayout = "e-m:e-p270: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/tmp40h0q7ap.c"
target datalayout = "e-m:e-p270: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/tmp412rbci_.c'
source_filename = "/tmp/tmp412rbci_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @JHKeyframeAnimationFunctionEaseInBounce(double noundef %0, double noundef %1, double noundef %2, double noundef %3) #0 {
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
store double %0, ptr %5, align 8
store double %1, ptr %6, align 8
store double %2, ptr %7, align 8
store double %3, ptr %8, align 8
%9 = load double, ptr %7, align 8
%10 = load double, ptr %8, align 8
%11 = load double, ptr %5, align 8
%12 = fsub double %10, %11
%13 = load double, ptr %7, align 8
%14 = load double, ptr %8, align 8
%15 = call double @JHKeyframeAnimationFunctionEaseOutBounce(double noundef %12, i32 noundef 0, double noundef %13, double noundef %14)
%16 = fsub double %9, %15
%17 = load double, ptr %6, align 8
%18 = fadd double %16, %17
ret double %18
}
declare double @JHKeyframeAnimationFunctionEaseOutBounce(double noundef, i32 noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp412rbci_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @JHKeyframeAnimationFunctionEaseInBounce(double noundef %0, double noundef %1, double noundef %2, double noundef %3) #0 {
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
store double %0, ptr %5, align 8
store double %1, ptr %6, align 8
store double %2, ptr %7, align 8
store double %3, ptr %8, align 8
%9 = load double, ptr %7, align 8
%10 = load double, ptr %8, align 8
%11 = load double, ptr %5, align 8
%12 = fsub double %10, %11
%13 = load double, ptr %7, align 8
%14 = load double, ptr %8, align 8
%15 = call double @JHKeyframeAnimationFunctionEaseOutBounce(double noundef %12, i32 noundef 0, double noundef %13, double noundef %14)
%16 = fsub double %9, %15
%17 = load double, ptr %6, align 8
%18 = fadd double %16, %17
ret double %18
}
declare double @JHKeyframeAnimationFunctionEaseOutBounce(double noundef, i32 noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdsn729hj.c'
source_filename = "/tmp/tmpdsn729hj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = call i64 @g1(i64 noundef %3)
%5 = sitofp i64 %4 to double
%6 = load i64, ptr %2, align 8
%7 = call double @g2(i64 noundef %6)
%8 = fcmp une double %5, %7
br i1 %8, label %9, label %11
9: ; preds = %1
%10 = call i32 (...) @abort() #3
unreachable
11: ; preds = %1
%12 = load i64, ptr %2, align 8
%13 = call double @g2(i64 noundef %12)
ret double %13
}
declare i64 @g1(i64 noundef) #1
declare double @g2(i64 noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #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/tmpdsn729hj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = call i64 @g1(i64 noundef %3)
%5 = sitofp i64 %4 to double
%6 = load i64, ptr %2, align 8
%7 = call double @g2(i64 noundef %6)
%8 = fcmp une double %5, %7
br i1 %8, label %9, label %11
9: ; preds = %1
%10 = call i32 (...) @abort() #3
unreachable
11: ; preds = %1
%12 = load i64, ptr %2, align 8
%13 = call double @g2(i64 noundef %12)
ret double %13
}
declare i64 @g1(i64 noundef) #1
declare double @g2(i64 noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #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/tmpiwambdns.c'
source_filename = "/tmp/tmpiwambdns.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @split(ptr noundef %0, i8 noundef signext %1, ptr noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i8, align 1
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store i8 %1, ptr %8, align 1
store ptr %2, ptr %9, align 8
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
%16 = load ptr, ptr %7, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %18, label %33
18: ; preds = %5
%19 = load ptr, ptr %7, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 0
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 0
br i1 %23, label %33, label %24
24: ; preds = %18
%25 = load ptr, ptr %9, align 8
%26 = icmp ne ptr %25, null
br i1 %26, label %27, label %33
27: ; preds = %24
%28 = load i32, ptr %10, align 4
%29 = icmp sle i32 %28, 0
br i1 %29, label %33, label %30
30: ; preds = %27
%31 = load i32, ptr %11, align 4
%32 = icmp sle i32 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %30, %27, %24, %18, %5
store i32 -1, ptr %6, align 4
br label %107
34: ; preds = %30
%35 = load ptr, ptr %7, align 8
store ptr %35, ptr %12, align 8
%36 = load ptr, ptr %7, align 8
store ptr %36, ptr %13, align 8
store i32 0, ptr %14, align 4
br label %37
37: ; preds = %58, %34
%38 = load ptr, ptr %13, align 8
%39 = load i8, ptr %8, align 1
%40 = call ptr @strchr(ptr noundef %38, i8 noundef signext %39)
store ptr %40, ptr %13, align 8
%41 = icmp ne ptr %40, null
br i1 %41, label %42, label %82
42: ; preds = %37
%43 = load ptr, ptr %13, align 8
%44 = load ptr, ptr %12, align 8
%45 = ptrtoint ptr %43 to i64
%46 = ptrtoint ptr %44 to i64
%47 = sub i64 %45, %46
%48 = trunc i64 %47 to i32
store i32 %48, ptr %15, align 4
%49 = load i32, ptr %15, align 4
%50 = load i32, ptr %10, align 4
%51 = icmp sge i32 %49, %50
br i1 %51, label %52, label %53
52: ; preds = %42
store i32 -1, ptr %6, align 4
br label %107
53: ; preds = %42
%54 = load i32, ptr %14, align 4
%55 = load i32, ptr %11, align 4
%56 = icmp sge i32 %54, %55
br i1 %56, label %57, label %58
57: ; preds = %53
store i32 -1, ptr %6, align 4
br label %107
58: ; preds = %53
%59 = load ptr, ptr %9, align 8
%60 = load i32, ptr %10, align 4
%61 = load i32, ptr %14, align 4
%62 = mul nsw i32 %60, %61
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i8, ptr %59, i64 %63
%65 = load ptr, ptr %12, align 8
%66 = load i32, ptr %15, align 4
%67 = call i32 @memcpy(ptr noundef %64, ptr noundef %65, i32 noundef %66)
%68 = load ptr, ptr %9, align 8
%69 = load i32, ptr %10, align 4
%70 = load i32, ptr %14, align 4
%71 = mul nsw i32 %69, %70
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i8, ptr %68, i64 %72
%74 = load i32, ptr %15, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i8, ptr %73, i64 %75
store i8 0, ptr %76, align 1
%77 = load i32, ptr %14, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %14, align 4
%79 = load ptr, ptr %13, align 8
%80 = getelementptr inbounds i8, ptr %79, i32 1
store ptr %80, ptr %13, align 8
%81 = load ptr, ptr %13, align 8
store ptr %81, ptr %12, align 8
br label %37, !llvm.loop !6
82: ; preds = %37
%83 = load ptr, ptr %12, align 8
%84 = icmp ne ptr %83, null
br i1 %84, label %85, label %96
85: ; preds = %82
%86 = load ptr, ptr %9, align 8
%87 = load i32, ptr %10, align 4
%88 = load i32, ptr %14, align 4
%89 = mul nsw i32 %87, %88
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds i8, ptr %86, i64 %90
%92 = load ptr, ptr %12, align 8
%93 = call i32 @strcpy(ptr noundef %91, ptr noundef %92)
%94 = load i32, ptr %14, align 4
%95 = add nsw i32 %94, 1
store i32 %95, ptr %14, align 4
br label %96
96: ; preds = %85, %82
%97 = load i32, ptr %14, align 4
%98 = icmp eq i32 %97, 0
br i1 %98, label %99, label %105
99: ; preds = %96
%100 = load ptr, ptr %9, align 8
%101 = load ptr, ptr %7, align 8
%102 = call i32 @strcpy(ptr noundef %100, ptr noundef %101)
%103 = load i32, ptr %14, align 4
%104 = add nsw i32 %103, 1
store i32 %104, ptr %14, align 4
br label %105
105: ; preds = %99, %96
%106 = load i32, ptr %14, align 4
store i32 %106, ptr %6, align 4
br label %107
107: ; preds = %105, %57, %52, %33
%108 = load i32, ptr %6, align 4
ret i32 %108
}
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpiwambdns.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @split(ptr noundef %0, i8 noundef signext %1, ptr noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i8, align 1
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store i8 %1, ptr %8, align 1
store ptr %2, ptr %9, align 8
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
%16 = load ptr, ptr %7, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %18, label %33
18: ; preds = %5
%19 = load ptr, ptr %7, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 0
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 0
br i1 %23, label %33, label %24
24: ; preds = %18
%25 = load ptr, ptr %9, align 8
%26 = icmp ne ptr %25, null
br i1 %26, label %27, label %33
27: ; preds = %24
%28 = load i32, ptr %10, align 4
%29 = icmp sle i32 %28, 0
br i1 %29, label %33, label %30
30: ; preds = %27
%31 = load i32, ptr %11, align 4
%32 = icmp sle i32 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %30, %27, %24, %18, %5
store i32 -1, ptr %6, align 4
br label %110
34: ; preds = %30
%35 = load ptr, ptr %7, align 8
store ptr %35, ptr %12, align 8
%36 = load ptr, ptr %7, align 8
store ptr %36, ptr %13, align 8
store i32 0, ptr %14, align 4
%37 = load ptr, ptr %13, align 8
%38 = load i8, ptr %8, align 1
%39 = call ptr @strchr(ptr noundef %37, i8 noundef signext %38)
store ptr %39, ptr %13, align 8
%40 = icmp ne ptr %39, null
br i1 %40, label %.lr.ph, label %85
.lr.ph: ; preds = %34
br label %41
41: ; preds = %.lr.ph, %57
%42 = load ptr, ptr %13, align 8
%43 = load ptr, ptr %12, align 8
%44 = ptrtoint ptr %42 to i64
%45 = ptrtoint ptr %43 to i64
%46 = sub i64 %44, %45
%47 = trunc i64 %46 to i32
store i32 %47, ptr %15, align 4
%48 = load i32, ptr %15, align 4
%49 = load i32, ptr %10, align 4
%50 = icmp sge i32 %48, %49
br i1 %50, label %51, label %52
51: ; preds = %41
store i32 -1, ptr %6, align 4
br label %110
52: ; preds = %41
%53 = load i32, ptr %14, align 4
%54 = load i32, ptr %11, align 4
%55 = icmp sge i32 %53, %54
br i1 %55, label %56, label %57
56: ; preds = %52
store i32 -1, ptr %6, align 4
br label %110
57: ; preds = %52
%58 = load ptr, ptr %9, align 8
%59 = load i32, ptr %10, align 4
%60 = load i32, ptr %14, align 4
%61 = mul nsw i32 %59, %60
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i8, ptr %58, i64 %62
%64 = load ptr, ptr %12, align 8
%65 = load i32, ptr %15, align 4
%66 = call i32 @memcpy(ptr noundef %63, ptr noundef %64, i32 noundef %65)
%67 = load ptr, ptr %9, align 8
%68 = load i32, ptr %10, align 4
%69 = load i32, ptr %14, align 4
%70 = mul nsw i32 %68, %69
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i8, ptr %67, i64 %71
%73 = load i32, ptr %15, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i8, ptr %72, i64 %74
store i8 0, ptr %75, align 1
%76 = load i32, ptr %14, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %14, align 4
%78 = load ptr, ptr %13, align 8
%79 = getelementptr inbounds i8, ptr %78, i32 1
store ptr %79, ptr %13, align 8
%80 = load ptr, ptr %13, align 8
store ptr %80, ptr %12, align 8
%81 = load ptr, ptr %13, align 8
%82 = load i8, ptr %8, align 1
%83 = call ptr @strchr(ptr noundef %81, i8 noundef signext %82)
store ptr %83, ptr %13, align 8
%84 = icmp ne ptr %83, null
br i1 %84, label %41, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %57
br label %85
85: ; preds = %._crit_edge, %34
%86 = load ptr, ptr %12, align 8
%87 = icmp ne ptr %86, null
br i1 %87, label %88, label %99
88: ; preds = %85
%89 = load ptr, ptr %9, align 8
%90 = load i32, ptr %10, align 4
%91 = load i32, ptr %14, align 4
%92 = mul nsw i32 %90, %91
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i8, ptr %89, i64 %93
%95 = load ptr, ptr %12, align 8
%96 = call i32 @strcpy(ptr noundef %94, ptr noundef %95)
%97 = load i32, ptr %14, align 4
%98 = add nsw i32 %97, 1
store i32 %98, ptr %14, align 4
br label %99
99: ; preds = %88, %85
%100 = load i32, ptr %14, align 4
%101 = icmp eq i32 %100, 0
br i1 %101, label %102, label %108
102: ; preds = %99
%103 = load ptr, ptr %9, align 8
%104 = load ptr, ptr %7, align 8
%105 = call i32 @strcpy(ptr noundef %103, ptr noundef %104)
%106 = load i32, ptr %14, align 4
%107 = add nsw i32 %106, 1
store i32 %107, ptr %14, align 4
br label %108
108: ; preds = %102, %99
%109 = load i32, ptr %14, align 4
store i32 %109, ptr %6, align 4
br label %110
110: ; preds = %108, %56, %51, %33
%111 = load i32, ptr %6, align 4
ret i32 %111
}
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp755y78fp.c'
source_filename = "/tmp/tmp755y78fp.c"
target datalayout = "e-m:e-p270: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/tmp755y78fp.c"
target datalayout = "e-m:e-p270: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/tmpe4nilrih.c'
source_filename = "/tmp/tmpe4nilrih.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call ptr @distributeCandies(i32 noundef 10, i32 noundef 3, ptr noundef %2)
store ptr %5, ptr %3, align 8
store i32 0, ptr %4, align 4
br label %6
6: ; preds = %17, %0
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %20
10: ; preds = %6
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %4, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i32, ptr %11, i64 %13
%15 = load i32, ptr %14, align 4
%16 = call i32 @printf(ptr noundef @.str, i32 noundef %15)
br label %17
17: ; preds = %10
%18 = load i32, ptr %4, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %4, align 4
br label %6, !llvm.loop !6
20: ; preds = %6
ret i32 0
}
declare ptr @distributeCandies(i32 noundef, i32 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/tmpe4nilrih.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call ptr @distributeCandies(i32 noundef 10, i32 noundef 3, ptr noundef %2)
store ptr %5, ptr %3, align 8
store i32 0, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = load i32, ptr %2, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %.lr.ph, label %22
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %16
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %4, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i32, ptr %10, i64 %12
%14 = load i32, ptr %13, align 4
%15 = call i32 @printf(ptr noundef @.str, i32 noundef %14)
br label %16
16: ; preds = %9
%17 = load i32, ptr %4, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %4, align 4
%19 = load i32, ptr %4, align 4
%20 = load i32, ptr %2, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %22
22: ; preds = %._crit_edge, %0
ret i32 0
}
declare ptr @distributeCandies(i32 noundef, i32 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/tmpxd1rne85.c'
source_filename = "/tmp/tmpxd1rne85.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sort(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%11 = load ptr, ptr %4, align 8
%12 = load ptr, ptr %5, align 8
%13 = load i32, ptr %6, align 4
%14 = call i32 @copy_list(ptr noundef %11, ptr noundef %12, i32 noundef %13)
store i32 0, ptr %7, align 4
br label %15
15: ; preds = %66, %3
%16 = load i32, ptr %7, align 4
%17 = load i32, ptr %6, align 4
%18 = sub nsw i32 %17, 1
%19 = icmp slt i32 %16, %18
br i1 %19, label %20, label %69
20: ; preds = %15
%21 = load i32, ptr %7, align 4
store i32 %21, ptr %10, align 4
%22 = load i32, ptr %7, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %8, align 4
br label %24
24: ; preds = %43, %20
%25 = load i32, ptr %8, align 4
%26 = load i32, ptr %6, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %46
28: ; preds = %24
%29 = load ptr, ptr %5, align 8
%30 = load i32, ptr %8, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i32, ptr %29, i64 %31
%33 = load i32, ptr %32, align 4
%34 = load ptr, ptr %5, align 8
%35 = load i32, ptr %10, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %34, i64 %36
%38 = load i32, ptr %37, align 4
%39 = icmp slt i32 %33, %38
br i1 %39, label %40, label %42
40: ; preds = %28
%41 = load i32, ptr %8, align 4
store i32 %41, ptr %10, align 4
br label %42
42: ; preds = %40, %28
br label %43
43: ; preds = %42
%44 = load i32, ptr %8, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %8, align 4
br label %24, !llvm.loop !6
46: ; preds = %24
%47 = load ptr, ptr %5, align 8
%48 = load i32, ptr %7, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i32, ptr %47, i64 %49
%51 = load i32, ptr %50, align 4
store i32 %51, ptr %9, align 4
%52 = load ptr, ptr %5, align 8
%53 = load i32, ptr %10, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i32, ptr %52, i64 %54
%56 = load i32, ptr %55, align 4
%57 = load ptr, ptr %5, align 8
%58 = load i32, ptr %7, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i32, ptr %57, i64 %59
store i32 %56, ptr %60, align 4
%61 = load i32, ptr %9, align 4
%62 = load ptr, ptr %5, align 8
%63 = load i32, ptr %10, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i32, ptr %62, i64 %64
store i32 %61, ptr %65, align 4
br label %66
66: ; preds = %46
%67 = load i32, ptr %7, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %7, align 4
br label %15, !llvm.loop !8
69: ; preds = %15
ret void
}
declare i32 @copy_list(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxd1rne85.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sort(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%11 = load ptr, ptr %4, align 8
%12 = load ptr, ptr %5, align 8
%13 = load i32, ptr %6, align 4
%14 = call i32 @copy_list(ptr noundef %11, ptr noundef %12, i32 noundef %13)
store i32 0, ptr %7, align 4
%15 = load i32, ptr %7, align 4
%16 = load i32, ptr %6, align 4
%17 = sub nsw i32 %16, 1
%18 = icmp slt i32 %15, %17
br i1 %18, label %.lr.ph2, label %74
.lr.ph2: ; preds = %3
br label %19
19: ; preds = %.lr.ph2, %67
%20 = load i32, ptr %7, align 4
store i32 %20, ptr %10, align 4
%21 = load i32, ptr %7, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %8, align 4
%23 = load i32, ptr %8, align 4
%24 = load i32, ptr %6, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %.lr.ph, label %47
.lr.ph: ; preds = %19
br label %26
26: ; preds = %.lr.ph, %41
%27 = load ptr, ptr %5, align 8
%28 = load i32, ptr %8, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i32, ptr %27, i64 %29
%31 = load i32, ptr %30, align 4
%32 = load ptr, ptr %5, align 8
%33 = load i32, ptr %10, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i32, ptr %32, i64 %34
%36 = load i32, ptr %35, align 4
%37 = icmp slt i32 %31, %36
br i1 %37, label %38, label %40
38: ; preds = %26
%39 = load i32, ptr %8, align 4
store i32 %39, ptr %10, align 4
br label %40
40: ; preds = %38, %26
br label %41
41: ; preds = %40
%42 = load i32, ptr %8, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %8, align 4
%44 = load i32, ptr %8, align 4
%45 = load i32, ptr %6, align 4
%46 = icmp slt i32 %44, %45
br i1 %46, label %26, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %41
br label %47
47: ; preds = %._crit_edge, %19
%48 = load ptr, ptr %5, 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
store i32 %52, ptr %9, align 4
%53 = load ptr, ptr %5, align 8
%54 = load i32, ptr %10, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i32, ptr %53, i64 %55
%57 = load i32, ptr %56, align 4
%58 = load ptr, ptr %5, align 8
%59 = load i32, ptr %7, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i32, ptr %58, i64 %60
store i32 %57, ptr %61, align 4
%62 = load i32, ptr %9, align 4
%63 = load ptr, ptr %5, align 8
%64 = load i32, ptr %10, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i32, ptr %63, i64 %65
store i32 %62, ptr %66, align 4
br label %67
67: ; preds = %47
%68 = load i32, ptr %7, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %7, align 4
%70 = load i32, ptr %7, align 4
%71 = load i32, ptr %6, align 4
%72 = sub nsw i32 %71, 1
%73 = icmp slt i32 %70, %72
br i1 %73, label %19, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %67
br label %74
74: ; preds = %._crit_edge3, %3
ret void
}
declare i32 @copy_list(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpneadr5my.c'
source_filename = "/tmp/tmpneadr5my.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hash_sha3_384(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %5, align 8
%8 = load i32, ptr %6, align 4
%9 = load ptr, ptr %4, align 8
%10 = call i32 @hash_keccak(i32 noundef 104, ptr noundef %7, i32 noundef %8, i32 noundef 6, ptr noundef %9, i32 noundef 48, i32 noundef 48)
ret i32 1
}
declare i32 @hash_keccak(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpneadr5my.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hash_sha3_384(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %5, align 8
%8 = load i32, ptr %6, align 4
%9 = load ptr, ptr %4, align 8
%10 = call i32 @hash_keccak(i32 noundef 104, ptr noundef %7, i32 noundef %8, i32 noundef 6, ptr noundef %9, i32 noundef 48, i32 noundef 48)
ret i32 1
}
declare i32 @hash_keccak(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkmh_1brk.c'
source_filename = "/tmp/tmpkmh_1brk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strsearch(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store ptr null, ptr %5, align 8
store i64 0, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load i8, ptr %7, align 1
%9 = icmp ne i8 %8, 0
br i1 %9, label %12, label %10
10: ; preds = %2
%11 = load ptr, ptr %3, align 8
store ptr %11, ptr %5, align 8
br label %12
12: ; preds = %10, %2
br label %13
13: ; preds = %51, %12
%14 = load ptr, ptr %3, align 8
%15 = load i64, ptr %6, align 8
%16 = getelementptr inbounds i8, ptr %14, 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 %20, label %23
20: ; preds = %13
%21 = load ptr, ptr %5, align 8
%22 = icmp eq ptr %21, null
br label %23
23: ; preds = %20, %13
%24 = phi i1 [ false, %13 ], [ %22, %20 ]
br i1 %24, label %25, label %52
25: ; preds = %23
%26 = load ptr, ptr %3, align 8
%27 = load i64, ptr %6, align 8
%28 = getelementptr inbounds i8, ptr %26, i64 %27
%29 = load i8, ptr %28, align 1
%30 = call i64 @toupper(i8 noundef signext %29)
%31 = load ptr, ptr %4, align 8
%32 = load i64, ptr %6, align 8
%33 = getelementptr inbounds i8, ptr %31, i64 %32
%34 = load i8, ptr %33, align 1
%35 = call i64 @toupper(i8 noundef signext %34)
%36 = icmp eq i64 %30, %35
br i1 %36, label %37, label %40
37: ; preds = %25
%38 = load i64, ptr %6, align 8
%39 = add i64 %38, 1
store i64 %39, ptr %6, align 8
br label %43
40: ; preds = %25
store i64 0, ptr %6, align 8
%41 = load ptr, ptr %3, align 8
%42 = getelementptr inbounds i8, ptr %41, i32 1
store ptr %42, ptr %3, align 8
br label %43
43: ; preds = %40, %37
%44 = load ptr, ptr %4, align 8
%45 = load i64, ptr %6, align 8
%46 = getelementptr inbounds i8, ptr %44, i64 %45
%47 = load i8, ptr %46, align 1
%48 = icmp ne i8 %47, 0
br i1 %48, label %51, label %49
49: ; preds = %43
%50 = load ptr, ptr %3, align 8
store ptr %50, ptr %5, align 8
br label %51
51: ; preds = %49, %43
br label %13, !llvm.loop !6
52: ; preds = %23
%53 = load ptr, ptr %5, align 8
ret ptr %53
}
declare i64 @toupper(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/tmpkmh_1brk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strsearch(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store ptr null, ptr %5, align 8
store i64 0, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load i8, ptr %7, align 1
%9 = icmp ne i8 %8, 0
br i1 %9, label %12, label %10
10: ; preds = %2
%11 = load ptr, ptr %3, align 8
store ptr %11, ptr %5, align 8
br label %12
12: ; preds = %10, %2
br label %13
13: ; preds = %51, %12
%14 = load ptr, ptr %3, align 8
%15 = load i64, ptr %6, align 8
%16 = getelementptr inbounds i8, ptr %14, 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 %20, label %23
20: ; preds = %13
%21 = load ptr, ptr %5, align 8
%22 = icmp eq ptr %21, null
br label %23
23: ; preds = %20, %13
%24 = phi i1 [ false, %13 ], [ %22, %20 ]
br i1 %24, label %25, label %52
25: ; preds = %23
%26 = load ptr, ptr %3, align 8
%27 = load i64, ptr %6, align 8
%28 = getelementptr inbounds i8, ptr %26, i64 %27
%29 = load i8, ptr %28, align 1
%30 = call i64 @toupper(i8 noundef signext %29)
%31 = load ptr, ptr %4, align 8
%32 = load i64, ptr %6, align 8
%33 = getelementptr inbounds i8, ptr %31, i64 %32
%34 = load i8, ptr %33, align 1
%35 = call i64 @toupper(i8 noundef signext %34)
%36 = icmp eq i64 %30, %35
br i1 %36, label %37, label %40
37: ; preds = %25
%38 = load i64, ptr %6, align 8
%39 = add i64 %38, 1
store i64 %39, ptr %6, align 8
br label %43
40: ; preds = %25
store i64 0, ptr %6, align 8
%41 = load ptr, ptr %3, align 8
%42 = getelementptr inbounds i8, ptr %41, i32 1
store ptr %42, ptr %3, align 8
br label %43
43: ; preds = %40, %37
%44 = load ptr, ptr %4, align 8
%45 = load i64, ptr %6, align 8
%46 = getelementptr inbounds i8, ptr %44, i64 %45
%47 = load i8, ptr %46, align 1
%48 = icmp ne i8 %47, 0
br i1 %48, label %51, label %49
49: ; preds = %43
%50 = load ptr, ptr %3, align 8
store ptr %50, ptr %5, align 8
br label %51
51: ; preds = %49, %43
br label %13, !llvm.loop !6
52: ; preds = %23
%53 = load ptr, ptr %5, align 8
ret ptr %53
}
declare i64 @toupper(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/tmphxt8afk1.c'
source_filename = "/tmp/tmphxt8afk1.c"
target datalayout = "e-m:e-p270: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/tmphxt8afk1.c"
target datalayout = "e-m:e-p270: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/tmpxxduz2am.c'
source_filename = "/tmp/tmpxxduz2am.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"^a[[:alnum:]]\00", align 1
@REG_ICASE = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [21 x i8] c"Can't compile regex\0A\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"abcABC\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"Matched\00", align 1
@REG_NOMATCH = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [9 x i8] c"No Match\00", align 1
@.str.5 = private unnamed_addr constant [24 x i8] c"Regex match failed: %s\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 [1000 x i8], align 16
store i32 0, ptr %1, align 4
%5 = load i32, ptr @REG_ICASE, align 4
%6 = call i32 @regcomp(ptr noundef %2, ptr noundef @.str, i32 noundef %5)
store i32 %6, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %0
%10 = load i32, ptr @stderr, align 4
%11 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %10, ptr noundef @.str.1, ptr noundef null, i32 noundef 0)
br label %12
12: ; preds = %9, %0
%13 = call i32 @regexec(ptr noundef %2, ptr noundef @.str.2, i32 noundef 0, ptr noundef null, i32 noundef 0)
store i32 %13, ptr %3, align 4
%14 = load i32, ptr %3, align 4
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %12
%17 = call i32 @puts(ptr noundef @.str.3)
br label %34
18: ; preds = %12
%19 = load i32, ptr %3, align 4
%20 = load i32, ptr @REG_NOMATCH, align 4
%21 = icmp eq i32 %19, %20
br i1 %21, label %22, label %24
22: ; preds = %18
%23 = call i32 @puts(ptr noundef @.str.4)
br label %33
24: ; preds = %18
%25 = load i32, ptr %3, align 4
%26 = getelementptr inbounds [1000 x i8], ptr %4, i64 0, i64 0
%27 = call i32 @regerror(i32 noundef %25, ptr noundef %2, ptr noundef %26, i32 noundef 1000)
%28 = load i32, ptr @stderr, align 4
%29 = getelementptr inbounds [1000 x i8], ptr %4, i64 0, i64 0
%30 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %28, ptr noundef @.str.5, ptr noundef %29)
%31 = load i32, ptr %3, align 4
%32 = call i32 @exit(i32 noundef %31) #3
unreachable
33: ; preds = %22
br label %34
34: ; preds = %33, %16
%35 = call i32 @regfree(ptr noundef %2)
ret i32 0
}
declare i32 @regcomp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ...) #1
declare i32 @regexec(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @puts(ptr noundef) #1
declare i32 @regerror(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @regfree(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpxxduz2am.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"^a[[:alnum:]]\00", align 1
@REG_ICASE = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [21 x i8] c"Can't compile regex\0A\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"abcABC\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"Matched\00", align 1
@REG_NOMATCH = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [9 x i8] c"No Match\00", align 1
@.str.5 = private unnamed_addr constant [24 x i8] c"Regex match failed: %s\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 [1000 x i8], align 16
store i32 0, ptr %1, align 4
%5 = load i32, ptr @REG_ICASE, align 4
%6 = call i32 @regcomp(ptr noundef %2, ptr noundef @.str, i32 noundef %5)
store i32 %6, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %0
%10 = load i32, ptr @stderr, align 4
%11 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %10, ptr noundef @.str.1, ptr noundef null, i32 noundef 0)
br label %12
12: ; preds = %9, %0
%13 = call i32 @regexec(ptr noundef %2, ptr noundef @.str.2, i32 noundef 0, ptr noundef null, i32 noundef 0)
store i32 %13, ptr %3, align 4
%14 = load i32, ptr %3, align 4
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %12
%17 = call i32 @puts(ptr noundef @.str.3)
br label %34
18: ; preds = %12
%19 = load i32, ptr %3, align 4
%20 = load i32, ptr @REG_NOMATCH, align 4
%21 = icmp eq i32 %19, %20
br i1 %21, label %22, label %24
22: ; preds = %18
%23 = call i32 @puts(ptr noundef @.str.4)
br label %33
24: ; preds = %18
%25 = load i32, ptr %3, align 4
%26 = getelementptr inbounds [1000 x i8], ptr %4, i64 0, i64 0
%27 = call i32 @regerror(i32 noundef %25, ptr noundef %2, ptr noundef %26, i32 noundef 1000)
%28 = load i32, ptr @stderr, align 4
%29 = getelementptr inbounds [1000 x i8], ptr %4, i64 0, i64 0
%30 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %28, ptr noundef @.str.5, ptr noundef %29)
%31 = load i32, ptr %3, align 4
%32 = call i32 @exit(i32 noundef %31) #3
unreachable
33: ; preds = %22
br label %34
34: ; preds = %33, %16
%35 = call i32 @regfree(ptr noundef %2)
ret i32 0
}
declare i32 @regcomp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ...) #1
declare i32 @regexec(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @puts(ptr noundef) #1
declare i32 @regerror(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @regfree(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpnconk19p.c'
source_filename = "/tmp/tmpnconk19p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @initialize_matrix(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 = %25, %1
%6 = load i32, ptr %3, align 4
%7 = icmp slt i32 %6, 8
br i1 %7, label %8, label %28
8: ; preds = %5
store i32 0, ptr %4, align 4
br label %9
9: ; preds = %21, %8
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 8
br i1 %11, label %12, label %24
12: ; preds = %9
%13 = call float (...) @drand48()
%14 = load ptr, ptr %2, align 8
%15 = load i32, ptr %3, align 4
%16 = load i32, ptr %4, align 4
%17 = mul nsw i32 %16, 8
%18 = add nsw i32 %15, %17
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds float, ptr %14, i64 %19
store float %13, ptr %20, align 4
br label %21
21: ; preds = %12
%22 = load i32, ptr %4, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %4, align 4
br label %9, !llvm.loop !6
24: ; preds = %9
br label %25
25: ; preds = %24
%26 = load i32, ptr %3, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %3, align 4
br label %5, !llvm.loop !8
28: ; preds = %5
ret void
}
declare float @drand48(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpnconk19p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @initialize_matrix(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
%5 = load i32, ptr %3, align 4
%6 = icmp slt i32 %5, 8
br i1 %6, label %.lr.ph2, label %30
.lr.ph2: ; preds = %1
br label %7
7: ; preds = %.lr.ph2, %25
store i32 0, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 8
br i1 %9, label %.lr.ph, label %24
.lr.ph: ; preds = %7
br label %10
10: ; preds = %.lr.ph, %19
%11 = call float (...) @drand48()
%12 = load ptr, ptr %2, align 8
%13 = load i32, ptr %3, align 4
%14 = load i32, ptr %4, align 4
%15 = mul nsw i32 %14, 8
%16 = add nsw i32 %13, %15
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds float, ptr %12, i64 %17
store float %11, ptr %18, align 4
br label %19
19: ; preds = %10
%20 = load i32, ptr %4, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %4, align 4
%22 = load i32, ptr %4, align 4
%23 = icmp slt i32 %22, 8
br i1 %23, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %24
24: ; preds = %._crit_edge, %7
br label %25
25: ; preds = %24
%26 = load i32, ptr %3, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %3, align 4
%28 = load i32, ptr %3, align 4
%29 = icmp slt i32 %28, 8
br i1 %29, label %7, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %25
br label %30
30: ; preds = %._crit_edge3, %1
ret void
}
declare float @drand48(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpzd2ejf0s.c'
source_filename = "/tmp/tmpzd2ejf0s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local x86_fp80 @angle_betw_0pi(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca x86_fp80, align 16
%6 = alloca x86_fp80, align 16
%7 = alloca x86_fp80, align 16
%8 = alloca x86_fp80, align 16
%9 = alloca x86_fp80, align 16
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%10 = load ptr, ptr %3, align 8
%11 = getelementptr inbounds x86_fp80, ptr %10, i64 1
%12 = load x86_fp80, ptr %11, align 16
%13 = load ptr, ptr %4, align 8
%14 = getelementptr inbounds x86_fp80, ptr %13, i64 2
%15 = load x86_fp80, ptr %14, align 16
%16 = load ptr, ptr %3, align 8
%17 = getelementptr inbounds x86_fp80, ptr %16, i64 2
%18 = load x86_fp80, ptr %17, align 16
%19 = load ptr, ptr %4, align 8
%20 = getelementptr inbounds x86_fp80, ptr %19, i64 1
%21 = load x86_fp80, ptr %20, align 16
%22 = fmul x86_fp80 %18, %21
%23 = fneg x86_fp80 %22
%24 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %12, x86_fp80 %15, x86_fp80 %23)
store x86_fp80 %24, ptr %5, align 16
%25 = load ptr, ptr %3, align 8
%26 = getelementptr inbounds x86_fp80, ptr %25, i64 2
%27 = load x86_fp80, ptr %26, align 16
%28 = load ptr, ptr %4, align 8
%29 = getelementptr inbounds x86_fp80, ptr %28, i64 0
%30 = load x86_fp80, ptr %29, align 16
%31 = load ptr, ptr %3, align 8
%32 = getelementptr inbounds x86_fp80, ptr %31, i64 0
%33 = load x86_fp80, ptr %32, align 16
%34 = load ptr, ptr %4, align 8
%35 = getelementptr inbounds x86_fp80, ptr %34, i64 2
%36 = load x86_fp80, ptr %35, align 16
%37 = fmul x86_fp80 %33, %36
%38 = fneg x86_fp80 %37
%39 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %27, x86_fp80 %30, x86_fp80 %38)
store x86_fp80 %39, ptr %6, align 16
%40 = load ptr, ptr %3, align 8
%41 = getelementptr inbounds x86_fp80, ptr %40, i64 0
%42 = load x86_fp80, ptr %41, align 16
%43 = load ptr, ptr %4, align 8
%44 = getelementptr inbounds x86_fp80, ptr %43, i64 1
%45 = load x86_fp80, ptr %44, align 16
%46 = load ptr, ptr %3, align 8
%47 = getelementptr inbounds x86_fp80, ptr %46, i64 1
%48 = load x86_fp80, ptr %47, align 16
%49 = load ptr, ptr %4, align 8
%50 = getelementptr inbounds x86_fp80, ptr %49, i64 0
%51 = load x86_fp80, ptr %50, align 16
%52 = fmul x86_fp80 %48, %51
%53 = fneg x86_fp80 %52
%54 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %42, x86_fp80 %45, x86_fp80 %53)
store x86_fp80 %54, ptr %7, align 16
%55 = load x86_fp80, ptr %5, align 16
%56 = load x86_fp80, ptr %5, align 16
%57 = load x86_fp80, ptr %6, align 16
%58 = load x86_fp80, ptr %6, align 16
%59 = fmul x86_fp80 %57, %58
%60 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %55, x86_fp80 %56, x86_fp80 %59)
%61 = load x86_fp80, ptr %7, align 16
%62 = load x86_fp80, ptr %7, align 16
%63 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %61, x86_fp80 %62, x86_fp80 %60)
%64 = call x86_fp80 @sqrtl(x86_fp80 noundef %63) #3
store x86_fp80 %64, ptr %8, align 16
%65 = load ptr, ptr %3, align 8
%66 = getelementptr inbounds x86_fp80, ptr %65, i64 0
%67 = load x86_fp80, ptr %66, align 16
%68 = load ptr, ptr %4, align 8
%69 = getelementptr inbounds x86_fp80, ptr %68, i64 0
%70 = load x86_fp80, ptr %69, align 16
%71 = load ptr, ptr %3, align 8
%72 = getelementptr inbounds x86_fp80, ptr %71, i64 1
%73 = load x86_fp80, ptr %72, align 16
%74 = load ptr, ptr %4, align 8
%75 = getelementptr inbounds x86_fp80, ptr %74, i64 1
%76 = load x86_fp80, ptr %75, align 16
%77 = fmul x86_fp80 %73, %76
%78 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %67, x86_fp80 %70, x86_fp80 %77)
%79 = load ptr, ptr %3, align 8
%80 = getelementptr inbounds x86_fp80, ptr %79, i64 2
%81 = load x86_fp80, ptr %80, align 16
%82 = load ptr, ptr %4, align 8
%83 = getelementptr inbounds x86_fp80, ptr %82, i64 2
%84 = load x86_fp80, ptr %83, align 16
%85 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %81, x86_fp80 %84, x86_fp80 %78)
store x86_fp80 %85, ptr %9, align 16
%86 = load x86_fp80, ptr %8, align 16
%87 = load x86_fp80, ptr %9, align 16
%88 = call x86_fp80 @atan2l(x86_fp80 noundef %86, x86_fp80 noundef %87) #3
ret x86_fp80 %88
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.fmuladd.f80(x86_fp80, x86_fp80, x86_fp80) #1
; Function Attrs: nounwind
declare x86_fp80 @sqrtl(x86_fp80 noundef) #2
; Function Attrs: nounwind
declare x86_fp80 @atan2l(x86_fp80 noundef, x86_fp80 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzd2ejf0s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local x86_fp80 @angle_betw_0pi(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca x86_fp80, align 16
%6 = alloca x86_fp80, align 16
%7 = alloca x86_fp80, align 16
%8 = alloca x86_fp80, align 16
%9 = alloca x86_fp80, align 16
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%10 = load ptr, ptr %3, align 8
%11 = getelementptr inbounds x86_fp80, ptr %10, i64 1
%12 = load x86_fp80, ptr %11, align 16
%13 = load ptr, ptr %4, align 8
%14 = getelementptr inbounds x86_fp80, ptr %13, i64 2
%15 = load x86_fp80, ptr %14, align 16
%16 = load ptr, ptr %3, align 8
%17 = getelementptr inbounds x86_fp80, ptr %16, i64 2
%18 = load x86_fp80, ptr %17, align 16
%19 = load ptr, ptr %4, align 8
%20 = getelementptr inbounds x86_fp80, ptr %19, i64 1
%21 = load x86_fp80, ptr %20, align 16
%22 = fmul x86_fp80 %18, %21
%23 = fneg x86_fp80 %22
%24 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %12, x86_fp80 %15, x86_fp80 %23)
store x86_fp80 %24, ptr %5, align 16
%25 = load ptr, ptr %3, align 8
%26 = getelementptr inbounds x86_fp80, ptr %25, i64 2
%27 = load x86_fp80, ptr %26, align 16
%28 = load ptr, ptr %4, align 8
%29 = getelementptr inbounds x86_fp80, ptr %28, i64 0
%30 = load x86_fp80, ptr %29, align 16
%31 = load ptr, ptr %3, align 8
%32 = getelementptr inbounds x86_fp80, ptr %31, i64 0
%33 = load x86_fp80, ptr %32, align 16
%34 = load ptr, ptr %4, align 8
%35 = getelementptr inbounds x86_fp80, ptr %34, i64 2
%36 = load x86_fp80, ptr %35, align 16
%37 = fmul x86_fp80 %33, %36
%38 = fneg x86_fp80 %37
%39 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %27, x86_fp80 %30, x86_fp80 %38)
store x86_fp80 %39, ptr %6, align 16
%40 = load ptr, ptr %3, align 8
%41 = getelementptr inbounds x86_fp80, ptr %40, i64 0
%42 = load x86_fp80, ptr %41, align 16
%43 = load ptr, ptr %4, align 8
%44 = getelementptr inbounds x86_fp80, ptr %43, i64 1
%45 = load x86_fp80, ptr %44, align 16
%46 = load ptr, ptr %3, align 8
%47 = getelementptr inbounds x86_fp80, ptr %46, i64 1
%48 = load x86_fp80, ptr %47, align 16
%49 = load ptr, ptr %4, align 8
%50 = getelementptr inbounds x86_fp80, ptr %49, i64 0
%51 = load x86_fp80, ptr %50, align 16
%52 = fmul x86_fp80 %48, %51
%53 = fneg x86_fp80 %52
%54 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %42, x86_fp80 %45, x86_fp80 %53)
store x86_fp80 %54, ptr %7, align 16
%55 = load x86_fp80, ptr %5, align 16
%56 = load x86_fp80, ptr %5, align 16
%57 = load x86_fp80, ptr %6, align 16
%58 = load x86_fp80, ptr %6, align 16
%59 = fmul x86_fp80 %57, %58
%60 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %55, x86_fp80 %56, x86_fp80 %59)
%61 = load x86_fp80, ptr %7, align 16
%62 = load x86_fp80, ptr %7, align 16
%63 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %61, x86_fp80 %62, x86_fp80 %60)
%64 = call x86_fp80 @sqrtl(x86_fp80 noundef %63) #3
store x86_fp80 %64, ptr %8, align 16
%65 = load ptr, ptr %3, align 8
%66 = getelementptr inbounds x86_fp80, ptr %65, i64 0
%67 = load x86_fp80, ptr %66, align 16
%68 = load ptr, ptr %4, align 8
%69 = getelementptr inbounds x86_fp80, ptr %68, i64 0
%70 = load x86_fp80, ptr %69, align 16
%71 = load ptr, ptr %3, align 8
%72 = getelementptr inbounds x86_fp80, ptr %71, i64 1
%73 = load x86_fp80, ptr %72, align 16
%74 = load ptr, ptr %4, align 8
%75 = getelementptr inbounds x86_fp80, ptr %74, i64 1
%76 = load x86_fp80, ptr %75, align 16
%77 = fmul x86_fp80 %73, %76
%78 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %67, x86_fp80 %70, x86_fp80 %77)
%79 = load ptr, ptr %3, align 8
%80 = getelementptr inbounds x86_fp80, ptr %79, i64 2
%81 = load x86_fp80, ptr %80, align 16
%82 = load ptr, ptr %4, align 8
%83 = getelementptr inbounds x86_fp80, ptr %82, i64 2
%84 = load x86_fp80, ptr %83, align 16
%85 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %81, x86_fp80 %84, x86_fp80 %78)
store x86_fp80 %85, ptr %9, align 16
%86 = load x86_fp80, ptr %8, align 16
%87 = load x86_fp80, ptr %9, align 16
%88 = call x86_fp80 @atan2l(x86_fp80 noundef %86, x86_fp80 noundef %87) #3
ret x86_fp80 %88
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.fmuladd.f80(x86_fp80, x86_fp80, x86_fp80) #1
; Function Attrs: nounwind
declare x86_fp80 @sqrtl(x86_fp80 noundef) #2
; Function Attrs: nounwind
declare x86_fp80 @atan2l(x86_fp80 noundef, x86_fp80 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmu25b13c.c'
source_filename = "/tmp/tmpmu25b13c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @xcmalloc(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
store i64 %0, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = call ptr @malloc(i64 noundef %4) #2
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
ret ptr %6
}
; Function Attrs: allocsize(0)
declare ptr @malloc(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 = { allocsize(0) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmu25b13c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @xcmalloc(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
store i64 %0, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = call ptr @malloc(i64 noundef %4) #2
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
ret ptr %6
}
; Function Attrs: allocsize(0)
declare ptr @malloc(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 = { allocsize(0) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4f7p70lk.c'
source_filename = "/tmp/tmp4f7p70lk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter a integer: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
br label %6
6: ; preds = %17, %0
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = sdiv i32 %8, 10
%10 = mul nsw i32 %9, 10
%11 = sub nsw i32 %7, %10
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %11)
%13 = load i32, ptr %2, align 4
%14 = sdiv i32 %13, 10
store i32 %14, ptr %3, align 4
%15 = load i32, ptr %2, align 4
%16 = sdiv i32 %15, 10
store i32 %16, ptr %2, align 4
br label %17
17: ; preds = %6
%18 = load i32, ptr %3, align 4
%19 = icmp ne i32 %18, 0
br i1 %19, label %6, label %20, !llvm.loop !6
20: ; preds = %17
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4f7p70lk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter a integer: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
br label %6
6: ; preds = %17, %0
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = sdiv i32 %8, 10
%10 = mul nsw i32 %9, 10
%11 = sub nsw i32 %7, %10
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %11)
%13 = load i32, ptr %2, align 4
%14 = sdiv i32 %13, 10
store i32 %14, ptr %3, align 4
%15 = load i32, ptr %2, align 4
%16 = sdiv i32 %15, 10
store i32 %16, ptr %2, align 4
br label %17
17: ; preds = %6
%18 = load i32, ptr %3, align 4
%19 = icmp ne i32 %18, 0
br i1 %19, label %6, label %20, !llvm.loop !6
20: ; preds = %17
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
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"}
|
; ModuleID = '/tmp/tmp3t7a_pll.c'
source_filename = "/tmp/tmp3t7a_pll.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @integrate_three_rk4(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, double noundef %4, i32 noundef %5, i32 noundef %6) #0 {
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca double, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca [3 x double], align 16
%21 = alloca [3 x double], align 16
%22 = alloca [3 x double], align 16
%23 = alloca [3 x double], align 16
%24 = alloca [3 x double], align 16
%25 = alloca [3 x double], align 16
store ptr %0, ptr %8, align 8
store ptr %1, ptr %9, align 8
store ptr %2, ptr %10, align 8
store ptr %3, ptr %11, align 8
store double %4, ptr %12, align 8
store i32 %5, ptr %13, align 4
store i32 %6, ptr %14, align 4
%26 = load double, ptr %12, align 8
%27 = fdiv double %26, 2.000000e+00
store double %27, ptr %18, align 8
%28 = load double, ptr %12, align 8
%29 = fdiv double %28, 6.000000e+00
store double %29, ptr %19, align 8
store i32 0, ptr %16, align 4
br label %30
30: ; preds = %44, %7
%31 = load i32, ptr %16, align 4
%32 = icmp ult i32 %31, 3
br i1 %32, label %33, label %47
33: ; preds = %30
%34 = load ptr, ptr %8, align 8
%35 = load i32, ptr %16, align 4
%36 = mul i32 %35, 1
%37 = zext i32 %36 to i64
%38 = getelementptr inbounds double, ptr %34, i64 %37
%39 = load double, ptr %38, align 8
%40 = load ptr, ptr %11, align 8
%41 = load i32, ptr %16, align 4
%42 = zext i32 %41 to i64
%43 = getelementptr inbounds double, ptr %40, i64 %42
store double %39, ptr %43, align 8
br label %44
44: ; preds = %33
%45 = load i32, ptr %16, align 4
%46 = add i32 %45, 1
store i32 %46, ptr %16, align 4
br label %30, !llvm.loop !6
47: ; preds = %30
store i32 1, ptr %15, align 4
br label %48
48: ; preds = %217, %47
%49 = load i32, ptr %15, align 4
%50 = load i32, ptr %13, align 4
%51 = icmp ult i32 %49, %50
br i1 %51, label %52, label %220
52: ; preds = %48
store i32 0, ptr %16, align 4
br label %53
53: ; preds = %192, %52
%54 = load i32, ptr %16, align 4
%55 = load i32, ptr %14, align 4
%56 = icmp ult i32 %54, %55
br i1 %56, label %57, label %195
57: ; preds = %53
%58 = load ptr, ptr %8, align 8
%59 = getelementptr inbounds [3 x double], ptr %22, i64 0, i64 0
%60 = load ptr, ptr %9, align 8
%61 = load ptr, ptr %10, align 8
%62 = call i32 @derivs_three(ptr noundef %58, ptr noundef %59, ptr noundef %60, ptr noundef %61)
store i32 0, ptr %17, align 4
br label %63
63: ; preds = %81, %57
%64 = load i32, ptr %17, align 4
%65 = icmp ult i32 %64, 3
br i1 %65, label %66, label %84
66: ; preds = %63
%67 = load ptr, ptr %8, align 8
%68 = load i32, ptr %17, align 4
%69 = zext i32 %68 to i64
%70 = getelementptr inbounds double, ptr %67, i64 %69
%71 = load double, ptr %70, align 8
%72 = load i32, ptr %17, align 4
%73 = zext i32 %72 to i64
%74 = getelementptr inbounds [3 x double], ptr %22, i64 0, i64 %73
%75 = load double, ptr %74, align 8
%76 = load double, ptr %18, align 8
%77 = call double @llvm.fmuladd.f64(double %75, double %76, double %71)
%78 = load i32, ptr %17, align 4
%79 = zext i32 %78 to i64
%80 = getelementptr inbounds [3 x double], ptr %20, i64 0, i64 %79
store double %77, ptr %80, align 8
br label %81
81: ; preds = %66
%82 = load i32, ptr %17, align 4
%83 = add i32 %82, 1
store i32 %83, ptr %17, align 4
br label %63, !llvm.loop !8
84: ; preds = %63
%85 = getelementptr inbounds [3 x double], ptr %20, i64 0, i64 0
%86 = getelementptr inbounds [3 x double], ptr %23, i64 0, i64 0
%87 = load ptr, ptr %9, align 8
%88 = load ptr, ptr %10, align 8
%89 = call i32 @derivs_three(ptr noundef %85, ptr noundef %86, ptr noundef %87, ptr noundef %88)
store i32 0, ptr %17, align 4
br label %90
90: ; preds = %108, %84
%91 = load i32, ptr %17, align 4
%92 = icmp ult i32 %91, 3
br i1 %92, label %93, label %111
93: ; preds = %90
%94 = load ptr, ptr %8, align 8
%95 = load i32, ptr %17, align 4
%96 = zext i32 %95 to i64
%97 = getelementptr inbounds double, ptr %94, i64 %96
%98 = load double, ptr %97, align 8
%99 = load i32, ptr %17, align 4
%100 = zext i32 %99 to i64
%101 = getelementptr inbounds [3 x double], ptr %23, i64 0, i64 %100
%102 = load double, ptr %101, align 8
%103 = load double, ptr %18, align 8
%104 = call double @llvm.fmuladd.f64(double %102, double %103, double %98)
%105 = load i32, ptr %17, align 4
%106 = zext i32 %105 to i64
%107 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 %106
store double %104, ptr %107, align 8
br label %108
108: ; preds = %93
%109 = load i32, ptr %17, align 4
%110 = add i32 %109, 1
store i32 %110, ptr %17, align 4
br label %90, !llvm.loop !9
111: ; preds = %90
%112 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 0
%113 = getelementptr inbounds [3 x double], ptr %24, i64 0, i64 0
%114 = load ptr, ptr %9, align 8
%115 = load ptr, ptr %10, align 8
%116 = call i32 @derivs_three(ptr noundef %112, ptr noundef %113, ptr noundef %114, ptr noundef %115)
store i32 0, ptr %17, align 4
br label %117
117: ; preds = %135, %111
%118 = load i32, ptr %17, align 4
%119 = icmp ult i32 %118, 3
br i1 %119, label %120, label %138
120: ; preds = %117
%121 = load ptr, ptr %8, align 8
%122 = load i32, ptr %17, align 4
%123 = zext i32 %122 to i64
%124 = getelementptr inbounds double, ptr %121, i64 %123
%125 = load double, ptr %124, align 8
%126 = load i32, ptr %17, align 4
%127 = zext i32 %126 to i64
%128 = getelementptr inbounds [3 x double], ptr %24, i64 0, i64 %127
%129 = load double, ptr %128, align 8
%130 = load double, ptr %12, align 8
%131 = call double @llvm.fmuladd.f64(double %129, double %130, double %125)
%132 = load i32, ptr %17, align 4
%133 = zext i32 %132 to i64
%134 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 %133
store double %131, ptr %134, align 8
br label %135
135: ; preds = %120
%136 = load i32, ptr %17, align 4
%137 = add i32 %136, 1
store i32 %137, ptr %17, align 4
br label %117, !llvm.loop !10
138: ; preds = %117
%139 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 0
%140 = getelementptr inbounds [3 x double], ptr %25, i64 0, i64 0
%141 = load ptr, ptr %9, align 8
%142 = load ptr, ptr %10, align 8
%143 = call i32 @derivs_three(ptr noundef %139, ptr noundef %140, ptr noundef %141, ptr noundef %142)
store i32 0, ptr %17, align 4
br label %144
144: ; preds = %188, %138
%145 = load i32, ptr %17, align 4
%146 = icmp ult i32 %145, 3
br i1 %146, label %147, label %191
147: ; preds = %144
%148 = load double, ptr %19, align 8
%149 = load i32, ptr %17, align 4
%150 = zext i32 %149 to i64
%151 = getelementptr inbounds [3 x double], ptr %22, i64 0, i64 %150
%152 = load double, ptr %151, align 8
%153 = load i32, ptr %17, align 4
%154 = zext i32 %153 to i64
%155 = getelementptr inbounds [3 x double], ptr %23, i64 0, i64 %154
%156 = load double, ptr %155, align 8
%157 = load i32, ptr %17, align 4
%158 = zext i32 %157 to i64
%159 = getelementptr inbounds [3 x double], ptr %24, i64 0, i64 %158
%160 = load double, ptr %159, align 8
%161 = fadd double %156, %160
%162 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %161, double %152)
%163 = load i32, ptr %17, align 4
%164 = zext i32 %163 to i64
%165 = getelementptr inbounds [3 x double], ptr %25, i64 0, i64 %164
%166 = load double, ptr %165, align 8
%167 = fadd double %162, %166
%168 = load ptr, ptr %8, align 8
%169 = load i32, ptr %17, align 4
%170 = zext i32 %169 to i64
%171 = getelementptr inbounds double, ptr %168, i64 %170
%172 = load double, ptr %171, align 8
%173 = call double @llvm.fmuladd.f64(double %148, double %167, double %172)
store double %173, ptr %171, align 8
%174 = load ptr, ptr %8, align 8
%175 = load i32, ptr %17, align 4
%176 = zext i32 %175 to i64
%177 = getelementptr inbounds double, ptr %174, i64 %176
%178 = load double, ptr %177, align 8
%179 = load i32, ptr @M_PI, align 4
%180 = sitofp i32 %179 to double
%181 = fmul double 2.000000e+00, %180
%182 = fptosi double %181 to i32
%183 = call double @fmod(double noundef %178, i32 noundef %182)
%184 = load ptr, ptr %8, align 8
%185 = load i32, ptr %17, align 4
%186 = zext i32 %185 to i64
%187 = getelementptr inbounds double, ptr %184, i64 %186
store double %183, ptr %187, align 8
br label %188
188: ; preds = %147
%189 = load i32, ptr %17, align 4
%190 = add i32 %189, 1
store i32 %190, ptr %17, align 4
br label %144, !llvm.loop !11
191: ; preds = %144
br label %192
192: ; preds = %191
%193 = load i32, ptr %16, align 4
%194 = add i32 %193, 1
store i32 %194, ptr %16, align 4
br label %53, !llvm.loop !12
195: ; preds = %53
store i32 0, ptr %16, align 4
br label %196
196: ; preds = %213, %195
%197 = load i32, ptr %16, align 4
%198 = icmp ult i32 %197, 3
br i1 %198, label %199, label %216
199: ; preds = %196
%200 = load ptr, ptr %8, align 8
%201 = load i32, ptr %16, align 4
%202 = mul i32 %201, 1
%203 = zext i32 %202 to i64
%204 = getelementptr inbounds double, ptr %200, i64 %203
%205 = load double, ptr %204, align 8
%206 = load ptr, ptr %11, align 8
%207 = load i32, ptr %15, align 4
%208 = mul i32 3, %207
%209 = load i32, ptr %16, align 4
%210 = add i32 %208, %209
%211 = zext i32 %210 to i64
%212 = getelementptr inbounds double, ptr %206, i64 %211
store double %205, ptr %212, align 8
br label %213
213: ; preds = %199
%214 = load i32, ptr %16, align 4
%215 = add i32 %214, 1
store i32 %215, ptr %16, align 4
br label %196, !llvm.loop !13
216: ; preds = %196
br label %217
217: ; preds = %216
%218 = load i32, ptr %15, align 4
%219 = add i32 %218, 1
store i32 %219, ptr %15, align 4
br label %48, !llvm.loop !14
220: ; preds = %48
ret void
}
declare i32 @derivs_three(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare double @fmod(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" }
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}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3t7a_pll.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @integrate_three_rk4(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, double noundef %4, i32 noundef %5, i32 noundef %6) #0 {
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca double, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca [3 x double], align 16
%21 = alloca [3 x double], align 16
%22 = alloca [3 x double], align 16
%23 = alloca [3 x double], align 16
%24 = alloca [3 x double], align 16
%25 = alloca [3 x double], align 16
store ptr %0, ptr %8, align 8
store ptr %1, ptr %9, align 8
store ptr %2, ptr %10, align 8
store ptr %3, ptr %11, align 8
store double %4, ptr %12, align 8
store i32 %5, ptr %13, align 4
store i32 %6, ptr %14, align 4
%26 = load double, ptr %12, align 8
%27 = fdiv double %26, 2.000000e+00
store double %27, ptr %18, align 8
%28 = load double, ptr %12, align 8
%29 = fdiv double %28, 6.000000e+00
store double %29, ptr %19, align 8
store i32 0, ptr %16, align 4
%30 = load i32, ptr %16, align 4
%31 = icmp ult i32 %30, 3
br i1 %31, label %.lr.ph, label %48
.lr.ph: ; preds = %7
br label %32
32: ; preds = %.lr.ph, %43
%33 = load ptr, ptr %8, align 8
%34 = load i32, ptr %16, align 4
%35 = mul i32 %34, 1
%36 = zext i32 %35 to i64
%37 = getelementptr inbounds double, ptr %33, i64 %36
%38 = load double, ptr %37, align 8
%39 = load ptr, ptr %11, align 8
%40 = load i32, ptr %16, align 4
%41 = zext i32 %40 to i64
%42 = getelementptr inbounds double, ptr %39, i64 %41
store double %38, ptr %42, align 8
br label %43
43: ; preds = %32
%44 = load i32, ptr %16, align 4
%45 = add i32 %44, 1
store i32 %45, ptr %16, align 4
%46 = load i32, ptr %16, align 4
%47 = icmp ult i32 %46, 3
br i1 %47, label %32, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %43
br label %48
48: ; preds = %._crit_edge, %7
store i32 1, ptr %15, align 4
%49 = load i32, ptr %15, align 4
%50 = load i32, ptr %13, align 4
%51 = icmp ult i32 %49, %50
br i1 %51, label %.lr.ph20, label %230
.lr.ph20: ; preds = %48
br label %52
52: ; preds = %.lr.ph20, %224
store i32 0, ptr %16, align 4
%53 = load i32, ptr %16, align 4
%54 = load i32, ptr %14, align 4
%55 = icmp ult i32 %53, %54
br i1 %55, label %.lr.ph14, label %201
.lr.ph14: ; preds = %52
br label %56
56: ; preds = %.lr.ph14, %195
%57 = load ptr, ptr %8, align 8
%58 = getelementptr inbounds [3 x double], ptr %22, i64 0, i64 0
%59 = load ptr, ptr %9, align 8
%60 = load ptr, ptr %10, align 8
%61 = call i32 @derivs_three(ptr noundef %57, ptr noundef %58, ptr noundef %59, ptr noundef %60)
store i32 0, ptr %17, align 4
%62 = load i32, ptr %17, align 4
%63 = icmp ult i32 %62, 3
br i1 %63, label %.lr.ph2, label %84
.lr.ph2: ; preds = %56
br label %64
64: ; preds = %.lr.ph2, %79
%65 = load ptr, ptr %8, align 8
%66 = load i32, ptr %17, align 4
%67 = zext i32 %66 to i64
%68 = getelementptr inbounds double, ptr %65, i64 %67
%69 = load double, ptr %68, align 8
%70 = load i32, ptr %17, align 4
%71 = zext i32 %70 to i64
%72 = getelementptr inbounds [3 x double], ptr %22, i64 0, i64 %71
%73 = load double, ptr %72, align 8
%74 = load double, ptr %18, align 8
%75 = call double @llvm.fmuladd.f64(double %73, double %74, double %69)
%76 = load i32, ptr %17, align 4
%77 = zext i32 %76 to i64
%78 = getelementptr inbounds [3 x double], ptr %20, i64 0, i64 %77
store double %75, ptr %78, align 8
br label %79
79: ; preds = %64
%80 = load i32, ptr %17, align 4
%81 = add i32 %80, 1
store i32 %81, ptr %17, align 4
%82 = load i32, ptr %17, align 4
%83 = icmp ult i32 %82, 3
br i1 %83, label %64, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %79
br label %84
84: ; preds = %._crit_edge3, %56
%85 = getelementptr inbounds [3 x double], ptr %20, i64 0, i64 0
%86 = getelementptr inbounds [3 x double], ptr %23, i64 0, i64 0
%87 = load ptr, ptr %9, align 8
%88 = load ptr, ptr %10, align 8
%89 = call i32 @derivs_three(ptr noundef %85, ptr noundef %86, ptr noundef %87, ptr noundef %88)
store i32 0, ptr %17, align 4
%90 = load i32, ptr %17, align 4
%91 = icmp ult i32 %90, 3
br i1 %91, label %.lr.ph5, label %112
.lr.ph5: ; preds = %84
br label %92
92: ; preds = %.lr.ph5, %107
%93 = load ptr, ptr %8, align 8
%94 = load i32, ptr %17, align 4
%95 = zext i32 %94 to i64
%96 = getelementptr inbounds double, ptr %93, i64 %95
%97 = load double, ptr %96, align 8
%98 = load i32, ptr %17, align 4
%99 = zext i32 %98 to i64
%100 = getelementptr inbounds [3 x double], ptr %23, i64 0, i64 %99
%101 = load double, ptr %100, align 8
%102 = load double, ptr %18, align 8
%103 = call double @llvm.fmuladd.f64(double %101, double %102, double %97)
%104 = load i32, ptr %17, align 4
%105 = zext i32 %104 to i64
%106 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 %105
store double %103, ptr %106, align 8
br label %107
107: ; preds = %92
%108 = load i32, ptr %17, align 4
%109 = add i32 %108, 1
store i32 %109, ptr %17, align 4
%110 = load i32, ptr %17, align 4
%111 = icmp ult i32 %110, 3
br i1 %111, label %92, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %107
br label %112
112: ; preds = %._crit_edge6, %84
%113 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 0
%114 = getelementptr inbounds [3 x double], ptr %24, i64 0, i64 0
%115 = load ptr, ptr %9, align 8
%116 = load ptr, ptr %10, align 8
%117 = call i32 @derivs_three(ptr noundef %113, ptr noundef %114, ptr noundef %115, ptr noundef %116)
store i32 0, ptr %17, align 4
%118 = load i32, ptr %17, align 4
%119 = icmp ult i32 %118, 3
br i1 %119, label %.lr.ph8, label %140
.lr.ph8: ; preds = %112
br label %120
120: ; preds = %.lr.ph8, %135
%121 = load ptr, ptr %8, align 8
%122 = load i32, ptr %17, align 4
%123 = zext i32 %122 to i64
%124 = getelementptr inbounds double, ptr %121, i64 %123
%125 = load double, ptr %124, align 8
%126 = load i32, ptr %17, align 4
%127 = zext i32 %126 to i64
%128 = getelementptr inbounds [3 x double], ptr %24, i64 0, i64 %127
%129 = load double, ptr %128, align 8
%130 = load double, ptr %12, align 8
%131 = call double @llvm.fmuladd.f64(double %129, double %130, double %125)
%132 = load i32, ptr %17, align 4
%133 = zext i32 %132 to i64
%134 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 %133
store double %131, ptr %134, align 8
br label %135
135: ; preds = %120
%136 = load i32, ptr %17, align 4
%137 = add i32 %136, 1
store i32 %137, ptr %17, align 4
%138 = load i32, ptr %17, align 4
%139 = icmp ult i32 %138, 3
br i1 %139, label %120, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %135
br label %140
140: ; preds = %._crit_edge9, %112
%141 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 0
%142 = getelementptr inbounds [3 x double], ptr %25, i64 0, i64 0
%143 = load ptr, ptr %9, align 8
%144 = load ptr, ptr %10, align 8
%145 = call i32 @derivs_three(ptr noundef %141, ptr noundef %142, ptr noundef %143, ptr noundef %144)
store i32 0, ptr %17, align 4
%146 = load i32, ptr %17, align 4
%147 = icmp ult i32 %146, 3
br i1 %147, label %.lr.ph11, label %194
.lr.ph11: ; preds = %140
br label %148
148: ; preds = %.lr.ph11, %189
%149 = load double, ptr %19, align 8
%150 = load i32, ptr %17, align 4
%151 = zext i32 %150 to i64
%152 = getelementptr inbounds [3 x double], ptr %22, i64 0, i64 %151
%153 = load double, ptr %152, align 8
%154 = load i32, ptr %17, align 4
%155 = zext i32 %154 to i64
%156 = getelementptr inbounds [3 x double], ptr %23, i64 0, i64 %155
%157 = load double, ptr %156, align 8
%158 = load i32, ptr %17, align 4
%159 = zext i32 %158 to i64
%160 = getelementptr inbounds [3 x double], ptr %24, i64 0, i64 %159
%161 = load double, ptr %160, align 8
%162 = fadd double %157, %161
%163 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %162, double %153)
%164 = load i32, ptr %17, align 4
%165 = zext i32 %164 to i64
%166 = getelementptr inbounds [3 x double], ptr %25, i64 0, i64 %165
%167 = load double, ptr %166, align 8
%168 = fadd double %163, %167
%169 = load ptr, ptr %8, align 8
%170 = load i32, ptr %17, align 4
%171 = zext i32 %170 to i64
%172 = getelementptr inbounds double, ptr %169, i64 %171
%173 = load double, ptr %172, align 8
%174 = call double @llvm.fmuladd.f64(double %149, double %168, double %173)
store double %174, ptr %172, align 8
%175 = load ptr, ptr %8, align 8
%176 = load i32, ptr %17, align 4
%177 = zext i32 %176 to i64
%178 = getelementptr inbounds double, ptr %175, i64 %177
%179 = load double, ptr %178, align 8
%180 = load i32, ptr @M_PI, align 4
%181 = sitofp i32 %180 to double
%182 = fmul double 2.000000e+00, %181
%183 = fptosi double %182 to i32
%184 = call double @fmod(double noundef %179, i32 noundef %183)
%185 = load ptr, ptr %8, align 8
%186 = load i32, ptr %17, align 4
%187 = zext i32 %186 to i64
%188 = getelementptr inbounds double, ptr %185, i64 %187
store double %184, ptr %188, align 8
br label %189
189: ; preds = %148
%190 = load i32, ptr %17, align 4
%191 = add i32 %190, 1
store i32 %191, ptr %17, align 4
%192 = load i32, ptr %17, align 4
%193 = icmp ult i32 %192, 3
br i1 %193, label %148, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %189
br label %194
194: ; preds = %._crit_edge12, %140
br label %195
195: ; preds = %194
%196 = load i32, ptr %16, align 4
%197 = add i32 %196, 1
store i32 %197, ptr %16, align 4
%198 = load i32, ptr %16, align 4
%199 = load i32, ptr %14, align 4
%200 = icmp ult i32 %198, %199
br i1 %200, label %56, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %195
br label %201
201: ; preds = %._crit_edge15, %52
store i32 0, ptr %16, align 4
%202 = load i32, ptr %16, align 4
%203 = icmp ult i32 %202, 3
br i1 %203, label %.lr.ph17, label %223
.lr.ph17: ; preds = %201
br label %204
204: ; preds = %.lr.ph17, %218
%205 = load ptr, ptr %8, align 8
%206 = load i32, ptr %16, align 4
%207 = mul i32 %206, 1
%208 = zext i32 %207 to i64
%209 = getelementptr inbounds double, ptr %205, i64 %208
%210 = load double, ptr %209, align 8
%211 = load ptr, ptr %11, align 8
%212 = load i32, ptr %15, align 4
%213 = mul i32 3, %212
%214 = load i32, ptr %16, align 4
%215 = add i32 %213, %214
%216 = zext i32 %215 to i64
%217 = getelementptr inbounds double, ptr %211, i64 %216
store double %210, ptr %217, align 8
br label %218
218: ; preds = %204
%219 = load i32, ptr %16, align 4
%220 = add i32 %219, 1
store i32 %220, ptr %16, align 4
%221 = load i32, ptr %16, align 4
%222 = icmp ult i32 %221, 3
br i1 %222, label %204, label %._crit_edge18, !llvm.loop !13
._crit_edge18: ; preds = %218
br label %223
223: ; preds = %._crit_edge18, %201
br label %224
224: ; preds = %223
%225 = load i32, ptr %15, align 4
%226 = add i32 %225, 1
store i32 %226, ptr %15, align 4
%227 = load i32, ptr %15, align 4
%228 = load i32, ptr %13, align 4
%229 = icmp ult i32 %227, %228
br i1 %229, label %52, label %._crit_edge21, !llvm.loop !14
._crit_edge21: ; preds = %224
br label %230
230: ; preds = %._crit_edge21, %48
ret void
}
declare i32 @derivs_three(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare double @fmod(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" }
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}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
|
; ModuleID = '/tmp/tmpdoe5x9y8.c'
source_filename = "/tmp/tmpdoe5x9y8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @do_calc(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %3, align 4
%7 = load i32, ptr %4, align 4
%8 = mul nsw i32 %6, %7
store i32 %8, ptr %5, align 4
%9 = load i32, ptr %3, align 4
%10 = load i32, ptr %5, align 4
%11 = call i32 @do_multi(i32 noundef %9, i32 noundef %10)
ret i32 %11
}
declare i32 @do_multi(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/tmpdoe5x9y8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @do_calc(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %3, align 4
%7 = load i32, ptr %4, align 4
%8 = mul nsw i32 %6, %7
store i32 %8, ptr %5, align 4
%9 = load i32, ptr %3, align 4
%10 = load i32, ptr %5, align 4
%11 = call i32 @do_multi(i32 noundef %9, i32 noundef %10)
ret i32 %11
}
declare i32 @do_multi(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/tmpp970pyij.c'
source_filename = "/tmp/tmpp970pyij.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@NormalizeAnchor.Normalized = internal global [17 x i8] zeroinitializer, align 16
@NormalizeAnchor.EndPoint = internal global ptr getelementptr (i8, ptr @NormalizeAnchor.Normalized, i64 16), align 8
@.str = private unnamed_addr constant [5 x i8] c"%02X\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @NormalizeAnchor(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store ptr @NormalizeAnchor.Normalized, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
store i8 0, ptr %4, align 1
br label %5
5: ; preds = %21, %1
%6 = load ptr, ptr %2, align 8
%7 = load i8, ptr %6, align 1
%8 = sext i8 %7 to i32
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %5
%11 = load ptr, ptr %3, align 8
%12 = load ptr, ptr @NormalizeAnchor.EndPoint, align 8
%13 = icmp ult ptr %11, %12
br label %14
14: ; preds = %10, %5
%15 = phi i1 [ false, %5 ], [ %13, %10 ]
br i1 %15, label %16, label %26
16: ; preds = %14
%17 = load ptr, ptr %3, align 8
%18 = load ptr, ptr %2, align 8
%19 = load i8, ptr %18, align 1
%20 = call i32 @sprintf(ptr noundef %17, ptr noundef @.str, i8 noundef signext %19)
br label %21
21: ; preds = %16
%22 = load ptr, ptr %3, align 8
%23 = getelementptr inbounds i8, ptr %22, i64 2
store ptr %23, ptr %3, align 8
%24 = load ptr, ptr %2, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %2, align 8
br label %5, !llvm.loop !6
26: ; preds = %14
ret ptr @NormalizeAnchor.Normalized
}
declare i32 @sprintf(ptr noundef, 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp970pyij.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@NormalizeAnchor.Normalized = internal global [17 x i8] zeroinitializer, align 16
@NormalizeAnchor.EndPoint = internal global ptr getelementptr (i8, ptr @NormalizeAnchor.Normalized, i64 16), align 8
@.str = private unnamed_addr constant [5 x i8] c"%02X\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @NormalizeAnchor(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store ptr @NormalizeAnchor.Normalized, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
store i8 0, ptr %4, align 1
br label %5
5: ; preds = %21, %1
%6 = load ptr, ptr %2, align 8
%7 = load i8, ptr %6, align 1
%8 = sext i8 %7 to i32
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %5
%11 = load ptr, ptr %3, align 8
%12 = load ptr, ptr @NormalizeAnchor.EndPoint, align 8
%13 = icmp ult ptr %11, %12
br label %14
14: ; preds = %10, %5
%15 = phi i1 [ false, %5 ], [ %13, %10 ]
br i1 %15, label %16, label %26
16: ; preds = %14
%17 = load ptr, ptr %3, align 8
%18 = load ptr, ptr %2, align 8
%19 = load i8, ptr %18, align 1
%20 = call i32 @sprintf(ptr noundef %17, ptr noundef @.str, i8 noundef signext %19)
br label %21
21: ; preds = %16
%22 = load ptr, ptr %3, align 8
%23 = getelementptr inbounds i8, ptr %22, i64 2
store ptr %23, ptr %3, align 8
%24 = load ptr, ptr %2, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %2, align 8
br label %5, !llvm.loop !6
26: ; preds = %14
ret ptr @NormalizeAnchor.Normalized
}
declare i32 @sprintf(ptr noundef, 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp_ed08ovm.c'
source_filename = "/tmp/tmp_ed08ovm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @main() #0 {
%1 = alloca i64, align 8
%2 = alloca i64, align 8
%3 = alloca i64, align 8
store i64 809, ptr %1, align 8
store i64 10, ptr %3, align 8
br label %4
4: ; preds = %24, %0
%5 = load i64, ptr %3, align 8
%6 = icmp slt i64 %5, 100
br i1 %6, label %7, label %27
7: ; preds = %4
%8 = load i64, ptr %3, align 8
%9 = load i64, ptr %1, align 8
%10 = mul nsw i64 %8, %9
%11 = add nsw i64 %10, 1
store i64 %11, ptr %2, align 8
%12 = load i64, ptr %3, align 8
%13 = mul nsw i64 8, %12
%14 = icmp slt i64 %13, 100
br i1 %14, label %15, label %23
15: ; preds = %7
%16 = load i64, ptr %3, align 8
%17 = mul nsw i64 9, %16
%18 = icmp sge i64 %17, 100
br i1 %18, label %19, label %23
19: ; preds = %15
%20 = load i64, ptr %2, align 8
%21 = load i64, ptr %3, align 8
%22 = call i32 @output(i64 noundef %20, i64 noundef %21)
br label %23
23: ; preds = %19, %15, %7
br label %24
24: ; preds = %23
%25 = load i64, ptr %3, align 8
%26 = add nsw i64 %25, 1
store i64 %26, ptr %3, align 8
br label %4, !llvm.loop !6
27: ; preds = %4
ret void
}
declare i32 @output(i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_ed08ovm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @main() #0 {
%1 = alloca i64, align 8
%2 = alloca i64, align 8
%3 = alloca i64, align 8
store i64 809, ptr %1, align 8
store i64 10, ptr %3, align 8
%4 = load i64, ptr %3, align 8
%5 = icmp slt i64 %4, 100
br i1 %5, label %.lr.ph, label %28
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %23
%7 = load i64, ptr %3, align 8
%8 = load i64, ptr %1, align 8
%9 = mul nsw i64 %7, %8
%10 = add nsw i64 %9, 1
store i64 %10, ptr %2, align 8
%11 = load i64, ptr %3, align 8
%12 = mul nsw i64 8, %11
%13 = icmp slt i64 %12, 100
br i1 %13, label %14, label %22
14: ; preds = %6
%15 = load i64, ptr %3, align 8
%16 = mul nsw i64 9, %15
%17 = icmp sge i64 %16, 100
br i1 %17, label %18, label %22
18: ; preds = %14
%19 = load i64, ptr %2, align 8
%20 = load i64, ptr %3, align 8
%21 = call i32 @output(i64 noundef %19, i64 noundef %20)
br label %22
22: ; preds = %18, %14, %6
br label %23
23: ; preds = %22
%24 = load i64, ptr %3, align 8
%25 = add nsw i64 %24, 1
store i64 %25, ptr %3, align 8
%26 = load i64, ptr %3, align 8
%27 = icmp slt i64 %26, 100
br i1 %27, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %28
28: ; preds = %._crit_edge, %0
ret void
}
declare i32 @output(i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpmmb_0ars.c'
source_filename = "/tmp/tmpmmb_0ars.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @reaper() #0 {
%1 = call i32 (...) @cleanup()
%2 = call i32 @exit(i32 noundef 2) #3
unreachable
}
declare i32 @cleanup(...) #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/tmpmmb_0ars.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @reaper() #0 {
%1 = call i32 (...) @cleanup()
%2 = call i32 @exit(i32 noundef 2) #3
unreachable
}
declare i32 @cleanup(...) #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/tmp8iacjoib.c'
source_filename = "/tmp/tmp8iacjoib.c"
target datalayout = "e-m:e-p270: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/tmp8iacjoib.c"
target datalayout = "e-m:e-p270: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/tmpvapvpr7c.c'
source_filename = "/tmp/tmpvapvpr7c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sortPointers(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %6, align 8
%9 = load i32, ptr %5, align 4
%10 = sub nsw i32 %9, 1
%11 = call i32 @mediansort(ptr noundef %7, ptr noundef %8, i32 noundef 0, i32 noundef %10)
ret void
}
declare i32 @mediansort(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvapvpr7c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sortPointers(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %6, align 8
%9 = load i32, ptr %5, align 4
%10 = sub nsw i32 %9, 1
%11 = call i32 @mediansort(ptr noundef %7, ptr noundef %8, i32 noundef 0, i32 noundef %10)
ret void
}
declare i32 @mediansort(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpo4_f1qux.c'
source_filename = "/tmp/tmpo4_f1qux.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bs_radix(ptr noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, 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
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i64 2, ptr %8, align 8
%12 = load i64, ptr %6, align 8
store i64 %12, ptr %9, align 8
br label %13
13: ; preds = %47, %27, %3
%14 = load i64, ptr %8, align 8
%15 = load i64, ptr %9, align 8
%16 = icmp sle i64 %14, %15
br i1 %16, label %17, label %48
17: ; preds = %13
%18 = load i64, ptr %8, align 8
%19 = load i64, ptr %9, align 8
%20 = add nsw i64 %18, %19
%21 = sdiv i64 %20, 2
store i64 %21, ptr %10, align 8
%22 = load ptr, ptr %5, align 8
%23 = load i64, ptr %10, align 8
%24 = call i64 @str_to_val(ptr noundef %22, i64 noundef %23)
store i64 %24, ptr %11, align 8
%25 = load i64, ptr %11, align 8
%26 = icmp eq i64 %25, -1
br i1 %26, label %27, label %30
27: ; preds = %17
%28 = load i64, ptr %10, align 8
%29 = add nsw i64 %28, 1
store i64 %29, ptr %8, align 8
br label %13, !llvm.loop !6
30: ; preds = %17
%31 = load i64, ptr %11, align 8
%32 = load i64, ptr %7, align 8
%33 = icmp eq i64 %31, %32
br i1 %33, label %34, label %36
34: ; preds = %30
%35 = load i64, ptr %10, align 8
store i64 %35, ptr %4, align 8
br label %49
36: ; preds = %30
%37 = load i64, ptr %11, align 8
%38 = load i64, ptr %7, align 8
%39 = icmp slt i64 %37, %38
br i1 %39, label %40, label %43
40: ; preds = %36
%41 = load i64, ptr %10, align 8
%42 = add nsw i64 %41, 1
store i64 %42, ptr %8, align 8
br label %46
43: ; preds = %36
%44 = load i64, ptr %10, align 8
%45 = sub nsw i64 %44, 1
store i64 %45, ptr %9, align 8
br label %46
46: ; preds = %43, %40
br label %47
47: ; preds = %46
br label %13, !llvm.loop !6
48: ; preds = %13
store i64 -1, ptr %4, align 8
br label %49
49: ; preds = %48, %34
%50 = load i64, ptr %4, align 8
ret i64 %50
}
declare i64 @str_to_val(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo4_f1qux.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bs_radix(ptr noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, 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
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i64 2, ptr %8, align 8
%12 = load i64, ptr %6, align 8
store i64 %12, ptr %9, align 8
%13 = load i64, ptr %8, align 8
%14 = load i64, ptr %9, align 8
%15 = icmp sle i64 %13, %14
br i1 %15, label %.lr.ph, label %50
.lr.ph: ; preds = %3
br label %16
16: ; preds = %.lr.ph, %.backedge
%17 = load i64, ptr %8, align 8
%18 = load i64, ptr %9, align 8
%19 = add nsw i64 %17, %18
%20 = sdiv i64 %19, 2
store i64 %20, ptr %10, align 8
%21 = load ptr, ptr %5, align 8
%22 = load i64, ptr %10, align 8
%23 = call i64 @str_to_val(ptr noundef %21, i64 noundef %22)
store i64 %23, ptr %11, align 8
%24 = load i64, ptr %11, align 8
%25 = icmp eq i64 %24, -1
br i1 %25, label %26, label %32
26: ; preds = %16
%27 = load i64, ptr %10, align 8
%28 = add nsw i64 %27, 1
store i64 %28, ptr %8, align 8
br label %.backedge
.backedge: ; preds = %26, %49
%29 = load i64, ptr %8, align 8
%30 = load i64, ptr %9, align 8
%31 = icmp sle i64 %29, %30
br i1 %31, label %16, label %._crit_edge, !llvm.loop !6
32: ; preds = %16
%33 = load i64, ptr %11, align 8
%34 = load i64, ptr %7, align 8
%35 = icmp eq i64 %33, %34
br i1 %35, label %36, label %38
36: ; preds = %32
%37 = load i64, ptr %10, align 8
store i64 %37, ptr %4, align 8
br label %51
38: ; preds = %32
%39 = load i64, ptr %11, align 8
%40 = load i64, ptr %7, align 8
%41 = icmp slt i64 %39, %40
br i1 %41, label %42, label %45
42: ; preds = %38
%43 = load i64, ptr %10, align 8
%44 = add nsw i64 %43, 1
store i64 %44, ptr %8, align 8
br label %48
45: ; preds = %38
%46 = load i64, ptr %10, align 8
%47 = sub nsw i64 %46, 1
store i64 %47, ptr %9, align 8
br label %48
48: ; preds = %45, %42
br label %49
49: ; preds = %48
br label %.backedge
._crit_edge: ; preds = %.backedge
br label %50
50: ; preds = %._crit_edge, %3
store i64 -1, ptr %4, align 8
br label %51
51: ; preds = %50, %36
%52 = load i64, ptr %4, align 8
ret i64 %52
}
declare i64 @str_to_val(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpt3gxp059.c'
source_filename = "/tmp/tmpt3gxp059.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wcscpy(ptr noalias noundef %0, ptr noalias noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i64 @wcslen(ptr noundef %7)
%9 = add nsw i64 %8, 1
%10 = call ptr @wmemcpy(ptr noundef %5, ptr noundef %6, i64 noundef %9)
ret ptr %10
}
declare ptr @wmemcpy(ptr noundef, ptr noundef, i64 noundef) #1
declare i64 @wcslen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt3gxp059.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wcscpy(ptr noalias noundef %0, ptr noalias noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i64 @wcslen(ptr noundef %7)
%9 = add nsw i64 %8, 1
%10 = call ptr @wmemcpy(ptr noundef %5, ptr noundef %6, i64 noundef %9)
ret ptr %10
}
declare ptr @wmemcpy(ptr noundef, ptr noundef, i64 noundef) #1
declare i64 @wcslen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpa6k3zxjb.c'
source_filename = "/tmp/tmpa6k3zxjb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOMEM = dso_local global i32 0, align 4
@O_CLOEXEC = dso_local global i32 0, align 4
@O_NOCTTY = dso_local global i32 0, align 4
@O_NONBLOCK = dso_local global i32 0, align 4
@O_RDONLY = 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/tmpa6k3zxjb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOMEM = dso_local global i32 0, align 4
@O_CLOEXEC = dso_local global i32 0, align 4
@O_NOCTTY = dso_local global i32 0, align 4
@O_NONBLOCK = dso_local global i32 0, align 4
@O_RDONLY = 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/tmps3v1a6em.c'
source_filename = "/tmp/tmps3v1a6em.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.a = private unnamed_addr constant [3 x i32] [i32 1, i32 2, i32 3], align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [3 x i32], align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %2, ptr align 4 @__const.main.a, i64 12, i1 false)
%3 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
%4 = call i32 @foo(ptr noundef %3, i32 noundef 2)
ret i32 %4
}
; 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 @foo(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/tmps3v1a6em.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.a = private unnamed_addr constant [3 x i32] [i32 1, i32 2, i32 3], align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [3 x i32], align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %2, ptr align 4 @__const.main.a, i64 12, i1 false)
%3 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
%4 = call i32 @foo(ptr noundef %3, i32 noundef 2)
ret i32 %4
}
; 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 @foo(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/tmp3qbazdk4.c'
source_filename = "/tmp/tmp3qbazdk4.c"
target datalayout = "e-m:e-p270: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/tmp3qbazdk4.c"
target datalayout = "e-m:e-p270: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/tmp98521vn2.c'
source_filename = "/tmp/tmp98521vn2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @paw_my_erf(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
store double %0, ptr %2, align 8
%4 = load double, ptr %2, align 8
%5 = load double, ptr %2, align 8
%6 = load double, ptr %2, align 8
%7 = load double, ptr %2, align 8
%8 = load double, ptr %2, align 8
%9 = load double, ptr %2, align 8
%10 = call double @llvm.fmuladd.f64(double %9, double 4.306380e-05, double 0x3F3220071442EE6C)
%11 = call double @llvm.fmuladd.f64(double %8, double %10, double 0x3F23ECC0E4E05F94)
%12 = call double @llvm.fmuladd.f64(double %7, double %11, double 0x3F82FC6D19201C06)
%13 = call double @llvm.fmuladd.f64(double %6, double %12, double 0x3FA5A5FCE8133C57)
%14 = call double @llvm.fmuladd.f64(double %5, double %13, double 0x3FB20DCCEB575BC4)
%15 = call double @llvm.fmuladd.f64(double %4, double %14, double 1.000000e+00)
store double %15, ptr %3, align 8
%16 = load double, ptr %3, align 8
%17 = call double @pow(double noundef %16, double noundef 1.600000e+01) #3
%18 = fdiv double 1.000000e+00, %17
store double %18, ptr %3, align 8
%19 = load double, ptr %3, align 8
%20 = fsub double 1.000000e+00, %19
store double %20, ptr %3, align 8
%21 = load double, ptr %3, align 8
ret double %21
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp98521vn2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @paw_my_erf(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
store double %0, ptr %2, align 8
%4 = load double, ptr %2, align 8
%5 = load double, ptr %2, align 8
%6 = load double, ptr %2, align 8
%7 = load double, ptr %2, align 8
%8 = load double, ptr %2, align 8
%9 = load double, ptr %2, align 8
%10 = call double @llvm.fmuladd.f64(double %9, double 4.306380e-05, double 0x3F3220071442EE6C)
%11 = call double @llvm.fmuladd.f64(double %8, double %10, double 0x3F23ECC0E4E05F94)
%12 = call double @llvm.fmuladd.f64(double %7, double %11, double 0x3F82FC6D19201C06)
%13 = call double @llvm.fmuladd.f64(double %6, double %12, double 0x3FA5A5FCE8133C57)
%14 = call double @llvm.fmuladd.f64(double %5, double %13, double 0x3FB20DCCEB575BC4)
%15 = call double @llvm.fmuladd.f64(double %4, double %14, double 1.000000e+00)
store double %15, ptr %3, align 8
%16 = load double, ptr %3, align 8
%17 = call double @pow(double noundef %16, double noundef 1.600000e+01) #3
%18 = fdiv double 1.000000e+00, %17
store double %18, ptr %3, align 8
%19 = load double, ptr %3, align 8
%20 = fsub double 1.000000e+00, %19
store double %20, ptr %3, align 8
%21 = load double, ptr %3, align 8
ret double %21
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1gwrntjk.c'
source_filename = "/tmp/tmp1gwrntjk.c"
target datalayout = "e-m:e-p270: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/tmp1gwrntjk.c"
target datalayout = "e-m:e-p270: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/tmpa0ewf4rc.c'
source_filename = "/tmp/tmpa0ewf4rc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_range(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 = call i32 (...) @rand()
%6 = load i32, ptr %4, align 4
%7 = load i32, ptr %3, align 4
%8 = sub nsw i32 %6, %7
%9 = add nsw i32 %8, 1
%10 = srem i32 %5, %9
%11 = load i32, ptr %3, align 4
%12 = add nsw i32 %10, %11
ret i32 %12
}
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/tmpa0ewf4rc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_range(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 = call i32 (...) @rand()
%6 = load i32, ptr %4, align 4
%7 = load i32, ptr %3, align 4
%8 = sub nsw i32 %6, %7
%9 = add nsw i32 %8, 1
%10 = srem i32 %5, %9
%11 = load i32, ptr %3, align 4
%12 = add nsw i32 %10, %11
ret i32 %12
}
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/tmpj379a3pq.c'
source_filename = "/tmp/tmpj379a3pq.c"
target datalayout = "e-m:e-p270: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/tmpj379a3pq.c"
target datalayout = "e-m:e-p270: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/tmp69v__rxi.c'
source_filename = "/tmp/tmp69v__rxi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@MSG_WAITALL = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @recv_param(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = load i32, ptr @MSG_WAITALL, align 4
%6 = call i32 @recv(i32 noundef %4, ptr noundef %3, i32 noundef 4, i32 noundef %5)
%7 = load i32, ptr %3, align 4
ret i32 %7
}
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp69v__rxi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@MSG_WAITALL = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @recv_param(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = load i32, ptr @MSG_WAITALL, align 4
%6 = call i32 @recv(i32 noundef %4, ptr noundef %3, i32 noundef 4, i32 noundef %5)
%7 = load i32, ptr %3, align 4
ret i32 %7
}
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmoxhlwjl.c'
source_filename = "/tmp/tmpmoxhlwjl.c"
target datalayout = "e-m:e-p270: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/tmpmoxhlwjl.c"
target datalayout = "e-m:e-p270: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/tmpk62ut52z.c'
source_filename = "/tmp/tmpk62ut52z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"foobarbaz\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr @.str, ptr %6, align 8
%7 = load ptr, ptr %6, align 8
%8 = call i32 @printf(ptr noundef @.str.1, ptr noundef %7)
ret i32 42
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk62ut52z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"foobarbaz\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr @.str, ptr %6, align 8
%7 = load ptr, ptr %6, align 8
%8 = call i32 @printf(ptr noundef @.str.1, ptr noundef %7)
ret i32 42
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgnu801zm.c'
source_filename = "/tmp/tmpgnu801zm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @server(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca [65536 x i8], align 16
%13 = alloca [64 x i8], align 16
%14 = alloca i32, align 4
%15 = alloca [64 x i8], align 16
%16 = alloca i32, align 4
%17 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%18 = call i64 @net_bind(ptr noundef %9, ptr noundef null, i32 noundef 121212)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %4
%21 = call i32 (...) @abort() #3
unreachable
22: ; preds = %4
%23 = load i32, ptr %9, align 4
%24 = call i64 @net_accept(i32 noundef %23, ptr noundef %10, ptr noundef null)
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %22
%27 = call i32 (...) @abort() #3
unreachable
28: ; preds = %22
%29 = load i32, ptr %10, align 4
%30 = call i64 @net_set_block(i32 noundef %29)
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %28
%33 = call i32 (...) @abort() #3
unreachable
34: ; preds = %28
%35 = getelementptr inbounds [65536 x i8], ptr %12, i64 0, i64 0
%36 = call i32 @net_recv(ptr noundef %10, ptr noundef %35, i32 noundef 65536)
store i32 %36, ptr %11, align 4
store i32 105, ptr %14, align 4
%37 = load i32, ptr %11, align 4
%38 = load i32, ptr %14, align 4
%39 = icmp ne i32 %37, %38
br i1 %39, label %40, label %42
40: ; preds = %34
%41 = call i32 (...) @abort() #3
unreachable
42: ; preds = %34
%43 = load ptr, ptr %5, align 8
%44 = load i32, ptr %6, align 4
%45 = getelementptr inbounds [65536 x i8], ptr %12, i64 0, i64 0
%46 = getelementptr inbounds [64 x i8], ptr %13, i64 0, i64 0
%47 = call i32 @sha512_hmac(ptr noundef %43, i32 noundef %44, ptr noundef %45, i32 noundef 41, ptr noundef %46, i32 noundef 0)
%48 = getelementptr inbounds [65536 x i8], ptr %12, i64 0, i64 0
%49 = getelementptr i8, ptr %48, i64 1
%50 = getelementptr i8, ptr %49, i64 40
%51 = getelementptr inbounds [64 x i8], ptr %13, i64 0, i64 0
%52 = call i64 @memcmp(ptr noundef %50, ptr noundef %51, i32 noundef 64)
%53 = icmp ne i64 %52, 0
br i1 %53, label %54, label %56
54: ; preds = %42
%55 = call i32 (...) @abort() #3
unreachable
56: ; preds = %42
%57 = getelementptr inbounds [65536 x i8], ptr %12, i64 0, i64 0
%58 = load i8, ptr %57, align 16
%59 = sext i8 %58 to i32
%60 = icmp ne i32 %59, 48
br i1 %60, label %61, label %63
61: ; preds = %56
%62 = call i32 (...) @abort() #3
unreachable
63: ; preds = %56
%64 = load ptr, ptr %7, align 8
%65 = getelementptr inbounds [65536 x i8], ptr %12, i64 0, i64 0
%66 = getelementptr i8, ptr %65, i64 1
%67 = call i32 @memcpy(ptr noundef %64, ptr noundef %66, i32 noundef 40)
%68 = load ptr, ptr %7, align 8
%69 = load ptr, ptr %8, align 8
%70 = call i32 @compute_response(ptr noundef %68, ptr noundef %69)
store i32 145, ptr %16, align 4
%71 = load i32, ptr %16, align 4
%72 = call ptr @malloc(i32 noundef %71)
store ptr %72, ptr %17, align 8
%73 = load ptr, ptr %17, align 8
%74 = icmp eq ptr %73, null
br i1 %74, label %75, label %77
75: ; preds = %63
%76 = call i32 (...) @abort() #3
unreachable
77: ; preds = %63
%78 = load ptr, ptr %17, align 8
store i8 49, ptr %78, align 1
%79 = load ptr, ptr %17, align 8
%80 = getelementptr inbounds i8, ptr %79, i64 1
%81 = load ptr, ptr %7, align 8
%82 = call i32 @memcpy(ptr noundef %80, ptr noundef %81, i32 noundef 40)
%83 = load ptr, ptr %17, align 8
%84 = getelementptr inbounds i8, ptr %83, i64 1
%85 = getelementptr inbounds i8, ptr %84, i64 40
%86 = load ptr, ptr %8, align 8
%87 = call i32 @memcpy(ptr noundef %85, ptr noundef %86, i32 noundef 40)
%88 = load ptr, ptr %5, align 8
%89 = load i32, ptr %6, align 4
%90 = load ptr, ptr %17, align 8
%91 = getelementptr inbounds [64 x i8], ptr %15, i64 0, i64 0
%92 = call i32 @sha512_hmac(ptr noundef %88, i32 noundef %89, ptr noundef %90, i32 noundef 81, ptr noundef %91, i32 noundef 0)
%93 = load ptr, ptr %17, align 8
%94 = getelementptr inbounds i8, ptr %93, i64 1
%95 = getelementptr inbounds i8, ptr %94, i64 80
%96 = getelementptr inbounds [64 x i8], ptr %15, i64 0, i64 0
%97 = call i32 @memcpy(ptr noundef %95, ptr noundef %96, i32 noundef 64)
%98 = load ptr, ptr %17, align 8
%99 = load i32, ptr %16, align 4
%100 = call i32 @net_send(ptr noundef %10, ptr noundef %98, i32 noundef %99)
%101 = load ptr, ptr %17, align 8
%102 = call i32 @free(ptr noundef %101)
%103 = load i32, ptr %10, align 4
%104 = call i32 @net_close(i32 noundef %103)
%105 = load i32, ptr %9, align 4
%106 = call i32 @net_close(i32 noundef %105)
ret void
}
declare i64 @net_bind(ptr noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare i64 @net_accept(i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @net_set_block(i32 noundef) #1
declare i32 @net_recv(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @sha512_hmac(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @memcmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @compute_response(ptr noundef, ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @net_send(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @net_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" }
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/tmpgnu801zm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @server(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca [65536 x i8], align 16
%13 = alloca [64 x i8], align 16
%14 = alloca i32, align 4
%15 = alloca [64 x i8], align 16
%16 = alloca i32, align 4
%17 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%18 = call i64 @net_bind(ptr noundef %9, ptr noundef null, i32 noundef 121212)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %4
%21 = call i32 (...) @abort() #3
unreachable
22: ; preds = %4
%23 = load i32, ptr %9, align 4
%24 = call i64 @net_accept(i32 noundef %23, ptr noundef %10, ptr noundef null)
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %22
%27 = call i32 (...) @abort() #3
unreachable
28: ; preds = %22
%29 = load i32, ptr %10, align 4
%30 = call i64 @net_set_block(i32 noundef %29)
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %28
%33 = call i32 (...) @abort() #3
unreachable
34: ; preds = %28
%35 = getelementptr inbounds [65536 x i8], ptr %12, i64 0, i64 0
%36 = call i32 @net_recv(ptr noundef %10, ptr noundef %35, i32 noundef 65536)
store i32 %36, ptr %11, align 4
store i32 105, ptr %14, align 4
%37 = load i32, ptr %11, align 4
%38 = load i32, ptr %14, align 4
%39 = icmp ne i32 %37, %38
br i1 %39, label %40, label %42
40: ; preds = %34
%41 = call i32 (...) @abort() #3
unreachable
42: ; preds = %34
%43 = load ptr, ptr %5, align 8
%44 = load i32, ptr %6, align 4
%45 = getelementptr inbounds [65536 x i8], ptr %12, i64 0, i64 0
%46 = getelementptr inbounds [64 x i8], ptr %13, i64 0, i64 0
%47 = call i32 @sha512_hmac(ptr noundef %43, i32 noundef %44, ptr noundef %45, i32 noundef 41, ptr noundef %46, i32 noundef 0)
%48 = getelementptr inbounds [65536 x i8], ptr %12, i64 0, i64 0
%49 = getelementptr i8, ptr %48, i64 1
%50 = getelementptr i8, ptr %49, i64 40
%51 = getelementptr inbounds [64 x i8], ptr %13, i64 0, i64 0
%52 = call i64 @memcmp(ptr noundef %50, ptr noundef %51, i32 noundef 64)
%53 = icmp ne i64 %52, 0
br i1 %53, label %54, label %56
54: ; preds = %42
%55 = call i32 (...) @abort() #3
unreachable
56: ; preds = %42
%57 = getelementptr inbounds [65536 x i8], ptr %12, i64 0, i64 0
%58 = load i8, ptr %57, align 16
%59 = sext i8 %58 to i32
%60 = icmp ne i32 %59, 48
br i1 %60, label %61, label %63
61: ; preds = %56
%62 = call i32 (...) @abort() #3
unreachable
63: ; preds = %56
%64 = load ptr, ptr %7, align 8
%65 = getelementptr inbounds [65536 x i8], ptr %12, i64 0, i64 0
%66 = getelementptr i8, ptr %65, i64 1
%67 = call i32 @memcpy(ptr noundef %64, ptr noundef %66, i32 noundef 40)
%68 = load ptr, ptr %7, align 8
%69 = load ptr, ptr %8, align 8
%70 = call i32 @compute_response(ptr noundef %68, ptr noundef %69)
store i32 145, ptr %16, align 4
%71 = load i32, ptr %16, align 4
%72 = call ptr @malloc(i32 noundef %71)
store ptr %72, ptr %17, align 8
%73 = load ptr, ptr %17, align 8
%74 = icmp eq ptr %73, null
br i1 %74, label %75, label %77
75: ; preds = %63
%76 = call i32 (...) @abort() #3
unreachable
77: ; preds = %63
%78 = load ptr, ptr %17, align 8
store i8 49, ptr %78, align 1
%79 = load ptr, ptr %17, align 8
%80 = getelementptr inbounds i8, ptr %79, i64 1
%81 = load ptr, ptr %7, align 8
%82 = call i32 @memcpy(ptr noundef %80, ptr noundef %81, i32 noundef 40)
%83 = load ptr, ptr %17, align 8
%84 = getelementptr inbounds i8, ptr %83, i64 1
%85 = getelementptr inbounds i8, ptr %84, i64 40
%86 = load ptr, ptr %8, align 8
%87 = call i32 @memcpy(ptr noundef %85, ptr noundef %86, i32 noundef 40)
%88 = load ptr, ptr %5, align 8
%89 = load i32, ptr %6, align 4
%90 = load ptr, ptr %17, align 8
%91 = getelementptr inbounds [64 x i8], ptr %15, i64 0, i64 0
%92 = call i32 @sha512_hmac(ptr noundef %88, i32 noundef %89, ptr noundef %90, i32 noundef 81, ptr noundef %91, i32 noundef 0)
%93 = load ptr, ptr %17, align 8
%94 = getelementptr inbounds i8, ptr %93, i64 1
%95 = getelementptr inbounds i8, ptr %94, i64 80
%96 = getelementptr inbounds [64 x i8], ptr %15, i64 0, i64 0
%97 = call i32 @memcpy(ptr noundef %95, ptr noundef %96, i32 noundef 64)
%98 = load ptr, ptr %17, align 8
%99 = load i32, ptr %16, align 4
%100 = call i32 @net_send(ptr noundef %10, ptr noundef %98, i32 noundef %99)
%101 = load ptr, ptr %17, align 8
%102 = call i32 @free(ptr noundef %101)
%103 = load i32, ptr %10, align 4
%104 = call i32 @net_close(i32 noundef %103)
%105 = load i32, ptr %9, align 4
%106 = call i32 @net_close(i32 noundef %105)
ret void
}
declare i64 @net_bind(ptr noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare i64 @net_accept(i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @net_set_block(i32 noundef) #1
declare i32 @net_recv(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @sha512_hmac(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @memcmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @compute_response(ptr noundef, ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @net_send(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @net_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" }
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/tmpktmputzw.c'
source_filename = "/tmp/tmpktmputzw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fBose(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = call i32 @exp(float noundef %3)
%5 = sitofp i32 %4 to double
%6 = fsub double %5, 1.000000e+00
%7 = fdiv double 1.000000e+00, %6
ret double %7
}
declare i32 @exp(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/tmpktmputzw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fBose(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = call i32 @exp(float noundef %3)
%5 = sitofp i32 %4 to double
%6 = fsub double %5, 1.000000e+00
%7 = fdiv double 1.000000e+00, %6
ret double %7
}
declare i32 @exp(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/tmp_a_b4dvt.c'
source_filename = "/tmp/tmp_a_b4dvt.c"
target datalayout = "e-m:e-p270: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
@.str = private unnamed_addr constant [9 x i8] c"/dev/mem\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [17 x i8] c"open failed: %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@PROT_READ = dso_local global i32 0, align 4
@MAP_SHARED = dso_local global i32 0, align 4
@MAP_FAILED = dso_local global ptr null, align 8
@.str.2 = private unnamed_addr constant [17 x i8] c"mmap failed: %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 ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp eq i32 %9, 2
br i1 %10, label %11, label %17
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
%15 = load i32, ptr @O_RDONLY, align 4
%16 = call i32 @open(ptr noundef %14, i32 noundef %15)
store i32 %16, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %20
17: ; preds = %2
%18 = load i32, ptr @O_RDONLY, align 4
%19 = call i32 @open(ptr noundef @.str, i32 noundef %18)
store i32 %19, ptr %7, align 4
store i32 786432, ptr %8, align 4
br label %20
20: ; preds = %17, %11
%21 = load i32, ptr %7, align 4
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %28
23: ; preds = %20
%24 = load i32, ptr @stderr, align 4
%25 = load i32, ptr @errno, align 4
%26 = call ptr @strerror(i32 noundef %25)
%27 = call i32 @fprintf(i32 noundef %24, ptr noundef @.str.1, ptr noundef %26)
store i32 1, ptr %3, align 4
br label %47
28: ; preds = %20
%29 = load i32, ptr @PROT_READ, align 4
%30 = load i32, ptr @MAP_SHARED, align 4
%31 = load i32, ptr %7, align 4
%32 = load i32, ptr %8, align 4
%33 = call ptr @mmap(i32 noundef 0, i32 noundef 65536, i32 noundef %29, i32 noundef %30, i32 noundef %31, i32 noundef %32)
store ptr %33, ptr %6, align 8
%34 = load ptr, ptr %6, align 8
%35 = load ptr, ptr @MAP_FAILED, align 8
%36 = icmp eq ptr %34, %35
br i1 %36, label %37, label %42
37: ; preds = %28
%38 = load i32, ptr @stderr, align 4
%39 = load i32, ptr @errno, align 4
%40 = call ptr @strerror(i32 noundef %39)
%41 = call i32 @fprintf(i32 noundef %38, ptr noundef @.str.2, ptr noundef %40)
store i32 1, ptr %3, align 4
br label %47
42: ; preds = %28
%43 = load ptr, ptr %6, align 8
%44 = call i32 @parse_vbios(ptr noundef %43)
%45 = load i32, ptr %7, align 4
%46 = call i32 @close(i32 noundef %45)
store i32 0, ptr %3, align 4
br label %47
47: ; preds = %42, %37, %23
%48 = load i32, ptr %3, align 4
ret i32 %48
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
declare ptr @mmap(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @parse_vbios(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/tmp_a_b4dvt.c"
target datalayout = "e-m:e-p270: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
@.str = private unnamed_addr constant [9 x i8] c"/dev/mem\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [17 x i8] c"open failed: %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@PROT_READ = dso_local global i32 0, align 4
@MAP_SHARED = dso_local global i32 0, align 4
@MAP_FAILED = dso_local global ptr null, align 8
@.str.2 = private unnamed_addr constant [17 x i8] c"mmap failed: %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 ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp eq i32 %9, 2
br i1 %10, label %11, label %17
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
%15 = load i32, ptr @O_RDONLY, align 4
%16 = call i32 @open(ptr noundef %14, i32 noundef %15)
store i32 %16, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %20
17: ; preds = %2
%18 = load i32, ptr @O_RDONLY, align 4
%19 = call i32 @open(ptr noundef @.str, i32 noundef %18)
store i32 %19, ptr %7, align 4
store i32 786432, ptr %8, align 4
br label %20
20: ; preds = %17, %11
%21 = load i32, ptr %7, align 4
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %28
23: ; preds = %20
%24 = load i32, ptr @stderr, align 4
%25 = load i32, ptr @errno, align 4
%26 = call ptr @strerror(i32 noundef %25)
%27 = call i32 @fprintf(i32 noundef %24, ptr noundef @.str.1, ptr noundef %26)
store i32 1, ptr %3, align 4
br label %47
28: ; preds = %20
%29 = load i32, ptr @PROT_READ, align 4
%30 = load i32, ptr @MAP_SHARED, align 4
%31 = load i32, ptr %7, align 4
%32 = load i32, ptr %8, align 4
%33 = call ptr @mmap(i32 noundef 0, i32 noundef 65536, i32 noundef %29, i32 noundef %30, i32 noundef %31, i32 noundef %32)
store ptr %33, ptr %6, align 8
%34 = load ptr, ptr %6, align 8
%35 = load ptr, ptr @MAP_FAILED, align 8
%36 = icmp eq ptr %34, %35
br i1 %36, label %37, label %42
37: ; preds = %28
%38 = load i32, ptr @stderr, align 4
%39 = load i32, ptr @errno, align 4
%40 = call ptr @strerror(i32 noundef %39)
%41 = call i32 @fprintf(i32 noundef %38, ptr noundef @.str.2, ptr noundef %40)
store i32 1, ptr %3, align 4
br label %47
42: ; preds = %28
%43 = load ptr, ptr %6, align 8
%44 = call i32 @parse_vbios(ptr noundef %43)
%45 = load i32, ptr %7, align 4
%46 = call i32 @close(i32 noundef %45)
store i32 0, ptr %3, align 4
br label %47
47: ; preds = %42, %37, %23
%48 = load i32, ptr %3, align 4
ret i32 %48
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
declare ptr @mmap(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @parse_vbios(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/tmp2b_c_0mb.c'
source_filename = "/tmp/tmp2b_c_0mb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sk_OPENSSL_STRING_is_sorted(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 @OPENSSL_sk_is_sorted(ptr noundef %3)
ret i32 %4
}
declare i32 @OPENSSL_sk_is_sorted(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2b_c_0mb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sk_OPENSSL_STRING_is_sorted(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 @OPENSSL_sk_is_sorted(ptr noundef %3)
ret i32 %4
}
declare i32 @OPENSSL_sk_is_sorted(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpy8tcqige.c'
source_filename = "/tmp/tmpy8tcqige.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"should not return NaN\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @benchmark(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca double, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = zext i32 %11 to i64
%13 = call ptr @llvm.stacksave()
store ptr %13, ptr %6, align 8
%14 = alloca double, i64 %12, align 16
store i64 %12, ptr %7, align 8
store i32 0, ptr %10, align 4
br label %15
15: ; preds = %25, %2
%16 = load i32, ptr %10, align 4
%17 = load i32, ptr %4, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %28
19: ; preds = %15
%20 = load i32, ptr %10, align 4
%21 = sitofp i32 %20 to double
%22 = load i32, ptr %10, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds double, ptr %14, i64 %23
store double %21, ptr %24, align 8
br label %25
25: ; preds = %19
%26 = load i32, ptr %10, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %10, align 4
br label %15, !llvm.loop !6
28: ; preds = %15
store double 0.000000e+00, ptr %8, align 8
%29 = call double (...) @tic()
store double %29, ptr %9, align 8
store i32 0, ptr %10, align 4
br label %30
30: ; preds = %43, %28
%31 = load i32, ptr %10, align 4
%32 = load i32, ptr %3, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %34, label %46
34: ; preds = %30
%35 = load i32, ptr %4, align 4
%36 = call double @stdlib_strided_dmaxsorted(i32 noundef %35, ptr noundef %14, i32 noundef 1)
store double %36, ptr %8, align 8
%37 = load double, ptr %8, align 8
%38 = load double, ptr %8, align 8
%39 = fcmp une double %37, %38
br i1 %39, label %40, label %42
40: ; preds = %34
%41 = call i32 @printf(ptr noundef @.str)
br label %46
42: ; preds = %34
br label %43
43: ; preds = %42
%44 = load i32, ptr %10, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %10, align 4
br label %30, !llvm.loop !8
46: ; preds = %40, %30
%47 = call double (...) @tic()
%48 = load double, ptr %9, align 8
%49 = fsub double %47, %48
store double %49, ptr %5, align 8
%50 = load double, ptr %8, align 8
%51 = load double, ptr %8, align 8
%52 = fcmp une double %50, %51
br i1 %52, label %53, label %55
53: ; preds = %46
%54 = call i32 @printf(ptr noundef @.str)
br label %55
55: ; preds = %53, %46
%56 = load double, ptr %5, align 8
%57 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %57)
ret double %56
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare double @tic(...) #2
declare double @stdlib_strided_dmaxsorted(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpy8tcqige.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"should not return NaN\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @benchmark(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca double, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = zext i32 %11 to i64
%13 = call ptr @llvm.stacksave()
store ptr %13, ptr %6, align 8
%14 = alloca double, i64 %12, align 16
store i64 %12, ptr %7, align 8
store i32 0, ptr %10, align 4
%15 = load i32, ptr %10, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %.lr.ph, label %30
.lr.ph: ; preds = %2
br label %18
18: ; preds = %.lr.ph, %24
%19 = load i32, ptr %10, align 4
%20 = sitofp i32 %19 to double
%21 = load i32, ptr %10, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds double, ptr %14, i64 %22
store double %20, ptr %23, align 8
br label %24
24: ; preds = %18
%25 = load i32, ptr %10, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %10, align 4
%27 = load i32, ptr %10, align 4
%28 = load i32, ptr %4, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %30
30: ; preds = %._crit_edge, %2
store double 0.000000e+00, ptr %8, align 8
%31 = call double (...) @tic()
store double %31, ptr %9, align 8
store i32 0, ptr %10, align 4
%32 = load i32, ptr %10, align 4
%33 = load i32, ptr %3, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %30
br label %35
35: ; preds = %.lr.ph2, %44
%36 = load i32, ptr %4, align 4
%37 = call double @stdlib_strided_dmaxsorted(i32 noundef %36, ptr noundef %14, i32 noundef 1)
store double %37, ptr %8, align 8
%38 = load double, ptr %8, align 8
%39 = load double, ptr %8, align 8
%40 = fcmp une double %38, %39
br i1 %40, label %41, label %43
41: ; preds = %35
%42 = call i32 @printf(ptr noundef @.str)
br label %50
43: ; preds = %35
br label %44
44: ; preds = %43
%45 = load i32, ptr %10, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %10, align 4
%47 = load i32, ptr %10, align 4
%48 = load i32, ptr %3, align 4
%49 = icmp slt i32 %47, %48
br i1 %49, label %35, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %44
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %30
br label %50
50: ; preds = %.loopexit, %41
%51 = call double (...) @tic()
%52 = load double, ptr %9, align 8
%53 = fsub double %51, %52
store double %53, ptr %5, align 8
%54 = load double, ptr %8, align 8
%55 = load double, ptr %8, align 8
%56 = fcmp une double %54, %55
br i1 %56, label %57, label %59
57: ; preds = %50
%58 = call i32 @printf(ptr noundef @.str)
br label %59
59: ; preds = %57, %50
%60 = load double, ptr %5, align 8
%61 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %61)
ret double %60
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare double @tic(...) #2
declare double @stdlib_strided_dmaxsorted(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp9445h2ya.c'
source_filename = "/tmp/tmp9445h2ya.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9445h2ya.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1dnghlza.c'
source_filename = "/tmp/tmp1dnghlza.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ipkg_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 = load i32, ptr %3, align 4
%6 = load ptr, ptr %4, align 8
%7 = call i32 @ipkg_op(i32 noundef %5, ptr noundef %6)
ret i32 %7
}
declare i32 @ipkg_op(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/tmp1dnghlza.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ipkg_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 = load i32, ptr %3, align 4
%6 = load ptr, ptr %4, align 8
%7 = call i32 @ipkg_op(i32 noundef %5, ptr noundef %6)
ret i32 %7
}
declare i32 @ipkg_op(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/tmplvvoneub.c'
source_filename = "/tmp/tmplvvoneub.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isascii.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isascii should be 0 for 0x91\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isascii_0x91() #0 {
%1 = call i64 @isascii(i32 noundef 145)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 730, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isascii(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplvvoneub.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isascii.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isascii should be 0 for 0x91\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isascii_0x91() #0 {
%1 = call i64 @isascii(i32 noundef 145)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 730, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isascii(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpl_th197z.c'
source_filename = "/tmp/tmpl_th197z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_3__ = type { i32, i32 }
@REG_EXTENDED = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @matchre(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i64, align 8
%9 = alloca [10 x %struct.TYPE_3__], align 16
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 10, ptr %8, align 8
store ptr null, ptr %10, align 8
%12 = load ptr, ptr %4, align 8
%13 = call i64 @strlen(ptr noundef %12)
%14 = icmp eq i64 %13, 0
br i1 %14, label %19, label %15
15: ; preds = %2
%16 = load ptr, ptr %5, align 8
%17 = call i64 @strlen(ptr noundef %16)
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %15, %2
store ptr null, ptr %3, align 8
br label %60
20: ; preds = %15
%21 = load ptr, ptr %5, align 8
%22 = load i32, ptr @REG_EXTENDED, align 4
%23 = call i32 @regcomp(ptr noundef %6, ptr noundef %21, i32 noundef %22)
store i32 %23, ptr %7, align 4
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %20
store ptr null, ptr %3, align 8
br label %60
26: ; preds = %20
%27 = load ptr, ptr %4, align 8
%28 = load i64, ptr %8, align 8
%29 = getelementptr inbounds [10 x %struct.TYPE_3__], ptr %9, i64 0, i64 0
%30 = call i32 @regexec(ptr noundef %6, ptr noundef %27, i64 noundef %28, ptr noundef %29, i32 noundef 0)
store i32 %30, ptr %7, align 4
%31 = icmp ne i32 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %26
%33 = call i32 @regfree(ptr noundef %6)
store ptr null, ptr %3, align 8
br label %60
34: ; preds = %26
%35 = getelementptr inbounds [10 x %struct.TYPE_3__], ptr %9, i64 0, i64 0
%36 = getelementptr inbounds %struct.TYPE_3__, ptr %35, i32 0, i32 0
%37 = load i32, ptr %36, align 16
%38 = getelementptr inbounds [10 x %struct.TYPE_3__], ptr %9, i64 0, i64 0
%39 = getelementptr inbounds %struct.TYPE_3__, ptr %38, i32 0, i32 1
%40 = load i32, ptr %39, align 4
%41 = sub nsw i32 %37, %40
store i32 %41, ptr %11, align 4
%42 = load i32, ptr %11, align 4
%43 = add nsw i32 %42, 1
%44 = call ptr @malloc(i32 noundef %43)
store ptr %44, ptr %10, align 8
%45 = load ptr, ptr %10, align 8
%46 = load i32, ptr %11, align 4
%47 = add nsw i32 %46, 1
%48 = call i32 @memset(ptr noundef %45, i32 noundef 0, i32 noundef %47)
%49 = load ptr, ptr %10, align 8
%50 = load ptr, ptr %4, align 8
%51 = getelementptr inbounds [10 x %struct.TYPE_3__], ptr %9, i64 0, i64 0
%52 = getelementptr inbounds %struct.TYPE_3__, ptr %51, i32 0, i32 1
%53 = load i32, ptr %52, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %50, i64 %54
%56 = load i32, ptr %11, align 4
%57 = call i32 @strncpy(ptr noundef %49, ptr noundef %55, i32 noundef %56)
%58 = call i32 @regfree(ptr noundef %6)
%59 = load ptr, ptr %10, align 8
store ptr %59, ptr %3, align 8
br label %60
60: ; preds = %34, %32, %25, %19
%61 = load ptr, ptr %3, align 8
ret ptr %61
}
declare i64 @strlen(ptr noundef) #1
declare i32 @regcomp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @regexec(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i32 noundef) #1
declare i32 @regfree(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strncpy(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/tmpl_th197z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_3__ = type { i32, i32 }
@REG_EXTENDED = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @matchre(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i64, align 8
%9 = alloca [10 x %struct.TYPE_3__], align 16
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 10, ptr %8, align 8
store ptr null, ptr %10, align 8
%12 = load ptr, ptr %4, align 8
%13 = call i64 @strlen(ptr noundef %12)
%14 = icmp eq i64 %13, 0
br i1 %14, label %19, label %15
15: ; preds = %2
%16 = load ptr, ptr %5, align 8
%17 = call i64 @strlen(ptr noundef %16)
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %15, %2
store ptr null, ptr %3, align 8
br label %60
20: ; preds = %15
%21 = load ptr, ptr %5, align 8
%22 = load i32, ptr @REG_EXTENDED, align 4
%23 = call i32 @regcomp(ptr noundef %6, ptr noundef %21, i32 noundef %22)
store i32 %23, ptr %7, align 4
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %20
store ptr null, ptr %3, align 8
br label %60
26: ; preds = %20
%27 = load ptr, ptr %4, align 8
%28 = load i64, ptr %8, align 8
%29 = getelementptr inbounds [10 x %struct.TYPE_3__], ptr %9, i64 0, i64 0
%30 = call i32 @regexec(ptr noundef %6, ptr noundef %27, i64 noundef %28, ptr noundef %29, i32 noundef 0)
store i32 %30, ptr %7, align 4
%31 = icmp ne i32 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %26
%33 = call i32 @regfree(ptr noundef %6)
store ptr null, ptr %3, align 8
br label %60
34: ; preds = %26
%35 = getelementptr inbounds [10 x %struct.TYPE_3__], ptr %9, i64 0, i64 0
%36 = getelementptr inbounds %struct.TYPE_3__, ptr %35, i32 0, i32 0
%37 = load i32, ptr %36, align 16
%38 = getelementptr inbounds [10 x %struct.TYPE_3__], ptr %9, i64 0, i64 0
%39 = getelementptr inbounds %struct.TYPE_3__, ptr %38, i32 0, i32 1
%40 = load i32, ptr %39, align 4
%41 = sub nsw i32 %37, %40
store i32 %41, ptr %11, align 4
%42 = load i32, ptr %11, align 4
%43 = add nsw i32 %42, 1
%44 = call ptr @malloc(i32 noundef %43)
store ptr %44, ptr %10, align 8
%45 = load ptr, ptr %10, align 8
%46 = load i32, ptr %11, align 4
%47 = add nsw i32 %46, 1
%48 = call i32 @memset(ptr noundef %45, i32 noundef 0, i32 noundef %47)
%49 = load ptr, ptr %10, align 8
%50 = load ptr, ptr %4, align 8
%51 = getelementptr inbounds [10 x %struct.TYPE_3__], ptr %9, i64 0, i64 0
%52 = getelementptr inbounds %struct.TYPE_3__, ptr %51, i32 0, i32 1
%53 = load i32, ptr %52, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %50, i64 %54
%56 = load i32, ptr %11, align 4
%57 = call i32 @strncpy(ptr noundef %49, ptr noundef %55, i32 noundef %56)
%58 = call i32 @regfree(ptr noundef %6)
%59 = load ptr, ptr %10, align 8
store ptr %59, ptr %3, align 8
br label %60
60: ; preds = %34, %32, %25, %19
%61 = load ptr, ptr %3, align 8
ret ptr %61
}
declare i64 @strlen(ptr noundef) #1
declare i32 @regcomp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @regexec(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i32 noundef) #1
declare i32 @regfree(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strncpy(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/tmpq09c6_pu.c'
source_filename = "/tmp/tmpq09c6_pu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @AccWit(i8 noundef zeroext %0) #0 {
%2 = alloca i8, align 1
%3 = alloca i8, align 1
store i8 %0, ptr %2, align 1
store i8 1, ptr %3, align 1
br label %4
4: ; preds = %18, %1
%5 = load i8, ptr %3, align 1
%6 = icmp ne i8 %5, 0
br i1 %6, label %7, label %19
7: ; preds = %4
%8 = call i32 @RegReadA(i32 noundef 642, ptr noundef %3)
%9 = load i8, ptr %2, align 1
%10 = zext i8 %9 to i32
%11 = load i8, ptr %3, align 1
%12 = zext i8 %11 to i32
%13 = and i32 %12, %10
%14 = trunc i32 %13 to i8
store i8 %14, ptr %3, align 1
%15 = call i64 (...) @CmdRdChk()
%16 = icmp ne i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %7
br label %19
18: ; preds = %7
br label %4, !llvm.loop !6
19: ; preds = %17, %4
ret void
}
declare i32 @RegReadA(i32 noundef, ptr noundef) #1
declare i64 @CmdRdChk(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpq09c6_pu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @AccWit(i8 noundef zeroext %0) #0 {
%2 = alloca i8, align 1
%3 = alloca i8, align 1
store i8 %0, ptr %2, align 1
store i8 1, ptr %3, align 1
%4 = load i8, ptr %3, align 1
%5 = icmp ne i8 %4, 0
br i1 %5, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %1
br label %9
6: ; preds = %9
%7 = load i8, ptr %3, align 1
%8 = icmp ne i8 %7, 0
br i1 %8, label %9, label %..loopexit_crit_edge, !llvm.loop !6
9: ; preds = %.lr.ph, %6
%10 = call i32 @RegReadA(i32 noundef 642, ptr noundef %3)
%11 = load i8, ptr %2, align 1
%12 = zext i8 %11 to i32
%13 = load i8, ptr %3, align 1
%14 = zext i8 %13 to i32
%15 = and i32 %14, %12
%16 = trunc i32 %15 to i8
store i8 %16, ptr %3, align 1
%17 = call i64 (...) @CmdRdChk()
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %6
19: ; preds = %9
br label %20
..loopexit_crit_edge: ; preds = %6
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %1
br label %20
20: ; preds = %.loopexit, %19
ret void
}
declare i32 @RegReadA(i32 noundef, ptr noundef) #1
declare i64 @CmdRdChk(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmprzmvl_cw.c'
source_filename = "/tmp/tmprzmvl_cw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @U_WMR5E_swap(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 i32 @U_WMRNOTIMPLEMENTED_swap(ptr noundef %5, i32 noundef %6)
ret void
}
declare i32 @U_WMRNOTIMPLEMENTED_swap(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/tmprzmvl_cw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @U_WMR5E_swap(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 i32 @U_WMRNOTIMPLEMENTED_swap(ptr noundef %5, i32 noundef %6)
ret void
}
declare i32 @U_WMRNOTIMPLEMENTED_swap(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/tmp63j87rdi.c'
source_filename = "/tmp/tmp63j87rdi.c"
target datalayout = "e-m:e-p270: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/tmp63j87rdi.c"
target datalayout = "e-m:e-p270: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/tmp0tnunoxw.c'
source_filename = "/tmp/tmp0tnunoxw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @print_system() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = load ptr, ptr %1, align 8
%6 = load ptr, ptr %2, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @_ada_use_c2phc4c(i32 noundef 21, ptr noundef %5, ptr noundef %6, ptr noundef %7, i32 noundef 0)
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %3, align 4
ret i32 %9
}
declare i32 @_ada_use_c2phc4c(i32 noundef, ptr noundef, 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/tmp0tnunoxw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @print_system() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = load ptr, ptr %1, align 8
%6 = load ptr, ptr %2, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @_ada_use_c2phc4c(i32 noundef 21, ptr noundef %5, ptr noundef %6, ptr noundef %7, i32 noundef 0)
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %3, align 4
ret i32 %9
}
declare i32 @_ada_use_c2phc4c(i32 noundef, ptr noundef, 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/tmpd720765u.c'
source_filename = "/tmp/tmpd720765u.c"
target datalayout = "e-m:e-p270: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 [19 x i8] c"Cannot create: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"(%s) <=> (%s)\0A\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"select\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 [1024 x i8], align 16
%7 = alloca [1024 x i8], align 16
%8 = alloca [1024 x i8], align 16
%9 = alloca [1024 x i8], align 16
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = 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
%14 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%15 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%16 = call i32 @ptym_open(ptr noundef %14, ptr noundef %15, i32 noundef 1024)
store i32 %16, ptr %10, align 4
%17 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%18 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%19 = call i32 @ptym_open(ptr noundef %17, ptr noundef %18, i32 noundef 1024)
store i32 %19, ptr %11, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp sge i32 %20, 3
br i1 %21, label %22, label %64
22: ; preds = %2
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 1
%25 = load ptr, ptr %24, align 8
%26 = call i32 @unlink(ptr noundef %25)
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds ptr, ptr %27, i64 2
%29 = load ptr, ptr %28, align 8
%30 = call i32 @unlink(ptr noundef %29)
%31 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds ptr, ptr %32, i64 1
%34 = load ptr, ptr %33, align 8
%35 = call i64 @symlink(ptr noundef %31, ptr noundef %34)
%36 = icmp slt i64 %35, 0
br i1 %36, label %37, label %43
37: ; preds = %22
%38 = load i32, ptr @stderr, align 4
%39 = load ptr, ptr %5, align 8
%40 = getelementptr inbounds ptr, ptr %39, i64 1
%41 = load ptr, ptr %40, align 8
%42 = call i32 @fprintf(i32 noundef %38, ptr noundef @.str, ptr noundef %41)
store i32 1, ptr %3, align 4
br label %103
43: ; preds = %22
%44 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%45 = load ptr, ptr %5, align 8
%46 = getelementptr inbounds ptr, ptr %45, i64 2
%47 = load ptr, ptr %46, align 8
%48 = call i64 @symlink(ptr noundef %44, ptr noundef %47)
%49 = icmp slt i64 %48, 0
br i1 %49, label %50, label %56
50: ; preds = %43
%51 = load i32, ptr @stderr, align 4
%52 = load ptr, ptr %5, align 8
%53 = getelementptr inbounds ptr, ptr %52, i64 2
%54 = load ptr, ptr %53, align 8
%55 = call i32 @fprintf(i32 noundef %51, ptr noundef @.str, ptr noundef %54)
store i32 1, ptr %3, align 4
br label %103
56: ; preds = %43
%57 = load ptr, ptr %5, align 8
%58 = getelementptr inbounds ptr, ptr %57, i64 1
%59 = load ptr, ptr %58, align 8
%60 = load ptr, ptr %5, align 8
%61 = getelementptr inbounds ptr, ptr %60, i64 2
%62 = load ptr, ptr %61, align 8
%63 = call i32 @printf(ptr noundef @.str.1, ptr noundef %59, ptr noundef %62)
br label %68
64: ; preds = %2
%65 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%66 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%67 = call i32 @printf(ptr noundef @.str.1, ptr noundef %65, ptr noundef %66)
br label %68
68: ; preds = %64, %56
%69 = load i32, ptr %10, align 4
%70 = call i32 @conf_ser(i32 noundef %69)
%71 = load i32, ptr %11, align 4
%72 = call i32 @conf_ser(i32 noundef %71)
br label %73
73: ; preds = %68, %102
%74 = call i32 @FD_ZERO(ptr noundef %12)
%75 = load i32, ptr %10, align 4
%76 = call i32 @FD_SET(i32 noundef %75, ptr noundef %12)
%77 = load i32, ptr %11, align 4
%78 = call i32 @FD_SET(i32 noundef %77, ptr noundef %12)
%79 = load i32, ptr %11, align 4
%80 = add nsw i32 %79, 1
%81 = call i32 @select(i32 noundef %80, ptr noundef %12, ptr noundef null, ptr noundef null, ptr noundef null)
store i32 %81, ptr %13, align 4
%82 = load i32, ptr %13, align 4
%83 = icmp eq i32 %82, -1
br i1 %83, label %84, label %86
84: ; preds = %73
%85 = call i32 @perror(ptr noundef @.str.2)
store i32 1, ptr %3, align 4
br label %103
86: ; preds = %73
%87 = load i32, ptr %10, align 4
%88 = call i64 @FD_ISSET(i32 noundef %87, ptr noundef %12)
%89 = icmp ne i64 %88, 0
br i1 %89, label %90, label %94
90: ; preds = %86
%91 = load i32, ptr %10, align 4
%92 = load i32, ptr %11, align 4
%93 = call i32 @copydata(i32 noundef %91, i32 noundef %92)
br label %94
94: ; preds = %90, %86
%95 = load i32, ptr %11, align 4
%96 = call i64 @FD_ISSET(i32 noundef %95, ptr noundef %12)
%97 = icmp ne i64 %96, 0
br i1 %97, label %98, label %102
98: ; preds = %94
%99 = load i32, ptr %11, align 4
%100 = load i32, ptr %10, align 4
%101 = call i32 @copydata(i32 noundef %99, i32 noundef %100)
br label %102
102: ; preds = %98, %94
br label %73
103: ; preds = %84, %50, %37
%104 = load i32, ptr %3, align 4
ret i32 %104
}
declare i32 @ptym_open(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @unlink(ptr noundef) #1
declare i64 @symlink(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @conf_ser(i32 noundef) #1
declare i32 @FD_ZERO(ptr noundef) #1
declare i32 @FD_SET(i32 noundef, ptr noundef) #1
declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i64 @FD_ISSET(i32 noundef, ptr noundef) #1
declare i32 @copydata(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/tmpd720765u.c"
target datalayout = "e-m:e-p270: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 [19 x i8] c"Cannot create: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"(%s) <=> (%s)\0A\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"select\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 [1024 x i8], align 16
%7 = alloca [1024 x i8], align 16
%8 = alloca [1024 x i8], align 16
%9 = alloca [1024 x i8], align 16
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = 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
%14 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%15 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%16 = call i32 @ptym_open(ptr noundef %14, ptr noundef %15, i32 noundef 1024)
store i32 %16, ptr %10, align 4
%17 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%18 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%19 = call i32 @ptym_open(ptr noundef %17, ptr noundef %18, i32 noundef 1024)
store i32 %19, ptr %11, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp sge i32 %20, 3
br i1 %21, label %22, label %64
22: ; preds = %2
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 1
%25 = load ptr, ptr %24, align 8
%26 = call i32 @unlink(ptr noundef %25)
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds ptr, ptr %27, i64 2
%29 = load ptr, ptr %28, align 8
%30 = call i32 @unlink(ptr noundef %29)
%31 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds ptr, ptr %32, i64 1
%34 = load ptr, ptr %33, align 8
%35 = call i64 @symlink(ptr noundef %31, ptr noundef %34)
%36 = icmp slt i64 %35, 0
br i1 %36, label %37, label %43
37: ; preds = %22
%38 = load i32, ptr @stderr, align 4
%39 = load ptr, ptr %5, align 8
%40 = getelementptr inbounds ptr, ptr %39, i64 1
%41 = load ptr, ptr %40, align 8
%42 = call i32 @fprintf(i32 noundef %38, ptr noundef @.str, ptr noundef %41)
store i32 1, ptr %3, align 4
br label %103
43: ; preds = %22
%44 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%45 = load ptr, ptr %5, align 8
%46 = getelementptr inbounds ptr, ptr %45, i64 2
%47 = load ptr, ptr %46, align 8
%48 = call i64 @symlink(ptr noundef %44, ptr noundef %47)
%49 = icmp slt i64 %48, 0
br i1 %49, label %50, label %56
50: ; preds = %43
%51 = load i32, ptr @stderr, align 4
%52 = load ptr, ptr %5, align 8
%53 = getelementptr inbounds ptr, ptr %52, i64 2
%54 = load ptr, ptr %53, align 8
%55 = call i32 @fprintf(i32 noundef %51, ptr noundef @.str, ptr noundef %54)
store i32 1, ptr %3, align 4
br label %103
56: ; preds = %43
%57 = load ptr, ptr %5, align 8
%58 = getelementptr inbounds ptr, ptr %57, i64 1
%59 = load ptr, ptr %58, align 8
%60 = load ptr, ptr %5, align 8
%61 = getelementptr inbounds ptr, ptr %60, i64 2
%62 = load ptr, ptr %61, align 8
%63 = call i32 @printf(ptr noundef @.str.1, ptr noundef %59, ptr noundef %62)
br label %68
64: ; preds = %2
%65 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%66 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%67 = call i32 @printf(ptr noundef @.str.1, ptr noundef %65, ptr noundef %66)
br label %68
68: ; preds = %64, %56
%69 = load i32, ptr %10, align 4
%70 = call i32 @conf_ser(i32 noundef %69)
%71 = load i32, ptr %11, align 4
%72 = call i32 @conf_ser(i32 noundef %71)
br label %73
73: ; preds = %102, %68
%74 = call i32 @FD_ZERO(ptr noundef %12)
%75 = load i32, ptr %10, align 4
%76 = call i32 @FD_SET(i32 noundef %75, ptr noundef %12)
%77 = load i32, ptr %11, align 4
%78 = call i32 @FD_SET(i32 noundef %77, ptr noundef %12)
%79 = load i32, ptr %11, align 4
%80 = add nsw i32 %79, 1
%81 = call i32 @select(i32 noundef %80, ptr noundef %12, ptr noundef null, ptr noundef null, ptr noundef null)
store i32 %81, ptr %13, align 4
%82 = load i32, ptr %13, align 4
%83 = icmp eq i32 %82, -1
br i1 %83, label %84, label %86
84: ; preds = %73
%85 = call i32 @perror(ptr noundef @.str.2)
store i32 1, ptr %3, align 4
br label %103
86: ; preds = %73
%87 = load i32, ptr %10, align 4
%88 = call i64 @FD_ISSET(i32 noundef %87, ptr noundef %12)
%89 = icmp ne i64 %88, 0
br i1 %89, label %90, label %94
90: ; preds = %86
%91 = load i32, ptr %10, align 4
%92 = load i32, ptr %11, align 4
%93 = call i32 @copydata(i32 noundef %91, i32 noundef %92)
br label %94
94: ; preds = %90, %86
%95 = load i32, ptr %11, align 4
%96 = call i64 @FD_ISSET(i32 noundef %95, ptr noundef %12)
%97 = icmp ne i64 %96, 0
br i1 %97, label %98, label %102
98: ; preds = %94
%99 = load i32, ptr %11, align 4
%100 = load i32, ptr %10, align 4
%101 = call i32 @copydata(i32 noundef %99, i32 noundef %100)
br label %102
102: ; preds = %98, %94
br label %73
103: ; preds = %84, %50, %37
%104 = load i32, ptr %3, align 4
ret i32 %104
}
declare i32 @ptym_open(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @unlink(ptr noundef) #1
declare i64 @symlink(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @conf_ser(i32 noundef) #1
declare i32 @FD_ZERO(ptr noundef) #1
declare i32 @FD_SET(i32 noundef, ptr noundef) #1
declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i64 @FD_ISSET(i32 noundef, ptr noundef) #1
declare i32 @copydata(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_vxxatog.c'
source_filename = "/tmp/tmp_vxxatog.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [199 x i32], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %6, align 4
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
store i32 0, ptr %5, align 4
br label %8
8: ; preds = %17, %0
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %2, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %20
12: ; preds = %8
%13 = load i32, ptr %5, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [199 x i32], ptr %3, i64 0, i64 %14
%16 = call i32 @scanf(ptr noundef @.str, ptr 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
br label %8, !llvm.loop !6
20: ; preds = %8
store i32 0, ptr %5, align 4
br label %21
21: ; preds = %64, %20
%22 = load i32, ptr %5, align 4
%23 = load i32, ptr %2, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %67
25: ; preds = %21
store i32 0, ptr %6, align 4
store i32 0, ptr %4, align 4
br label %26
26: ; preds = %60, %25
%27 = load i32, ptr %4, align 4
%28 = load i32, ptr %2, align 4
%29 = sub nsw i32 %28, 1
%30 = icmp sle i32 %27, %29
br i1 %30, label %31, label %63
31: ; preds = %26
%32 = load i32, ptr %5, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [199 x i32], ptr %3, i64 0, i64 %33
%35 = load i32, ptr %34, align 4
%36 = load i32, ptr %4, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [199 x i32], ptr %3, i64 0, i64 %37
%39 = load i32, ptr %38, align 4
%40 = icmp eq i32 %35, %39
br i1 %40, label %41, label %44
41: ; preds = %31
%42 = load i32, ptr %6, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %6, align 4
br label %44
44: ; preds = %41, %31
%45 = load i32, ptr %4, align 4
%46 = load i32, ptr %2, align 4
%47 = sub nsw i32 %46, 1
%48 = icmp eq i32 %45, %47
br i1 %48, label %49, label %59
49: ; preds = %44
%50 = load i32, ptr %6, align 4
%51 = icmp eq i32 %50, 1
br i1 %51, label %52, label %58
52: ; preds = %49
%53 = load i32, ptr %5, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [199 x i32], ptr %3, i64 0, i64 %54
%56 = load i32, ptr %55, align 4
%57 = call i32 @printf(ptr noundef @.str, i32 noundef %56)
br label %58
58: ; preds = %52, %49
br label %63
59: ; preds = %44
br label %60
60: ; preds = %59
%61 = load i32, ptr %4, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %4, align 4
br label %26, !llvm.loop !8
63: ; preds = %58, %26
br label %64
64: ; preds = %63
%65 = load i32, ptr %5, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %5, align 4
br label %21, !llvm.loop !9
67: ; preds = %21
ret i32 0
}
declare i32 @scanf(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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_vxxatog.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [199 x i32], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %6, align 4
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
store i32 0, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %22
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %16
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [199 x i32], ptr %3, i64 0, i64 %13
%15 = call i32 @scanf(ptr noundef @.str, ptr noundef %14)
br label %16
16: ; preds = %11
%17 = load i32, ptr %5, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %5, align 4
%19 = load i32, ptr %5, align 4
%20 = load i32, ptr %2, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %22
22: ; preds = %._crit_edge, %0
store i32 0, ptr %5, align 4
%23 = load i32, ptr %5, align 4
%24 = load i32, ptr %2, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %.lr.ph4, label %74
.lr.ph4: ; preds = %22
br label %26
26: ; preds = %.lr.ph4, %68
store i32 0, ptr %6, align 4
store i32 0, ptr %4, align 4
%27 = load i32, ptr %4, align 4
%28 = load i32, ptr %2, align 4
%29 = sub nsw i32 %28, 1
%30 = icmp sle i32 %27, %29
br i1 %30, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %26
br label %31
31: ; preds = %.lr.ph2, %60
%32 = load i32, ptr %5, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [199 x i32], ptr %3, i64 0, i64 %33
%35 = load i32, ptr %34, align 4
%36 = load i32, ptr %4, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [199 x i32], ptr %3, i64 0, i64 %37
%39 = load i32, ptr %38, align 4
%40 = icmp eq i32 %35, %39
br i1 %40, label %41, label %44
41: ; preds = %31
%42 = load i32, ptr %6, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %6, align 4
br label %44
44: ; preds = %41, %31
%45 = load i32, ptr %4, align 4
%46 = load i32, ptr %2, align 4
%47 = sub nsw i32 %46, 1
%48 = icmp eq i32 %45, %47
br i1 %48, label %49, label %59
49: ; preds = %44
%50 = load i32, ptr %6, align 4
%51 = icmp eq i32 %50, 1
br i1 %51, label %52, label %58
52: ; preds = %49
%53 = load i32, ptr %5, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [199 x i32], ptr %3, i64 0, i64 %54
%56 = load i32, ptr %55, align 4
%57 = call i32 @printf(ptr noundef @.str, i32 noundef %56)
br label %58
58: ; preds = %52, %49
br label %67
59: ; preds = %44
br label %60
60: ; preds = %59
%61 = load i32, ptr %4, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %4, align 4
%63 = load i32, ptr %4, align 4
%64 = load i32, ptr %2, align 4
%65 = sub nsw i32 %64, 1
%66 = icmp sle i32 %63, %65
br i1 %66, label %31, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %60
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %26
br label %67
67: ; preds = %.loopexit, %58
br label %68
68: ; preds = %67
%69 = load i32, ptr %5, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %5, align 4
%71 = load i32, ptr %5, align 4
%72 = load i32, ptr %2, align 4
%73 = icmp slt i32 %71, %72
br i1 %73, label %26, label %._crit_edge5, !llvm.loop !9
._crit_edge5: ; preds = %68
br label %74
74: ; preds = %._crit_edge5, %22
ret i32 0
}
declare i32 @scanf(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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp999agext.c'
source_filename = "/tmp/tmp999agext.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @celcon_number_of_cells(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = load ptr, ptr %3, align 8
%8 = load ptr, ptr %5, align 8
%9 = call i32 @_ada_use_c2phc(i32 noundef 82, ptr noundef %6, ptr noundef %7, ptr noundef %8)
store i32 %9, ptr %4, align 4
%10 = load i32, ptr %4, align 4
ret i32 %10
}
declare i32 @_ada_use_c2phc(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp999agext.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @celcon_number_of_cells(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = load ptr, ptr %3, align 8
%8 = load ptr, ptr %5, align 8
%9 = call i32 @_ada_use_c2phc(i32 noundef 82, ptr noundef %6, ptr noundef %7, ptr noundef %8)
store i32 %9, ptr %4, align 4
%10 = load i32, ptr %4, align 4
ret i32 %10
}
declare i32 @_ada_use_c2phc(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6zjhi76v.c'
source_filename = "/tmp/tmp6zjhi76v.c"
target datalayout = "e-m:e-p270: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.passwd = type { ptr, ptr, i32, i32, ptr, ptr, ptr }
@.str = private unnamed_addr constant [13 x i8] c"My ID is %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"My effective ID is %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"Group ID is %d\00", align 1
@.str.3 = private unnamed_addr constant [26 x i8] c"Effective Group ID is %d\0A\00", align 1
@errno = dso_local global i64 0, align 8
@.str.4 = private unnamed_addr constant [67 x i8] c"Here is the inforamtion of the first record in password\0A database\0A\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"User name: '%s'\0A\00", align 1
@.str.6 = private unnamed_addr constant [21 x i8] c"User password: '%s'\0A\00", align 1
@.str.7 = private unnamed_addr constant [13 x i8] c"User ID: %d\0A\00", align 1
@.str.8 = private unnamed_addr constant [14 x i8] c"Group ID: %d\0A\00", align 1
@.str.9 = private unnamed_addr constant [21 x i8] c"Comment field: '%s'\0A\00", align 1
@.str.10 = private unnamed_addr constant [16 x i8] c"Home dir: '%s'\0A\00", align 1
@.str.11 = private unnamed_addr constant [14 x i8] c"Shell: '%s'\0A\0A\00", align 1
@.str.12 = private unnamed_addr constant [18 x i8] c"getpwent() failed\00", align 1
@.str.13 = private unnamed_addr constant [13 x i8] c"EOF reached\0A\00", align 1
@.str.14 = private unnamed_addr constant [19 x i8] c"User name is '%s'\0A\00", align 1
@.str.15 = private unnamed_addr constant [30 x i8] c"other infor has been omitted\0A\00", align 1
@.str.16 = private unnamed_addr constant [25 x i8] c"No password entry found!\00", align 1
@.str.17 = private unnamed_addr constant [5 x i8] c"root\00", align 1
@.str.18 = private unnamed_addr constant [20 x i8] c"User shell is '%s'\0A\00", align 1
@.str.19 = private unnamed_addr constant [22 x i8] c"other infor omitted \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = 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
%11 = call i32 (...) @getuid()
store i32 %11, ptr %6, align 4
%12 = call i32 (...) @geteuid()
store i32 %12, ptr %7, align 4
%13 = call i32 (...) @getgid()
store i32 %13, ptr %8, align 4
%14 = call i32 (...) @getegid()
store i32 %14, ptr %9, align 4
%15 = load i32, ptr %6, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %15)
%17 = load i32, ptr %7, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %17)
%19 = load i32, ptr %8, align 4
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %19)
%21 = load i32, ptr %9, align 4
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %21)
store i64 0, ptr @errno, align 8
%23 = call ptr (...) @getpwent()
store ptr %23, ptr %10, align 8
br label %24
24: ; preds = %27, %2
%25 = call ptr (...) @getpwent()
store ptr %25, ptr %10, align 8
%26 = icmp ne ptr %25, null
br i1 %26, label %27, label %57
27: ; preds = %24
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%29 = load ptr, ptr %10, align 8
%30 = getelementptr inbounds %struct.passwd, ptr %29, i32 0, i32 0
%31 = load ptr, ptr %30, align 8
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %31)
%33 = load ptr, ptr %10, align 8
%34 = getelementptr inbounds %struct.passwd, ptr %33, i32 0, i32 1
%35 = load ptr, ptr %34, align 8
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %35)
%37 = load ptr, ptr %10, align 8
%38 = getelementptr inbounds %struct.passwd, ptr %37, i32 0, i32 2
%39 = load i32, ptr %38, align 8
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %39)
%41 = load ptr, ptr %10, align 8
%42 = getelementptr inbounds %struct.passwd, ptr %41, i32 0, i32 3
%43 = load i32, ptr %42, align 4
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %43)
%45 = load ptr, ptr %10, align 8
%46 = getelementptr inbounds %struct.passwd, ptr %45, i32 0, i32 4
%47 = load ptr, ptr %46, align 8
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %47)
%49 = load ptr, ptr %10, align 8
%50 = getelementptr inbounds %struct.passwd, ptr %49, i32 0, i32 5
%51 = load ptr, ptr %50, align 8
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, ptr noundef %51)
%53 = load ptr, ptr %10, align 8
%54 = getelementptr inbounds %struct.passwd, ptr %53, i32 0, i32 6
%55 = load ptr, ptr %54, align 8
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, ptr noundef %55)
br label %24, !llvm.loop !6
57: ; preds = %24
%58 = load i64, ptr @errno, align 8
%59 = icmp ne i64 %58, 0
br i1 %59, label %60, label %62
60: ; preds = %57
%61 = call i32 @perror(ptr noundef @.str.12)
store i32 1, ptr %3, align 4
br label %95
62: ; preds = %57
%63 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
br label %64
64: ; preds = %62
%65 = call i32 (...) @setpwent()
%66 = call i32 (...) @getuid()
store i32 %66, ptr %6, align 4
%67 = load i32, ptr %6, align 4
%68 = call ptr @getpwuid(i32 noundef %67)
store ptr %68, ptr %10, align 8
%69 = load ptr, ptr %10, align 8
%70 = icmp ne ptr %69, null
br i1 %70, label %71, label %77
71: ; preds = %64
%72 = load ptr, ptr %10, align 8
%73 = getelementptr inbounds %struct.passwd, ptr %72, i32 0, i32 0
%74 = load ptr, ptr %73, align 8
%75 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, ptr noundef %74)
%76 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
br label %83
77: ; preds = %64
%78 = load i64, ptr @errno, align 8
%79 = icmp ne i64 %78, 0
br i1 %79, label %80, label %82
80: ; preds = %77
%81 = call i32 @perror(ptr noundef @.str.16)
store i32 0, ptr %3, align 4
br label %95
82: ; preds = %77
br label %83
83: ; preds = %82, %71
%84 = call ptr @getpwnam(ptr noundef @.str.17)
store ptr %84, ptr %10, align 8
%85 = load ptr, ptr %10, align 8
%86 = icmp ne ptr %85, null
br i1 %86, label %87, label %93
87: ; preds = %83
%88 = load ptr, ptr %10, align 8
%89 = getelementptr inbounds %struct.passwd, ptr %88, i32 0, i32 6
%90 = load ptr, ptr %89, align 8
%91 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, ptr noundef %90)
%92 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
br label %93
93: ; preds = %87, %83
%94 = call i32 (...) @endpwent()
store i32 0, ptr %3, align 4
br label %95
95: ; preds = %93, %80, %60
%96 = load i32, ptr %3, align 4
ret i32 %96
}
declare i32 @getuid(...) #1
declare i32 @geteuid(...) #1
declare i32 @getgid(...) #1
declare i32 @getegid(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @getpwent(...) #1
declare i32 @perror(ptr noundef) #1
declare i32 @setpwent(...) #1
declare ptr @getpwuid(i32 noundef) #1
declare ptr @getpwnam(ptr noundef) #1
declare i32 @endpwent(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp6zjhi76v.c"
target datalayout = "e-m:e-p270: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.passwd = type { ptr, ptr, i32, i32, ptr, ptr, ptr }
@.str = private unnamed_addr constant [13 x i8] c"My ID is %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"My effective ID is %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"Group ID is %d\00", align 1
@.str.3 = private unnamed_addr constant [26 x i8] c"Effective Group ID is %d\0A\00", align 1
@errno = dso_local global i64 0, align 8
@.str.4 = private unnamed_addr constant [67 x i8] c"Here is the inforamtion of the first record in password\0A database\0A\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"User name: '%s'\0A\00", align 1
@.str.6 = private unnamed_addr constant [21 x i8] c"User password: '%s'\0A\00", align 1
@.str.7 = private unnamed_addr constant [13 x i8] c"User ID: %d\0A\00", align 1
@.str.8 = private unnamed_addr constant [14 x i8] c"Group ID: %d\0A\00", align 1
@.str.9 = private unnamed_addr constant [21 x i8] c"Comment field: '%s'\0A\00", align 1
@.str.10 = private unnamed_addr constant [16 x i8] c"Home dir: '%s'\0A\00", align 1
@.str.11 = private unnamed_addr constant [14 x i8] c"Shell: '%s'\0A\0A\00", align 1
@.str.12 = private unnamed_addr constant [18 x i8] c"getpwent() failed\00", align 1
@.str.13 = private unnamed_addr constant [13 x i8] c"EOF reached\0A\00", align 1
@.str.14 = private unnamed_addr constant [19 x i8] c"User name is '%s'\0A\00", align 1
@.str.15 = private unnamed_addr constant [30 x i8] c"other infor has been omitted\0A\00", align 1
@.str.16 = private unnamed_addr constant [25 x i8] c"No password entry found!\00", align 1
@.str.17 = private unnamed_addr constant [5 x i8] c"root\00", align 1
@.str.18 = private unnamed_addr constant [20 x i8] c"User shell is '%s'\0A\00", align 1
@.str.19 = private unnamed_addr constant [22 x i8] c"other infor omitted \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = 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
%11 = call i32 (...) @getuid()
store i32 %11, ptr %6, align 4
%12 = call i32 (...) @geteuid()
store i32 %12, ptr %7, align 4
%13 = call i32 (...) @getgid()
store i32 %13, ptr %8, align 4
%14 = call i32 (...) @getegid()
store i32 %14, ptr %9, align 4
%15 = load i32, ptr %6, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %15)
%17 = load i32, ptr %7, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %17)
%19 = load i32, ptr %8, align 4
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %19)
%21 = load i32, ptr %9, align 4
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %21)
store i64 0, ptr @errno, align 8
%23 = call ptr (...) @getpwent()
store ptr %23, ptr %10, align 8
%24 = call ptr (...) @getpwent()
store ptr %24, ptr %10, align 8
%25 = icmp ne ptr %24, null
br i1 %25, label %.lr.ph, label %58
.lr.ph: ; preds = %2
br label %26
26: ; preds = %.lr.ph, %26
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%28 = load ptr, ptr %10, align 8
%29 = getelementptr inbounds %struct.passwd, ptr %28, i32 0, i32 0
%30 = load ptr, ptr %29, align 8
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %30)
%32 = load ptr, ptr %10, align 8
%33 = getelementptr inbounds %struct.passwd, ptr %32, i32 0, i32 1
%34 = load ptr, ptr %33, align 8
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %34)
%36 = load ptr, ptr %10, align 8
%37 = getelementptr inbounds %struct.passwd, ptr %36, i32 0, i32 2
%38 = load i32, ptr %37, align 8
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %38)
%40 = load ptr, ptr %10, align 8
%41 = getelementptr inbounds %struct.passwd, ptr %40, i32 0, i32 3
%42 = load i32, ptr %41, align 4
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %42)
%44 = load ptr, ptr %10, align 8
%45 = getelementptr inbounds %struct.passwd, ptr %44, i32 0, i32 4
%46 = load ptr, ptr %45, align 8
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %46)
%48 = load ptr, ptr %10, align 8
%49 = getelementptr inbounds %struct.passwd, ptr %48, i32 0, i32 5
%50 = load ptr, ptr %49, align 8
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, ptr noundef %50)
%52 = load ptr, ptr %10, align 8
%53 = getelementptr inbounds %struct.passwd, ptr %52, i32 0, i32 6
%54 = load ptr, ptr %53, align 8
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, ptr noundef %54)
%56 = call ptr (...) @getpwent()
store ptr %56, ptr %10, align 8
%57 = icmp ne ptr %56, null
br i1 %57, label %26, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %58
58: ; preds = %._crit_edge, %2
%59 = load i64, ptr @errno, align 8
%60 = icmp ne i64 %59, 0
br i1 %60, label %61, label %63
61: ; preds = %58
%62 = call i32 @perror(ptr noundef @.str.12)
store i32 1, ptr %3, align 4
br label %96
63: ; preds = %58
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
br label %65
65: ; preds = %63
%66 = call i32 (...) @setpwent()
%67 = call i32 (...) @getuid()
store i32 %67, ptr %6, align 4
%68 = load i32, ptr %6, align 4
%69 = call ptr @getpwuid(i32 noundef %68)
store ptr %69, ptr %10, align 8
%70 = load ptr, ptr %10, align 8
%71 = icmp ne ptr %70, null
br i1 %71, label %72, label %78
72: ; preds = %65
%73 = load ptr, ptr %10, align 8
%74 = getelementptr inbounds %struct.passwd, ptr %73, i32 0, i32 0
%75 = load ptr, ptr %74, align 8
%76 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, ptr noundef %75)
%77 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
br label %84
78: ; preds = %65
%79 = load i64, ptr @errno, align 8
%80 = icmp ne i64 %79, 0
br i1 %80, label %81, label %83
81: ; preds = %78
%82 = call i32 @perror(ptr noundef @.str.16)
store i32 0, ptr %3, align 4
br label %96
83: ; preds = %78
br label %84
84: ; preds = %83, %72
%85 = call ptr @getpwnam(ptr noundef @.str.17)
store ptr %85, ptr %10, align 8
%86 = load ptr, ptr %10, align 8
%87 = icmp ne ptr %86, null
br i1 %87, label %88, label %94
88: ; preds = %84
%89 = load ptr, ptr %10, align 8
%90 = getelementptr inbounds %struct.passwd, ptr %89, i32 0, i32 6
%91 = load ptr, ptr %90, align 8
%92 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, ptr noundef %91)
%93 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
br label %94
94: ; preds = %88, %84
%95 = call i32 (...) @endpwent()
store i32 0, ptr %3, align 4
br label %96
96: ; preds = %94, %81, %61
%97 = load i32, ptr %3, align 4
ret i32 %97
}
declare i32 @getuid(...) #1
declare i32 @geteuid(...) #1
declare i32 @getgid(...) #1
declare i32 @getegid(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @getpwent(...) #1
declare i32 @perror(ptr noundef) #1
declare i32 @setpwent(...) #1
declare ptr @getpwuid(i32 noundef) #1
declare ptr @getpwnam(ptr noundef) #1
declare i32 @endpwent(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpr8q1fvew.c'
source_filename = "/tmp/tmpr8q1fvew.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @Lamda(i32 noundef %0, i32 noundef %1, float noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca float, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca float, align 4
%14 = alloca i32, align 4
store i32 %0, ptr %7, align 4
store i32 %1, ptr %8, align 4
store float %2, ptr %9, align 4
store ptr %3, ptr %10, align 8
store i32 %4, ptr %11, align 4
store i32 %5, ptr %12, align 4
store float 0.000000e+00, ptr %13, align 4
%15 = load float, ptr %9, align 4
%16 = fpext float %15 to double
%17 = fcmp oeq double %16, 0.000000e+00
br i1 %17, label %18, label %19
18: ; preds = %6
store float 5.000000e-01, ptr %13, align 4
br label %65
19: ; preds = %6
store i32 1, ptr %14, align 4
br label %20
20: ; preds = %50, %19
%21 = load i32, ptr %14, align 4
%22 = load i32, ptr %11, align 4
%23 = icmp sle i32 %21, %22
br i1 %23, label %24, label %53
24: ; preds = %20
%25 = load i32, ptr %7, align 4
%26 = load i32, ptr %14, align 4
%27 = icmp ne i32 %25, %26
br i1 %27, label %28, label %49
28: ; preds = %24
%29 = load i32, ptr %8, align 4
%30 = load i32, ptr %14, align 4
%31 = icmp ne i32 %29, %30
br i1 %31, label %32, label %49
32: ; preds = %28
%33 = load i32, ptr %14, align 4
%34 = load ptr, ptr %10, align 8
%35 = call i32 @Emptied(i32 noundef %33, ptr noundef %34)
%36 = icmp ne i32 %35, 0
br i1 %36, label %49, label %37
37: ; preds = %32
%38 = load float, ptr %13, align 4
%39 = load i32, ptr %8, align 4
%40 = load i32, ptr %14, align 4
%41 = load ptr, ptr %10, align 8
%42 = call float @Variance(i32 noundef %39, i32 noundef %40, ptr noundef %41)
%43 = load i32, ptr %7, align 4
%44 = load i32, ptr %14, align 4
%45 = load ptr, ptr %10, align 8
%46 = call float @Variance(i32 noundef %43, i32 noundef %44, ptr noundef %45)
%47 = fsub float %42, %46
%48 = fadd float %38, %47
store float %48, ptr %13, align 4
br label %49
49: ; preds = %37, %32, %28, %24
br label %50
50: ; preds = %49
%51 = load i32, ptr %14, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %14, align 4
br label %20, !llvm.loop !6
53: ; preds = %20
%54 = load float, ptr %13, align 4
%55 = load i32, ptr %12, align 4
%56 = sub nsw i32 %55, 2
%57 = mul nsw i32 2, %56
%58 = sitofp i32 %57 to float
%59 = load float, ptr %9, align 4
%60 = fmul float %58, %59
%61 = fdiv float %54, %60
%62 = fpext float %61 to double
%63 = fadd double 5.000000e-01, %62
%64 = fptrunc double %63 to float
store float %64, ptr %13, align 4
br label %65
65: ; preds = %53, %18
%66 = load float, ptr %13, align 4
%67 = fpext float %66 to double
%68 = fcmp ogt double %67, 1.000000e+00
br i1 %68, label %69, label %70
69: ; preds = %65
store float 1.000000e+00, ptr %13, align 4
br label %70
70: ; preds = %69, %65
%71 = load float, ptr %13, align 4
%72 = fpext float %71 to double
%73 = fcmp olt double %72, 0.000000e+00
br i1 %73, label %74, label %75
74: ; preds = %70
store float 0.000000e+00, ptr %13, align 4
br label %75
75: ; preds = %74, %70
%76 = load float, ptr %13, align 4
ret float %76
}
declare i32 @Emptied(i32 noundef, ptr noundef) #1
declare float @Variance(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr8q1fvew.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @Lamda(i32 noundef %0, i32 noundef %1, float noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca float, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca float, align 4
%14 = alloca i32, align 4
store i32 %0, ptr %7, align 4
store i32 %1, ptr %8, align 4
store float %2, ptr %9, align 4
store ptr %3, ptr %10, align 8
store i32 %4, ptr %11, align 4
store i32 %5, ptr %12, align 4
store float 0.000000e+00, ptr %13, align 4
%15 = load float, ptr %9, align 4
%16 = fpext float %15 to double
%17 = fcmp oeq double %16, 0.000000e+00
br i1 %17, label %18, label %19
18: ; preds = %6
store float 5.000000e-01, ptr %13, align 4
br label %67
19: ; preds = %6
store i32 1, ptr %14, align 4
%20 = load i32, ptr %14, align 4
%21 = load i32, ptr %11, align 4
%22 = icmp sle i32 %20, %21
br i1 %22, label %.lr.ph, label %55
.lr.ph: ; preds = %19
br label %23
23: ; preds = %.lr.ph, %49
%24 = load i32, ptr %7, align 4
%25 = load i32, ptr %14, align 4
%26 = icmp ne i32 %24, %25
br i1 %26, label %27, label %48
27: ; preds = %23
%28 = load i32, ptr %8, align 4
%29 = load i32, ptr %14, align 4
%30 = icmp ne i32 %28, %29
br i1 %30, label %31, label %48
31: ; preds = %27
%32 = load i32, ptr %14, align 4
%33 = load ptr, ptr %10, align 8
%34 = call i32 @Emptied(i32 noundef %32, ptr noundef %33)
%35 = icmp ne i32 %34, 0
br i1 %35, label %48, label %36
36: ; preds = %31
%37 = load float, ptr %13, align 4
%38 = load i32, ptr %8, align 4
%39 = load i32, ptr %14, align 4
%40 = load ptr, ptr %10, align 8
%41 = call float @Variance(i32 noundef %38, i32 noundef %39, ptr noundef %40)
%42 = load i32, ptr %7, align 4
%43 = load i32, ptr %14, align 4
%44 = load ptr, ptr %10, align 8
%45 = call float @Variance(i32 noundef %42, i32 noundef %43, ptr noundef %44)
%46 = fsub float %41, %45
%47 = fadd float %37, %46
store float %47, ptr %13, align 4
br label %48
48: ; preds = %36, %31, %27, %23
br label %49
49: ; preds = %48
%50 = load i32, ptr %14, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %14, align 4
%52 = load i32, ptr %14, align 4
%53 = load i32, ptr %11, align 4
%54 = icmp sle i32 %52, %53
br i1 %54, label %23, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %49
br label %55
55: ; preds = %._crit_edge, %19
%56 = load float, ptr %13, align 4
%57 = load i32, ptr %12, align 4
%58 = sub nsw i32 %57, 2
%59 = mul nsw i32 2, %58
%60 = sitofp i32 %59 to float
%61 = load float, ptr %9, align 4
%62 = fmul float %60, %61
%63 = fdiv float %56, %62
%64 = fpext float %63 to double
%65 = fadd double 5.000000e-01, %64
%66 = fptrunc double %65 to float
store float %66, ptr %13, align 4
br label %67
67: ; preds = %55, %18
%68 = load float, ptr %13, align 4
%69 = fpext float %68 to double
%70 = fcmp ogt double %69, 1.000000e+00
br i1 %70, label %71, label %72
71: ; preds = %67
store float 1.000000e+00, ptr %13, align 4
br label %72
72: ; preds = %71, %67
%73 = load float, ptr %13, align 4
%74 = fpext float %73 to double
%75 = fcmp olt double %74, 0.000000e+00
br i1 %75, label %76, label %77
76: ; preds = %72
store float 0.000000e+00, ptr %13, align 4
br label %77
77: ; preds = %76, %72
%78 = load float, ptr %13, align 4
ret float %78
}
declare i32 @Emptied(i32 noundef, ptr noundef) #1
declare float @Variance(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpdoxkh3bh.c'
source_filename = "/tmp/tmpdoxkh3bh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"x\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @drawline(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %10, %1
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp slt i32 %5, %6
br i1 %7, label %8, label %13
8: ; preds = %4
%9 = call i32 @printf(ptr noundef @.str)
br label %10
10: ; preds = %8
%11 = load i32, ptr %3, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %3, align 4
br label %4, !llvm.loop !6
13: ; preds = %4
%14 = call i32 @printf(ptr noundef @.str.1)
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdoxkh3bh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"x\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @drawline(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp slt i32 %4, %5
br i1 %6, label %.lr.ph, label %15
.lr.ph: ; preds = %1
br label %7
7: ; preds = %.lr.ph, %9
%8 = call i32 @printf(ptr noundef @.str)
br label %9
9: ; preds = %7
%10 = load i32, ptr %3, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %3, align 4
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %2, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %9
br label %15
15: ; preds = %._crit_edge, %1
%16 = call i32 @printf(ptr noundef @.str.1)
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmppdegmx5l.c'
source_filename = "/tmp/tmppdegmx5l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ultoa(i64 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca [33 x i8], align 16
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca ptr, align 8
store i64 %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%13 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 0
store ptr %13, ptr %9, align 8
%14 = load i64, ptr %5, align 8
store i64 %14, ptr %11, align 8
%15 = load ptr, ptr %6, align 8
%16 = icmp eq ptr %15, null
br i1 %16, label %17, label %18
17: ; preds = %3
store ptr null, ptr %4, align 8
br label %75
18: ; preds = %3
%19 = load i32, ptr %7, align 4
%20 = icmp sgt i32 %19, 36
br i1 %20, label %24, label %21
21: ; preds = %18
%22 = load i32, ptr %7, align 4
%23 = icmp sle i32 %22, 1
br i1 %23, label %24, label %25
24: ; preds = %21, %18
store ptr null, ptr %4, align 8
br label %75
25: ; preds = %21
br label %26
26: ; preds = %59, %25
%27 = load i64, ptr %11, align 8
%28 = icmp ne i64 %27, 0
br i1 %28, label %33, label %29
29: ; preds = %26
%30 = load ptr, ptr %9, align 8
%31 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 0
%32 = icmp eq ptr %30, %31
br label %33
33: ; preds = %29, %26
%34 = phi i1 [ true, %26 ], [ %32, %29 ]
br i1 %34, label %35, label %60
35: ; preds = %33
%36 = load i64, ptr %11, align 8
%37 = load i32, ptr %7, align 4
%38 = sext i32 %37 to i64
%39 = urem i64 %36, %38
store i64 %39, ptr %10, align 8
%40 = load i64, ptr %11, align 8
%41 = load i32, ptr %7, align 4
%42 = sext i32 %41 to i64
%43 = udiv i64 %40, %42
store i64 %43, ptr %11, align 8
%44 = load i64, ptr %10, align 8
%45 = icmp slt i64 %44, 10
br i1 %45, label %46, label %52
46: ; preds = %35
%47 = load i64, ptr %10, align 8
%48 = add nsw i64 %47, 48
%49 = trunc i64 %48 to i8
%50 = load ptr, ptr %9, align 8
%51 = getelementptr inbounds i8, ptr %50, i32 1
store ptr %51, ptr %9, align 8
store i8 %49, ptr %50, align 1
br label %59
52: ; preds = %35
%53 = load i64, ptr %10, align 8
%54 = add nsw i64 %53, 97
%55 = sub nsw i64 %54, 10
%56 = trunc i64 %55 to i8
%57 = load ptr, ptr %9, align 8
%58 = getelementptr inbounds i8, ptr %57, i32 1
store ptr %58, ptr %9, align 8
store i8 %56, ptr %57, align 1
br label %59
59: ; preds = %52, %46
br label %26, !llvm.loop !6
60: ; preds = %33
%61 = load ptr, ptr %6, align 8
store ptr %61, ptr %12, align 8
br label %62
62: ; preds = %66, %60
%63 = load ptr, ptr %9, align 8
%64 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 0
%65 = icmp ugt ptr %63, %64
br i1 %65, label %66, label %72
66: ; preds = %62
%67 = load ptr, ptr %9, align 8
%68 = getelementptr inbounds i8, ptr %67, i32 -1
store ptr %68, ptr %9, align 8
%69 = load i8, ptr %68, align 1
%70 = load ptr, ptr %12, align 8
%71 = getelementptr inbounds i8, ptr %70, i32 1
store ptr %71, ptr %12, align 8
store i8 %69, ptr %70, align 1
br label %62, !llvm.loop !8
72: ; preds = %62
%73 = load ptr, ptr %12, align 8
store i8 0, ptr %73, align 1
%74 = load ptr, ptr %6, align 8
store ptr %74, ptr %4, align 8
br label %75
75: ; preds = %72, %24, %17
%76 = load ptr, ptr %4, align 8
ret ptr %76
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmppdegmx5l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ultoa(i64 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca [33 x i8], align 16
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca ptr, align 8
store i64 %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%13 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 0
store ptr %13, ptr %9, align 8
%14 = load i64, ptr %5, align 8
store i64 %14, ptr %11, align 8
%15 = load ptr, ptr %6, align 8
%16 = icmp eq ptr %15, null
br i1 %16, label %17, label %18
17: ; preds = %3
store ptr null, ptr %4, align 8
br label %76
18: ; preds = %3
%19 = load i32, ptr %7, align 4
%20 = icmp sgt i32 %19, 36
br i1 %20, label %24, label %21
21: ; preds = %18
%22 = load i32, ptr %7, align 4
%23 = icmp sle i32 %22, 1
br i1 %23, label %24, label %25
24: ; preds = %21, %18
store ptr null, ptr %4, align 8
br label %76
25: ; preds = %21
br label %26
26: ; preds = %59, %25
%27 = load i64, ptr %11, align 8
%28 = icmp ne i64 %27, 0
br i1 %28, label %33, label %29
29: ; preds = %26
%30 = load ptr, ptr %9, align 8
%31 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 0
%32 = icmp eq ptr %30, %31
br label %33
33: ; preds = %29, %26
%34 = phi i1 [ true, %26 ], [ %32, %29 ]
br i1 %34, label %35, label %60
35: ; preds = %33
%36 = load i64, ptr %11, align 8
%37 = load i32, ptr %7, align 4
%38 = sext i32 %37 to i64
%39 = urem i64 %36, %38
store i64 %39, ptr %10, align 8
%40 = load i64, ptr %11, align 8
%41 = load i32, ptr %7, align 4
%42 = sext i32 %41 to i64
%43 = udiv i64 %40, %42
store i64 %43, ptr %11, align 8
%44 = load i64, ptr %10, align 8
%45 = icmp slt i64 %44, 10
br i1 %45, label %46, label %52
46: ; preds = %35
%47 = load i64, ptr %10, align 8
%48 = add nsw i64 %47, 48
%49 = trunc i64 %48 to i8
%50 = load ptr, ptr %9, align 8
%51 = getelementptr inbounds i8, ptr %50, i32 1
store ptr %51, ptr %9, align 8
store i8 %49, ptr %50, align 1
br label %59
52: ; preds = %35
%53 = load i64, ptr %10, align 8
%54 = add nsw i64 %53, 97
%55 = sub nsw i64 %54, 10
%56 = trunc i64 %55 to i8
%57 = load ptr, ptr %9, align 8
%58 = getelementptr inbounds i8, ptr %57, i32 1
store ptr %58, ptr %9, align 8
store i8 %56, ptr %57, align 1
br label %59
59: ; preds = %52, %46
br label %26, !llvm.loop !6
60: ; preds = %33
%61 = load ptr, ptr %6, align 8
store ptr %61, ptr %12, align 8
%62 = load ptr, ptr %9, align 8
%63 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 0
%64 = icmp ugt ptr %62, %63
br i1 %64, label %.lr.ph, label %73
.lr.ph: ; preds = %60
br label %65
65: ; preds = %.lr.ph, %65
%66 = load ptr, ptr %9, align 8
%67 = getelementptr inbounds i8, ptr %66, i32 -1
store ptr %67, ptr %9, align 8
%68 = load i8, ptr %67, align 1
%69 = load ptr, ptr %12, align 8
%70 = getelementptr inbounds i8, ptr %69, i32 1
store ptr %70, ptr %12, align 8
store i8 %68, ptr %69, align 1
%71 = load ptr, ptr %9, align 8
%72 = icmp ugt ptr %71, %63
br i1 %72, label %65, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %65
br label %73
73: ; preds = %._crit_edge, %60
%74 = load ptr, ptr %12, align 8
store i8 0, ptr %74, align 1
%75 = load ptr, ptr %6, align 8
store ptr %75, ptr %4, align 8
br label %76
76: ; preds = %73, %24, %17
%77 = load ptr, ptr %4, align 8
ret ptr %77
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpy1osda62.c'
source_filename = "/tmp/tmpy1osda62.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @quick_sort(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp sge i32 %8, %9
br i1 %10, label %11, label %12
11: ; preds = %3
br label %25
12: ; preds = %3
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %6, align 4
%16 = call i32 @randomized_partition(ptr noundef %13, i32 noundef %14, i32 noundef %15)
store i32 %16, ptr %7, align 4
%17 = load ptr, ptr %4, align 8
%18 = load i32, ptr %5, align 4
%19 = load i32, ptr %7, align 4
%20 = sub nsw i32 %19, 1
call void @quick_sort(ptr noundef %17, i32 noundef %18, i32 noundef %20)
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %7, align 4
%23 = add nsw i32 %22, 1
%24 = load i32, ptr %6, align 4
call void @quick_sort(ptr noundef %21, i32 noundef %23, i32 noundef %24)
br label %25
25: ; preds = %12, %11
ret void
}
declare i32 @randomized_partition(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy1osda62.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @quick_sort(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp sge i32 %8, %9
br i1 %10, label %11, label %12
11: ; preds = %3
br label %25
12: ; preds = %3
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %6, align 4
%16 = call i32 @randomized_partition(ptr noundef %13, i32 noundef %14, i32 noundef %15)
store i32 %16, ptr %7, align 4
%17 = load ptr, ptr %4, align 8
%18 = load i32, ptr %5, align 4
%19 = load i32, ptr %7, align 4
%20 = sub nsw i32 %19, 1
call void @quick_sort(ptr noundef %17, i32 noundef %18, i32 noundef %20)
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %7, align 4
%23 = add nsw i32 %22, 1
%24 = load i32, ptr %6, align 4
call void @quick_sort(ptr noundef %21, i32 noundef %23, i32 noundef %24)
br label %25
25: ; preds = %12, %11
ret void
}
declare i32 @randomized_partition(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqsl6vwgc.c'
source_filename = "/tmp/tmpqsl6vwgc.c"
target datalayout = "e-m:e-p270: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.target_phi.coeff = private unnamed_addr constant [21 x float] [float 0x3DF0DAC660000000, float 0x3F75AF3C80000000, float 0x3F782943C0000000, float 0xBF85B1B240000000, float 0xBF840FCDE0000000, float 0x3F91F27FA0000000, float 0xBFF222C540000000, float 0xBFA9DE69E0000000, float 0x400EDFEB80000000, float 0x3FAD099920000000, float 0xC0122D5E40000000, float 0x3FFD56EFE0000000, float 0x3F975618C0000000, float 0x3F9F52BB80000000, float 0x3FFD2B5960000000, float 0xBF994120A0000000, float 0xBFA2121F40000000, float 0xC0194FF380000000, float 0x401DA679A0000000, float 0xC0075711E0000000, float 0.000000e+00], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @target_phi(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca float, align 4
%9 = alloca [10 x float], align 16
%10 = alloca [10 x float], align 16
%11 = alloca [10 x float], align 16
%12 = alloca [21 x float], align 16
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca float, align 4
%16 = alloca float, align 4
%17 = alloca float, align 4
%18 = alloca float, align 4
%19 = alloca float, align 4
%20 = alloca float, align 4
%21 = alloca float, align 4
%22 = alloca float, align 4
%23 = alloca float, align 4
%24 = alloca float, align 4
%25 = alloca float, align 4
%26 = alloca float, align 4
%27 = alloca float, align 4
%28 = alloca float, align 4
%29 = alloca float, align 4
%30 = alloca float, align 4
%31 = alloca float, align 4
%32 = alloca float, align 4
%33 = alloca float, align 4
%34 = alloca float, align 4
%35 = alloca float, align 4
%36 = alloca float, align 4
%37 = alloca float, align 4
%38 = alloca float, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store i32 20, ptr %7, align 4
store float 0x3F494C5860000000, ptr %8, align 4
call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 40, i1 false)
%39 = getelementptr inbounds [10 x float], ptr %9, i32 0, i32 0
store float -1.500000e+01, ptr %39, align 16
%40 = getelementptr inbounds [10 x float], ptr %9, i32 0, i32 1
store float -1.500000e+01, ptr %40, align 4
%41 = getelementptr inbounds [10 x float], ptr %9, i32 0, i32 2
store float -1.800000e+01, ptr %41, align 8
%42 = getelementptr inbounds [10 x float], ptr %9, i32 0, i32 3
store float 0xC03205E360000000, ptr %42, align 4
call void @llvm.memset.p0.i64(ptr align 16 %10, i8 0, i64 40, i1 false)
%43 = getelementptr inbounds [10 x float], ptr %10, i32 0, i32 0
store float 1.500000e+01, ptr %43, align 16
%44 = getelementptr inbounds [10 x float], ptr %10, i32 0, i32 1
store float 1.500000e+01, ptr %44, align 4
%45 = getelementptr inbounds [10 x float], ptr %10, i32 0, i32 2
store float 1.800000e+01, ptr %45, align 8
%46 = getelementptr inbounds [10 x float], ptr %10, i32 0, i32 3
store float 0x4031FA9FC0000000, ptr %46, align 4
call void @llvm.memset.p0.i64(ptr align 16 %11, i8 0, i64 40, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %12, ptr align 16 @__const.target_phi.coeff, i64 84, i1 false)
store i32 0, ptr %13, align 4
%47 = load i32, ptr %13, align 4
%48 = icmp eq i32 %47, 0
br i1 %48, label %49, label %85
49: ; preds = %3
store i32 1, ptr %13, align 4
store i32 0, ptr %14, align 4
br label %50
50: ; preds = %81, %49
%51 = load i32, ptr %14, align 4
%52 = load i32, ptr %6, align 4
%53 = icmp slt i32 %51, %52
br i1 %53, label %54, label %84
54: ; preds = %50
%55 = load i32, ptr %14, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [10 x float], ptr %9, i64 0, i64 %56
%58 = load float, ptr %57, align 4
%59 = load i32, ptr %14, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [10 x float], ptr %10, i64 0, i64 %60
%62 = load float, ptr %61, align 4
%63 = fcmp oeq float %58, %62
br i1 %63, label %64, label %65
64: ; preds = %54
br label %81
65: ; preds = %54
%66 = load i32, ptr %14, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [10 x float], ptr %10, i64 0, i64 %67
%69 = load float, ptr %68, align 4
%70 = load i32, ptr %14, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [10 x float], ptr %9, i64 0, i64 %71
%73 = load float, ptr %72, align 4
%74 = fsub float %69, %73
%75 = fpext float %74 to double
%76 = fdiv double 2.000000e+00, %75
%77 = fptrunc double %76 to float
%78 = load i32, ptr %14, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 %79
store float %77, ptr %80, align 4
br label %81
81: ; preds = %65, %64
%82 = load i32, ptr %14, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %14, align 4
br label %50, !llvm.loop !6
84: ; preds = %50
br label %85
85: ; preds = %84, %3
%86 = load ptr, ptr %4, align 8
%87 = getelementptr inbounds float, ptr %86, i64 0
%88 = load float, ptr %87, align 4
%89 = getelementptr inbounds [10 x float], ptr %10, i64 0, i64 0
%90 = load float, ptr %89, align 16
%91 = fsub float %88, %90
%92 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 0
%93 = load float, ptr %92, align 16
%94 = fmul float %91, %93
%95 = fpext float %94 to double
%96 = fadd double 1.000000e+00, %95
%97 = fptrunc double %96 to float
store float %97, ptr %15, align 4
%98 = load ptr, ptr %5, align 8
%99 = getelementptr inbounds float, ptr %98, i64 0
%100 = load float, ptr %99, align 4
%101 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 0
%102 = load float, ptr %101, align 16
%103 = fmul float %100, %102
store float %103, ptr %16, align 4
%104 = load ptr, ptr %4, align 8
%105 = getelementptr inbounds float, ptr %104, i64 1
%106 = load float, ptr %105, align 4
%107 = getelementptr inbounds [10 x float], ptr %10, i64 0, i64 1
%108 = load float, ptr %107, align 4
%109 = fsub float %106, %108
%110 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 1
%111 = load float, ptr %110, align 4
%112 = fmul float %109, %111
%113 = fpext float %112 to double
%114 = fadd double 1.000000e+00, %113
%115 = fptrunc double %114 to float
store float %115, ptr %17, align 4
%116 = load ptr, ptr %5, align 8
%117 = getelementptr inbounds float, ptr %116, i64 1
%118 = load float, ptr %117, align 4
%119 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 1
%120 = load float, ptr %119, align 4
%121 = fmul float %118, %120
store float %121, ptr %18, align 4
%122 = load ptr, ptr %4, align 8
%123 = getelementptr inbounds float, ptr %122, i64 2
%124 = load float, ptr %123, align 4
%125 = getelementptr inbounds [10 x float], ptr %10, i64 0, i64 2
%126 = load float, ptr %125, align 8
%127 = fsub float %124, %126
%128 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 2
%129 = load float, ptr %128, align 8
%130 = fmul float %127, %129
%131 = fpext float %130 to double
%132 = fadd double 1.000000e+00, %131
%133 = fptrunc double %132 to float
store float %133, ptr %19, align 4
%134 = load ptr, ptr %5, align 8
%135 = getelementptr inbounds float, ptr %134, i64 2
%136 = load float, ptr %135, align 4
%137 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 2
%138 = load float, ptr %137, align 8
%139 = fmul float %136, %138
store float %139, ptr %20, align 4
%140 = load ptr, ptr %4, align 8
%141 = getelementptr inbounds float, ptr %140, i64 3
%142 = load float, ptr %141, align 4
%143 = getelementptr inbounds [10 x float], ptr %10, i64 0, i64 3
%144 = load float, ptr %143, align 4
%145 = fsub float %142, %144
%146 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 3
%147 = load float, ptr %146, align 4
%148 = fmul float %145, %147
%149 = fpext float %148 to double
%150 = fadd double 1.000000e+00, %149
%151 = fptrunc double %150 to float
store float %151, ptr %21, align 4
%152 = load ptr, ptr %5, align 8
%153 = getelementptr inbounds float, ptr %152, i64 3
%154 = load float, ptr %153, align 4
%155 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 3
%156 = load float, ptr %155, align 4
%157 = fmul float %154, %156
store float %157, ptr %22, align 4
%158 = load float, ptr %15, align 4
store float %158, ptr %23, align 4
%159 = load float, ptr %23, align 4
%160 = load float, ptr %15, align 4
%161 = fmul float %159, %160
store float %161, ptr %24, align 4
%162 = load float, ptr %24, align 4
%163 = load float, ptr %15, align 4
%164 = fmul float %162, %163
store float %164, ptr %25, align 4
%165 = load float, ptr %25, align 4
%166 = load float, ptr %15, align 4
%167 = fmul float %165, %166
store float %167, ptr %26, align 4
%168 = load float, ptr %17, align 4
store float %168, ptr %27, align 4
%169 = load float, ptr %27, align 4
%170 = load float, ptr %17, align 4
%171 = fmul float %169, %170
store float %171, ptr %28, align 4
%172 = load float, ptr %28, align 4
%173 = load float, ptr %17, align 4
%174 = fmul float %172, %173
store float %174, ptr %29, align 4
%175 = load float, ptr %29, align 4
%176 = load float, ptr %17, align 4
%177 = fmul float %175, %176
store float %177, ptr %30, align 4
%178 = load float, ptr %19, align 4
store float %178, ptr %31, align 4
%179 = load float, ptr %31, align 4
%180 = load float, ptr %19, align 4
%181 = fmul float %179, %180
store float %181, ptr %32, align 4
%182 = load float, ptr %32, align 4
%183 = load float, ptr %19, align 4
%184 = fmul float %182, %183
store float %184, ptr %33, align 4
%185 = load float, ptr %33, align 4
%186 = load float, ptr %19, align 4
%187 = fmul float %185, %186
store float %187, ptr %34, align 4
%188 = load float, ptr %21, align 4
store float %188, ptr %35, align 4
%189 = load float, ptr %8, align 4
%190 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 0
%191 = load float, ptr %190, align 16
%192 = fadd float %189, %191
%193 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 1
%194 = load float, ptr %193, align 4
%195 = load float, ptr %31, align 4
%196 = call float @llvm.fmuladd.f32(float %194, float %195, float %192)
%197 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 2
%198 = load float, ptr %197, align 8
%199 = load float, ptr %23, align 4
%200 = fmul float %198, %199
%201 = load float, ptr %27, align 4
%202 = call float @llvm.fmuladd.f32(float %200, float %201, float %196)
%203 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 3
%204 = load float, ptr %203, align 4
%205 = load float, ptr %27, align 4
%206 = fmul float %204, %205
%207 = load float, ptr %31, align 4
%208 = call float @llvm.fmuladd.f32(float %206, float %207, float %202)
%209 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 4
%210 = load float, ptr %209, align 16
%211 = load float, ptr %23, align 4
%212 = fmul float %210, %211
%213 = load float, ptr %35, align 4
%214 = call float @llvm.fmuladd.f32(float %212, float %213, float %208)
%215 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 5
%216 = load float, ptr %215, align 4
%217 = load float, ptr %31, align 4
%218 = fmul float %216, %217
%219 = load float, ptr %35, align 4
%220 = call float @llvm.fmuladd.f32(float %218, float %219, float %214)
%221 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 6
%222 = load float, ptr %221, align 8
%223 = load float, ptr %25, align 4
%224 = call float @llvm.fmuladd.f32(float %222, float %223, float %220)
%225 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 7
%226 = load float, ptr %225, align 4
%227 = load float, ptr %23, align 4
%228 = fmul float %226, %227
%229 = load float, ptr %28, align 4
%230 = call float @llvm.fmuladd.f32(float %228, float %229, float %224)
store float %230, ptr %36, align 4
%231 = load float, ptr %36, align 4
%232 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 8
%233 = load float, ptr %232, align 16
%234 = load float, ptr %24, align 4
%235 = fmul float %233, %234
%236 = load float, ptr %31, align 4
%237 = call float @llvm.fmuladd.f32(float %235, float %236, float %231)
%238 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 9
%239 = load float, ptr %238, align 4
%240 = load float, ptr %28, align 4
%241 = fmul float %239, %240
%242 = load float, ptr %31, align 4
%243 = call float @llvm.fmuladd.f32(float %241, float %242, float %237)
%244 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 10
%245 = load float, ptr %244, align 8
%246 = load float, ptr %23, align 4
%247 = fmul float %245, %246
%248 = load float, ptr %32, align 4
%249 = call float @llvm.fmuladd.f32(float %247, float %248, float %243)
%250 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 11
%251 = load float, ptr %250, align 4
%252 = load float, ptr %33, align 4
%253 = call float @llvm.fmuladd.f32(float %251, float %252, float %249)
%254 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 12
%255 = load float, ptr %254, align 16
%256 = load float, ptr %25, align 4
%257 = fmul float %255, %256
%258 = load float, ptr %28, align 4
%259 = call float @llvm.fmuladd.f32(float %257, float %258, float %253)
%260 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 13
%261 = load float, ptr %260, align 4
%262 = load float, ptr %23, align 4
%263 = fmul float %261, %262
%264 = load float, ptr %30, align 4
%265 = call float @llvm.fmuladd.f32(float %263, float %264, float %259)
%266 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 14
%267 = load float, ptr %266, align 8
%268 = load float, ptr %26, align 4
%269 = fmul float %267, %268
%270 = load float, ptr %31, align 4
%271 = call float @llvm.fmuladd.f32(float %269, float %270, float %265)
%272 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 15
%273 = load float, ptr %272, align 4
%274 = load float, ptr %24, align 4
%275 = fmul float %273, %274
%276 = load float, ptr %28, align 4
%277 = fmul float %275, %276
%278 = load float, ptr %31, align 4
%279 = call float @llvm.fmuladd.f32(float %277, float %278, float %271)
%280 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 16
%281 = load float, ptr %280, align 16
%282 = load float, ptr %30, align 4
%283 = fmul float %281, %282
%284 = load float, ptr %31, align 4
%285 = call float @llvm.fmuladd.f32(float %283, float %284, float %279)
store float %285, ptr %36, align 4
%286 = load float, ptr %36, align 4
%287 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 17
%288 = load float, ptr %287, align 4
%289 = load float, ptr %25, align 4
%290 = fmul float %288, %289
%291 = load float, ptr %32, align 4
%292 = call float @llvm.fmuladd.f32(float %290, float %291, float %286)
%293 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 18
%294 = load float, ptr %293, align 8
%295 = load float, ptr %24, align 4
%296 = fmul float %294, %295
%297 = load float, ptr %33, align 4
%298 = call float @llvm.fmuladd.f32(float %296, float %297, float %292)
%299 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 19
%300 = load float, ptr %299, align 4
%301 = load float, ptr %23, align 4
%302 = fmul float %300, %301
%303 = load float, ptr %34, align 4
%304 = call float @llvm.fmuladd.f32(float %302, float %303, float %298)
store float %304, ptr %36, align 4
%305 = load float, ptr %16, align 4
%306 = fadd float 0.000000e+00, %305
%307 = load float, ptr %18, align 4
%308 = fadd float %306, %307
%309 = load float, ptr %20, align 4
%310 = fadd float %308, %309
%311 = load float, ptr %22, align 4
%312 = fadd float %310, %311
store float %312, ptr %37, align 4
%313 = load float, ptr %37, align 4
%314 = fcmp oeq float %313, 0.000000e+00
br i1 %314, label %315, label %316
315: ; preds = %85
br label %537
316: ; preds = %85
%317 = load float, ptr %16, align 4
%318 = load float, ptr %16, align 4
%319 = fmul float %317, %318
%320 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 2
%321 = load float, ptr %320, align 8
%322 = load float, ptr %27, align 4
%323 = call float @llvm.fmuladd.f32(float %321, float %322, float 0.000000e+00)
%324 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 4
%325 = load float, ptr %324, align 16
%326 = load float, ptr %35, align 4
%327 = call float @llvm.fmuladd.f32(float %325, float %326, float %323)
%328 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 6
%329 = load float, ptr %328, align 8
%330 = fmul float 3.000000e+00, %329
%331 = load float, ptr %24, align 4
%332 = call float @llvm.fmuladd.f32(float %330, float %331, float %327)
%333 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 7
%334 = load float, ptr %333, align 4
%335 = load float, ptr %28, align 4
%336 = call float @llvm.fmuladd.f32(float %334, float %335, float %332)
%337 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 8
%338 = load float, ptr %337, align 16
%339 = fmul float 2.000000e+00, %338
%340 = load float, ptr %23, align 4
%341 = fmul float %339, %340
%342 = load float, ptr %31, align 4
%343 = call float @llvm.fmuladd.f32(float %341, float %342, float %336)
%344 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 10
%345 = load float, ptr %344, align 8
%346 = load float, ptr %32, align 4
%347 = call float @llvm.fmuladd.f32(float %345, float %346, float %343)
%348 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 12
%349 = load float, ptr %348, align 16
%350 = fmul float 3.000000e+00, %349
%351 = load float, ptr %24, align 4
%352 = fmul float %350, %351
%353 = load float, ptr %28, align 4
%354 = call float @llvm.fmuladd.f32(float %352, float %353, float %347)
%355 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 13
%356 = load float, ptr %355, align 4
%357 = load float, ptr %30, align 4
%358 = call float @llvm.fmuladd.f32(float %356, float %357, float %354)
%359 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 14
%360 = load float, ptr %359, align 8
%361 = fmul float 4.000000e+00, %360
%362 = load float, ptr %25, align 4
%363 = fmul float %361, %362
%364 = load float, ptr %31, align 4
%365 = call float @llvm.fmuladd.f32(float %363, float %364, float %358)
%366 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 15
%367 = load float, ptr %366, align 4
%368 = fmul float 2.000000e+00, %367
%369 = load float, ptr %23, align 4
%370 = fmul float %368, %369
%371 = load float, ptr %28, align 4
%372 = fmul float %370, %371
%373 = load float, ptr %31, align 4
%374 = call float @llvm.fmuladd.f32(float %372, float %373, float %365)
%375 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 17
%376 = load float, ptr %375, align 4
%377 = fmul float 3.000000e+00, %376
%378 = load float, ptr %24, align 4
%379 = fmul float %377, %378
%380 = load float, ptr %32, align 4
%381 = call float @llvm.fmuladd.f32(float %379, float %380, float %374)
%382 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 18
%383 = load float, ptr %382, align 8
%384 = fmul float 2.000000e+00, %383
%385 = load float, ptr %23, align 4
%386 = fmul float %384, %385
%387 = load float, ptr %33, align 4
%388 = call float @llvm.fmuladd.f32(float %386, float %387, float %381)
%389 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 19
%390 = load float, ptr %389, align 4
%391 = load float, ptr %34, align 4
%392 = call float @llvm.fmuladd.f32(float %390, float %391, float %388)
%393 = call float @pow(float noundef %392, i32 noundef 2)
%394 = load float, ptr %18, align 4
%395 = load float, ptr %18, align 4
%396 = fmul float %394, %395
%397 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 2
%398 = load float, ptr %397, align 8
%399 = load float, ptr %23, align 4
%400 = call float @llvm.fmuladd.f32(float %398, float %399, float 0.000000e+00)
%401 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 3
%402 = load float, ptr %401, align 4
%403 = load float, ptr %31, align 4
%404 = call float @llvm.fmuladd.f32(float %402, float %403, float %400)
%405 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 7
%406 = load float, ptr %405, align 4
%407 = fmul float 2.000000e+00, %406
%408 = load float, ptr %27, align 4
%409 = fmul float %407, %408
%410 = load float, ptr %23, align 4
%411 = call float @llvm.fmuladd.f32(float %409, float %410, float %404)
%412 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 9
%413 = load float, ptr %412, align 4
%414 = fmul float 2.000000e+00, %413
%415 = load float, ptr %27, align 4
%416 = fmul float %414, %415
%417 = load float, ptr %31, align 4
%418 = call float @llvm.fmuladd.f32(float %416, float %417, float %411)
%419 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 12
%420 = load float, ptr %419, align 16
%421 = fmul float 2.000000e+00, %420
%422 = load float, ptr %27, align 4
%423 = fmul float %421, %422
%424 = load float, ptr %25, align 4
%425 = call float @llvm.fmuladd.f32(float %423, float %424, float %418)
%426 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 13
%427 = load float, ptr %426, align 4
%428 = fmul float 4.000000e+00, %427
%429 = load float, ptr %29, align 4
%430 = fmul float %428, %429
%431 = load float, ptr %23, align 4
%432 = call float @llvm.fmuladd.f32(float %430, float %431, float %425)
%433 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 15
%434 = load float, ptr %433, align 4
%435 = fmul float 2.000000e+00, %434
%436 = load float, ptr %27, align 4
%437 = fmul float %435, %436
%438 = load float, ptr %24, align 4
%439 = fmul float %437, %438
%440 = load float, ptr %31, align 4
%441 = call float @llvm.fmuladd.f32(float %439, float %440, float %432)
%442 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 16
%443 = load float, ptr %442, align 16
%444 = fmul float 4.000000e+00, %443
%445 = load float, ptr %29, align 4
%446 = fmul float %444, %445
%447 = load float, ptr %31, align 4
%448 = call float @llvm.fmuladd.f32(float %446, float %447, float %441)
%449 = call float @pow(float noundef %448, i32 noundef 2)
%450 = fmul float %396, %449
%451 = call float @llvm.fmuladd.f32(float %319, float %393, float %450)
%452 = load float, ptr %20, align 4
%453 = load float, ptr %20, align 4
%454 = fmul float %452, %453
%455 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 1
%456 = load float, ptr %455, align 4
%457 = fadd float 0.000000e+00, %456
%458 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 3
%459 = load float, ptr %458, align 4
%460 = load float, ptr %27, align 4
%461 = call float @llvm.fmuladd.f32(float %459, float %460, float %457)
%462 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 5
%463 = load float, ptr %462, align 4
%464 = load float, ptr %35, align 4
%465 = call float @llvm.fmuladd.f32(float %463, float %464, float %461)
%466 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 8
%467 = load float, ptr %466, align 16
%468 = load float, ptr %24, align 4
%469 = call float @llvm.fmuladd.f32(float %467, float %468, float %465)
%470 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 9
%471 = load float, ptr %470, align 4
%472 = load float, ptr %28, align 4
%473 = call float @llvm.fmuladd.f32(float %471, float %472, float %469)
%474 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 10
%475 = load float, ptr %474, align 8
%476 = fmul float 2.000000e+00, %475
%477 = load float, ptr %31, align 4
%478 = fmul float %476, %477
%479 = load float, ptr %23, align 4
%480 = call float @llvm.fmuladd.f32(float %478, float %479, float %473)
%481 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 11
%482 = load float, ptr %481, align 4
%483 = fmul float 3.000000e+00, %482
%484 = load float, ptr %32, align 4
%485 = call float @llvm.fmuladd.f32(float %483, float %484, float %480)
%486 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 14
%487 = load float, ptr %486, align 8
%488 = load float, ptr %26, align 4
%489 = call float @llvm.fmuladd.f32(float %487, float %488, float %485)
%490 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 15
%491 = load float, ptr %490, align 4
%492 = load float, ptr %24, align 4
%493 = fmul float %491, %492
%494 = load float, ptr %28, align 4
%495 = call float @llvm.fmuladd.f32(float %493, float %494, float %489)
%496 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 16
%497 = load float, ptr %496, align 16
%498 = load float, ptr %30, align 4
%499 = call float @llvm.fmuladd.f32(float %497, float %498, float %495)
%500 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 17
%501 = load float, ptr %500, align 4
%502 = fmul float 2.000000e+00, %501
%503 = load float, ptr %31, align 4
%504 = fmul float %502, %503
%505 = load float, ptr %25, align 4
%506 = call float @llvm.fmuladd.f32(float %504, float %505, float %499)
%507 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 18
%508 = load float, ptr %507, align 8
%509 = fmul float 3.000000e+00, %508
%510 = load float, ptr %32, align 4
%511 = fmul float %509, %510
%512 = load float, ptr %24, align 4
%513 = call float @llvm.fmuladd.f32(float %511, float %512, float %506)
%514 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 19
%515 = load float, ptr %514, align 4
%516 = fmul float 4.000000e+00, %515
%517 = load float, ptr %33, align 4
%518 = fmul float %516, %517
%519 = load float, ptr %23, align 4
%520 = call float @llvm.fmuladd.f32(float %518, float %519, float %513)
%521 = call float @pow(float noundef %520, i32 noundef 2)
%522 = call float @llvm.fmuladd.f32(float %454, float %521, float %451)
%523 = load float, ptr %22, align 4
%524 = load float, ptr %22, align 4
%525 = fmul float %523, %524
%526 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 4
%527 = load float, ptr %526, align 16
%528 = load float, ptr %23, align 4
%529 = call float @llvm.fmuladd.f32(float %527, float %528, float 0.000000e+00)
%530 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 5
%531 = load float, ptr %530, align 4
%532 = load float, ptr %31, align 4
%533 = call float @llvm.fmuladd.f32(float %531, float %532, float %529)
%534 = call float @pow(float noundef %533, i32 noundef 2)
%535 = call float @llvm.fmuladd.f32(float %525, float %534, float %522)
%536 = call float @sqrt(float noundef %535)
br label %537
537: ; preds = %316, %315
%538 = phi float [ 0.000000e+00, %315 ], [ %536, %316 ]
store float %538, ptr %38, align 4
%539 = load float, ptr %38, align 4
%540 = load ptr, ptr %5, align 8
%541 = getelementptr inbounds float, ptr %540, i64 0
store float %539, ptr %541, align 4
%542 = load float, ptr %36, align 4
ret float %542
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3
declare float @sqrt(float noundef) #4
declare float @pow(float noundef, i32 noundef) #4
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpqsl6vwgc.c"
target datalayout = "e-m:e-p270: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.target_phi.coeff = private unnamed_addr constant [21 x float] [float 0x3DF0DAC660000000, float 0x3F75AF3C80000000, float 0x3F782943C0000000, float 0xBF85B1B240000000, float 0xBF840FCDE0000000, float 0x3F91F27FA0000000, float 0xBFF222C540000000, float 0xBFA9DE69E0000000, float 0x400EDFEB80000000, float 0x3FAD099920000000, float 0xC0122D5E40000000, float 0x3FFD56EFE0000000, float 0x3F975618C0000000, float 0x3F9F52BB80000000, float 0x3FFD2B5960000000, float 0xBF994120A0000000, float 0xBFA2121F40000000, float 0xC0194FF380000000, float 0x401DA679A0000000, float 0xC0075711E0000000, float 0.000000e+00], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @target_phi(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca float, align 4
%9 = alloca [10 x float], align 16
%10 = alloca [10 x float], align 16
%11 = alloca [10 x float], align 16
%12 = alloca [21 x float], align 16
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca float, align 4
%16 = alloca float, align 4
%17 = alloca float, align 4
%18 = alloca float, align 4
%19 = alloca float, align 4
%20 = alloca float, align 4
%21 = alloca float, align 4
%22 = alloca float, align 4
%23 = alloca float, align 4
%24 = alloca float, align 4
%25 = alloca float, align 4
%26 = alloca float, align 4
%27 = alloca float, align 4
%28 = alloca float, align 4
%29 = alloca float, align 4
%30 = alloca float, align 4
%31 = alloca float, align 4
%32 = alloca float, align 4
%33 = alloca float, align 4
%34 = alloca float, align 4
%35 = alloca float, align 4
%36 = alloca float, align 4
%37 = alloca float, align 4
%38 = alloca float, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store i32 20, ptr %7, align 4
store float 0x3F494C5860000000, ptr %8, align 4
call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 40, i1 false)
%39 = getelementptr inbounds [10 x float], ptr %9, i32 0, i32 0
store float -1.500000e+01, ptr %39, align 16
%40 = getelementptr inbounds [10 x float], ptr %9, i32 0, i32 1
store float -1.500000e+01, ptr %40, align 4
%41 = getelementptr inbounds [10 x float], ptr %9, i32 0, i32 2
store float -1.800000e+01, ptr %41, align 8
%42 = getelementptr inbounds [10 x float], ptr %9, i32 0, i32 3
store float 0xC03205E360000000, ptr %42, align 4
call void @llvm.memset.p0.i64(ptr align 16 %10, i8 0, i64 40, i1 false)
%43 = getelementptr inbounds [10 x float], ptr %10, i32 0, i32 0
store float 1.500000e+01, ptr %43, align 16
%44 = getelementptr inbounds [10 x float], ptr %10, i32 0, i32 1
store float 1.500000e+01, ptr %44, align 4
%45 = getelementptr inbounds [10 x float], ptr %10, i32 0, i32 2
store float 1.800000e+01, ptr %45, align 8
%46 = getelementptr inbounds [10 x float], ptr %10, i32 0, i32 3
store float 0x4031FA9FC0000000, ptr %46, align 4
call void @llvm.memset.p0.i64(ptr align 16 %11, i8 0, i64 40, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %12, ptr align 16 @__const.target_phi.coeff, i64 84, i1 false)
store i32 0, ptr %13, align 4
%47 = load i32, ptr %13, align 4
%48 = icmp eq i32 %47, 0
br i1 %48, label %49, label %87
49: ; preds = %3
store i32 1, ptr %13, align 4
store i32 0, ptr %14, align 4
%50 = load i32, ptr %14, align 4
%51 = load i32, ptr %6, align 4
%52 = icmp slt i32 %50, %51
br i1 %52, label %.lr.ph, label %86
.lr.ph: ; preds = %49
br label %53
53: ; preds = %.lr.ph, %80
%54 = load i32, ptr %14, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [10 x float], ptr %9, i64 0, i64 %55
%57 = load float, ptr %56, align 4
%58 = load i32, ptr %14, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [10 x float], ptr %10, i64 0, i64 %59
%61 = load float, ptr %60, align 4
%62 = fcmp oeq float %57, %61
br i1 %62, label %63, label %64
63: ; preds = %53
br label %80
64: ; preds = %53
%65 = load i32, ptr %14, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [10 x float], ptr %10, i64 0, i64 %66
%68 = load float, ptr %67, align 4
%69 = load i32, ptr %14, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [10 x float], ptr %9, i64 0, i64 %70
%72 = load float, ptr %71, align 4
%73 = fsub float %68, %72
%74 = fpext float %73 to double
%75 = fdiv double 2.000000e+00, %74
%76 = fptrunc double %75 to float
%77 = load i32, ptr %14, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 %78
store float %76, ptr %79, align 4
br label %80
80: ; preds = %64, %63
%81 = load i32, ptr %14, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %14, align 4
%83 = load i32, ptr %14, align 4
%84 = load i32, ptr %6, align 4
%85 = icmp slt i32 %83, %84
br i1 %85, label %53, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %80
br label %86
86: ; preds = %._crit_edge, %49
br label %87
87: ; preds = %86, %3
%88 = load ptr, ptr %4, align 8
%89 = getelementptr inbounds float, ptr %88, i64 0
%90 = load float, ptr %89, align 4
%91 = getelementptr inbounds [10 x float], ptr %10, i64 0, i64 0
%92 = load float, ptr %91, align 16
%93 = fsub float %90, %92
%94 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 0
%95 = load float, ptr %94, align 16
%96 = fmul float %93, %95
%97 = fpext float %96 to double
%98 = fadd double 1.000000e+00, %97
%99 = fptrunc double %98 to float
store float %99, ptr %15, align 4
%100 = load ptr, ptr %5, align 8
%101 = getelementptr inbounds float, ptr %100, i64 0
%102 = load float, ptr %101, align 4
%103 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 0
%104 = load float, ptr %103, align 16
%105 = fmul float %102, %104
store float %105, ptr %16, align 4
%106 = load ptr, ptr %4, align 8
%107 = getelementptr inbounds float, ptr %106, i64 1
%108 = load float, ptr %107, align 4
%109 = getelementptr inbounds [10 x float], ptr %10, i64 0, i64 1
%110 = load float, ptr %109, align 4
%111 = fsub float %108, %110
%112 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 1
%113 = load float, ptr %112, align 4
%114 = fmul float %111, %113
%115 = fpext float %114 to double
%116 = fadd double 1.000000e+00, %115
%117 = fptrunc double %116 to float
store float %117, ptr %17, align 4
%118 = load ptr, ptr %5, align 8
%119 = getelementptr inbounds float, ptr %118, i64 1
%120 = load float, ptr %119, align 4
%121 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 1
%122 = load float, ptr %121, align 4
%123 = fmul float %120, %122
store float %123, ptr %18, align 4
%124 = load ptr, ptr %4, align 8
%125 = getelementptr inbounds float, ptr %124, i64 2
%126 = load float, ptr %125, align 4
%127 = getelementptr inbounds [10 x float], ptr %10, i64 0, i64 2
%128 = load float, ptr %127, align 8
%129 = fsub float %126, %128
%130 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 2
%131 = load float, ptr %130, align 8
%132 = fmul float %129, %131
%133 = fpext float %132 to double
%134 = fadd double 1.000000e+00, %133
%135 = fptrunc double %134 to float
store float %135, ptr %19, align 4
%136 = load ptr, ptr %5, align 8
%137 = getelementptr inbounds float, ptr %136, i64 2
%138 = load float, ptr %137, align 4
%139 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 2
%140 = load float, ptr %139, align 8
%141 = fmul float %138, %140
store float %141, ptr %20, align 4
%142 = load ptr, ptr %4, align 8
%143 = getelementptr inbounds float, ptr %142, i64 3
%144 = load float, ptr %143, align 4
%145 = getelementptr inbounds [10 x float], ptr %10, i64 0, i64 3
%146 = load float, ptr %145, align 4
%147 = fsub float %144, %146
%148 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 3
%149 = load float, ptr %148, align 4
%150 = fmul float %147, %149
%151 = fpext float %150 to double
%152 = fadd double 1.000000e+00, %151
%153 = fptrunc double %152 to float
store float %153, ptr %21, align 4
%154 = load ptr, ptr %5, align 8
%155 = getelementptr inbounds float, ptr %154, i64 3
%156 = load float, ptr %155, align 4
%157 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 3
%158 = load float, ptr %157, align 4
%159 = fmul float %156, %158
store float %159, ptr %22, align 4
%160 = load float, ptr %15, align 4
store float %160, ptr %23, align 4
%161 = load float, ptr %23, align 4
%162 = load float, ptr %15, align 4
%163 = fmul float %161, %162
store float %163, ptr %24, align 4
%164 = load float, ptr %24, align 4
%165 = load float, ptr %15, align 4
%166 = fmul float %164, %165
store float %166, ptr %25, align 4
%167 = load float, ptr %25, align 4
%168 = load float, ptr %15, align 4
%169 = fmul float %167, %168
store float %169, ptr %26, align 4
%170 = load float, ptr %17, align 4
store float %170, ptr %27, align 4
%171 = load float, ptr %27, align 4
%172 = load float, ptr %17, align 4
%173 = fmul float %171, %172
store float %173, ptr %28, align 4
%174 = load float, ptr %28, align 4
%175 = load float, ptr %17, align 4
%176 = fmul float %174, %175
store float %176, ptr %29, align 4
%177 = load float, ptr %29, align 4
%178 = load float, ptr %17, align 4
%179 = fmul float %177, %178
store float %179, ptr %30, align 4
%180 = load float, ptr %19, align 4
store float %180, ptr %31, align 4
%181 = load float, ptr %31, align 4
%182 = load float, ptr %19, align 4
%183 = fmul float %181, %182
store float %183, ptr %32, align 4
%184 = load float, ptr %32, align 4
%185 = load float, ptr %19, align 4
%186 = fmul float %184, %185
store float %186, ptr %33, align 4
%187 = load float, ptr %33, align 4
%188 = load float, ptr %19, align 4
%189 = fmul float %187, %188
store float %189, ptr %34, align 4
%190 = load float, ptr %21, align 4
store float %190, ptr %35, align 4
%191 = load float, ptr %8, align 4
%192 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 0
%193 = load float, ptr %192, align 16
%194 = fadd float %191, %193
%195 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 1
%196 = load float, ptr %195, align 4
%197 = load float, ptr %31, align 4
%198 = call float @llvm.fmuladd.f32(float %196, float %197, float %194)
%199 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 2
%200 = load float, ptr %199, align 8
%201 = load float, ptr %23, align 4
%202 = fmul float %200, %201
%203 = load float, ptr %27, align 4
%204 = call float @llvm.fmuladd.f32(float %202, float %203, float %198)
%205 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 3
%206 = load float, ptr %205, align 4
%207 = load float, ptr %27, align 4
%208 = fmul float %206, %207
%209 = load float, ptr %31, align 4
%210 = call float @llvm.fmuladd.f32(float %208, float %209, float %204)
%211 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 4
%212 = load float, ptr %211, align 16
%213 = load float, ptr %23, align 4
%214 = fmul float %212, %213
%215 = load float, ptr %35, align 4
%216 = call float @llvm.fmuladd.f32(float %214, float %215, float %210)
%217 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 5
%218 = load float, ptr %217, align 4
%219 = load float, ptr %31, align 4
%220 = fmul float %218, %219
%221 = load float, ptr %35, align 4
%222 = call float @llvm.fmuladd.f32(float %220, float %221, float %216)
%223 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 6
%224 = load float, ptr %223, align 8
%225 = load float, ptr %25, align 4
%226 = call float @llvm.fmuladd.f32(float %224, float %225, float %222)
%227 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 7
%228 = load float, ptr %227, align 4
%229 = load float, ptr %23, align 4
%230 = fmul float %228, %229
%231 = load float, ptr %28, align 4
%232 = call float @llvm.fmuladd.f32(float %230, float %231, float %226)
store float %232, ptr %36, align 4
%233 = load float, ptr %36, align 4
%234 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 8
%235 = load float, ptr %234, align 16
%236 = load float, ptr %24, align 4
%237 = fmul float %235, %236
%238 = load float, ptr %31, align 4
%239 = call float @llvm.fmuladd.f32(float %237, float %238, float %233)
%240 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 9
%241 = load float, ptr %240, align 4
%242 = load float, ptr %28, align 4
%243 = fmul float %241, %242
%244 = load float, ptr %31, align 4
%245 = call float @llvm.fmuladd.f32(float %243, float %244, float %239)
%246 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 10
%247 = load float, ptr %246, align 8
%248 = load float, ptr %23, align 4
%249 = fmul float %247, %248
%250 = load float, ptr %32, align 4
%251 = call float @llvm.fmuladd.f32(float %249, float %250, float %245)
%252 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 11
%253 = load float, ptr %252, align 4
%254 = load float, ptr %33, align 4
%255 = call float @llvm.fmuladd.f32(float %253, float %254, float %251)
%256 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 12
%257 = load float, ptr %256, align 16
%258 = load float, ptr %25, align 4
%259 = fmul float %257, %258
%260 = load float, ptr %28, align 4
%261 = call float @llvm.fmuladd.f32(float %259, float %260, float %255)
%262 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 13
%263 = load float, ptr %262, align 4
%264 = load float, ptr %23, align 4
%265 = fmul float %263, %264
%266 = load float, ptr %30, align 4
%267 = call float @llvm.fmuladd.f32(float %265, float %266, float %261)
%268 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 14
%269 = load float, ptr %268, align 8
%270 = load float, ptr %26, align 4
%271 = fmul float %269, %270
%272 = load float, ptr %31, align 4
%273 = call float @llvm.fmuladd.f32(float %271, float %272, float %267)
%274 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 15
%275 = load float, ptr %274, align 4
%276 = load float, ptr %24, align 4
%277 = fmul float %275, %276
%278 = load float, ptr %28, align 4
%279 = fmul float %277, %278
%280 = load float, ptr %31, align 4
%281 = call float @llvm.fmuladd.f32(float %279, float %280, float %273)
%282 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 16
%283 = load float, ptr %282, align 16
%284 = load float, ptr %30, align 4
%285 = fmul float %283, %284
%286 = load float, ptr %31, align 4
%287 = call float @llvm.fmuladd.f32(float %285, float %286, float %281)
store float %287, ptr %36, align 4
%288 = load float, ptr %36, align 4
%289 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 17
%290 = load float, ptr %289, align 4
%291 = load float, ptr %25, align 4
%292 = fmul float %290, %291
%293 = load float, ptr %32, align 4
%294 = call float @llvm.fmuladd.f32(float %292, float %293, float %288)
%295 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 18
%296 = load float, ptr %295, align 8
%297 = load float, ptr %24, align 4
%298 = fmul float %296, %297
%299 = load float, ptr %33, align 4
%300 = call float @llvm.fmuladd.f32(float %298, float %299, float %294)
%301 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 19
%302 = load float, ptr %301, align 4
%303 = load float, ptr %23, align 4
%304 = fmul float %302, %303
%305 = load float, ptr %34, align 4
%306 = call float @llvm.fmuladd.f32(float %304, float %305, float %300)
store float %306, ptr %36, align 4
%307 = load float, ptr %16, align 4
%308 = fadd float 0.000000e+00, %307
%309 = load float, ptr %18, align 4
%310 = fadd float %308, %309
%311 = load float, ptr %20, align 4
%312 = fadd float %310, %311
%313 = load float, ptr %22, align 4
%314 = fadd float %312, %313
store float %314, ptr %37, align 4
%315 = load float, ptr %37, align 4
%316 = fcmp oeq float %315, 0.000000e+00
br i1 %316, label %317, label %318
317: ; preds = %87
br label %539
318: ; preds = %87
%319 = load float, ptr %16, align 4
%320 = load float, ptr %16, align 4
%321 = fmul float %319, %320
%322 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 2
%323 = load float, ptr %322, align 8
%324 = load float, ptr %27, align 4
%325 = call float @llvm.fmuladd.f32(float %323, float %324, float 0.000000e+00)
%326 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 4
%327 = load float, ptr %326, align 16
%328 = load float, ptr %35, align 4
%329 = call float @llvm.fmuladd.f32(float %327, float %328, float %325)
%330 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 6
%331 = load float, ptr %330, align 8
%332 = fmul float 3.000000e+00, %331
%333 = load float, ptr %24, align 4
%334 = call float @llvm.fmuladd.f32(float %332, float %333, float %329)
%335 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 7
%336 = load float, ptr %335, align 4
%337 = load float, ptr %28, align 4
%338 = call float @llvm.fmuladd.f32(float %336, float %337, float %334)
%339 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 8
%340 = load float, ptr %339, align 16
%341 = fmul float 2.000000e+00, %340
%342 = load float, ptr %23, align 4
%343 = fmul float %341, %342
%344 = load float, ptr %31, align 4
%345 = call float @llvm.fmuladd.f32(float %343, float %344, float %338)
%346 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 10
%347 = load float, ptr %346, align 8
%348 = load float, ptr %32, align 4
%349 = call float @llvm.fmuladd.f32(float %347, float %348, float %345)
%350 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 12
%351 = load float, ptr %350, align 16
%352 = fmul float 3.000000e+00, %351
%353 = load float, ptr %24, align 4
%354 = fmul float %352, %353
%355 = load float, ptr %28, align 4
%356 = call float @llvm.fmuladd.f32(float %354, float %355, float %349)
%357 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 13
%358 = load float, ptr %357, align 4
%359 = load float, ptr %30, align 4
%360 = call float @llvm.fmuladd.f32(float %358, float %359, float %356)
%361 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 14
%362 = load float, ptr %361, align 8
%363 = fmul float 4.000000e+00, %362
%364 = load float, ptr %25, align 4
%365 = fmul float %363, %364
%366 = load float, ptr %31, align 4
%367 = call float @llvm.fmuladd.f32(float %365, float %366, float %360)
%368 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 15
%369 = load float, ptr %368, align 4
%370 = fmul float 2.000000e+00, %369
%371 = load float, ptr %23, align 4
%372 = fmul float %370, %371
%373 = load float, ptr %28, align 4
%374 = fmul float %372, %373
%375 = load float, ptr %31, align 4
%376 = call float @llvm.fmuladd.f32(float %374, float %375, float %367)
%377 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 17
%378 = load float, ptr %377, align 4
%379 = fmul float 3.000000e+00, %378
%380 = load float, ptr %24, align 4
%381 = fmul float %379, %380
%382 = load float, ptr %32, align 4
%383 = call float @llvm.fmuladd.f32(float %381, float %382, float %376)
%384 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 18
%385 = load float, ptr %384, align 8
%386 = fmul float 2.000000e+00, %385
%387 = load float, ptr %23, align 4
%388 = fmul float %386, %387
%389 = load float, ptr %33, align 4
%390 = call float @llvm.fmuladd.f32(float %388, float %389, float %383)
%391 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 19
%392 = load float, ptr %391, align 4
%393 = load float, ptr %34, align 4
%394 = call float @llvm.fmuladd.f32(float %392, float %393, float %390)
%395 = call float @pow(float noundef %394, i32 noundef 2)
%396 = load float, ptr %18, align 4
%397 = load float, ptr %18, align 4
%398 = fmul float %396, %397
%399 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 2
%400 = load float, ptr %399, align 8
%401 = load float, ptr %23, align 4
%402 = call float @llvm.fmuladd.f32(float %400, float %401, float 0.000000e+00)
%403 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 3
%404 = load float, ptr %403, align 4
%405 = load float, ptr %31, align 4
%406 = call float @llvm.fmuladd.f32(float %404, float %405, float %402)
%407 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 7
%408 = load float, ptr %407, align 4
%409 = fmul float 2.000000e+00, %408
%410 = load float, ptr %27, align 4
%411 = fmul float %409, %410
%412 = load float, ptr %23, align 4
%413 = call float @llvm.fmuladd.f32(float %411, float %412, float %406)
%414 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 9
%415 = load float, ptr %414, align 4
%416 = fmul float 2.000000e+00, %415
%417 = load float, ptr %27, align 4
%418 = fmul float %416, %417
%419 = load float, ptr %31, align 4
%420 = call float @llvm.fmuladd.f32(float %418, float %419, float %413)
%421 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 12
%422 = load float, ptr %421, align 16
%423 = fmul float 2.000000e+00, %422
%424 = load float, ptr %27, align 4
%425 = fmul float %423, %424
%426 = load float, ptr %25, align 4
%427 = call float @llvm.fmuladd.f32(float %425, float %426, float %420)
%428 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 13
%429 = load float, ptr %428, align 4
%430 = fmul float 4.000000e+00, %429
%431 = load float, ptr %29, align 4
%432 = fmul float %430, %431
%433 = load float, ptr %23, align 4
%434 = call float @llvm.fmuladd.f32(float %432, float %433, float %427)
%435 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 15
%436 = load float, ptr %435, align 4
%437 = fmul float 2.000000e+00, %436
%438 = load float, ptr %27, align 4
%439 = fmul float %437, %438
%440 = load float, ptr %24, align 4
%441 = fmul float %439, %440
%442 = load float, ptr %31, align 4
%443 = call float @llvm.fmuladd.f32(float %441, float %442, float %434)
%444 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 16
%445 = load float, ptr %444, align 16
%446 = fmul float 4.000000e+00, %445
%447 = load float, ptr %29, align 4
%448 = fmul float %446, %447
%449 = load float, ptr %31, align 4
%450 = call float @llvm.fmuladd.f32(float %448, float %449, float %443)
%451 = call float @pow(float noundef %450, i32 noundef 2)
%452 = fmul float %398, %451
%453 = call float @llvm.fmuladd.f32(float %321, float %395, float %452)
%454 = load float, ptr %20, align 4
%455 = load float, ptr %20, align 4
%456 = fmul float %454, %455
%457 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 1
%458 = load float, ptr %457, align 4
%459 = fadd float 0.000000e+00, %458
%460 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 3
%461 = load float, ptr %460, align 4
%462 = load float, ptr %27, align 4
%463 = call float @llvm.fmuladd.f32(float %461, float %462, float %459)
%464 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 5
%465 = load float, ptr %464, align 4
%466 = load float, ptr %35, align 4
%467 = call float @llvm.fmuladd.f32(float %465, float %466, float %463)
%468 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 8
%469 = load float, ptr %468, align 16
%470 = load float, ptr %24, align 4
%471 = call float @llvm.fmuladd.f32(float %469, float %470, float %467)
%472 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 9
%473 = load float, ptr %472, align 4
%474 = load float, ptr %28, align 4
%475 = call float @llvm.fmuladd.f32(float %473, float %474, float %471)
%476 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 10
%477 = load float, ptr %476, align 8
%478 = fmul float 2.000000e+00, %477
%479 = load float, ptr %31, align 4
%480 = fmul float %478, %479
%481 = load float, ptr %23, align 4
%482 = call float @llvm.fmuladd.f32(float %480, float %481, float %475)
%483 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 11
%484 = load float, ptr %483, align 4
%485 = fmul float 3.000000e+00, %484
%486 = load float, ptr %32, align 4
%487 = call float @llvm.fmuladd.f32(float %485, float %486, float %482)
%488 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 14
%489 = load float, ptr %488, align 8
%490 = load float, ptr %26, align 4
%491 = call float @llvm.fmuladd.f32(float %489, float %490, float %487)
%492 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 15
%493 = load float, ptr %492, align 4
%494 = load float, ptr %24, align 4
%495 = fmul float %493, %494
%496 = load float, ptr %28, align 4
%497 = call float @llvm.fmuladd.f32(float %495, float %496, float %491)
%498 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 16
%499 = load float, ptr %498, align 16
%500 = load float, ptr %30, align 4
%501 = call float @llvm.fmuladd.f32(float %499, float %500, float %497)
%502 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 17
%503 = load float, ptr %502, align 4
%504 = fmul float 2.000000e+00, %503
%505 = load float, ptr %31, align 4
%506 = fmul float %504, %505
%507 = load float, ptr %25, align 4
%508 = call float @llvm.fmuladd.f32(float %506, float %507, float %501)
%509 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 18
%510 = load float, ptr %509, align 8
%511 = fmul float 3.000000e+00, %510
%512 = load float, ptr %32, align 4
%513 = fmul float %511, %512
%514 = load float, ptr %24, align 4
%515 = call float @llvm.fmuladd.f32(float %513, float %514, float %508)
%516 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 19
%517 = load float, ptr %516, align 4
%518 = fmul float 4.000000e+00, %517
%519 = load float, ptr %33, align 4
%520 = fmul float %518, %519
%521 = load float, ptr %23, align 4
%522 = call float @llvm.fmuladd.f32(float %520, float %521, float %515)
%523 = call float @pow(float noundef %522, i32 noundef 2)
%524 = call float @llvm.fmuladd.f32(float %456, float %523, float %453)
%525 = load float, ptr %22, align 4
%526 = load float, ptr %22, align 4
%527 = fmul float %525, %526
%528 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 4
%529 = load float, ptr %528, align 16
%530 = load float, ptr %23, align 4
%531 = call float @llvm.fmuladd.f32(float %529, float %530, float 0.000000e+00)
%532 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 5
%533 = load float, ptr %532, align 4
%534 = load float, ptr %31, align 4
%535 = call float @llvm.fmuladd.f32(float %533, float %534, float %531)
%536 = call float @pow(float noundef %535, i32 noundef 2)
%537 = call float @llvm.fmuladd.f32(float %527, float %536, float %524)
%538 = call float @sqrt(float noundef %537)
br label %539
539: ; preds = %318, %317
%540 = phi float [ 0.000000e+00, %317 ], [ %538, %318 ]
store float %540, ptr %38, align 4
%541 = load float, ptr %38, align 4
%542 = load ptr, ptr %5, align 8
%543 = getelementptr inbounds float, ptr %542, i64 0
store float %541, ptr %543, align 4
%544 = load float, ptr %36, align 4
ret float %544
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3
declare float @sqrt(float noundef) #4
declare float @pow(float noundef, i32 noundef) #4
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpaonca_8q.c'
source_filename = "/tmp/tmpaonca_8q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"%lli\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sysfs_set_num_signed(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca [50 x i8], align 16
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
%10 = getelementptr inbounds [50 x i8], ptr %9, i64 0, i64 0
%11 = load i64, ptr %8, align 8
%12 = call i32 @sprintf(ptr noundef %10, ptr noundef @.str, i64 noundef %11)
%13 = load ptr, ptr %5, align 8
%14 = load ptr, ptr %6, align 8
%15 = load ptr, ptr %7, align 8
%16 = getelementptr inbounds [50 x i8], ptr %9, i64 0, i64 0
%17 = call i32 @sysfs_set_str(ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16)
ret i32 %17
}
declare i32 @sprintf(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @sysfs_set_str(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/tmpaonca_8q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"%lli\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sysfs_set_num_signed(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca [50 x i8], align 16
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
%10 = getelementptr inbounds [50 x i8], ptr %9, i64 0, i64 0
%11 = load i64, ptr %8, align 8
%12 = call i32 @sprintf(ptr noundef %10, ptr noundef @.str, i64 noundef %11)
%13 = load ptr, ptr %5, align 8
%14 = load ptr, ptr %6, align 8
%15 = load ptr, ptr %7, align 8
%16 = getelementptr inbounds [50 x i8], ptr %9, i64 0, i64 0
%17 = call i32 @sysfs_set_str(ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16)
ret i32 %17
}
declare i32 @sprintf(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @sysfs_set_str(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/tmpgz_uz0sj.c'
source_filename = "/tmp/tmpgz_uz0sj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bfgs_factored(ptr noundef %0, i32 noundef %1, double noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #0 {
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca double, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca double, align 8
%20 = alloca double, align 8
%21 = alloca double, align 8
%22 = alloca double, align 8
%23 = alloca double, align 8
%24 = alloca double, align 8
%25 = alloca double, align 8
%26 = alloca ptr, align 8
%27 = alloca ptr, align 8
%28 = alloca ptr, align 8
%29 = alloca ptr, align 8
%30 = alloca ptr, align 8
%31 = alloca ptr, align 8
store ptr %0, ptr %8, align 8
store i32 %1, ptr %9, align 4
store double %2, ptr %10, align 8
store ptr %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
store ptr %6, ptr %14, align 8
%32 = load i32, ptr %9, align 4
%33 = sext i32 %32 to i64
%34 = mul i64 8, %33
%35 = trunc i64 %34 to i32
%36 = call i64 @malloc(i32 noundef %35)
%37 = inttoptr i64 %36 to ptr
store ptr %37, ptr %26, align 8
%38 = load i32, ptr %9, align 4
%39 = sext i32 %38 to i64
%40 = mul i64 8, %39
%41 = trunc i64 %40 to i32
%42 = call i64 @malloc(i32 noundef %41)
%43 = inttoptr i64 %42 to ptr
store ptr %43, ptr %27, align 8
%44 = call i64 @malloc(i32 noundef 8)
%45 = inttoptr i64 %44 to ptr
store ptr %45, ptr %28, align 8
%46 = call i64 @malloc(i32 noundef 8)
%47 = inttoptr i64 %46 to ptr
store ptr %47, ptr %29, align 8
%48 = load i32, ptr %9, align 4
%49 = sext i32 %48 to i64
%50 = mul i64 8, %49
%51 = trunc i64 %50 to i32
%52 = call i64 @malloc(i32 noundef %51)
%53 = inttoptr i64 %52 to ptr
store ptr %53, ptr %30, align 8
%54 = load i32, ptr %9, align 4
%55 = sext i32 %54 to i64
%56 = mul i64 8, %55
%57 = trunc i64 %56 to i32
%58 = call i64 @malloc(i32 noundef %57)
%59 = inttoptr i64 %58 to ptr
store ptr %59, ptr %31, align 8
%60 = load ptr, ptr %12, align 8
%61 = load ptr, ptr %11, align 8
%62 = load ptr, ptr %26, align 8
%63 = load i32, ptr %9, align 4
%64 = call i32 @msub(ptr noundef %60, ptr noundef %61, ptr noundef %62, i32 noundef 1, i32 noundef %63)
%65 = load ptr, ptr %14, align 8
%66 = load ptr, ptr %13, align 8
%67 = load ptr, ptr %27, align 8
%68 = load i32, ptr %9, align 4
%69 = call i32 @msub(ptr noundef %65, ptr noundef %66, ptr noundef %67, i32 noundef 1, i32 noundef %68)
%70 = load ptr, ptr %26, align 8
%71 = load i32, ptr %9, align 4
%72 = call double @l2norm(ptr noundef %70, i32 noundef %71)
store double %72, ptr %19, align 8
%73 = load ptr, ptr %27, align 8
%74 = load i32, ptr %9, align 4
%75 = call double @l2norm(ptr noundef %73, i32 noundef %74)
store double %75, ptr %20, align 8
%76 = load double, ptr %10, align 8
%77 = call double @sqrt(double noundef %76) #4
store double %77, ptr %21, align 8
%78 = load ptr, ptr %27, align 8
%79 = load ptr, ptr %26, align 8
%80 = load ptr, ptr %28, align 8
%81 = load i32, ptr %9, align 4
%82 = call i32 @mmult(ptr noundef %78, ptr noundef %79, ptr noundef %80, i32 noundef 1, i32 noundef %81, i32 noundef 1)
%83 = load ptr, ptr %28, align 8
%84 = getelementptr inbounds double, ptr %83, i64 0
%85 = load double, ptr %84, align 8
%86 = load double, ptr %21, align 8
%87 = load double, ptr %19, align 8
%88 = fmul double %86, %87
%89 = load double, ptr %20, align 8
%90 = fmul double %88, %89
%91 = fcmp oge double %85, %90
br i1 %91, label %92, label %344
92: ; preds = %7
store i32 0, ptr %15, align 4
br label %93
93: ; preds = %133, %92
%94 = load i32, ptr %15, align 4
%95 = load i32, ptr %9, align 4
%96 = icmp slt i32 %94, %95
br i1 %96, label %97, label %136
97: ; preds = %93
%98 = load ptr, ptr %30, align 8
%99 = load i32, ptr %15, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds double, ptr %98, i64 %100
store double 0.000000e+00, ptr %101, align 8
%102 = load i32, ptr %15, align 4
store i32 %102, ptr %16, align 4
br label %103
103: ; preds = %129, %97
%104 = load i32, ptr %16, align 4
%105 = load i32, ptr %9, align 4
%106 = icmp slt i32 %104, %105
br i1 %106, label %107, label %132
107: ; preds = %103
%108 = load i32, ptr %16, align 4
%109 = load i32, ptr %9, align 4
%110 = mul nsw i32 %108, %109
store i32 %110, ptr %18, align 4
%111 = load ptr, ptr %8, align 8
%112 = load i32, ptr %18, align 4
%113 = load i32, ptr %15, align 4
%114 = add nsw i32 %112, %113
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds double, ptr %111, i64 %115
%117 = load double, ptr %116, align 8
%118 = load ptr, ptr %26, align 8
%119 = load i32, ptr %16, align 4
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds double, ptr %118, i64 %120
%122 = load double, ptr %121, align 8
%123 = load ptr, ptr %30, align 8
%124 = load i32, ptr %15, align 4
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds double, ptr %123, i64 %125
%127 = load double, ptr %126, align 8
%128 = call double @llvm.fmuladd.f64(double %117, double %122, double %127)
store double %128, ptr %126, align 8
br label %129
129: ; preds = %107
%130 = load i32, ptr %16, align 4
%131 = add nsw i32 %130, 1
store i32 %131, ptr %16, align 4
br label %103, !llvm.loop !6
132: ; preds = %103
br label %133
133: ; preds = %132
%134 = load i32, ptr %15, align 4
%135 = add nsw i32 %134, 1
store i32 %135, ptr %15, align 4
br label %93, !llvm.loop !8
136: ; preds = %93
%137 = load ptr, ptr %30, align 8
%138 = load ptr, ptr %30, align 8
%139 = load ptr, ptr %29, align 8
%140 = load i32, ptr %9, align 4
%141 = call i32 @mmult(ptr noundef %137, ptr noundef %138, ptr noundef %139, i32 noundef 1, i32 noundef %140, i32 noundef 1)
%142 = load ptr, ptr %28, align 8
%143 = getelementptr inbounds double, ptr %142, i64 0
%144 = load double, ptr %143, align 8
%145 = load ptr, ptr %29, align 8
%146 = getelementptr inbounds double, ptr %145, i64 0
%147 = load double, ptr %146, align 8
%148 = fdiv double %144, %147
%149 = call double @sqrt(double noundef %148) #4
store double %149, ptr %24, align 8
store i32 1, ptr %17, align 4
store i32 0, ptr %15, align 4
br label %150
150: ; preds = %234, %136
%151 = load i32, ptr %15, align 4
%152 = load i32, ptr %9, align 4
%153 = icmp slt i32 %151, %152
br i1 %153, label %154, label %237
154: ; preds = %150
store double 0.000000e+00, ptr %25, align 8
%155 = load i32, ptr %15, align 4
%156 = load i32, ptr %9, align 4
%157 = mul nsw i32 %155, %156
store i32 %157, ptr %18, align 4
store i32 0, ptr %16, align 4
br label %158
158: ; preds = %178, %154
%159 = load i32, ptr %16, align 4
%160 = load i32, ptr %15, align 4
%161 = add nsw i32 %160, 1
%162 = icmp slt i32 %159, %161
br i1 %162, label %163, label %181
163: ; preds = %158
%164 = load ptr, ptr %8, align 8
%165 = load i32, ptr %18, align 4
%166 = load i32, ptr %16, align 4
%167 = add nsw i32 %165, %166
%168 = sext i32 %167 to i64
%169 = getelementptr inbounds double, ptr %164, i64 %168
%170 = load double, ptr %169, align 8
%171 = load ptr, ptr %30, align 8
%172 = load i32, ptr %16, align 4
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds double, ptr %171, i64 %173
%175 = load double, ptr %174, align 8
%176 = load double, ptr %25, align 8
%177 = call double @llvm.fmuladd.f64(double %170, double %175, double %176)
store double %177, ptr %25, align 8
br label %178
178: ; preds = %163
%179 = load i32, ptr %16, align 4
%180 = add nsw i32 %179, 1
store i32 %180, ptr %16, align 4
br label %158, !llvm.loop !9
181: ; preds = %158
%182 = load ptr, ptr %27, align 8
%183 = load i32, ptr %15, align 4
%184 = sext i32 %183 to i64
%185 = getelementptr inbounds double, ptr %182, i64 %184
%186 = load double, ptr %185, align 8
%187 = load double, ptr %25, align 8
%188 = fsub double %186, %187
%189 = call double @llvm.fabs.f64(double %188)
store double %189, ptr %22, align 8
%190 = load ptr, ptr %13, align 8
%191 = load i32, ptr %15, align 4
%192 = sext i32 %191 to i64
%193 = getelementptr inbounds double, ptr %190, i64 %192
%194 = load double, ptr %193, align 8
%195 = load ptr, ptr %14, align 8
%196 = load i32, ptr %15, align 4
%197 = sext i32 %196 to i64
%198 = getelementptr inbounds double, ptr %195, i64 %197
%199 = load double, ptr %198, align 8
%200 = fcmp ogt double %194, %199
br i1 %200, label %201, label %207
201: ; preds = %181
%202 = load ptr, ptr %13, align 8
%203 = load i32, ptr %15, align 4
%204 = sext i32 %203 to i64
%205 = getelementptr inbounds double, ptr %202, i64 %204
%206 = load double, ptr %205, align 8
store double %206, ptr %23, align 8
br label %213
207: ; preds = %181
%208 = load ptr, ptr %14, align 8
%209 = load i32, ptr %15, align 4
%210 = sext i32 %209 to i64
%211 = getelementptr inbounds double, ptr %208, i64 %210
%212 = load double, ptr %211, align 8
store double %212, ptr %23, align 8
br label %213
213: ; preds = %207, %201
%214 = load double, ptr %22, align 8
%215 = load double, ptr %21, align 8
%216 = load double, ptr %23, align 8
%217 = fmul double %215, %216
%218 = fcmp oge double %214, %217
br i1 %218, label %219, label %220
219: ; preds = %213
store i32 0, ptr %17, align 4
br label %220
220: ; preds = %219, %213
%221 = load ptr, ptr %27, align 8
%222 = load i32, ptr %15, align 4
%223 = sext i32 %222 to i64
%224 = getelementptr inbounds double, ptr %221, i64 %223
%225 = load double, ptr %224, align 8
%226 = load double, ptr %24, align 8
%227 = load double, ptr %25, align 8
%228 = fneg double %226
%229 = call double @llvm.fmuladd.f64(double %228, double %227, double %225)
%230 = load ptr, ptr %31, align 8
%231 = load i32, ptr %15, align 4
%232 = sext i32 %231 to i64
%233 = getelementptr inbounds double, ptr %230, i64 %232
store double %229, ptr %233, align 8
br label %234
234: ; preds = %220
%235 = load i32, ptr %15, align 4
%236 = add nsw i32 %235, 1
store i32 %236, ptr %15, align 4
br label %150, !llvm.loop !10
237: ; preds = %150
%238 = load i32, ptr %17, align 4
%239 = icmp eq i32 %238, 0
br i1 %239, label %240, label %343
240: ; preds = %237
%241 = load ptr, ptr %28, align 8
%242 = getelementptr inbounds double, ptr %241, i64 0
%243 = load double, ptr %242, align 8
%244 = load ptr, ptr %29, align 8
%245 = getelementptr inbounds double, ptr %244, i64 0
%246 = load double, ptr %245, align 8
%247 = fmul double %243, %246
%248 = call double @sqrt(double noundef %247) #4
%249 = fdiv double 1.000000e+00, %248
store double %249, ptr %25, align 8
store i32 0, ptr %15, align 4
br label %250
250: ; preds = %262, %240
%251 = load i32, ptr %15, align 4
%252 = load i32, ptr %9, align 4
%253 = icmp slt i32 %251, %252
br i1 %253, label %254, label %265
254: ; preds = %250
%255 = load double, ptr %25, align 8
%256 = load ptr, ptr %30, align 8
%257 = load i32, ptr %15, align 4
%258 = sext i32 %257 to i64
%259 = getelementptr inbounds double, ptr %256, i64 %258
%260 = load double, ptr %259, align 8
%261 = fmul double %260, %255
store double %261, ptr %259, align 8
br label %262
262: ; preds = %254
%263 = load i32, ptr %15, align 4
%264 = add nsw i32 %263, 1
store i32 %264, ptr %15, align 4
br label %250, !llvm.loop !11
265: ; preds = %250
store i32 1, ptr %15, align 4
br label %266
266: ; preds = %298, %265
%267 = load i32, ptr %15, align 4
%268 = load i32, ptr %9, align 4
%269 = icmp slt i32 %267, %268
br i1 %269, label %270, label %301
270: ; preds = %266
%271 = load i32, ptr %15, align 4
%272 = load i32, ptr %9, align 4
%273 = mul nsw i32 %271, %272
store i32 %273, ptr %18, align 4
store i32 0, ptr %16, align 4
br label %274
274: ; preds = %294, %270
%275 = load i32, ptr %16, align 4
%276 = load i32, ptr %15, align 4
%277 = icmp slt i32 %275, %276
br i1 %277, label %278, label %297
278: ; preds = %274
%279 = load ptr, ptr %8, align 8
%280 = load i32, ptr %18, align 4
%281 = load i32, ptr %16, align 4
%282 = add nsw i32 %280, %281
%283 = sext i32 %282 to i64
%284 = getelementptr inbounds double, ptr %279, i64 %283
%285 = load double, ptr %284, align 8
%286 = load ptr, ptr %8, align 8
%287 = load i32, ptr %16, align 4
%288 = load i32, ptr %9, align 4
%289 = mul nsw i32 %287, %288
%290 = load i32, ptr %15, align 4
%291 = add nsw i32 %289, %290
%292 = sext i32 %291 to i64
%293 = getelementptr inbounds double, ptr %286, i64 %292
store double %285, ptr %293, align 8
br label %294
294: ; preds = %278
%295 = load i32, ptr %16, align 4
%296 = add nsw i32 %295, 1
store i32 %296, ptr %16, align 4
br label %274, !llvm.loop !12
297: ; preds = %274
br label %298
298: ; preds = %297
%299 = load i32, ptr %15, align 4
%300 = add nsw i32 %299, 1
store i32 %300, ptr %15, align 4
br label %266, !llvm.loop !13
301: ; preds = %266
%302 = load ptr, ptr %8, align 8
%303 = load i32, ptr %9, align 4
%304 = load ptr, ptr %30, align 8
%305 = load ptr, ptr %31, align 8
%306 = call i32 @qrupdate(ptr noundef %302, i32 noundef %303, ptr noundef %304, ptr noundef %305)
store i32 1, ptr %15, align 4
br label %307
307: ; preds = %339, %301
%308 = load i32, ptr %15, align 4
%309 = load i32, ptr %9, align 4
%310 = icmp slt i32 %308, %309
br i1 %310, label %311, label %342
311: ; preds = %307
%312 = load i32, ptr %15, align 4
%313 = load i32, ptr %9, align 4
%314 = mul nsw i32 %312, %313
store i32 %314, ptr %18, align 4
store i32 0, ptr %16, align 4
br label %315
315: ; preds = %335, %311
%316 = load i32, ptr %16, align 4
%317 = load i32, ptr %15, align 4
%318 = icmp slt i32 %316, %317
br i1 %318, label %319, label %338
319: ; preds = %315
%320 = load ptr, ptr %8, align 8
%321 = load i32, ptr %16, align 4
%322 = load i32, ptr %9, align 4
%323 = mul nsw i32 %321, %322
%324 = load i32, ptr %15, align 4
%325 = add nsw i32 %323, %324
%326 = sext i32 %325 to i64
%327 = getelementptr inbounds double, ptr %320, i64 %326
%328 = load double, ptr %327, align 8
%329 = load ptr, ptr %8, align 8
%330 = load i32, ptr %18, align 4
%331 = load i32, ptr %16, align 4
%332 = add nsw i32 %330, %331
%333 = sext i32 %332 to i64
%334 = getelementptr inbounds double, ptr %329, i64 %333
store double %328, ptr %334, align 8
br label %335
335: ; preds = %319
%336 = load i32, ptr %16, align 4
%337 = add nsw i32 %336, 1
store i32 %337, ptr %16, align 4
br label %315, !llvm.loop !14
338: ; preds = %315
br label %339
339: ; preds = %338
%340 = load i32, ptr %15, align 4
%341 = add nsw i32 %340, 1
store i32 %341, ptr %15, align 4
br label %307, !llvm.loop !15
342: ; preds = %307
br label %343
343: ; preds = %342, %237
br label %344
344: ; preds = %343, %7
%345 = load ptr, ptr %26, align 8
%346 = call i32 @free(ptr noundef %345)
%347 = load ptr, ptr %27, align 8
%348 = call i32 @free(ptr noundef %347)
%349 = load ptr, ptr %28, align 8
%350 = call i32 @free(ptr noundef %349)
%351 = load ptr, ptr %29, align 8
%352 = call i32 @free(ptr noundef %351)
%353 = load ptr, ptr %30, align 8
%354 = call i32 @free(ptr noundef %353)
%355 = load ptr, ptr %31, align 8
%356 = call i32 @free(ptr noundef %355)
ret void
}
declare i64 @malloc(i32 noundef) #1
declare i32 @msub(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare double @l2norm(ptr noundef, i32 noundef) #1
; Function Attrs: nounwind
declare double @sqrt(double noundef) #2
declare i32 @mmult(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #3
declare i32 @qrupdate(ptr noundef, i32 noundef, 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" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgz_uz0sj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bfgs_factored(ptr noundef %0, i32 noundef %1, double noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #0 {
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca double, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca double, align 8
%20 = alloca double, align 8
%21 = alloca double, align 8
%22 = alloca double, align 8
%23 = alloca double, align 8
%24 = alloca double, align 8
%25 = alloca double, align 8
%26 = alloca ptr, align 8
%27 = alloca ptr, align 8
%28 = alloca ptr, align 8
%29 = alloca ptr, align 8
%30 = alloca ptr, align 8
%31 = alloca ptr, align 8
store ptr %0, ptr %8, align 8
store i32 %1, ptr %9, align 4
store double %2, ptr %10, align 8
store ptr %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
store ptr %6, ptr %14, align 8
%32 = load i32, ptr %9, align 4
%33 = sext i32 %32 to i64
%34 = mul i64 8, %33
%35 = trunc i64 %34 to i32
%36 = call i64 @malloc(i32 noundef %35)
%37 = inttoptr i64 %36 to ptr
store ptr %37, ptr %26, align 8
%38 = load i32, ptr %9, align 4
%39 = sext i32 %38 to i64
%40 = mul i64 8, %39
%41 = trunc i64 %40 to i32
%42 = call i64 @malloc(i32 noundef %41)
%43 = inttoptr i64 %42 to ptr
store ptr %43, ptr %27, align 8
%44 = call i64 @malloc(i32 noundef 8)
%45 = inttoptr i64 %44 to ptr
store ptr %45, ptr %28, align 8
%46 = call i64 @malloc(i32 noundef 8)
%47 = inttoptr i64 %46 to ptr
store ptr %47, ptr %29, align 8
%48 = load i32, ptr %9, align 4
%49 = sext i32 %48 to i64
%50 = mul i64 8, %49
%51 = trunc i64 %50 to i32
%52 = call i64 @malloc(i32 noundef %51)
%53 = inttoptr i64 %52 to ptr
store ptr %53, ptr %30, align 8
%54 = load i32, ptr %9, align 4
%55 = sext i32 %54 to i64
%56 = mul i64 8, %55
%57 = trunc i64 %56 to i32
%58 = call i64 @malloc(i32 noundef %57)
%59 = inttoptr i64 %58 to ptr
store ptr %59, ptr %31, align 8
%60 = load ptr, ptr %12, align 8
%61 = load ptr, ptr %11, align 8
%62 = load ptr, ptr %26, align 8
%63 = load i32, ptr %9, align 4
%64 = call i32 @msub(ptr noundef %60, ptr noundef %61, ptr noundef %62, i32 noundef 1, i32 noundef %63)
%65 = load ptr, ptr %14, align 8
%66 = load ptr, ptr %13, align 8
%67 = load ptr, ptr %27, align 8
%68 = load i32, ptr %9, align 4
%69 = call i32 @msub(ptr noundef %65, ptr noundef %66, ptr noundef %67, i32 noundef 1, i32 noundef %68)
%70 = load ptr, ptr %26, align 8
%71 = load i32, ptr %9, align 4
%72 = call double @l2norm(ptr noundef %70, i32 noundef %71)
store double %72, ptr %19, align 8
%73 = load ptr, ptr %27, align 8
%74 = load i32, ptr %9, align 4
%75 = call double @l2norm(ptr noundef %73, i32 noundef %74)
store double %75, ptr %20, align 8
%76 = load double, ptr %10, align 8
%77 = call double @sqrt(double noundef %76) #4
store double %77, ptr %21, align 8
%78 = load ptr, ptr %27, align 8
%79 = load ptr, ptr %26, align 8
%80 = load ptr, ptr %28, align 8
%81 = load i32, ptr %9, align 4
%82 = call i32 @mmult(ptr noundef %78, ptr noundef %79, ptr noundef %80, i32 noundef 1, i32 noundef %81, i32 noundef 1)
%83 = load ptr, ptr %28, align 8
%84 = getelementptr inbounds double, ptr %83, i64 0
%85 = load double, ptr %84, align 8
%86 = load double, ptr %21, align 8
%87 = load double, ptr %19, align 8
%88 = fmul double %86, %87
%89 = load double, ptr %20, align 8
%90 = fmul double %88, %89
%91 = fcmp oge double %85, %90
br i1 %91, label %92, label %363
92: ; preds = %7
store i32 0, ptr %15, align 4
%93 = load i32, ptr %15, align 4
%94 = load i32, ptr %9, align 4
%95 = icmp slt i32 %93, %94
br i1 %95, label %.lr.ph2, label %140
.lr.ph2: ; preds = %92
br label %96
96: ; preds = %.lr.ph2, %134
%97 = load ptr, ptr %30, align 8
%98 = load i32, ptr %15, align 4
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds double, ptr %97, i64 %99
store double 0.000000e+00, ptr %100, align 8
%101 = load i32, ptr %15, align 4
store i32 %101, ptr %16, align 4
%102 = load i32, ptr %16, align 4
%103 = load i32, ptr %9, align 4
%104 = icmp slt i32 %102, %103
br i1 %104, label %.lr.ph, label %133
.lr.ph: ; preds = %96
br label %105
105: ; preds = %.lr.ph, %127
%106 = load i32, ptr %16, align 4
%107 = load i32, ptr %9, align 4
%108 = mul nsw i32 %106, %107
store i32 %108, ptr %18, align 4
%109 = load ptr, ptr %8, align 8
%110 = load i32, ptr %18, align 4
%111 = load i32, ptr %15, align 4
%112 = add nsw i32 %110, %111
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds double, ptr %109, i64 %113
%115 = load double, ptr %114, align 8
%116 = load ptr, ptr %26, align 8
%117 = load i32, ptr %16, align 4
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds double, ptr %116, i64 %118
%120 = load double, ptr %119, align 8
%121 = load ptr, ptr %30, align 8
%122 = load i32, ptr %15, align 4
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds double, ptr %121, i64 %123
%125 = load double, ptr %124, align 8
%126 = call double @llvm.fmuladd.f64(double %115, double %120, double %125)
store double %126, ptr %124, align 8
br label %127
127: ; preds = %105
%128 = load i32, ptr %16, align 4
%129 = add nsw i32 %128, 1
store i32 %129, ptr %16, align 4
%130 = load i32, ptr %16, align 4
%131 = load i32, ptr %9, align 4
%132 = icmp slt i32 %130, %131
br i1 %132, label %105, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %127
br label %133
133: ; preds = %._crit_edge, %96
br label %134
134: ; preds = %133
%135 = load i32, ptr %15, align 4
%136 = add nsw i32 %135, 1
store i32 %136, ptr %15, align 4
%137 = load i32, ptr %15, align 4
%138 = load i32, ptr %9, align 4
%139 = icmp slt i32 %137, %138
br i1 %139, label %96, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %134
br label %140
140: ; preds = %._crit_edge3, %92
%141 = load ptr, ptr %30, align 8
%142 = load ptr, ptr %30, align 8
%143 = load ptr, ptr %29, align 8
%144 = load i32, ptr %9, align 4
%145 = call i32 @mmult(ptr noundef %141, ptr noundef %142, ptr noundef %143, i32 noundef 1, i32 noundef %144, i32 noundef 1)
%146 = load ptr, ptr %28, align 8
%147 = getelementptr inbounds double, ptr %146, i64 0
%148 = load double, ptr %147, align 8
%149 = load ptr, ptr %29, align 8
%150 = getelementptr inbounds double, ptr %149, i64 0
%151 = load double, ptr %150, align 8
%152 = fdiv double %148, %151
%153 = call double @sqrt(double noundef %152) #4
store double %153, ptr %24, align 8
store i32 1, ptr %17, align 4
store i32 0, ptr %15, align 4
%154 = load i32, ptr %15, align 4
%155 = load i32, ptr %9, align 4
%156 = icmp slt i32 %154, %155
br i1 %156, label %.lr.ph8, label %246
.lr.ph8: ; preds = %140
br label %157
157: ; preds = %.lr.ph8, %240
store double 0.000000e+00, ptr %25, align 8
%158 = load i32, ptr %15, align 4
%159 = load i32, ptr %9, align 4
%160 = mul nsw i32 %158, %159
store i32 %160, ptr %18, align 4
store i32 0, ptr %16, align 4
%161 = load i32, ptr %16, align 4
%162 = load i32, ptr %15, align 4
%163 = add nsw i32 %162, 1
%164 = icmp slt i32 %161, %163
br i1 %164, label %.lr.ph5, label %187
.lr.ph5: ; preds = %157
br label %165
165: ; preds = %.lr.ph5, %180
%166 = load ptr, ptr %8, align 8
%167 = load i32, ptr %18, align 4
%168 = load i32, ptr %16, align 4
%169 = add nsw i32 %167, %168
%170 = sext i32 %169 to i64
%171 = getelementptr inbounds double, ptr %166, i64 %170
%172 = load double, ptr %171, align 8
%173 = load ptr, ptr %30, align 8
%174 = load i32, ptr %16, align 4
%175 = sext i32 %174 to i64
%176 = getelementptr inbounds double, ptr %173, i64 %175
%177 = load double, ptr %176, align 8
%178 = load double, ptr %25, align 8
%179 = call double @llvm.fmuladd.f64(double %172, double %177, double %178)
store double %179, ptr %25, align 8
br label %180
180: ; preds = %165
%181 = load i32, ptr %16, align 4
%182 = add nsw i32 %181, 1
store i32 %182, ptr %16, align 4
%183 = load i32, ptr %16, align 4
%184 = load i32, ptr %15, align 4
%185 = add nsw i32 %184, 1
%186 = icmp slt i32 %183, %185
br i1 %186, label %165, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %180
br label %187
187: ; preds = %._crit_edge6, %157
%188 = load ptr, ptr %27, align 8
%189 = load i32, ptr %15, align 4
%190 = sext i32 %189 to i64
%191 = getelementptr inbounds double, ptr %188, i64 %190
%192 = load double, ptr %191, align 8
%193 = load double, ptr %25, align 8
%194 = fsub double %192, %193
%195 = call double @llvm.fabs.f64(double %194)
store double %195, ptr %22, align 8
%196 = load ptr, ptr %13, align 8
%197 = load i32, ptr %15, align 4
%198 = sext i32 %197 to i64
%199 = getelementptr inbounds double, ptr %196, i64 %198
%200 = load double, ptr %199, align 8
%201 = load ptr, ptr %14, align 8
%202 = load i32, ptr %15, align 4
%203 = sext i32 %202 to i64
%204 = getelementptr inbounds double, ptr %201, i64 %203
%205 = load double, ptr %204, align 8
%206 = fcmp ogt double %200, %205
br i1 %206, label %207, label %213
207: ; preds = %187
%208 = load ptr, ptr %13, align 8
%209 = load i32, ptr %15, align 4
%210 = sext i32 %209 to i64
%211 = getelementptr inbounds double, ptr %208, i64 %210
%212 = load double, ptr %211, align 8
store double %212, ptr %23, align 8
br label %219
213: ; preds = %187
%214 = load ptr, ptr %14, align 8
%215 = load i32, ptr %15, align 4
%216 = sext i32 %215 to i64
%217 = getelementptr inbounds double, ptr %214, i64 %216
%218 = load double, ptr %217, align 8
store double %218, ptr %23, align 8
br label %219
219: ; preds = %213, %207
%220 = load double, ptr %22, align 8
%221 = load double, ptr %21, align 8
%222 = load double, ptr %23, align 8
%223 = fmul double %221, %222
%224 = fcmp oge double %220, %223
br i1 %224, label %225, label %226
225: ; preds = %219
store i32 0, ptr %17, align 4
br label %226
226: ; preds = %225, %219
%227 = load ptr, ptr %27, align 8
%228 = load i32, ptr %15, align 4
%229 = sext i32 %228 to i64
%230 = getelementptr inbounds double, ptr %227, i64 %229
%231 = load double, ptr %230, align 8
%232 = load double, ptr %24, align 8
%233 = load double, ptr %25, align 8
%234 = fneg double %232
%235 = call double @llvm.fmuladd.f64(double %234, double %233, double %231)
%236 = load ptr, ptr %31, align 8
%237 = load i32, ptr %15, align 4
%238 = sext i32 %237 to i64
%239 = getelementptr inbounds double, ptr %236, i64 %238
store double %235, ptr %239, align 8
br label %240
240: ; preds = %226
%241 = load i32, ptr %15, align 4
%242 = add nsw i32 %241, 1
store i32 %242, ptr %15, align 4
%243 = load i32, ptr %15, align 4
%244 = load i32, ptr %9, align 4
%245 = icmp slt i32 %243, %244
br i1 %245, label %157, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %240
br label %246
246: ; preds = %._crit_edge9, %140
%247 = load i32, ptr %17, align 4
%248 = icmp eq i32 %247, 0
br i1 %248, label %249, label %362
249: ; preds = %246
%250 = load ptr, ptr %28, align 8
%251 = getelementptr inbounds double, ptr %250, i64 0
%252 = load double, ptr %251, align 8
%253 = load ptr, ptr %29, align 8
%254 = getelementptr inbounds double, ptr %253, i64 0
%255 = load double, ptr %254, align 8
%256 = fmul double %252, %255
%257 = call double @sqrt(double noundef %256) #4
%258 = fdiv double 1.000000e+00, %257
store double %258, ptr %25, align 8
store i32 0, ptr %15, align 4
%259 = load i32, ptr %15, align 4
%260 = load i32, ptr %9, align 4
%261 = icmp slt i32 %259, %260
br i1 %261, label %.lr.ph11, label %276
.lr.ph11: ; preds = %249
br label %262
262: ; preds = %.lr.ph11, %270
%263 = load double, ptr %25, align 8
%264 = load ptr, ptr %30, align 8
%265 = load i32, ptr %15, align 4
%266 = sext i32 %265 to i64
%267 = getelementptr inbounds double, ptr %264, i64 %266
%268 = load double, ptr %267, align 8
%269 = fmul double %268, %263
store double %269, ptr %267, align 8
br label %270
270: ; preds = %262
%271 = load i32, ptr %15, align 4
%272 = add nsw i32 %271, 1
store i32 %272, ptr %15, align 4
%273 = load i32, ptr %15, align 4
%274 = load i32, ptr %9, align 4
%275 = icmp slt i32 %273, %274
br i1 %275, label %262, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %270
br label %276
276: ; preds = %._crit_edge12, %249
store i32 1, ptr %15, align 4
%277 = load i32, ptr %15, align 4
%278 = load i32, ptr %9, align 4
%279 = icmp slt i32 %277, %278
br i1 %279, label %.lr.ph17, label %316
.lr.ph17: ; preds = %276
br label %280
280: ; preds = %.lr.ph17, %310
%281 = load i32, ptr %15, align 4
%282 = load i32, ptr %9, align 4
%283 = mul nsw i32 %281, %282
store i32 %283, ptr %18, align 4
store i32 0, ptr %16, align 4
%284 = load i32, ptr %16, align 4
%285 = load i32, ptr %15, align 4
%286 = icmp slt i32 %284, %285
br i1 %286, label %.lr.ph14, label %309
.lr.ph14: ; preds = %280
br label %287
287: ; preds = %.lr.ph14, %303
%288 = load ptr, ptr %8, align 8
%289 = load i32, ptr %18, align 4
%290 = load i32, ptr %16, align 4
%291 = add nsw i32 %289, %290
%292 = sext i32 %291 to i64
%293 = getelementptr inbounds double, ptr %288, i64 %292
%294 = load double, ptr %293, align 8
%295 = load ptr, ptr %8, align 8
%296 = load i32, ptr %16, align 4
%297 = load i32, ptr %9, align 4
%298 = mul nsw i32 %296, %297
%299 = load i32, ptr %15, align 4
%300 = add nsw i32 %298, %299
%301 = sext i32 %300 to i64
%302 = getelementptr inbounds double, ptr %295, i64 %301
store double %294, ptr %302, align 8
br label %303
303: ; preds = %287
%304 = load i32, ptr %16, align 4
%305 = add nsw i32 %304, 1
store i32 %305, ptr %16, align 4
%306 = load i32, ptr %16, align 4
%307 = load i32, ptr %15, align 4
%308 = icmp slt i32 %306, %307
br i1 %308, label %287, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %303
br label %309
309: ; preds = %._crit_edge15, %280
br label %310
310: ; preds = %309
%311 = load i32, ptr %15, align 4
%312 = add nsw i32 %311, 1
store i32 %312, ptr %15, align 4
%313 = load i32, ptr %15, align 4
%314 = load i32, ptr %9, align 4
%315 = icmp slt i32 %313, %314
br i1 %315, label %280, label %._crit_edge18, !llvm.loop !13
._crit_edge18: ; preds = %310
br label %316
316: ; preds = %._crit_edge18, %276
%317 = load ptr, ptr %8, align 8
%318 = load i32, ptr %9, align 4
%319 = load ptr, ptr %30, align 8
%320 = load ptr, ptr %31, align 8
%321 = call i32 @qrupdate(ptr noundef %317, i32 noundef %318, ptr noundef %319, ptr noundef %320)
store i32 1, ptr %15, align 4
%322 = load i32, ptr %15, align 4
%323 = load i32, ptr %9, align 4
%324 = icmp slt i32 %322, %323
br i1 %324, label %.lr.ph23, label %361
.lr.ph23: ; preds = %316
br label %325
325: ; preds = %.lr.ph23, %355
%326 = load i32, ptr %15, align 4
%327 = load i32, ptr %9, align 4
%328 = mul nsw i32 %326, %327
store i32 %328, ptr %18, align 4
store i32 0, ptr %16, align 4
%329 = load i32, ptr %16, align 4
%330 = load i32, ptr %15, align 4
%331 = icmp slt i32 %329, %330
br i1 %331, label %.lr.ph20, label %354
.lr.ph20: ; preds = %325
br label %332
332: ; preds = %.lr.ph20, %348
%333 = load ptr, ptr %8, align 8
%334 = load i32, ptr %16, align 4
%335 = load i32, ptr %9, align 4
%336 = mul nsw i32 %334, %335
%337 = load i32, ptr %15, align 4
%338 = add nsw i32 %336, %337
%339 = sext i32 %338 to i64
%340 = getelementptr inbounds double, ptr %333, i64 %339
%341 = load double, ptr %340, align 8
%342 = load ptr, ptr %8, align 8
%343 = load i32, ptr %18, align 4
%344 = load i32, ptr %16, align 4
%345 = add nsw i32 %343, %344
%346 = sext i32 %345 to i64
%347 = getelementptr inbounds double, ptr %342, i64 %346
store double %341, ptr %347, align 8
br label %348
348: ; preds = %332
%349 = load i32, ptr %16, align 4
%350 = add nsw i32 %349, 1
store i32 %350, ptr %16, align 4
%351 = load i32, ptr %16, align 4
%352 = load i32, ptr %15, align 4
%353 = icmp slt i32 %351, %352
br i1 %353, label %332, label %._crit_edge21, !llvm.loop !14
._crit_edge21: ; preds = %348
br label %354
354: ; preds = %._crit_edge21, %325
br label %355
355: ; preds = %354
%356 = load i32, ptr %15, align 4
%357 = add nsw i32 %356, 1
store i32 %357, ptr %15, align 4
%358 = load i32, ptr %15, align 4
%359 = load i32, ptr %9, align 4
%360 = icmp slt i32 %358, %359
br i1 %360, label %325, label %._crit_edge24, !llvm.loop !15
._crit_edge24: ; preds = %355
br label %361
361: ; preds = %._crit_edge24, %316
br label %362
362: ; preds = %361, %246
br label %363
363: ; preds = %362, %7
%364 = load ptr, ptr %26, align 8
%365 = call i32 @free(ptr noundef %364)
%366 = load ptr, ptr %27, align 8
%367 = call i32 @free(ptr noundef %366)
%368 = load ptr, ptr %28, align 8
%369 = call i32 @free(ptr noundef %368)
%370 = load ptr, ptr %29, align 8
%371 = call i32 @free(ptr noundef %370)
%372 = load ptr, ptr %30, align 8
%373 = call i32 @free(ptr noundef %372)
%374 = load ptr, ptr %31, align 8
%375 = call i32 @free(ptr noundef %374)
ret void
}
declare i64 @malloc(i32 noundef) #1
declare i32 @msub(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare double @l2norm(ptr noundef, i32 noundef) #1
; Function Attrs: nounwind
declare double @sqrt(double noundef) #2
declare i32 @mmult(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #3
declare i32 @qrupdate(ptr noundef, i32 noundef, 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" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
|
; ModuleID = '/tmp/tmprcemzz09.c'
source_filename = "/tmp/tmprcemzz09.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@RAND_MAX = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @int_rand(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call double (...) @rand()
%4 = fmul double 1.000000e+00, %3
%5 = load double, ptr @RAND_MAX, align 8
%6 = fadd double %5, 1.000000e+00
%7 = fdiv double %4, %6
%8 = load i32, ptr %2, align 4
%9 = sitofp i32 %8 to double
%10 = fmul double %7, %9
%11 = fptosi double %10 to i32
ret i32 %11
}
declare double @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/tmprcemzz09.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@RAND_MAX = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @int_rand(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call double (...) @rand()
%4 = fmul double 1.000000e+00, %3
%5 = load double, ptr @RAND_MAX, align 8
%6 = fadd double %5, 1.000000e+00
%7 = fdiv double %4, %6
%8 = load i32, ptr %2, align 4
%9 = sitofp i32 %8 to double
%10 = fmul double %7, %9
%11 = fptosi double %10 to i32
ret i32 %11
}
declare double @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/tmpkltmk062.c'
source_filename = "/tmp/tmpkltmk062.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [55 x i8] c"\0ACopyright: Thorsten Joachims, [email protected]\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [69 x i8] c"This software is available for non-commercial use only. It must not\0A\00", align 1
@.str.2 = private unnamed_addr constant [69 x i8] c"be modified and distributed without prior permission of the author.\0A\00", align 1
@.str.3 = private unnamed_addr constant [69 x i8] c"The author is not responsible for implications from the use of this\0A\00", align 1
@.str.4 = private unnamed_addr constant [12 x i8] c"software.\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @copyright_notice() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkltmk062.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [55 x i8] c"\0ACopyright: Thorsten Joachims, [email protected]\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [69 x i8] c"This software is available for non-commercial use only. It must not\0A\00", align 1
@.str.2 = private unnamed_addr constant [69 x i8] c"be modified and distributed without prior permission of the author.\0A\00", align 1
@.str.3 = private unnamed_addr constant [69 x i8] c"The author is not responsible for implications from the use of this\0A\00", align 1
@.str.4 = private unnamed_addr constant [12 x i8] c"software.\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @copyright_notice() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpup_3bvi2.c'
source_filename = "/tmp/tmpup_3bvi2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @display()
ret i32 0
}
declare i32 @display(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpup_3bvi2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @display()
ret i32 0
}
declare i32 @display(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpeclogd50.c'
source_filename = "/tmp/tmpeclogd50.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0A%d. %c\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
store i32 0, ptr %2, align 4
br label %3
3: ; preds = %10, %0
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 256
br i1 %5, label %6, label %13
6: ; preds = %3
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = call i32 @printf(ptr noundef @.str, i32 noundef %7, i32 noundef %8)
br label %10
10: ; preds = %6
%11 = load i32, ptr %2, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %2, align 4
br label %3, !llvm.loop !6
13: ; preds = %3
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpeclogd50.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0A%d. %c\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
store i32 0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp slt i32 %3, 256
br i1 %4, label %.lr.ph, label %14
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %9
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %2, align 4
%8 = call i32 @printf(ptr noundef @.str, i32 noundef %6, i32 noundef %7)
br label %9
9: ; preds = %5
%10 = load i32, ptr %2, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %2, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp slt i32 %12, 256
br i1 %13, label %5, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %9
br label %14
14: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpwie3yfmc.c'
source_filename = "/tmp/tmpwie3yfmc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%union.bpf_attr = type { %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i32, i32, ptr, ptr, i32, ptr }
@BPF_PROG_QUERY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @bpf_prog_query(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca %union.bpf_attr, align 8
%14 = alloca i32, align 4
store i32 %0, ptr %7, align 4
store i32 %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%15 = call i32 @bzero(ptr noundef %13, i32 noundef 40)
%16 = load i32, ptr %7, align 4
%17 = getelementptr inbounds %struct.TYPE_2__, ptr %13, i32 0, i32 0
store i32 %16, ptr %17, align 8
%18 = load i32, ptr %8, align 4
%19 = getelementptr inbounds %struct.TYPE_2__, ptr %13, i32 0, i32 1
store i32 %18, ptr %19, align 4
%20 = load ptr, ptr %9, align 8
%21 = getelementptr inbounds %struct.TYPE_2__, ptr %13, i32 0, i32 5
store ptr %20, ptr %21, align 8
%22 = load ptr, ptr %12, align 8
%23 = load ptr, ptr %22, align 8
%24 = getelementptr inbounds %struct.TYPE_2__, ptr %13, i32 0, i32 2
store ptr %23, ptr %24, align 8
%25 = load ptr, ptr %11, align 8
%26 = call i32 @ptr_to_u64(ptr noundef %25)
%27 = getelementptr inbounds %struct.TYPE_2__, ptr %13, i32 0, i32 4
store i32 %26, ptr %27, align 8
%28 = load i32, ptr @BPF_PROG_QUERY, align 4
%29 = call i32 @sys_bpf(i32 noundef %28, ptr noundef %13, i32 noundef 40)
store i32 %29, ptr %14, align 4
%30 = load ptr, ptr %10, align 8
%31 = icmp ne ptr %30, null
br i1 %31, label %32, label %36
32: ; preds = %6
%33 = getelementptr inbounds %struct.TYPE_2__, ptr %13, i32 0, i32 3
%34 = load ptr, ptr %33, align 8
%35 = load ptr, ptr %10, align 8
store ptr %34, ptr %35, align 8
br label %36
36: ; preds = %32, %6
%37 = getelementptr inbounds %struct.TYPE_2__, ptr %13, i32 0, i32 2
%38 = load ptr, ptr %37, align 8
%39 = load ptr, ptr %12, align 8
store ptr %38, ptr %39, align 8
%40 = load i32, ptr %14, align 4
ret i32 %40
}
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @ptr_to_u64(ptr noundef) #1
declare i32 @sys_bpf(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwie3yfmc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%union.bpf_attr = type { %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i32, i32, ptr, ptr, i32, ptr }
@BPF_PROG_QUERY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @bpf_prog_query(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca %union.bpf_attr, align 8
%14 = alloca i32, align 4
store i32 %0, ptr %7, align 4
store i32 %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%15 = call i32 @bzero(ptr noundef %13, i32 noundef 40)
%16 = load i32, ptr %7, align 4
%17 = getelementptr inbounds %struct.TYPE_2__, ptr %13, i32 0, i32 0
store i32 %16, ptr %17, align 8
%18 = load i32, ptr %8, align 4
%19 = getelementptr inbounds %struct.TYPE_2__, ptr %13, i32 0, i32 1
store i32 %18, ptr %19, align 4
%20 = load ptr, ptr %9, align 8
%21 = getelementptr inbounds %struct.TYPE_2__, ptr %13, i32 0, i32 5
store ptr %20, ptr %21, align 8
%22 = load ptr, ptr %12, align 8
%23 = load ptr, ptr %22, align 8
%24 = getelementptr inbounds %struct.TYPE_2__, ptr %13, i32 0, i32 2
store ptr %23, ptr %24, align 8
%25 = load ptr, ptr %11, align 8
%26 = call i32 @ptr_to_u64(ptr noundef %25)
%27 = getelementptr inbounds %struct.TYPE_2__, ptr %13, i32 0, i32 4
store i32 %26, ptr %27, align 8
%28 = load i32, ptr @BPF_PROG_QUERY, align 4
%29 = call i32 @sys_bpf(i32 noundef %28, ptr noundef %13, i32 noundef 40)
store i32 %29, ptr %14, align 4
%30 = load ptr, ptr %10, align 8
%31 = icmp ne ptr %30, null
br i1 %31, label %32, label %36
32: ; preds = %6
%33 = getelementptr inbounds %struct.TYPE_2__, ptr %13, i32 0, i32 3
%34 = load ptr, ptr %33, align 8
%35 = load ptr, ptr %10, align 8
store ptr %34, ptr %35, align 8
br label %36
36: ; preds = %32, %6
%37 = getelementptr inbounds %struct.TYPE_2__, ptr %13, i32 0, i32 2
%38 = load ptr, ptr %37, align 8
%39 = load ptr, ptr %12, align 8
store ptr %38, ptr %39, align 8
%40 = load i32, ptr %14, align 4
ret i32 %40
}
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @ptr_to_u64(ptr noundef) #1
declare i32 @sys_bpf(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppmtg51fr.c'
source_filename = "/tmp/tmppmtg51fr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [41 x i8] c"Diskimage, by Mouse ([email protected]\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"Usage:\00", align 1
@.str.2 = private unnamed_addr constant [72 x i8] c" diskimage <disk.dsk> [-f] [-x] [-v] [[-d] [-b] -t<track> -s<sector>]\0A\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"General Options:\00", align 1
@.str.4 = private unnamed_addr constant [39 x i8] c" -v: Be verbose about disk statistics\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"Command Options:\00", align 1
@.str.6 = private unnamed_addr constant [18 x i8] c" -f: Format disk\00", align 1
@.str.7 = private unnamed_addr constant [43 x i8] c" -D: Dump disk block (requires -t and -s)\00", align 1
@.str.8 = private unnamed_addr constant [30 x i8] c" -x: EXamine disk properties\00", align 1
@.str.9 = private unnamed_addr constant [65 x i8] c" -b <file>: Insert binary data into a disk (requires -t and -s)\00", align 1
@.str.10 = private unnamed_addr constant [41 x i8] c" -t <track>: Specify track (in decimal)\00", align 1
@.str.11 = private unnamed_addr constant [43 x i8] c" -s <sector>: Specify sector (in decimal)\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = call i32 @puts(ptr noundef @.str)
%2 = call i32 @puts(ptr noundef @.str.1)
%3 = call i32 @puts(ptr noundef @.str.2)
%4 = call i32 @puts(ptr noundef @.str.3)
%5 = call i32 @puts(ptr noundef @.str.4)
%6 = call i32 @puts(ptr noundef @.str.5)
%7 = call i32 @puts(ptr noundef @.str.6)
%8 = call i32 @puts(ptr noundef @.str.7)
%9 = call i32 @puts(ptr noundef @.str.8)
%10 = call i32 @puts(ptr noundef @.str.9)
%11 = call i32 @puts(ptr noundef @.str.10)
%12 = call i32 @puts(ptr noundef @.str.11)
%13 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @puts(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/tmppmtg51fr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [41 x i8] c"Diskimage, by Mouse ([email protected]\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"Usage:\00", align 1
@.str.2 = private unnamed_addr constant [72 x i8] c" diskimage <disk.dsk> [-f] [-x] [-v] [[-d] [-b] -t<track> -s<sector>]\0A\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"General Options:\00", align 1
@.str.4 = private unnamed_addr constant [39 x i8] c" -v: Be verbose about disk statistics\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"Command Options:\00", align 1
@.str.6 = private unnamed_addr constant [18 x i8] c" -f: Format disk\00", align 1
@.str.7 = private unnamed_addr constant [43 x i8] c" -D: Dump disk block (requires -t and -s)\00", align 1
@.str.8 = private unnamed_addr constant [30 x i8] c" -x: EXamine disk properties\00", align 1
@.str.9 = private unnamed_addr constant [65 x i8] c" -b <file>: Insert binary data into a disk (requires -t and -s)\00", align 1
@.str.10 = private unnamed_addr constant [41 x i8] c" -t <track>: Specify track (in decimal)\00", align 1
@.str.11 = private unnamed_addr constant [43 x i8] c" -s <sector>: Specify sector (in decimal)\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = call i32 @puts(ptr noundef @.str)
%2 = call i32 @puts(ptr noundef @.str.1)
%3 = call i32 @puts(ptr noundef @.str.2)
%4 = call i32 @puts(ptr noundef @.str.3)
%5 = call i32 @puts(ptr noundef @.str.4)
%6 = call i32 @puts(ptr noundef @.str.5)
%7 = call i32 @puts(ptr noundef @.str.6)
%8 = call i32 @puts(ptr noundef @.str.7)
%9 = call i32 @puts(ptr noundef @.str.8)
%10 = call i32 @puts(ptr noundef @.str.9)
%11 = call i32 @puts(ptr noundef @.str.10)
%12 = call i32 @puts(ptr noundef @.str.11)
%13 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @puts(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/tmpifsndeh9.c'
source_filename = "/tmp/tmpifsndeh9.c"
target datalayout = "e-m:e-p270: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/tmpifsndeh9.c"
target datalayout = "e-m:e-p270: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/tmpxf67cflx.c'
source_filename = "/tmp/tmpxf67cflx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"Fatal error \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @bug(i16 noundef signext %0) #0 {
%2 = alloca i16, align 2
store i16 %0, ptr %2, align 2
%3 = call i32 @writes(ptr noundef @.str)
%4 = load i16, ptr %2, align 2
%5 = call i32 @writei(i16 noundef signext %4)
%6 = call i32 (...) @nl()
%7 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @writes(ptr noundef) #1
declare i32 @writei(i16 noundef signext) #1
declare i32 @nl(...) #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/tmpxf67cflx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"Fatal error \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @bug(i16 noundef signext %0) #0 {
%2 = alloca i16, align 2
store i16 %0, ptr %2, align 2
%3 = call i32 @writes(ptr noundef @.str)
%4 = load i16, ptr %2, align 2
%5 = call i32 @writei(i16 noundef signext %4)
%6 = call i32 (...) @nl()
%7 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @writes(ptr noundef) #1
declare i32 @writei(i16 noundef signext) #1
declare i32 @nl(...) #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/tmp6kgx2xol.c'
source_filename = "/tmp/tmp6kgx2xol.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 @permute(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp eq i32 %8, %9
br i1 %10, label %11, label %14
11: ; preds = %3
%12 = load ptr, ptr %4, align 8
%13 = call i32 @printf(ptr noundef @.str, ptr noundef %12)
br label %47
14: ; preds = %3
%15 = load i32, ptr %5, align 4
store i32 %15, ptr %7, align 4
br label %16
16: ; preds = %43, %14
%17 = load i32, ptr %7, align 4
%18 = load i32, ptr %6, align 4
%19 = icmp sle i32 %17, %18
br i1 %19, label %20, label %46
20: ; preds = %16
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %7, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %21, i64 %23
%25 = load ptr, ptr %4, align 8
%26 = load i32, ptr %5, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
%29 = call i32 @swap(ptr noundef %24, ptr noundef %28)
%30 = load ptr, ptr %4, align 8
%31 = load i32, ptr %5, align 4
%32 = add nsw i32 %31, 1
%33 = load i32, ptr %6, align 4
call void @permute(ptr noundef %30, i32 noundef %32, i32 noundef %33)
%34 = load ptr, ptr %4, align 8
%35 = load i32, ptr %7, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %34, i64 %36
%38 = load ptr, ptr %4, align 8
%39 = load i32, ptr %5, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8, ptr %38, i64 %40
%42 = call i32 @swap(ptr noundef %37, ptr noundef %41)
br label %43
43: ; preds = %20
%44 = load i32, ptr %7, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %7, align 4
br label %16, !llvm.loop !6
46: ; preds = %16
br label %47
47: ; preds = %46, %11
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @swap(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6kgx2xol.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 @permute(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp eq i32 %8, %9
br i1 %10, label %11, label %14
11: ; preds = %3
%12 = load ptr, ptr %4, align 8
%13 = call i32 @printf(ptr noundef @.str, ptr noundef %12)
br label %49
14: ; preds = %3
%15 = load i32, ptr %5, align 4
store i32 %15, ptr %7, align 4
%16 = load i32, ptr %7, align 4
%17 = load i32, ptr %6, align 4
%18 = icmp sle i32 %16, %17
br i1 %18, label %.lr.ph, label %48
.lr.ph: ; preds = %14
br label %19
19: ; preds = %.lr.ph, %42
%20 = load ptr, ptr %4, align 8
%21 = load i32, ptr %7, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %20, i64 %22
%24 = load ptr, ptr %4, align 8
%25 = load i32, ptr %5, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %24, i64 %26
%28 = call i32 @swap(ptr noundef %23, ptr noundef %27)
%29 = load ptr, ptr %4, align 8
%30 = load i32, ptr %5, align 4
%31 = add nsw i32 %30, 1
%32 = load i32, ptr %6, align 4
call void @permute(ptr noundef %29, i32 noundef %31, i32 noundef %32)
%33 = load ptr, ptr %4, align 8
%34 = load i32, ptr %7, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
%37 = load ptr, ptr %4, align 8
%38 = load i32, ptr %5, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8, ptr %37, i64 %39
%41 = call i32 @swap(ptr noundef %36, ptr noundef %40)
br label %42
42: ; preds = %19
%43 = load i32, ptr %7, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %7, align 4
%45 = load i32, ptr %7, align 4
%46 = load i32, ptr %6, align 4
%47 = icmp sle i32 %45, %46
br i1 %47, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %42
br label %48
48: ; preds = %._crit_edge, %14
br label %49
49: ; preds = %48, %11
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @swap(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpoucw0mpv.c'
source_filename = "/tmp/tmpoucw0mpv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"send error\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @socket_send(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %4, align 4
%9 = load ptr, ptr %5, align 8
%10 = load i32, ptr %6, align 4
%11 = call i32 @write(i32 noundef %8, ptr noundef %9, i32 noundef %10)
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %7, align 4
%13 = icmp slt i32 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %3
%15 = call i32 @perror(ptr noundef @.str)
br label %16
16: ; preds = %14, %3
%17 = load i32, ptr %7, align 4
ret i32 %17
}
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoucw0mpv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"send error\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @socket_send(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %4, align 4
%9 = load ptr, ptr %5, align 8
%10 = load i32, ptr %6, align 4
%11 = call i32 @write(i32 noundef %8, ptr noundef %9, i32 noundef %10)
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %7, align 4
%13 = icmp slt i32 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %3
%15 = call i32 @perror(ptr noundef @.str)
br label %16
16: ; preds = %14, %3
%17 = load i32, ptr %7, align 4
ret i32 %17
}
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvshqp_xh.c'
source_filename = "/tmp/tmpvshqp_xh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @jpc_floorlog2(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp sgt i32 %5, 0
%7 = zext i1 %6 to i32
%8 = call i32 @assert(i32 noundef %7)
store i32 0, ptr %3, align 4
%9 = load i32, ptr %2, align 4
store i32 %9, ptr %4, align 4
br label %10
10: ; preds = %13, %1
%11 = load i32, ptr %4, align 4
%12 = icmp sgt i32 %11, 1
br i1 %12, label %13, label %18
13: ; preds = %10
%14 = load i32, ptr %4, align 4
%15 = ashr i32 %14, 1
store i32 %15, ptr %4, align 4
%16 = load i32, ptr %3, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %3, align 4
br label %10, !llvm.loop !6
18: ; preds = %10
%19 = load i32, ptr %3, align 4
ret i32 %19
}
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/tmpvshqp_xh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @jpc_floorlog2(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp sgt i32 %5, 0
%7 = zext i1 %6 to i32
%8 = call i32 @assert(i32 noundef %7)
store i32 0, ptr %3, align 4
%9 = load i32, ptr %2, align 4
store i32 %9, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp sgt i32 %10, 1
br i1 %11, label %.lr.ph, label %19
.lr.ph: ; preds = %1
br label %12
12: ; preds = %.lr.ph, %12
%13 = load i32, ptr %4, align 4
%14 = ashr i32 %13, 1
store i32 %14, ptr %4, align 4
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %3, align 4
%17 = load i32, ptr %4, align 4
%18 = icmp sgt i32 %17, 1
br i1 %18, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %19
19: ; preds = %._crit_edge, %1
%20 = load i32, ptr %3, align 4
ret i32 %20
}
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/tmpqehk824u.c'
source_filename = "/tmp/tmpqehk824u.c"
target datalayout = "e-m:e-p270: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 [24 x i8] c"Invalid file descriptor\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"Couldn't determine file size\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"File is empty\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"read() failed\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @readfile(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca %struct.stat, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp sgt i32 %8, 1
br i1 %9, label %10, label %11
10: ; preds = %1
br label %11
11: ; preds = %10, %1
%12 = phi i1 [ false, %1 ], [ true, %10 ]
%13 = zext i1 %12 to i32
%14 = call i32 @assert(i32 noundef %13)
%15 = load i32, ptr %2, align 4
%16 = call i64 @fstat(i32 noundef %15, ptr noundef %4)
%17 = icmp eq i64 0, %16
br i1 %17, label %18, label %19
18: ; preds = %11
br label %19
19: ; preds = %18, %11
%20 = phi i1 [ false, %11 ], [ true, %18 ]
%21 = zext i1 %20 to i32
%22 = call i32 @assert(i32 noundef %21)
%23 = getelementptr inbounds %struct.stat, ptr %4, i32 0, i32 0
%24 = load i32, ptr %23, align 4
store i32 %24, ptr %5, align 4
%25 = load i32, ptr %5, align 4
%26 = icmp sgt i32 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %19
br label %28
28: ; preds = %27, %19
%29 = phi i1 [ false, %19 ], [ true, %27 ]
%30 = zext i1 %29 to i32
%31 = call i32 @assert(i32 noundef %30)
%32 = load i32, ptr %5, align 4
%33 = add nsw i32 %32, 1
%34 = call i64 @malloc(i32 noundef %33)
%35 = inttoptr i64 %34 to ptr
store ptr %35, ptr %3, align 8
%36 = load ptr, ptr %3, align 8
%37 = load i32, ptr %5, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
store i8 0, ptr %39, align 1
store i32 0, ptr %6, align 4
br label %40
40: ; preds = %57, %28
%41 = load i32, ptr %6, align 4
%42 = load i32, ptr %5, align 4
%43 = icmp slt i32 %41, %42
br i1 %43, label %44, label %64
44: ; preds = %40
%45 = load i32, ptr %2, align 4
%46 = load ptr, ptr %3, align 8
%47 = load i32, ptr %6, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i8, ptr %46, i64 %48
%50 = load i32, ptr %5, align 4
%51 = load i32, ptr %6, align 4
%52 = sub nsw i32 %50, %51
%53 = call i32 @read(i32 noundef %45, ptr noundef %49, i32 noundef %52)
store i32 %53, ptr %7, align 4
%54 = load i32, ptr %7, align 4
%55 = icmp sge i32 %54, 0
br i1 %55, label %56, label %57
56: ; preds = %44
br label %57
57: ; preds = %56, %44
%58 = phi i1 [ false, %44 ], [ true, %56 ]
%59 = zext i1 %58 to i32
%60 = call i32 @assert(i32 noundef %59)
%61 = load i32, ptr %7, align 4
%62 = load i32, ptr %6, align 4
%63 = add nsw i32 %62, %61
store i32 %63, ptr %6, align 4
br label %40, !llvm.loop !6
64: ; preds = %40
%65 = load i32, ptr %2, align 4
%66 = call i32 @close(i32 noundef %65)
%67 = load ptr, ptr %3, align 8
ret ptr %67
}
declare i32 @assert(i32 noundef) #1
declare i64 @fstat(i32 noundef, ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqehk824u.c"
target datalayout = "e-m:e-p270: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 [24 x i8] c"Invalid file descriptor\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"Couldn't determine file size\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"File is empty\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"read() failed\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @readfile(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca %struct.stat, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp sgt i32 %8, 1
br i1 %9, label %10, label %11
10: ; preds = %1
br label %11
11: ; preds = %10, %1
%12 = phi i1 [ false, %1 ], [ true, %10 ]
%13 = zext i1 %12 to i32
%14 = call i32 @assert(i32 noundef %13)
%15 = load i32, ptr %2, align 4
%16 = call i64 @fstat(i32 noundef %15, ptr noundef %4)
%17 = icmp eq i64 0, %16
br i1 %17, label %18, label %19
18: ; preds = %11
br label %19
19: ; preds = %18, %11
%20 = phi i1 [ false, %11 ], [ true, %18 ]
%21 = zext i1 %20 to i32
%22 = call i32 @assert(i32 noundef %21)
%23 = getelementptr inbounds %struct.stat, ptr %4, i32 0, i32 0
%24 = load i32, ptr %23, align 4
store i32 %24, ptr %5, align 4
%25 = load i32, ptr %5, align 4
%26 = icmp sgt i32 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %19
br label %28
28: ; preds = %27, %19
%29 = phi i1 [ false, %19 ], [ true, %27 ]
%30 = zext i1 %29 to i32
%31 = call i32 @assert(i32 noundef %30)
%32 = load i32, ptr %5, align 4
%33 = add nsw i32 %32, 1
%34 = call i64 @malloc(i32 noundef %33)
%35 = inttoptr i64 %34 to ptr
store ptr %35, ptr %3, align 8
%36 = load ptr, ptr %3, align 8
%37 = load i32, ptr %5, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
store i8 0, ptr %39, align 1
store i32 0, ptr %6, align 4
%40 = load i32, ptr %6, align 4
%41 = load i32, ptr %5, align 4
%42 = icmp slt i32 %40, %41
br i1 %42, label %.lr.ph, label %66
.lr.ph: ; preds = %28
br label %43
43: ; preds = %.lr.ph, %56
%44 = load i32, ptr %2, align 4
%45 = load ptr, ptr %3, align 8
%46 = load i32, ptr %6, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8, ptr %45, i64 %47
%49 = load i32, ptr %5, align 4
%50 = load i32, ptr %6, align 4
%51 = sub nsw i32 %49, %50
%52 = call i32 @read(i32 noundef %44, ptr noundef %48, i32 noundef %51)
store i32 %52, ptr %7, align 4
%53 = load i32, ptr %7, align 4
%54 = icmp sge i32 %53, 0
br i1 %54, label %55, label %56
55: ; preds = %43
br label %56
56: ; preds = %55, %43
%57 = phi i1 [ false, %43 ], [ true, %55 ]
%58 = zext i1 %57 to i32
%59 = call i32 @assert(i32 noundef %58)
%60 = load i32, ptr %7, align 4
%61 = load i32, ptr %6, align 4
%62 = add nsw i32 %61, %60
store i32 %62, ptr %6, align 4
%63 = load i32, ptr %6, align 4
%64 = load i32, ptr %5, align 4
%65 = icmp slt i32 %63, %64
br i1 %65, label %43, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %56
br label %66
66: ; preds = %._crit_edge, %28
%67 = load i32, ptr %2, align 4
%68 = call i32 @close(i32 noundef %67)
%69 = load ptr, ptr %3, align 8
ret ptr %69
}
declare i32 @assert(i32 noundef) #1
declare i64 @fstat(i32 noundef, ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp00t570a3.c'
source_filename = "/tmp/tmp00t570a3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ccmul\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @gen_mult() #0 {
%1 = call i32 (...) @gen_pop()
%2 = call i32 @gen_call(ptr noundef @.str)
ret void
}
declare i32 @gen_pop(...) #1
declare i32 @gen_call(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp00t570a3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ccmul\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @gen_mult() #0 {
%1 = call i32 (...) @gen_pop()
%2 = call i32 @gen_call(ptr noundef @.str)
ret void
}
declare i32 @gen_pop(...) #1
declare i32 @gen_call(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7h8s8nvp.c'
source_filename = "/tmp/tmp7h8s8nvp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @recursion(i32 noundef 14)
%7 = call i32 @printf(ptr noundef @.str, i32 noundef %6)
%8 = call i32 @iterative(i32 noundef 14)
%9 = call i32 @printf(ptr noundef @.str, i32 noundef %8)
%10 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %10
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @recursion(i32 noundef) #1
declare i32 @iterative(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/tmp7h8s8nvp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @recursion(i32 noundef 14)
%7 = call i32 @printf(ptr noundef @.str, i32 noundef %6)
%8 = call i32 @iterative(i32 noundef 14)
%9 = call i32 @printf(ptr noundef @.str, i32 noundef %8)
%10 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %10
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @recursion(i32 noundef) #1
declare i32 @iterative(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/tmp2jgzmnwz.c'
source_filename = "/tmp/tmp2jgzmnwz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store i32 10, ptr %2, align 4
store ptr null, ptr %3, align 8
br label %4
4: ; preds = %8, %0
%5 = load i32, ptr %2, align 4
%6 = add nsw i32 %5, -1
store i32 %6, ptr %2, align 4
%7 = icmp ne i32 %5, 0
br i1 %7, label %8, label %12
8: ; preds = %4
%9 = load i32, ptr %2, align 4
%10 = add nsw i32 %9, 1
%11 = call i32 @Push(ptr noundef %3, i32 noundef %10)
br label %4, !llvm.loop !6
12: ; preds = %4
%13 = load ptr, ptr %3, align 8
%14 = call i32 @Print(ptr noundef %13)
ret i32 0
}
declare i32 @Push(ptr noundef, i32 noundef) #1
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2jgzmnwz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store i32 10, ptr %2, align 4
store ptr null, ptr %3, align 8
%4 = load i32, ptr %2, align 4
%5 = add nsw i32 %4, -1
store i32 %5, ptr %2, align 4
%6 = icmp ne i32 %4, 0
br i1 %6, label %.lr.ph, label %14
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %7
%8 = load i32, ptr %2, align 4
%9 = add nsw i32 %8, 1
%10 = call i32 @Push(ptr noundef %3, i32 noundef %9)
%11 = load i32, ptr %2, align 4
%12 = add nsw i32 %11, -1
store i32 %12, ptr %2, align 4
%13 = icmp ne i32 %11, 0
br i1 %13, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %7
br label %14
14: ; preds = %._crit_edge, %0
%15 = load ptr, ptr %3, align 8
%16 = call i32 @Print(ptr noundef %15)
ret i32 0
}
declare i32 @Push(ptr noundef, i32 noundef) #1
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpn2lechdg.c'
source_filename = "/tmp/tmpn2lechdg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%u \00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"OK!\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"NO\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [2 x 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 [64 x i32], align 16
%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
%15 = alloca i32, align 4
%16 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 4 %2, i8 0, i64 8, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 256, i1 false)
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
%17 = load i32, ptr @stdin, align 4
%18 = call i32 (i32, ptr, ptr, ...) @fscanf(i32 noundef %17, ptr noundef @.str, ptr noundef %3)
%19 = load i32, ptr %3, align 4
%20 = icmp slt i32 %19, 64
%21 = zext i1 %20 to i32
%22 = call i32 @assert(i32 noundef %21)
%23 = load i32, ptr @stdin, align 4
%24 = call i32 (i32, ptr, ptr, ...) @fscanf(i32 noundef %23, ptr noundef @.str.1, ptr noundef %4)
store i32 0, ptr %12, align 4
br label %25
25: ; preds = %60, %0
%26 = load i32, ptr %12, align 4
%27 = load i32, ptr %4, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %29, label %63
29: ; preds = %25
%30 = load i32, ptr @stdin, align 4
%31 = getelementptr inbounds [2 x i32], ptr %2, i64 0, i64 0
%32 = getelementptr inbounds [2 x i32], ptr %2, i64 0, i64 1
%33 = call i32 (i32, ptr, ptr, ...) @fscanf(i32 noundef %30, ptr noundef @.str.2, ptr noundef %31, ptr noundef %32)
%34 = getelementptr inbounds [2 x i32], ptr %2, i64 0, i64 0
%35 = load i32, ptr %34, align 4
%36 = load i32, ptr %3, align 4
%37 = icmp slt i32 %35, %36
%38 = zext i1 %37 to i32
%39 = call i32 @assert(i32 noundef %38)
%40 = getelementptr inbounds [2 x i32], ptr %2, i64 0, i64 1
%41 = load i32, ptr %40, align 4
%42 = load i32, ptr %3, align 4
%43 = icmp slt i32 %41, %42
%44 = zext i1 %43 to i32
%45 = call i32 @assert(i32 noundef %44)
%46 = getelementptr inbounds [2 x i32], ptr %2, i64 0, i64 1
%47 = load i32, ptr %46, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [64 x i32], ptr %7, i64 0, i64 %48
%50 = load i32, ptr %49, align 4
%51 = getelementptr inbounds [2 x i32], ptr %2, i64 0, i64 0
%52 = load i32, ptr %51, align 4
%53 = sub nsw i32 64, %52
%54 = shl i32 1, %53
%55 = or i32 %50, %54
%56 = getelementptr inbounds [2 x i32], ptr %2, i64 0, i64 1
%57 = load i32, ptr %56, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [64 x i32], ptr %7, i64 0, i64 %58
store i32 %55, ptr %59, align 4
br label %60
60: ; preds = %29
%61 = load i32, ptr %12, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %12, align 4
br label %25, !llvm.loop !6
63: ; preds = %25
%64 = load i32, ptr @stdin, align 4
%65 = call i32 (i32, ptr, ptr, ...) @fscanf(i32 noundef %64, ptr noundef @.str.2, ptr noundef %5, ptr noundef %6)
store i32 0, ptr %13, align 4
br label %66
66: ; preds = %154, %63
%67 = load i32, ptr %13, align 4
%68 = load i32, ptr %6, align 4
%69 = add nsw i32 %68, 1
%70 = icmp slt i32 %67, %69
br i1 %70, label %71, label %157
71: ; preds = %66
store i32 0, ptr %11, align 4
store i32 0, ptr %14, align 4
br label %72
72: ; preds = %86, %71
%73 = load i32, ptr %14, align 4
%74 = load i32, ptr %5, align 4
%75 = icmp slt i32 %73, %74
br i1 %75, label %76, label %89
76: ; preds = %72
%77 = load i32, ptr @stdin, align 4
%78 = getelementptr inbounds [2 x i32], ptr %2, i64 0, i64 0
%79 = call i32 (i32, ptr, ptr, ...) @fscanf(i32 noundef %77, ptr noundef @.str.1, ptr noundef %78)
%80 = getelementptr inbounds [2 x i32], ptr %2, i64 0, i64 0
%81 = load i32, ptr %80, align 4
%82 = sub nsw i32 64, %81
%83 = shl i32 1, %82
%84 = load i32, ptr %11, align 4
%85 = or i32 %84, %83
store i32 %85, ptr %11, align 4
br label %86
86: ; preds = %76
%87 = load i32, ptr %14, align 4
%88 = add nsw i32 %87, 1
store i32 %88, ptr %14, align 4
br label %72, !llvm.loop !8
89: ; preds = %72
store i32 0, ptr %15, align 4
br label %90
90: ; preds = %104, %89
%91 = load i32, ptr %15, align 4
%92 = load i32, ptr %3, align 4
%93 = icmp slt i32 %91, %92
br i1 %93, label %94, label %107
94: ; preds = %90
%95 = load i32, ptr %8, align 4
%96 = load i32, ptr %15, align 4
%97 = sub nsw i32 64, %96
%98 = shl i32 1, %97
%99 = and i32 %95, %98
%100 = load i32, ptr %15, align 4
%101 = sub nsw i32 64, %100
%102 = lshr i32 %99, %101
%103 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %102)
br label %104
104: ; preds = %94
%105 = load i32, ptr %15, align 4
%106 = add nsw i32 %105, 1
store i32 %106, ptr %15, align 4
br label %90, !llvm.loop !9
107: ; preds = %90
%108 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %16, align 4
br label %109
109: ; preds = %146, %107
%110 = load i32, ptr %16, align 4
%111 = load i32, ptr %3, align 4
%112 = icmp slt i32 %110, %111
br i1 %112, label %113, label %149
113: ; preds = %109
%114 = load i32, ptr %16, align 4
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds [64 x i32], ptr %7, i64 0, i64 %115
%117 = load i32, ptr %116, align 4
%118 = load i32, ptr %8, align 4
%119 = and i32 %117, %118
%120 = load i32, ptr %16, align 4
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds [64 x i32], ptr %7, i64 0, i64 %121
%123 = load i32, ptr %122, align 4
%124 = icmp eq i32 %119, %123
br i1 %124, label %125, label %138
125: ; preds = %113
%126 = load i32, ptr %16, align 4
%127 = sub nsw i32 64, %126
%128 = shl i32 1, %127
%129 = load i32, ptr %9, align 4
%130 = or i32 %129, %128
store i32 %130, ptr %9, align 4
%131 = load i32, ptr %10, align 4
%132 = add nsw i32 %131, 1
store i32 %132, ptr %10, align 4
%133 = load i32, ptr %3, align 4
%134 = icmp eq i32 %132, %133
br i1 %134, label %135, label %137
135: ; preds = %125
%136 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 0, ptr %1, align 4
br label %159
137: ; preds = %125
br label %145
138: ; preds = %113
%139 = load i32, ptr %16, align 4
%140 = sub nsw i32 64, %139
%141 = shl i32 1, %140
%142 = xor i32 %141, -1
%143 = load i32, ptr %9, align 4
%144 = and i32 %143, %142
store i32 %144, ptr %9, align 4
br label %145
145: ; preds = %138, %137
br label %146
146: ; preds = %145
%147 = load i32, ptr %16, align 4
%148 = add nsw i32 %147, 1
store i32 %148, ptr %16, align 4
br label %109, !llvm.loop !10
149: ; preds = %109
%150 = load i32, ptr %11, align 4
%151 = load i32, ptr %9, align 4
%152 = or i32 %151, %150
store i32 %152, ptr %9, align 4
%153 = load i32, ptr %9, align 4
store i32 %153, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
br label %154
154: ; preds = %149
%155 = load i32, ptr %13, align 4
%156 = add nsw i32 %155, 1
store i32 %156, ptr %13, align 4
br label %66, !llvm.loop !11
157: ; preds = %66
%158 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
store i32 0, ptr %1, align 4
br label %159
159: ; preds = %157, %135
%160 = load i32, ptr %1, align 4
ret i32 %160
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @fscanf(i32 noundef, ptr noundef, ptr noundef, ...) #2
declare i32 @assert(i32 noundef) #2
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpn2lechdg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%u \00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"OK!\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"NO\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [2 x 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 [64 x i32], align 16
%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
%15 = alloca i32, align 4
%16 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 4 %2, i8 0, i64 8, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 256, i1 false)
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
%17 = load i32, ptr @stdin, align 4
%18 = call i32 (i32, ptr, ptr, ...) @fscanf(i32 noundef %17, ptr noundef @.str, ptr noundef %3)
%19 = load i32, ptr %3, align 4
%20 = icmp slt i32 %19, 64
%21 = zext i1 %20 to i32
%22 = call i32 @assert(i32 noundef %21)
%23 = load i32, ptr @stdin, align 4
%24 = call i32 (i32, ptr, ptr, ...) @fscanf(i32 noundef %23, ptr noundef @.str.1, ptr noundef %4)
store i32 0, ptr %12, align 4
%25 = load i32, ptr %12, align 4
%26 = load i32, ptr %4, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %.lr.ph, label %65
.lr.ph: ; preds = %0
br label %28
28: ; preds = %.lr.ph, %59
%29 = load i32, ptr @stdin, align 4
%30 = getelementptr inbounds [2 x i32], ptr %2, i64 0, i64 0
%31 = getelementptr inbounds [2 x i32], ptr %2, i64 0, i64 1
%32 = call i32 (i32, ptr, ptr, ...) @fscanf(i32 noundef %29, ptr noundef @.str.2, ptr noundef %30, ptr noundef %31)
%33 = getelementptr inbounds [2 x i32], ptr %2, i64 0, i64 0
%34 = load i32, ptr %33, align 4
%35 = load i32, ptr %3, align 4
%36 = icmp slt i32 %34, %35
%37 = zext i1 %36 to i32
%38 = call i32 @assert(i32 noundef %37)
%39 = getelementptr inbounds [2 x i32], ptr %2, i64 0, i64 1
%40 = load i32, ptr %39, align 4
%41 = load i32, ptr %3, align 4
%42 = icmp slt i32 %40, %41
%43 = zext i1 %42 to i32
%44 = call i32 @assert(i32 noundef %43)
%45 = getelementptr inbounds [2 x i32], ptr %2, i64 0, i64 1
%46 = load i32, ptr %45, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [64 x i32], ptr %7, i64 0, i64 %47
%49 = load i32, ptr %48, align 4
%50 = getelementptr inbounds [2 x i32], ptr %2, i64 0, i64 0
%51 = load i32, ptr %50, align 4
%52 = sub nsw i32 64, %51
%53 = shl i32 1, %52
%54 = or i32 %49, %53
%55 = getelementptr inbounds [2 x i32], ptr %2, i64 0, i64 1
%56 = load i32, ptr %55, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [64 x i32], ptr %7, i64 0, i64 %57
store i32 %54, ptr %58, align 4
br label %59
59: ; preds = %28
%60 = load i32, ptr %12, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %12, align 4
%62 = load i32, ptr %12, align 4
%63 = load i32, ptr %4, align 4
%64 = icmp slt i32 %62, %63
br i1 %64, label %28, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %59
br label %65
65: ; preds = %._crit_edge, %0
%66 = load i32, ptr @stdin, align 4
%67 = call i32 (i32, ptr, ptr, ...) @fscanf(i32 noundef %66, ptr noundef @.str.2, ptr noundef %5, ptr noundef %6)
store i32 0, ptr %13, align 4
%68 = load i32, ptr %13, align 4
%69 = load i32, ptr %6, align 4
%70 = add nsw i32 %69, 1
%71 = icmp slt i32 %68, %70
br i1 %71, label %.lr.ph11, label %168
.lr.ph11: ; preds = %65
br label %72
72: ; preds = %.lr.ph11, %161
store i32 0, ptr %11, align 4
store i32 0, ptr %14, align 4
%73 = load i32, ptr %14, align 4
%74 = load i32, ptr %5, align 4
%75 = icmp slt i32 %73, %74
br i1 %75, label %.lr.ph2, label %92
.lr.ph2: ; preds = %72
br label %76
76: ; preds = %.lr.ph2, %86
%77 = load i32, ptr @stdin, align 4
%78 = getelementptr inbounds [2 x i32], ptr %2, i64 0, i64 0
%79 = call i32 (i32, ptr, ptr, ...) @fscanf(i32 noundef %77, ptr noundef @.str.1, ptr noundef %78)
%80 = getelementptr inbounds [2 x i32], ptr %2, i64 0, i64 0
%81 = load i32, ptr %80, align 4
%82 = sub nsw i32 64, %81
%83 = shl i32 1, %82
%84 = load i32, ptr %11, align 4
%85 = or i32 %84, %83
store i32 %85, ptr %11, align 4
br label %86
86: ; preds = %76
%87 = load i32, ptr %14, align 4
%88 = add nsw i32 %87, 1
store i32 %88, ptr %14, align 4
%89 = load i32, ptr %14, align 4
%90 = load i32, ptr %5, align 4
%91 = icmp slt i32 %89, %90
br i1 %91, label %76, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %86
br label %92
92: ; preds = %._crit_edge3, %72
store i32 0, ptr %15, align 4
%93 = load i32, ptr %15, align 4
%94 = load i32, ptr %3, align 4
%95 = icmp slt i32 %93, %94
br i1 %95, label %.lr.ph5, label %112
.lr.ph5: ; preds = %92
br label %96
96: ; preds = %.lr.ph5, %106
%97 = load i32, ptr %8, align 4
%98 = load i32, ptr %15, align 4
%99 = sub nsw i32 64, %98
%100 = shl i32 1, %99
%101 = and i32 %97, %100
%102 = load i32, ptr %15, align 4
%103 = sub nsw i32 64, %102
%104 = lshr i32 %101, %103
%105 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %104)
br label %106
106: ; preds = %96
%107 = load i32, ptr %15, align 4
%108 = add nsw i32 %107, 1
store i32 %108, ptr %15, align 4
%109 = load i32, ptr %15, align 4
%110 = load i32, ptr %3, align 4
%111 = icmp slt i32 %109, %110
br i1 %111, label %96, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %106
br label %112
112: ; preds = %._crit_edge6, %92
%113 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %16, align 4
%114 = load i32, ptr %16, align 4
%115 = load i32, ptr %3, align 4
%116 = icmp slt i32 %114, %115
br i1 %116, label %.lr.ph8, label %156
.lr.ph8: ; preds = %112
br label %117
117: ; preds = %.lr.ph8, %150
%118 = load i32, ptr %16, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds [64 x i32], ptr %7, i64 0, i64 %119
%121 = load i32, ptr %120, align 4
%122 = load i32, ptr %8, align 4
%123 = and i32 %121, %122
%124 = load i32, ptr %16, align 4
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds [64 x i32], ptr %7, i64 0, i64 %125
%127 = load i32, ptr %126, align 4
%128 = icmp eq i32 %123, %127
br i1 %128, label %129, label %142
129: ; preds = %117
%130 = load i32, ptr %16, align 4
%131 = sub nsw i32 64, %130
%132 = shl i32 1, %131
%133 = load i32, ptr %9, align 4
%134 = or i32 %133, %132
store i32 %134, ptr %9, align 4
%135 = load i32, ptr %10, align 4
%136 = add nsw i32 %135, 1
store i32 %136, ptr %10, align 4
%137 = load i32, ptr %3, align 4
%138 = icmp eq i32 %136, %137
br i1 %138, label %139, label %141
139: ; preds = %129
%140 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 0, ptr %1, align 4
br label %170
141: ; preds = %129
br label %149
142: ; preds = %117
%143 = load i32, ptr %16, align 4
%144 = sub nsw i32 64, %143
%145 = shl i32 1, %144
%146 = xor i32 %145, -1
%147 = load i32, ptr %9, align 4
%148 = and i32 %147, %146
store i32 %148, ptr %9, align 4
br label %149
149: ; preds = %142, %141
br label %150
150: ; preds = %149
%151 = load i32, ptr %16, align 4
%152 = add nsw i32 %151, 1
store i32 %152, ptr %16, align 4
%153 = load i32, ptr %16, align 4
%154 = load i32, ptr %3, align 4
%155 = icmp slt i32 %153, %154
br i1 %155, label %117, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %150
br label %156
156: ; preds = %._crit_edge9, %112
%157 = load i32, ptr %11, align 4
%158 = load i32, ptr %9, align 4
%159 = or i32 %158, %157
store i32 %159, ptr %9, align 4
%160 = load i32, ptr %9, align 4
store i32 %160, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
br label %161
161: ; preds = %156
%162 = load i32, ptr %13, align 4
%163 = add nsw i32 %162, 1
store i32 %163, ptr %13, align 4
%164 = load i32, ptr %13, align 4
%165 = load i32, ptr %6, align 4
%166 = add nsw i32 %165, 1
%167 = icmp slt i32 %164, %166
br i1 %167, label %72, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %161
br label %168
168: ; preds = %._crit_edge12, %65
%169 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
store i32 0, ptr %1, align 4
br label %170
170: ; preds = %168, %139
%171 = load i32, ptr %1, align 4
ret i32 %171
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @fscanf(i32 noundef, ptr noundef, ptr noundef, ...) #2
declare i32 @assert(i32 noundef) #2
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '/tmp/tmpi0y4ttgn.c'
source_filename = "/tmp/tmpi0y4ttgn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dup_next_line(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [1024 x i8], align 16
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = load ptr, ptr %6, align 8
store ptr %7, ptr %3, align 8
%8 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
store ptr %8, ptr %4, align 8
br label %9
9: ; preds = %27, %1
%10 = load ptr, ptr %3, align 8
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %25
14: ; preds = %9
%15 = load ptr, ptr %3, align 8
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %17, 10
br i1 %18, label %19, label %25
19: ; preds = %14
%20 = load ptr, ptr %4, align 8
%21 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%22 = getelementptr inbounds i8, ptr %21, i64 1024
%23 = getelementptr inbounds i8, ptr %22, i64 -1
%24 = icmp ult ptr %20, %23
br label %25
25: ; preds = %19, %14, %9
%26 = phi i1 [ false, %14 ], [ false, %9 ], [ %24, %19 ]
br i1 %26, label %27, label %33
27: ; preds = %25
%28 = load ptr, ptr %3, align 8
%29 = getelementptr inbounds i8, ptr %28, i32 1
store ptr %29, ptr %3, align 8
%30 = load i8, ptr %28, align 1
%31 = load ptr, ptr %4, align 8
%32 = getelementptr inbounds i8, ptr %31, i32 1
store ptr %32, ptr %4, align 8
store i8 %30, ptr %31, align 1
br label %9, !llvm.loop !6
33: ; preds = %25
%34 = load ptr, ptr %4, align 8
store i8 0, ptr %34, align 1
%35 = load ptr, ptr %3, align 8
%36 = load ptr, ptr %2, align 8
store ptr %35, ptr %36, align 8
%37 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%38 = call ptr @strdup(ptr noundef %37)
ret ptr %38
}
declare ptr @strdup(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi0y4ttgn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dup_next_line(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [1024 x i8], align 16
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = load ptr, ptr %6, align 8
store ptr %7, ptr %3, align 8
%8 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
store ptr %8, ptr %4, align 8
br label %9
9: ; preds = %27, %1
%10 = load ptr, ptr %3, align 8
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %25
14: ; preds = %9
%15 = load ptr, ptr %3, align 8
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %17, 10
br i1 %18, label %19, label %25
19: ; preds = %14
%20 = load ptr, ptr %4, align 8
%21 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%22 = getelementptr inbounds i8, ptr %21, i64 1024
%23 = getelementptr inbounds i8, ptr %22, i64 -1
%24 = icmp ult ptr %20, %23
br label %25
25: ; preds = %19, %14, %9
%26 = phi i1 [ false, %14 ], [ false, %9 ], [ %24, %19 ]
br i1 %26, label %27, label %33
27: ; preds = %25
%28 = load ptr, ptr %3, align 8
%29 = getelementptr inbounds i8, ptr %28, i32 1
store ptr %29, ptr %3, align 8
%30 = load i8, ptr %28, align 1
%31 = load ptr, ptr %4, align 8
%32 = getelementptr inbounds i8, ptr %31, i32 1
store ptr %32, ptr %4, align 8
store i8 %30, ptr %31, align 1
br label %9, !llvm.loop !6
33: ; preds = %25
%34 = load ptr, ptr %4, align 8
store i8 0, ptr %34, align 1
%35 = load ptr, ptr %3, align 8
%36 = load ptr, ptr %2, align 8
store ptr %35, ptr %36, align 8
%37 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%38 = call ptr @strdup(ptr noundef %37)
ret ptr %38
}
declare ptr @strdup(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp8hao_9jk.c'
source_filename = "/tmp/tmp8hao_9jk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @release_processor() #0 {
%1 = call i32 @atomic(i32 noundef 1)
%2 = call i32 (...) @K_release_processor()
%3 = call i32 @atomic(i32 noundef 0)
ret void
}
declare i32 @atomic(i32 noundef) #1
declare i32 @K_release_processor(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8hao_9jk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @release_processor() #0 {
%1 = call i32 @atomic(i32 noundef 1)
%2 = call i32 (...) @K_release_processor()
%3 = call i32 @atomic(i32 noundef 0)
ret void
}
declare i32 @atomic(i32 noundef) #1
declare i32 @K_release_processor(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpn52jgqtq.c'
source_filename = "/tmp/tmpn52jgqtq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"30 Seconds has passed\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @task1() #0 {
%1 = call i32 @UART1_Write_Text(ptr noundef @.str)
ret void
}
declare i32 @UART1_Write_Text(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpn52jgqtq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"30 Seconds has passed\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @task1() #0 {
%1 = call i32 @UART1_Write_Text(ptr noundef @.str)
ret void
}
declare i32 @UART1_Write_Text(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwp9qwvld.c'
source_filename = "/tmp/tmpwp9qwvld.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"prova\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%s%s\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"/\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
%5 = alloca [50 x i8], align 16
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 0, ptr %7, align 4
%8 = call i32 @bmount(ptr noundef @.str)
%9 = getelementptr inbounds [50 x i8], ptr %5, i64 0, i64 0
%10 = load ptr, ptr %4, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 1
%12 = load ptr, ptr %11, align 8
%13 = call i32 @sprintf(ptr noundef %9, ptr noundef @.str.1, ptr noundef %12, ptr noundef @.str.2)
%14 = getelementptr inbounds [50 x i8], ptr %5, i64 0, i64 0
%15 = call i32 @mi_creat(ptr noundef %14)
%16 = call i32 @bumount(ptr noundef @.str)
ret i32 0
}
declare i32 @bmount(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @mi_creat(ptr noundef) #1
declare i32 @bumount(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwp9qwvld.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"prova\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%s%s\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"/\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
%5 = alloca [50 x i8], align 16
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 0, ptr %7, align 4
%8 = call i32 @bmount(ptr noundef @.str)
%9 = getelementptr inbounds [50 x i8], ptr %5, i64 0, i64 0
%10 = load ptr, ptr %4, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 1
%12 = load ptr, ptr %11, align 8
%13 = call i32 @sprintf(ptr noundef %9, ptr noundef @.str.1, ptr noundef %12, ptr noundef @.str.2)
%14 = getelementptr inbounds [50 x i8], ptr %5, i64 0, i64 0
%15 = call i32 @mi_creat(ptr noundef %14)
%16 = call i32 @bumount(ptr noundef @.str)
ret i32 0
}
declare i32 @bmount(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @mi_creat(ptr noundef) #1
declare i32 @bumount(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmh7one3h.c'
source_filename = "/tmp/tmpmh7one3h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @Circ__easeInOut(float noundef %0, float noundef %1, float noundef %2, float noundef %3, float noundef %4, float noundef %5) #0 {
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
%11 = alloca float, align 4
%12 = alloca float, align 4
%13 = alloca float, align 4
store float %0, ptr %8, align 4
store float %1, ptr %9, align 4
store float %2, ptr %10, align 4
store float %3, ptr %11, align 4
store float %4, ptr %12, align 4
store float %5, ptr %13, align 4
%14 = load float, ptr %11, align 4
%15 = fdiv float %14, 2.000000e+00
%16 = load float, ptr %8, align 4
%17 = fdiv float %16, %15
store float %17, ptr %8, align 4
%18 = fcmp olt float %17, 1.000000e+00
br i1 %18, label %19, label %33
19: ; preds = %6
%20 = load float, ptr %10, align 4
%21 = fneg float %20
%22 = fdiv float %21, 2.000000e+00
%23 = load float, ptr %8, align 4
%24 = load float, ptr %8, align 4
%25 = fneg float %23
%26 = call float @llvm.fmuladd.f32(float %25, float %24, float 1.000000e+00)
%27 = fptosi float %26 to i32
%28 = call i32 @sqrt(i32 noundef %27)
%29 = sub nsw i32 %28, 1
%30 = sitofp i32 %29 to float
%31 = load float, ptr %9, align 4
%32 = call float @llvm.fmuladd.f32(float %22, float %30, float %31)
store float %32, ptr %7, align 4
br label %47
33: ; preds = %6
%34 = load float, ptr %10, align 4
%35 = fdiv float %34, 2.000000e+00
%36 = load float, ptr %8, align 4
%37 = load float, ptr %8, align 4
%38 = fsub float %37, 2.000000e+00
store float %38, ptr %8, align 4
%39 = fneg float %36
%40 = call float @llvm.fmuladd.f32(float %39, float %38, float 1.000000e+00)
%41 = fptosi float %40 to i32
%42 = call i32 @sqrt(i32 noundef %41)
%43 = add nsw i32 %42, 1
%44 = sitofp i32 %43 to float
%45 = load float, ptr %9, align 4
%46 = call float @llvm.fmuladd.f32(float %35, float %44, float %45)
store float %46, ptr %7, align 4
br label %47
47: ; preds = %33, %19
%48 = load float, ptr %7, align 4
ret float %48
}
declare i32 @sqrt(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmh7one3h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @Circ__easeInOut(float noundef %0, float noundef %1, float noundef %2, float noundef %3, float noundef %4, float noundef %5) #0 {
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
%11 = alloca float, align 4
%12 = alloca float, align 4
%13 = alloca float, align 4
store float %0, ptr %8, align 4
store float %1, ptr %9, align 4
store float %2, ptr %10, align 4
store float %3, ptr %11, align 4
store float %4, ptr %12, align 4
store float %5, ptr %13, align 4
%14 = load float, ptr %11, align 4
%15 = fdiv float %14, 2.000000e+00
%16 = load float, ptr %8, align 4
%17 = fdiv float %16, %15
store float %17, ptr %8, align 4
%18 = fcmp olt float %17, 1.000000e+00
br i1 %18, label %19, label %33
19: ; preds = %6
%20 = load float, ptr %10, align 4
%21 = fneg float %20
%22 = fdiv float %21, 2.000000e+00
%23 = load float, ptr %8, align 4
%24 = load float, ptr %8, align 4
%25 = fneg float %23
%26 = call float @llvm.fmuladd.f32(float %25, float %24, float 1.000000e+00)
%27 = fptosi float %26 to i32
%28 = call i32 @sqrt(i32 noundef %27)
%29 = sub nsw i32 %28, 1
%30 = sitofp i32 %29 to float
%31 = load float, ptr %9, align 4
%32 = call float @llvm.fmuladd.f32(float %22, float %30, float %31)
store float %32, ptr %7, align 4
br label %47
33: ; preds = %6
%34 = load float, ptr %10, align 4
%35 = fdiv float %34, 2.000000e+00
%36 = load float, ptr %8, align 4
%37 = load float, ptr %8, align 4
%38 = fsub float %37, 2.000000e+00
store float %38, ptr %8, align 4
%39 = fneg float %36
%40 = call float @llvm.fmuladd.f32(float %39, float %38, float 1.000000e+00)
%41 = fptosi float %40 to i32
%42 = call i32 @sqrt(i32 noundef %41)
%43 = add nsw i32 %42, 1
%44 = sitofp i32 %43 to float
%45 = load float, ptr %9, align 4
%46 = call float @llvm.fmuladd.f32(float %35, float %44, float %45)
store float %46, ptr %7, align 4
br label %47
47: ; preds = %33, %19
%48 = load float, ptr %7, align 4
ret float %48
}
declare i32 @sqrt(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp614x3_m0.c'
source_filename = "/tmp/tmp614x3_m0.c"
target datalayout = "e-m:e-p270: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 [27 x i8] c"null pointer dereferenced:\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c" file %s,\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c" line %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @_YYnull(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr @stderr, align 4
%6 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %5, ptr noundef @.str)
%7 = load ptr, ptr %3, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %9, label %13
9: ; preds = %2
%10 = load i32, ptr @stderr, align 4
%11 = load ptr, ptr %3, align 8
%12 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %10, ptr noundef @.str.1, ptr noundef %11)
br label %13
13: ; preds = %9, %2
%14 = load i32, ptr @stderr, align 4
%15 = load i32, ptr %4, align 4
%16 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %14, ptr noundef @.str.2, i32 noundef %15)
%17 = load i32, ptr @stderr, align 4
%18 = call i32 @fflush(i32 noundef %17)
%19 = call i32 (...) @abort() #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @fflush(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #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/tmp614x3_m0.c"
target datalayout = "e-m:e-p270: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 [27 x i8] c"null pointer dereferenced:\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c" file %s,\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c" line %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @_YYnull(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr @stderr, align 4
%6 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %5, ptr noundef @.str)
%7 = load ptr, ptr %3, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %9, label %13
9: ; preds = %2
%10 = load i32, ptr @stderr, align 4
%11 = load ptr, ptr %3, align 8
%12 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %10, ptr noundef @.str.1, ptr noundef %11)
br label %13
13: ; preds = %9, %2
%14 = load i32, ptr @stderr, align 4
%15 = load i32, ptr %4, align 4
%16 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %14, ptr noundef @.str.2, i32 noundef %15)
%17 = load i32, ptr @stderr, align 4
%18 = call i32 @fflush(i32 noundef %17)
%19 = call i32 (...) @abort() #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @fflush(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #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/tmpr10kk5_9.c'
source_filename = "/tmp/tmpr10kk5_9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0A%s\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [353 x i8] c"It's a simple cellular automaton written in C made for Computer Science\0AStudies at the Warsaw University of Technology's Faculty of Electrical\0AEngineering. The program uses the Moore neighborhood, can use custom rules\0A(defaults the rules of John Conway'a Game of Life) and throws momentary\0Astates in the form of PNG, SVG, TXT and log files for gnuplot.\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"\0A%s%s%s\00", align 1
@.str.3 = private unnamed_addr constant [310 x i8] c"Options:\0A-l FILE\09Reads first state from FILE. Type 'RANDOMIZEDXxY to get'\0A\09a random grid with width X and height Y.\0A-n NUM\09Set NUM of cycles. Dafaults - 100.\0A-r RUL\09Set RUL to simulator. Type number of neighbors when alive\0A\09cell stays alive, then type '/', and type numbers of\0A\09neighbors when dead cell turns\0A\00", align 1
@.str.4 = private unnamed_addr constant [269 x i8] c"\09into alive one. Defaults - '23/3' (John's Conway's game of life)\0A-s\09Turn ON silent mode - no unnecessary output to stdout.\0A-g\09Turn ON writting states to stdout.\0A-z\09Turn ON torus mode.\0A-c\09Turn ON generating heat map of changes on grid.\0A-h\09Shows HELP (this) and exits.\0A\00", align 1
@.str.5 = private unnamed_addr constant [335 x i8] c"-o NUM\09Set frequency of dumping stats for gnuplot file.\0A-m NUM\09Set frequency of dumping setted states.\0A-u\09Turn ON generating statistic to gnuplot readable file.\0A-b FILE\09Read structures to place on grid from FILE.\0A-t\09Turn ON dumping states as TXT files.\0A-p\09Turn ON dumping states as PNG images\0A-v\09Turn ON dumping states as SVG images.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @help_show() #0 {
%1 = call i32 (...) @help_ascii_art()
%2 = call i32 (...) @help_print_line()
%3 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
%4 = call i32 (...) @help_print_line()
%5 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.2, ptr noundef @.str.3, ptr noundef @.str.4, ptr noundef @.str.5)
ret void
}
declare i32 @help_ascii_art(...) #1
declare i32 @help_print_line(...) #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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr10kk5_9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0A%s\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [353 x i8] c"It's a simple cellular automaton written in C made for Computer Science\0AStudies at the Warsaw University of Technology's Faculty of Electrical\0AEngineering. The program uses the Moore neighborhood, can use custom rules\0A(defaults the rules of John Conway'a Game of Life) and throws momentary\0Astates in the form of PNG, SVG, TXT and log files for gnuplot.\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"\0A%s%s%s\00", align 1
@.str.3 = private unnamed_addr constant [310 x i8] c"Options:\0A-l FILE\09Reads first state from FILE. Type 'RANDOMIZEDXxY to get'\0A\09a random grid with width X and height Y.\0A-n NUM\09Set NUM of cycles. Dafaults - 100.\0A-r RUL\09Set RUL to simulator. Type number of neighbors when alive\0A\09cell stays alive, then type '/', and type numbers of\0A\09neighbors when dead cell turns\0A\00", align 1
@.str.4 = private unnamed_addr constant [269 x i8] c"\09into alive one. Defaults - '23/3' (John's Conway's game of life)\0A-s\09Turn ON silent mode - no unnecessary output to stdout.\0A-g\09Turn ON writting states to stdout.\0A-z\09Turn ON torus mode.\0A-c\09Turn ON generating heat map of changes on grid.\0A-h\09Shows HELP (this) and exits.\0A\00", align 1
@.str.5 = private unnamed_addr constant [335 x i8] c"-o NUM\09Set frequency of dumping stats for gnuplot file.\0A-m NUM\09Set frequency of dumping setted states.\0A-u\09Turn ON generating statistic to gnuplot readable file.\0A-b FILE\09Read structures to place on grid from FILE.\0A-t\09Turn ON dumping states as TXT files.\0A-p\09Turn ON dumping states as PNG images\0A-v\09Turn ON dumping states as SVG images.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @help_show() #0 {
%1 = call i32 (...) @help_ascii_art()
%2 = call i32 (...) @help_print_line()
%3 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
%4 = call i32 (...) @help_print_line()
%5 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.2, ptr noundef @.str.3, ptr noundef @.str.4, ptr noundef @.str.5)
ret void
}
declare i32 @help_ascii_art(...) #1
declare i32 @help_print_line(...) #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"}
|
; ModuleID = '/tmp/tmpyhs1x2hh.c'
source_filename = "/tmp/tmpyhs1x2hh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.arr = private unnamed_addr constant [28 x i32] [i32 10, i32 12, i32 24, i32 21, i32 34, i32 37, i32 41, i32 48, i32 54, i32 59, i32 61, i32 68, i32 72, i32 77, i32 80, i32 85, i32 88, i32 91, i32 92, i32 94, i32 98, i32 100, i32 101, i32 102, i32 120, i32 130, i32 130, i32 178], align 16
@.str = private unnamed_addr constant [27 x i8] c"Element %d is not present\0A\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"Element '%d' has index: '%d'\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [28 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.arr, i64 112, i1 false)
store i32 72, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = getelementptr inbounds [28 x i32], ptr %2, i64 0, i64 0
%7 = call i32 @binary_search(i32 noundef %5, ptr noundef %6, i32 noundef 28)
store i32 %7, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp eq i32 %8, -1
br i1 %9, label %10, label %13
10: ; preds = %0
%11 = load i32, ptr %3, align 4
%12 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %11)
br label %17
13: ; preds = %0
%14 = load i32, ptr %3, align 4
%15 = load i32, ptr %4, align 4
%16 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %14, i32 noundef %15)
br label %17
17: ; preds = %13, %10
%18 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %18
}
; 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 @binary_search(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(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/tmpyhs1x2hh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.arr = private unnamed_addr constant [28 x i32] [i32 10, i32 12, i32 24, i32 21, i32 34, i32 37, i32 41, i32 48, i32 54, i32 59, i32 61, i32 68, i32 72, i32 77, i32 80, i32 85, i32 88, i32 91, i32 92, i32 94, i32 98, i32 100, i32 101, i32 102, i32 120, i32 130, i32 130, i32 178], align 16
@.str = private unnamed_addr constant [27 x i8] c"Element %d is not present\0A\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"Element '%d' has index: '%d'\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [28 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.arr, i64 112, i1 false)
store i32 72, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = getelementptr inbounds [28 x i32], ptr %2, i64 0, i64 0
%7 = call i32 @binary_search(i32 noundef %5, ptr noundef %6, i32 noundef 28)
store i32 %7, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp eq i32 %8, -1
br i1 %9, label %10, label %13
10: ; preds = %0
%11 = load i32, ptr %3, align 4
%12 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %11)
br label %17
13: ; preds = %0
%14 = load i32, ptr %3, align 4
%15 = load i32, ptr %4, align 4
%16 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %14, i32 noundef %15)
br label %17
17: ; preds = %13, %10
%18 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %18
}
; 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 @binary_search(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(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/tmp5h0hrp49.c'
source_filename = "/tmp/tmp5h0hrp49.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%3 = call ptr @form_platoon(i32 noundef 41)
store ptr %3, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @kill_platoon(ptr noundef %4, i32 noundef 3)
%6 = load ptr, ptr %2, align 8
%7 = call i32 @free(ptr noundef %6)
%8 = load i32, ptr @EXIT_SUCCESS, align 4
%9 = call i32 @exit(i32 noundef %8) #3
unreachable
}
declare ptr @form_platoon(i32 noundef) #1
declare i32 @kill_platoon(ptr noundef, i32 noundef) #1
declare i32 @free(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/tmp5h0hrp49.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%3 = call ptr @form_platoon(i32 noundef 41)
store ptr %3, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @kill_platoon(ptr noundef %4, i32 noundef 3)
%6 = load ptr, ptr %2, align 8
%7 = call i32 @free(ptr noundef %6)
%8 = load i32, ptr @EXIT_SUCCESS, align 4
%9 = call i32 @exit(i32 noundef %8) #3
unreachable
}
declare ptr @form_platoon(i32 noundef) #1
declare i32 @kill_platoon(ptr noundef, i32 noundef) #1
declare i32 @free(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/tmp1opp6sv3.c'
source_filename = "/tmp/tmp1opp6sv3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"xregcomp: %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @xregcomp(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%10 = load ptr, ptr %4, align 8
%11 = load ptr, ptr %5, align 8
%12 = load i32, ptr %6, align 4
%13 = call i32 @regcomp(ptr noundef %10, ptr noundef %11, i32 noundef %12)
store i32 %13, ptr %7, align 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %28
15: ; preds = %3
%16 = load i32, ptr %7, align 4
%17 = load ptr, ptr %4, align 8
%18 = call i32 @regerror(i32 noundef %16, ptr noundef %17, ptr noundef null, i32 noundef 0)
store i32 %18, ptr %8, align 4
%19 = load i32, ptr %8, align 4
%20 = call ptr @xmalloc(i32 noundef %19)
store ptr %20, ptr %9, align 8
%21 = load i32, ptr %7, align 4
%22 = load ptr, ptr %4, align 8
%23 = load ptr, ptr %9, align 8
%24 = load i32, ptr %8, align 4
%25 = call i32 @regerror(i32 noundef %21, ptr noundef %22, ptr noundef %23, i32 noundef %24)
%26 = load ptr, ptr %9, align 8
%27 = call i32 @error_msg_and_die(ptr noundef @.str, ptr noundef %26)
br label %28
28: ; preds = %15, %3
ret void
}
declare i32 @regcomp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @regerror(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @xmalloc(i32 noundef) #1
declare i32 @error_msg_and_die(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/tmp1opp6sv3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"xregcomp: %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @xregcomp(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%10 = load ptr, ptr %4, align 8
%11 = load ptr, ptr %5, align 8
%12 = load i32, ptr %6, align 4
%13 = call i32 @regcomp(ptr noundef %10, ptr noundef %11, i32 noundef %12)
store i32 %13, ptr %7, align 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %28
15: ; preds = %3
%16 = load i32, ptr %7, align 4
%17 = load ptr, ptr %4, align 8
%18 = call i32 @regerror(i32 noundef %16, ptr noundef %17, ptr noundef null, i32 noundef 0)
store i32 %18, ptr %8, align 4
%19 = load i32, ptr %8, align 4
%20 = call ptr @xmalloc(i32 noundef %19)
store ptr %20, ptr %9, align 8
%21 = load i32, ptr %7, align 4
%22 = load ptr, ptr %4, align 8
%23 = load ptr, ptr %9, align 8
%24 = load i32, ptr %8, align 4
%25 = call i32 @regerror(i32 noundef %21, ptr noundef %22, ptr noundef %23, i32 noundef %24)
%26 = load ptr, ptr %9, align 8
%27 = call i32 @error_msg_and_die(ptr noundef @.str, ptr noundef %26)
br label %28
28: ; preds = %15, %3
ret void
}
declare i32 @regcomp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @regerror(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @xmalloc(i32 noundef) #1
declare i32 @error_msg_and_die(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/tmpo36pdi8z.c'
source_filename = "/tmp/tmpo36pdi8z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"\0AEnter a number : \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"\0A%d! = %d\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%6 = load i32, ptr %2, align 4
%7 = call i32 @fact(i32 noundef %6)
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %3, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %8, i32 noundef %9)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @fact(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/tmpo36pdi8z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"\0AEnter a number : \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"\0A%d! = %d\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%6 = load i32, ptr %2, align 4
%7 = call i32 @fact(i32 noundef %6)
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %3, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %8, i32 noundef %9)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @fact(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/tmphe9q8ey5.c'
source_filename = "/tmp/tmphe9q8ey5.c"
target datalayout = "e-m:e-p270: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 [5 x i8] c"PATH\00", align 1
@S_IXUSR = 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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @get_full_path(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca %struct.stat, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 0
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 47
br i1 %15, label %16, label %20
16: ; preds = %2
%17 = load ptr, ptr %4, align 8
%18 = load ptr, ptr %5, align 8
%19 = call ptr @strcpy(ptr noundef %17, ptr noundef %18)
store ptr %19, ptr %3, align 8
br label %104
20: ; preds = %2
store i32 0, ptr %6, align 4
%21 = call ptr @getenv(ptr noundef @.str)
store ptr %21, ptr %7, align 8
store i32 0, ptr %8, align 4
br label %22
22: ; preds = %100, %20
%23 = load ptr, ptr %7, align 8
%24 = load i32, ptr %8, 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 = icmp ne i32 %28, 0
br i1 %29, label %30, label %103
30: ; preds = %22
%31 = load ptr, ptr %7, align 8
%32 = load i32, ptr %8, 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 %36, 58
br i1 %37, label %38, label %99
38: ; preds = %30
%39 = load ptr, ptr %4, align 8
%40 = load ptr, ptr %7, align 8
%41 = load i32, ptr %6, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %40, i64 %42
%44 = load i32, ptr %8, align 4
%45 = load i32, ptr %6, align 4
%46 = sub nsw i32 %44, %45
%47 = call i32 @strncpy(ptr noundef %39, ptr noundef %43, i32 noundef %46)
%48 = load i32, ptr %8, align 4
%49 = load i32, ptr %6, align 4
%50 = sub nsw i32 %48, %49
store i32 %50, ptr %9, align 4
%51 = load ptr, ptr %4, align 8
%52 = load i32, ptr %9, align 4
%53 = sub nsw i32 %52, 1
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %51, i64 %54
%56 = load i8, ptr %55, align 1
%57 = sext i8 %56 to i32
%58 = icmp ne i32 %57, 47
br i1 %58, label %59, label %66
59: ; preds = %38
%60 = load ptr, ptr %4, align 8
%61 = load i32, ptr %9, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i8, ptr %60, i64 %62
store i8 47, ptr %63, align 1
%64 = load i32, ptr %9, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %9, align 4
br label %66
66: ; preds = %59, %38
%67 = load ptr, ptr %4, align 8
%68 = load i32, ptr %9, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i8, ptr %67, i64 %69
%71 = load ptr, ptr %5, align 8
%72 = call ptr @strcpy(ptr noundef %70, ptr noundef %71)
%73 = load ptr, ptr %4, align 8
%74 = call i64 @stat(ptr noundef %73, ptr noundef %10)
%75 = icmp eq i64 %74, 0
br i1 %75, label %76, label %96
76: ; preds = %66
%77 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 0
%78 = load i32, ptr %77, align 4
%79 = load i32, ptr @S_IXUSR, align 4
%80 = and i32 %78, %79
%81 = icmp ne i32 %80, 0
br i1 %81, label %94, label %82
82: ; preds = %76
%83 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 0
%84 = load i32, ptr %83, align 4
%85 = load i32, ptr @S_IXGRP, align 4
%86 = and i32 %84, %85
%87 = icmp ne i32 %86, 0
br i1 %87, label %94, label %88
88: ; preds = %82
%89 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 0
%90 = load i32, ptr %89, align 4
%91 = load i32, ptr @S_IXOTH, align 4
%92 = and i32 %90, %91
%93 = icmp ne i32 %92, 0
br i1 %93, label %94, label %96
94: ; preds = %88, %82, %76
%95 = load ptr, ptr %4, align 8
store ptr %95, ptr %3, align 8
br label %104
96: ; preds = %88, %66
%97 = load i32, ptr %8, align 4
%98 = add nsw i32 %97, 1
store i32 %98, ptr %6, align 4
br label %99
99: ; preds = %96, %30
br label %100
100: ; preds = %99
%101 = load i32, ptr %8, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %8, align 4
br label %22, !llvm.loop !6
103: ; preds = %22
store ptr null, ptr %3, align 8
br label %104
104: ; preds = %103, %94, %16
%105 = load ptr, ptr %3, align 8
ret ptr %105
}
declare ptr @strcpy(ptr noundef, ptr noundef) #1
declare ptr @getenv(ptr noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @stat(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/tmphe9q8ey5.c"
target datalayout = "e-m:e-p270: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 [5 x i8] c"PATH\00", align 1
@S_IXUSR = 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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @get_full_path(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca %struct.stat, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 0
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 47
br i1 %15, label %16, label %20
16: ; preds = %2
%17 = load ptr, ptr %4, align 8
%18 = load ptr, ptr %5, align 8
%19 = call ptr @strcpy(ptr noundef %17, ptr noundef %18)
store ptr %19, ptr %3, align 8
br label %110
20: ; preds = %2
store i32 0, ptr %6, align 4
%21 = call ptr @getenv(ptr noundef @.str)
store ptr %21, ptr %7, align 8
store i32 0, ptr %8, align 4
%22 = load ptr, ptr %7, align 8
%23 = load i32, ptr %8, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8, ptr %22, i64 %24
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = icmp ne i32 %27, 0
br i1 %28, label %.lr.ph, label %109
.lr.ph: ; preds = %20
br label %29
29: ; preds = %.lr.ph, %99
%30 = load ptr, ptr %7, align 8
%31 = load i32, ptr %8, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8, ptr %30, i64 %32
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 58
br i1 %36, label %37, label %98
37: ; preds = %29
%38 = load ptr, ptr %4, align 8
%39 = load ptr, ptr %7, align 8
%40 = load i32, ptr %6, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8, ptr %39, i64 %41
%43 = load i32, ptr %8, align 4
%44 = load i32, ptr %6, align 4
%45 = sub nsw i32 %43, %44
%46 = call i32 @strncpy(ptr noundef %38, ptr noundef %42, i32 noundef %45)
%47 = load i32, ptr %8, align 4
%48 = load i32, ptr %6, align 4
%49 = sub nsw i32 %47, %48
store i32 %49, ptr %9, align 4
%50 = load ptr, ptr %4, align 8
%51 = load i32, ptr %9, align 4
%52 = sub nsw i32 %51, 1
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8, ptr %50, i64 %53
%55 = load i8, ptr %54, align 1
%56 = sext i8 %55 to i32
%57 = icmp ne i32 %56, 47
br i1 %57, label %58, label %65
58: ; preds = %37
%59 = load ptr, ptr %4, align 8
%60 = load i32, ptr %9, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i8, ptr %59, i64 %61
store i8 47, ptr %62, align 1
%63 = load i32, ptr %9, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %9, align 4
br label %65
65: ; preds = %58, %37
%66 = load ptr, ptr %4, align 8
%67 = load i32, ptr %9, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i8, ptr %66, i64 %68
%70 = load ptr, ptr %5, align 8
%71 = call ptr @strcpy(ptr noundef %69, ptr noundef %70)
%72 = load ptr, ptr %4, align 8
%73 = call i64 @stat(ptr noundef %72, ptr noundef %10)
%74 = icmp eq i64 %73, 0
br i1 %74, label %75, label %95
75: ; preds = %65
%76 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 0
%77 = load i32, ptr %76, align 4
%78 = load i32, ptr @S_IXUSR, align 4
%79 = and i32 %77, %78
%80 = icmp ne i32 %79, 0
br i1 %80, label %93, label %81
81: ; preds = %75
%82 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 0
%83 = load i32, ptr %82, align 4
%84 = load i32, ptr @S_IXGRP, align 4
%85 = and i32 %83, %84
%86 = icmp ne i32 %85, 0
br i1 %86, label %93, label %87
87: ; preds = %81
%88 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 0
%89 = load i32, ptr %88, align 4
%90 = load i32, ptr @S_IXOTH, align 4
%91 = and i32 %89, %90
%92 = icmp ne i32 %91, 0
br i1 %92, label %93, label %95
93: ; preds = %87, %81, %75
%94 = load ptr, ptr %4, align 8
store ptr %94, ptr %3, align 8
br label %110
95: ; preds = %87, %65
%96 = load i32, ptr %8, align 4
%97 = add nsw i32 %96, 1
store i32 %97, ptr %6, align 4
br label %98
98: ; preds = %95, %29
br label %99
99: ; preds = %98
%100 = load i32, ptr %8, align 4
%101 = add nsw i32 %100, 1
store i32 %101, ptr %8, align 4
%102 = load ptr, ptr %7, align 8
%103 = load i32, ptr %8, align 4
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds i8, ptr %102, i64 %104
%106 = load i8, ptr %105, align 1
%107 = sext i8 %106 to i32
%108 = icmp ne i32 %107, 0
br i1 %108, label %29, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %99
br label %109
109: ; preds = %._crit_edge, %20
store ptr null, ptr %3, align 8
br label %110
110: ; preds = %109, %93, %16
%111 = load ptr, ptr %3, align 8
ret ptr %111
}
declare ptr @strcpy(ptr noundef, ptr noundef) #1
declare ptr @getenv(ptr noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @stat(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/tmpu9hvv5tx.c'
source_filename = "/tmp/tmpu9hvv5tx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strsep2(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i8 %1, ptr %5, align 1
%8 = load ptr, ptr %4, align 8
%9 = load ptr, ptr %8, align 8
store ptr %9, ptr %6, align 8
%10 = load ptr, ptr %4, align 8
%11 = load ptr, ptr %10, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %14
13: ; preds = %2
store ptr null, ptr %3, align 8
br label %31
14: ; preds = %2
%15 = load ptr, ptr %4, align 8
%16 = load ptr, ptr %15, align 8
%17 = load i8, ptr %5, align 1
%18 = call ptr @strchr(ptr noundef %16, i8 noundef signext %17)
store ptr %18, ptr %7, align 8
%19 = load ptr, ptr %7, align 8
%20 = icmp eq ptr %19, null
br i1 %20, label %21, label %23
21: ; preds = %14
%22 = load ptr, ptr %4, align 8
store ptr null, ptr %22, align 8
br label %29
23: ; preds = %14
%24 = load ptr, ptr %7, align 8
%25 = getelementptr inbounds i8, ptr %24, i64 0
store i8 0, ptr %25, align 1
%26 = load ptr, ptr %7, align 8
%27 = getelementptr inbounds i8, ptr %26, i64 1
%28 = load ptr, ptr %4, align 8
store ptr %27, ptr %28, align 8
br label %29
29: ; preds = %23, %21
%30 = load ptr, ptr %6, align 8
store ptr %30, ptr %3, align 8
br label %31
31: ; preds = %29, %13
%32 = load ptr, ptr %3, align 8
ret ptr %32
}
declare ptr @strchr(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/tmpu9hvv5tx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strsep2(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i8 %1, ptr %5, align 1
%8 = load ptr, ptr %4, align 8
%9 = load ptr, ptr %8, align 8
store ptr %9, ptr %6, align 8
%10 = load ptr, ptr %4, align 8
%11 = load ptr, ptr %10, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %14
13: ; preds = %2
store ptr null, ptr %3, align 8
br label %31
14: ; preds = %2
%15 = load ptr, ptr %4, align 8
%16 = load ptr, ptr %15, align 8
%17 = load i8, ptr %5, align 1
%18 = call ptr @strchr(ptr noundef %16, i8 noundef signext %17)
store ptr %18, ptr %7, align 8
%19 = load ptr, ptr %7, align 8
%20 = icmp eq ptr %19, null
br i1 %20, label %21, label %23
21: ; preds = %14
%22 = load ptr, ptr %4, align 8
store ptr null, ptr %22, align 8
br label %29
23: ; preds = %14
%24 = load ptr, ptr %7, align 8
%25 = getelementptr inbounds i8, ptr %24, i64 0
store i8 0, ptr %25, align 1
%26 = load ptr, ptr %7, align 8
%27 = getelementptr inbounds i8, ptr %26, i64 1
%28 = load ptr, ptr %4, align 8
store ptr %27, ptr %28, align 8
br label %29
29: ; preds = %23, %21
%30 = load ptr, ptr %6, align 8
store ptr %30, ptr %3, align 8
br label %31
31: ; preds = %29, %13
%32 = load ptr, ptr %3, align 8
ret ptr %32
}
declare ptr @strchr(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/tmpqspxvifu.c'
source_filename = "/tmp/tmpqspxvifu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PTRACE_GETREGS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ptrace_getregs(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 %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr @PTRACE_GETREGS, align 4
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = call i64 @ptrace(i32 noundef %6, i32 noundef %7, ptr noundef null, ptr noundef %8)
%10 = icmp slt i64 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %2
store i32 -1, ptr %3, align 4
br label %13
12: ; preds = %2
store i32 0, ptr %3, align 4
br label %13
13: ; preds = %12, %11
%14 = load i32, ptr %3, align 4
ret i32 %14
}
declare i64 @ptrace(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqspxvifu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PTRACE_GETREGS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ptrace_getregs(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 %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr @PTRACE_GETREGS, align 4
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = call i64 @ptrace(i32 noundef %6, i32 noundef %7, ptr noundef null, ptr noundef %8)
%10 = icmp slt i64 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %2
store i32 -1, ptr %3, align 4
br label %13
12: ; preds = %2
store i32 0, ptr %3, align 4
br label %13
13: ; preds = %12, %11
%14 = load i32, ptr %3, align 4
ret i32 %14
}
declare i64 @ptrace(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpi0c_nvkn.c'
source_filename = "/tmp/tmpi0c_nvkn.c"
target datalayout = "e-m:e-p270: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/tmpi0c_nvkn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_t27dq5g.c'
source_filename = "/tmp/tmp_t27dq5g.c"
target datalayout = "e-m:e-p270: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 }
@errno = dso_local global i64 0, align 8
@ENOENT = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_file_exist(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca %struct.stat, align 4
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i64 @stat(ptr noundef %5, ptr noundef %4)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %14
8: ; preds = %1
%9 = load i64, ptr @errno, align 8
%10 = load i64, ptr @ENOENT, align 8
%11 = icmp eq i64 %9, %10
br i1 %11, label %12, label %13
12: ; preds = %8
store i32 0, ptr %2, align 4
br label %15
13: ; preds = %8
store i32 0, ptr %2, align 4
br label %15
14: ; preds = %1
store i32 1, ptr %2, align 4
br label %15
15: ; preds = %14, %13, %12
%16 = load i32, ptr %2, align 4
ret i32 %16
}
declare i64 @stat(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_t27dq5g.c"
target datalayout = "e-m:e-p270: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 }
@errno = dso_local global i64 0, align 8
@ENOENT = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_file_exist(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca %struct.stat, align 4
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i64 @stat(ptr noundef %5, ptr noundef %4)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %14
8: ; preds = %1
%9 = load i64, ptr @errno, align 8
%10 = load i64, ptr @ENOENT, align 8
%11 = icmp eq i64 %9, %10
br i1 %11, label %12, label %13
12: ; preds = %8
store i32 0, ptr %2, align 4
br label %15
13: ; preds = %8
store i32 0, ptr %2, align 4
br label %15
14: ; preds = %1
store i32 1, ptr %2, align 4
br label %15
15: ; preds = %14, %13, %12
%16 = load i32, ptr %2, align 4
ret i32 %16
}
declare i64 @stat(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/tmps3jnnzkn.c'
source_filename = "/tmp/tmps3jnnzkn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f3(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i64 (...) @vfork()
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = call i32 @_exit(i32 noundef 1) #3
unreachable
7: ; preds = %1
store i32 0, ptr %2, align 4
%8 = call i32 (...) @foo()
ret i32 0
}
declare i64 @vfork(...) #1
; Function Attrs: noreturn
declare i32 @_exit(i32 noundef) #2
declare i32 @foo(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmps3jnnzkn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f3(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i64 (...) @vfork()
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = call i32 @_exit(i32 noundef 1) #3
unreachable
7: ; preds = %1
store i32 0, ptr %2, align 4
%8 = call i32 (...) @foo()
ret i32 0
}
declare i64 @vfork(...) #1
; Function Attrs: noreturn
declare i32 @_exit(i32 noundef) #2
declare i32 @foo(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpvj4uedam.c'
source_filename = "/tmp/tmpvj4uedam.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"rb\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [46 x i8] c"files %s and %s differ in byte %lu: %d != %d\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @gt_xfile_cmp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%10 = load ptr, ptr %3, align 8
%11 = call ptr @fopen(ptr noundef %10, ptr noundef @.str)
store ptr %11, ptr %5, align 8
%12 = load ptr, ptr %4, align 8
%13 = call ptr @fopen(ptr noundef %12, ptr noundef @.str)
store ptr %13, ptr %6, align 8
store i64 0, ptr %7, align 8
br label %14
14: ; preds = %38, %2
%15 = load ptr, ptr %5, align 8
%16 = call i32 @fgetc(ptr noundef %15)
store i32 %16, ptr %8, align 4
%17 = load ptr, ptr %6, align 8
%18 = call i32 @fgetc(ptr noundef %17)
store i32 %18, ptr %9, align 4
%19 = load i32, ptr %8, align 4
%20 = load i32, ptr %9, align 4
%21 = icmp ne i32 %19, %20
br i1 %21, label %22, label %32
22: ; preds = %14
%23 = load i32, ptr @stderr, align 4
%24 = load ptr, ptr %3, align 8
%25 = load ptr, ptr %4, align 8
%26 = load i64, ptr %7, align 8
%27 = load i32, ptr %8, align 4
%28 = load i32, ptr %9, align 4
%29 = call i32 @fprintf(i32 noundef %23, ptr noundef @.str.1, ptr noundef %24, ptr noundef %25, i64 noundef %26, i32 noundef %27, i32 noundef %28)
%30 = load i32, ptr @EXIT_FAILURE, align 4
%31 = call i32 @exit(i32 noundef %30) #3
unreachable
32: ; preds = %14
%33 = load i32, ptr %8, align 4
%34 = load i32, ptr @EOF, align 4
%35 = icmp eq i32 %33, %34
br i1 %35, label %36, label %37
36: ; preds = %32
br label %41
37: ; preds = %32
br label %38
38: ; preds = %37
%39 = load i64, ptr %7, align 8
%40 = add nsw i64 %39, 1
store i64 %40, ptr %7, align 8
br label %14
41: ; preds = %36
%42 = load ptr, ptr %5, align 8
%43 = call i32 @gt_xfclose(ptr noundef %42)
%44 = load ptr, ptr %6, align 8
%45 = call i32 @gt_xfclose(ptr noundef %44)
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fgetc(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, i32 noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @gt_xfclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpvj4uedam.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"rb\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [46 x i8] c"files %s and %s differ in byte %lu: %d != %d\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @gt_xfile_cmp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%10 = load ptr, ptr %3, align 8
%11 = call ptr @fopen(ptr noundef %10, ptr noundef @.str)
store ptr %11, ptr %5, align 8
%12 = load ptr, ptr %4, align 8
%13 = call ptr @fopen(ptr noundef %12, ptr noundef @.str)
store ptr %13, ptr %6, align 8
store i64 0, ptr %7, align 8
%14 = load ptr, ptr %5, align 8
%15 = call i32 @fgetc(ptr noundef %14)
store i32 %15, ptr %8, align 4
%16 = load ptr, ptr %6, align 8
%17 = call i32 @fgetc(ptr noundef %16)
store i32 %17, ptr %9, align 4
%18 = load i32, ptr %8, align 4
%19 = load i32, ptr %9, align 4
%20 = icmp ne i32 %18, %19
br i1 %20, label %21, label %.lr.ph
.lr.ph: ; preds = %2
br label %31
._crit_edge: ; preds = %37
br label %21
21: ; preds = %._crit_edge, %2
%22 = load i32, ptr @stderr, align 4
%23 = load ptr, ptr %3, align 8
%24 = load ptr, ptr %4, align 8
%25 = load i64, ptr %7, align 8
%26 = load i32, ptr %8, align 4
%27 = load i32, ptr %9, align 4
%28 = call i32 @fprintf(i32 noundef %22, ptr noundef @.str.1, ptr noundef %23, ptr noundef %24, i64 noundef %25, i32 noundef %26, i32 noundef %27)
%29 = load i32, ptr @EXIT_FAILURE, align 4
%30 = call i32 @exit(i32 noundef %29) #3
unreachable
31: ; preds = %.lr.ph, %37
%32 = load i32, ptr %8, align 4
%33 = load i32, ptr @EOF, align 4
%34 = icmp eq i32 %32, %33
br i1 %34, label %35, label %36
35: ; preds = %31
br label %47
36: ; preds = %31
br label %37
37: ; preds = %36
%38 = load i64, ptr %7, align 8
%39 = add nsw i64 %38, 1
store i64 %39, ptr %7, align 8
%40 = load ptr, ptr %5, align 8
%41 = call i32 @fgetc(ptr noundef %40)
store i32 %41, ptr %8, align 4
%42 = load ptr, ptr %6, align 8
%43 = call i32 @fgetc(ptr noundef %42)
store i32 %43, ptr %9, align 4
%44 = load i32, ptr %8, align 4
%45 = load i32, ptr %9, align 4
%46 = icmp ne i32 %44, %45
br i1 %46, label %._crit_edge, label %31
47: ; preds = %35
%48 = load ptr, ptr %5, align 8
%49 = call i32 @gt_xfclose(ptr noundef %48)
%50 = load ptr, ptr %6, align 8
%51 = call i32 @gt_xfclose(ptr noundef %50)
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fgetc(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, i32 noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @gt_xfclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpcixw0_wg.c'
source_filename = "/tmp/tmpcixw0_wg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"ERROR\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ws_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 @error(i32 noundef -1, ptr noundef @.str, ptr noundef %3)
ret void
}
declare i32 @error(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcixw0_wg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"ERROR\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ws_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 @error(i32 noundef -1, ptr noundef @.str, ptr noundef %3)
ret void
}
declare i32 @error(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpk_fxp5cu.c'
source_filename = "/tmp/tmpk_fxp5cu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk_fxp5cu.c"
target datalayout = "e-m:e-p270: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.