llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmp8600sm0k.c'
source_filename = "/tmp/tmp8600sm0k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @quicksort(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%9 = load i32, ptr %6, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp sgt i32 %9, %10
br i1 %11, label %12, 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 @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 @quicksort(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 @quicksort(ptr noundef %21, i32 noundef %23, i32 noundef %24)
br label %25
25: ; preds = %12, %3
ret void
}
declare i32 @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/tmp8600sm0k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @quicksort(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%9 = load i32, ptr %6, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp sgt i32 %9, %10
br i1 %11, label %12, 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 @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 @quicksort(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 @quicksort(ptr noundef %21, i32 noundef %23, i32 noundef %24)
br label %25
25: ; preds = %12, %3
ret void
}
declare i32 @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/tmpiisv18jd.c'
source_filename = "/tmp/tmpiisv18jd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"Enter %d words beginning with q: \0A\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"%s doesn't begin with q!\0A\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"Here are the words accepted: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [5 x [7 x i8]], align 16
%3 = alloca [40 x i8], align 16
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 5)
br label %6
6: ; preds = %36, %0
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 5
br i1 %8, label %9, label %13
9: ; preds = %6
%10 = getelementptr inbounds [40 x i8], ptr %3, i64 0, i64 0
%11 = call i64 @gets(ptr noundef %10)
%12 = icmp ne i64 %11, 0
br label %13
13: ; preds = %9, %6
%14 = phi i1 [ false, %6 ], [ %12, %9 ]
br i1 %14, label %15, label %37
15: ; preds = %13
%16 = getelementptr inbounds [40 x i8], ptr %3, i64 0, i64 0
%17 = load i8, ptr %16, align 16
%18 = sext i8 %17 to i32
%19 = icmp ne i32 %18, 113
br i1 %19, label %20, label %23
20: ; preds = %15
%21 = getelementptr inbounds [40 x i8], ptr %3, i64 0, i64 0
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %21)
br label %36
23: ; preds = %15
%24 = load i32, ptr %4, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [5 x [7 x i8]], ptr %2, i64 0, i64 %25
%27 = getelementptr inbounds [7 x i8], ptr %26, i64 0, i64 0
%28 = getelementptr inbounds [40 x i8], ptr %3, i64 0, i64 0
%29 = call i32 @strncpy(ptr noundef %27, ptr noundef %28, i32 noundef 6)
%30 = load i32, ptr %4, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [5 x [7 x i8]], ptr %2, i64 0, i64 %31
%33 = getelementptr inbounds [7 x i8], ptr %32, i64 0, i64 6
store i8 0, ptr %33, align 1
%34 = load i32, ptr %4, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %4, align 4
br label %36
36: ; preds = %23, %20
br label %6, !llvm.loop !6
37: ; preds = %13
%38 = call i32 @puts(ptr noundef @.str.2)
store i32 0, ptr %4, align 4
br label %39
39: ; preds = %48, %37
%40 = load i32, ptr %4, align 4
%41 = icmp slt i32 %40, 5
br i1 %41, label %42, label %51
42: ; preds = %39
%43 = load i32, ptr %4, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [5 x [7 x i8]], ptr %2, i64 0, i64 %44
%46 = getelementptr inbounds [7 x i8], ptr %45, i64 0, i64 0
%47 = call i32 @puts(ptr noundef %46)
br label %48
48: ; preds = %42
%49 = load i32, ptr %4, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %4, align 4
br label %39, !llvm.loop !8
51: ; preds = %39
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i64 @gets(ptr noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpiisv18jd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"Enter %d words beginning with q: \0A\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"%s doesn't begin with q!\0A\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"Here are the words accepted: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [5 x [7 x i8]], align 16
%3 = alloca [40 x i8], align 16
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 5)
br label %6
6: ; preds = %36, %0
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 5
br i1 %8, label %9, label %13
9: ; preds = %6
%10 = getelementptr inbounds [40 x i8], ptr %3, i64 0, i64 0
%11 = call i64 @gets(ptr noundef %10)
%12 = icmp ne i64 %11, 0
br label %13
13: ; preds = %9, %6
%14 = phi i1 [ false, %6 ], [ %12, %9 ]
br i1 %14, label %15, label %37
15: ; preds = %13
%16 = getelementptr inbounds [40 x i8], ptr %3, i64 0, i64 0
%17 = load i8, ptr %16, align 16
%18 = sext i8 %17 to i32
%19 = icmp ne i32 %18, 113
br i1 %19, label %20, label %23
20: ; preds = %15
%21 = getelementptr inbounds [40 x i8], ptr %3, i64 0, i64 0
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %21)
br label %36
23: ; preds = %15
%24 = load i32, ptr %4, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [5 x [7 x i8]], ptr %2, i64 0, i64 %25
%27 = getelementptr inbounds [7 x i8], ptr %26, i64 0, i64 0
%28 = getelementptr inbounds [40 x i8], ptr %3, i64 0, i64 0
%29 = call i32 @strncpy(ptr noundef %27, ptr noundef %28, i32 noundef 6)
%30 = load i32, ptr %4, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [5 x [7 x i8]], ptr %2, i64 0, i64 %31
%33 = getelementptr inbounds [7 x i8], ptr %32, i64 0, i64 6
store i8 0, ptr %33, align 1
%34 = load i32, ptr %4, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %4, align 4
br label %36
36: ; preds = %23, %20
br label %6, !llvm.loop !6
37: ; preds = %13
%38 = call i32 @puts(ptr noundef @.str.2)
store i32 0, ptr %4, align 4
%39 = load i32, ptr %4, align 4
%40 = icmp slt i32 %39, 5
br i1 %40, label %.lr.ph, label %52
.lr.ph: ; preds = %37
br label %41
41: ; preds = %.lr.ph, %47
%42 = load i32, ptr %4, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [5 x [7 x i8]], ptr %2, i64 0, i64 %43
%45 = getelementptr inbounds [7 x i8], ptr %44, i64 0, i64 0
%46 = call i32 @puts(ptr noundef %45)
br label %47
47: ; preds = %41
%48 = load i32, ptr %4, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %4, align 4
%50 = load i32, ptr %4, align 4
%51 = icmp slt i32 %50, 5
br i1 %51, label %41, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %47
br label %52
52: ; preds = %._crit_edge, %37
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i64 @gets(ptr noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp_jimdkfv.c'
source_filename = "/tmp/tmp_jimdkfv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ilogbl(x86_fp80 noundef %0) #0 {
%2 = alloca x86_fp80, align 16
store x86_fp80 %0, ptr %2, align 16
%3 = load x86_fp80, ptr %2, align 16
%4 = fptrunc x86_fp80 %3 to double
%5 = call i64 @ilogb(double noundef %4)
%6 = sitofp i64 %5 to x86_fp80
%7 = fptosi x86_fp80 %6 to i32
ret i32 %7
}
declare i64 @ilogb(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/tmp_jimdkfv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ilogbl(x86_fp80 noundef %0) #0 {
%2 = alloca x86_fp80, align 16
store x86_fp80 %0, ptr %2, align 16
%3 = load x86_fp80, ptr %2, align 16
%4 = fptrunc x86_fp80 %3 to double
%5 = call i64 @ilogb(double noundef %4)
%6 = sitofp i64 %5 to x86_fp80
%7 = fptosi x86_fp80 %6 to i32
ret i32 %7
}
declare i64 @ilogb(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/tmpcqxu90lw.c'
source_filename = "/tmp/tmpcqxu90lw.c"
target datalayout = "e-m:e-p270: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/tmpcqxu90lw.c"
target datalayout = "e-m:e-p270: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/tmprc2nq578.c'
source_filename = "/tmp/tmprc2nq578.c"
target datalayout = "e-m:e-p270: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/tmprc2nq578.c"
target datalayout = "e-m:e-p270: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/tmprw580m9r.c'
source_filename = "/tmp/tmprw580m9r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @crypto_aead_aes256gcm_is_available() #0 {
ret i32 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprw580m9r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @crypto_aead_aes256gcm_is_available() #0 {
ret i32 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpi0z50pey.c'
source_filename = "/tmp/tmpi0z50pey.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [52 x i8] c"Error:(numberOfFiles): fnaFilesDirectory[] is null\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @numberOfFiles(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call ptr @opendir(ptr noundef %6)
store ptr %7, ptr %3, align 8
store i32 0, ptr %5, align 4
%8 = load ptr, ptr %3, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %10, label %21
10: ; preds = %1
br label %11
11: ; preds = %15, %10
%12 = load ptr, ptr %3, align 8
%13 = call ptr @readdir(ptr noundef %12)
store ptr %13, ptr %4, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %15, label %18
15: ; preds = %11
%16 = load i32, ptr %5, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %5, align 4
br label %11, !llvm.loop !6
18: ; preds = %11
%19 = load ptr, ptr %3, align 8
%20 = call i32 @closedir(ptr noundef %19)
br label %25
21: ; preds = %1
%22 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.1)
%23 = load i32, ptr @EXIT_FAILURE, align 4
%24 = call i32 @exit(i32 noundef %23) #3
unreachable
25: ; preds = %18
%26 = load i32, ptr %5, align 4
ret i32 %26
}
declare ptr @opendir(ptr noundef) #1
declare ptr @readdir(ptr noundef) #1
declare i32 @closedir(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi0z50pey.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [52 x i8] c"Error:(numberOfFiles): fnaFilesDirectory[] is null\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @numberOfFiles(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call ptr @opendir(ptr noundef %6)
store ptr %7, ptr %3, align 8
store i32 0, ptr %5, align 4
%8 = load ptr, ptr %3, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %10, label %23
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
%12 = call ptr @readdir(ptr noundef %11)
store ptr %12, ptr %4, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %.lr.ph, label %20
.lr.ph: ; preds = %10
br label %14
14: ; preds = %.lr.ph, %14
%15 = load i32, ptr %5, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %5, align 4
%17 = load ptr, ptr %3, align 8
%18 = call ptr @readdir(ptr noundef %17)
store ptr %18, ptr %4, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %20
20: ; preds = %._crit_edge, %10
%21 = load ptr, ptr %3, align 8
%22 = call i32 @closedir(ptr noundef %21)
br label %27
23: ; preds = %1
%24 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.1)
%25 = load i32, ptr @EXIT_FAILURE, align 4
%26 = call i32 @exit(i32 noundef %25) #3
unreachable
27: ; preds = %20
%28 = load i32, ptr %5, align 4
ret i32 %28
}
declare ptr @opendir(ptr noundef) #1
declare ptr @readdir(ptr noundef) #1
declare i32 @closedir(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp5l_srucb.c'
source_filename = "/tmp/tmp5l_srucb.c"
target datalayout = "e-m:e-p270: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/tmp5l_srucb.c"
target datalayout = "e-m:e-p270: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/tmpucpj2713.c'
source_filename = "/tmp/tmpucpj2713.c"
target datalayout = "e-m:e-p270: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/tmpucpj2713.c"
target datalayout = "e-m:e-p270: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/tmpoomu3h4w.c'
source_filename = "/tmp/tmpoomu3h4w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @uninitvar_mbsrtowcs() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
%5 = load ptr, ptr %1, align 8
%6 = load i64, ptr %3, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @mbsrtowcs(ptr noundef %5, ptr noundef %2, i64 noundef %6, ptr noundef %7)
ret void
}
declare i32 @mbsrtowcs(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoomu3h4w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @uninitvar_mbsrtowcs() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
%5 = load ptr, ptr %1, align 8
%6 = load i64, ptr %3, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @mbsrtowcs(ptr noundef %5, ptr noundef %2, i64 noundef %6, ptr noundef %7)
ret void
}
declare i32 @mbsrtowcs(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplvsagigb.c'
source_filename = "/tmp/tmplvsagigb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @foo0x1f() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @bar()
store i32 %2, ptr %1, align 4
%3 = load i32, ptr %1, align 4
%4 = icmp ule i32 %3, 31
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = call i32 (...) @bar()
br label %7
7: ; preds = %5, %0
ret void
}
declare i32 @bar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplvsagigb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @foo0x1f() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @bar()
store i32 %2, ptr %1, align 4
%3 = load i32, ptr %1, align 4
%4 = icmp ule i32 %3, 31
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = call i32 (...) @bar()
br label %7
7: ; preds = %5, %0
ret void
}
declare i32 @bar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpopvpjgqw.c'
source_filename = "/tmp/tmpopvpjgqw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@FLT_EPSILON = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpopvpjgqw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@FLT_EPSILON = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwxuvx3w6.c'
source_filename = "/tmp/tmpwxuvx3w6.c"
target datalayout = "e-m:e-p270: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/tmpwxuvx3w6.c"
target datalayout = "e-m:e-p270: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/tmpngpmrxo9.c'
source_filename = "/tmp/tmpngpmrxo9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"path\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"desktop+\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"desktop\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 3
br i1 %8, label %9, label %10
9: ; preds = %2
store i32 1, ptr %3, align 4
br label %94
10: ; preds = %2
store i32 1, ptr %6, align 4
br label %11
11: ; preds = %73, %10
%12 = load i32, ptr %6, align 4
%13 = load i32, ptr %4, align 4
%14 = sub nsw i32 %13, 2
%15 = icmp slt i32 %12, %14
br i1 %15, label %16, label %76
16: ; preds = %11
%17 = load ptr, ptr %5, align 8
%18 = load i32, ptr %6, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds ptr, ptr %17, i64 %19
%21 = load ptr, ptr %20, align 8
%22 = call i32 @strncmp(ptr noundef %21, ptr noundef @.str, i32 noundef 4)
%23 = icmp ne i32 %22, 0
br i1 %23, label %38, label %24
24: ; preds = %16
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %4, align 4
%27 = sub nsw i32 %26, 2
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds ptr, ptr %25, i64 %28
%30 = load ptr, ptr %29, align 8
%31 = load ptr, ptr %5, align 8
%32 = load i32, ptr %4, align 4
%33 = sub nsw i32 %32, 1
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds ptr, ptr %31, i64 %34
%36 = load ptr, ptr %35, align 8
%37 = call i32 @from_path(ptr noundef %30, ptr noundef %36)
br label %72
38: ; preds = %16
%39 = load ptr, ptr %5, align 8
%40 = load i32, ptr %6, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds ptr, ptr %39, i64 %41
%43 = load ptr, ptr %42, align 8
%44 = call i32 @strncmp(ptr noundef %43, ptr noundef @.str.1, i32 noundef 9)
%45 = icmp ne i32 %44, 0
br i1 %45, label %54, label %46
46: ; preds = %38
%47 = load ptr, ptr %5, align 8
%48 = load i32, ptr %4, align 4
%49 = sub nsw i32 %48, 1
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds ptr, ptr %47, i64 %50
%52 = load ptr, ptr %51, align 8
%53 = call i32 @from_desktop(i32 noundef 1, ptr noundef %52)
br label %71
54: ; preds = %38
%55 = load ptr, ptr %5, align 8
%56 = load i32, ptr %6, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds ptr, ptr %55, i64 %57
%59 = load ptr, ptr %58, align 8
%60 = call i32 @strncmp(ptr noundef %59, ptr noundef @.str.2, i32 noundef 8)
%61 = icmp ne i32 %60, 0
br i1 %61, label %70, label %62
62: ; preds = %54
%63 = load ptr, ptr %5, align 8
%64 = load i32, ptr %4, align 4
%65 = sub nsw i32 %64, 1
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds ptr, ptr %63, i64 %66
%68 = load ptr, ptr %67, align 8
%69 = call i32 @from_desktop(i32 noundef 0, ptr noundef %68)
br label %70
70: ; preds = %62, %54
br label %71
71: ; preds = %70, %46
br label %72
72: ; preds = %71, %24
br label %73
73: ; preds = %72
%74 = load i32, ptr %6, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %6, align 4
br label %11, !llvm.loop !6
76: ; preds = %11
%77 = load i32, ptr %6, align 4
%78 = icmp eq i32 %77, 1
br i1 %78, label %79, label %93
79: ; preds = %76
%80 = load ptr, ptr %5, align 8
%81 = load i32, ptr %4, align 4
%82 = sub nsw i32 %81, 2
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds ptr, ptr %80, i64 %83
%85 = load ptr, ptr %84, align 8
%86 = load ptr, ptr %5, align 8
%87 = load i32, ptr %4, align 4
%88 = sub nsw i32 %87, 1
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds ptr, ptr %86, i64 %89
%91 = load ptr, ptr %90, align 8
%92 = call i32 @from_path(ptr noundef %85, ptr noundef %91)
br label %93
93: ; preds = %79, %76
store i32 0, ptr %3, align 4
br label %94
94: ; preds = %93, %9
%95 = load i32, ptr %3, align 4
ret i32 %95
}
declare i32 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @from_path(ptr noundef, ptr noundef) #1
declare i32 @from_desktop(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/tmpngpmrxo9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"path\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"desktop+\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"desktop\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 3
br i1 %8, label %9, label %10
9: ; preds = %2
store i32 1, ptr %3, align 4
br label %97
10: ; preds = %2
store i32 1, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr %4, align 4
%13 = sub nsw i32 %12, 2
%14 = icmp slt i32 %11, %13
br i1 %14, label %.lr.ph, label %79
.lr.ph: ; preds = %10
br label %15
15: ; preds = %.lr.ph, %72
%16 = load ptr, ptr %5, align 8
%17 = load i32, ptr %6, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds ptr, ptr %16, i64 %18
%20 = load ptr, ptr %19, align 8
%21 = call i32 @strncmp(ptr noundef %20, ptr noundef @.str, i32 noundef 4)
%22 = icmp ne i32 %21, 0
br i1 %22, label %37, label %23
23: ; preds = %15
%24 = load ptr, ptr %5, align 8
%25 = load i32, ptr %4, align 4
%26 = sub nsw i32 %25, 2
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds ptr, ptr %24, i64 %27
%29 = load ptr, ptr %28, align 8
%30 = load ptr, ptr %5, align 8
%31 = load i32, ptr %4, align 4
%32 = sub nsw i32 %31, 1
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds ptr, ptr %30, i64 %33
%35 = load ptr, ptr %34, align 8
%36 = call i32 @from_path(ptr noundef %29, ptr noundef %35)
br label %71
37: ; preds = %15
%38 = load ptr, ptr %5, align 8
%39 = load i32, ptr %6, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds ptr, ptr %38, i64 %40
%42 = load ptr, ptr %41, align 8
%43 = call i32 @strncmp(ptr noundef %42, ptr noundef @.str.1, i32 noundef 9)
%44 = icmp ne i32 %43, 0
br i1 %44, label %53, label %45
45: ; preds = %37
%46 = load ptr, ptr %5, align 8
%47 = load i32, ptr %4, align 4
%48 = sub nsw i32 %47, 1
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds ptr, ptr %46, i64 %49
%51 = load ptr, ptr %50, align 8
%52 = call i32 @from_desktop(i32 noundef 1, ptr noundef %51)
br label %70
53: ; preds = %37
%54 = load ptr, ptr %5, align 8
%55 = load i32, ptr %6, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds ptr, ptr %54, i64 %56
%58 = load ptr, ptr %57, align 8
%59 = call i32 @strncmp(ptr noundef %58, ptr noundef @.str.2, i32 noundef 8)
%60 = icmp ne i32 %59, 0
br i1 %60, label %69, label %61
61: ; preds = %53
%62 = load ptr, ptr %5, align 8
%63 = load i32, ptr %4, align 4
%64 = sub nsw i32 %63, 1
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds ptr, ptr %62, i64 %65
%67 = load ptr, ptr %66, align 8
%68 = call i32 @from_desktop(i32 noundef 0, ptr noundef %67)
br label %69
69: ; preds = %61, %53
br label %70
70: ; preds = %69, %45
br label %71
71: ; preds = %70, %23
br label %72
72: ; preds = %71
%73 = load i32, ptr %6, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %6, align 4
%75 = load i32, ptr %6, align 4
%76 = load i32, ptr %4, align 4
%77 = sub nsw i32 %76, 2
%78 = icmp slt i32 %75, %77
br i1 %78, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %72
br label %79
79: ; preds = %._crit_edge, %10
%80 = load i32, ptr %6, align 4
%81 = icmp eq i32 %80, 1
br i1 %81, label %82, label %96
82: ; preds = %79
%83 = load ptr, ptr %5, align 8
%84 = load i32, ptr %4, align 4
%85 = sub nsw i32 %84, 2
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds ptr, ptr %83, i64 %86
%88 = load ptr, ptr %87, align 8
%89 = load ptr, ptr %5, align 8
%90 = load i32, ptr %4, align 4
%91 = sub nsw i32 %90, 1
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds ptr, ptr %89, i64 %92
%94 = load ptr, ptr %93, align 8
%95 = call i32 @from_path(ptr noundef %88, ptr noundef %94)
br label %96
96: ; preds = %82, %79
store i32 0, ptr %3, align 4
br label %97
97: ; preds = %96, %9
%98 = load i32, ptr %3, align 4
ret i32 %98
}
declare i32 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @from_path(ptr noundef, ptr noundef) #1
declare i32 @from_desktop(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/tmp9jg7ftro.c'
source_filename = "/tmp/tmp9jg7ftro.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, double }
@acc_device_default = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [27 x i8] c"Test for worker reduction\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"SUCCESSFUL!\0A\00", align 1
@.str.2 = private unnamed_addr constant [40 x i8] c"Test for reduction +. FAILED! error=%d\0A\00", align 1
@.str.3 = private unnamed_addr constant [26 x i8] c"Execution time: %.2lf ms\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca %struct.timeval, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1024, ptr %6, align 4
store i32 512, ptr %7, align 4
store i32 128, ptr %8, align 4
%16 = load i32, ptr @acc_device_default, align 4
%17 = call i32 @acc_init(i32 noundef %16)
%18 = load i32, ptr %8, align 4
%19 = load i32, ptr %7, align 4
%20 = mul nsw i32 %18, %19
%21 = load i32, ptr %6, align 4
%22 = mul nsw i32 %20, %21
%23 = sext i32 %22 to i64
%24 = mul i64 %23, 4
%25 = trunc i64 %24 to i32
%26 = call i64 @malloc(i32 noundef %25)
%27 = inttoptr i64 %26 to ptr
store ptr %27, ptr %9, align 8
%28 = load i32, ptr %8, align 4
%29 = load i32, ptr %7, align 4
%30 = mul nsw i32 %28, %29
%31 = load i32, ptr %6, align 4
%32 = mul nsw i32 %30, %31
%33 = sext i32 %32 to i64
%34 = mul i64 %33, 4
%35 = trunc i64 %34 to i32
%36 = call i64 @malloc(i32 noundef %35)
%37 = inttoptr i64 %36 to ptr
store ptr %37, ptr %10, align 8
store i32 0, ptr %4, align 4
br label %38
38: ; preds = %81, %0
%39 = load i32, ptr %4, align 4
%40 = load i32, ptr %8, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %42, label %84
42: ; preds = %38
store i32 0, ptr %3, align 4
br label %43
43: ; preds = %77, %42
%44 = load i32, ptr %3, align 4
%45 = load i32, ptr %7, align 4
%46 = icmp slt i32 %44, %45
br i1 %46, label %47, label %80
47: ; preds = %43
store i32 0, ptr %2, align 4
br label %48
48: ; preds = %73, %47
%49 = load i32, ptr %2, align 4
%50 = load i32, ptr %6, align 4
%51 = icmp slt i32 %49, %50
br i1 %51, label %52, label %76
52: ; preds = %48
%53 = load i32, ptr %4, align 4
%54 = load i32, ptr %3, align 4
%55 = add nsw i32 %53, %54
%56 = load i32, ptr %2, align 4
%57 = add nsw i32 %55, %56
%58 = srem i32 %57, 10
%59 = load ptr, ptr %9, align 8
%60 = load i32, ptr %4, align 4
%61 = load i32, ptr %7, align 4
%62 = mul nsw i32 %60, %61
%63 = load i32, ptr %6, align 4
%64 = mul nsw i32 %62, %63
%65 = load i32, ptr %3, align 4
%66 = load i32, ptr %6, align 4
%67 = mul nsw i32 %65, %66
%68 = add nsw i32 %64, %67
%69 = load i32, ptr %2, align 4
%70 = add nsw i32 %68, %69
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i32, ptr %59, i64 %71
store i32 %58, ptr %72, align 4
br label %73
73: ; preds = %52
%74 = load i32, ptr %2, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %2, align 4
br label %48, !llvm.loop !6
76: ; preds = %48
br label %77
77: ; preds = %76
%78 = load i32, ptr %3, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %3, align 4
br label %43, !llvm.loop !8
80: ; preds = %43
br label %81
81: ; preds = %80
%82 = load i32, ptr %4, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %4, align 4
br label %38, !llvm.loop !9
84: ; preds = %38
%85 = call i32 @gettimeofday(ptr noundef %11, ptr noundef null)
%86 = getelementptr inbounds %struct.timeval, ptr %11, i32 0, i32 0
%87 = load i32, ptr %86, align 8
%88 = mul nsw i32 %87, 1000
%89 = sitofp i32 %88 to double
%90 = getelementptr inbounds %struct.timeval, ptr %11, i32 0, i32 1
%91 = load double, ptr %90, align 8
%92 = fdiv double %91, 1.000000e+03
%93 = fadd double %89, %92
store double %93, ptr %12, align 8
store i32 0, ptr %4, align 4
br label %94
94: ; preds = %176, %84
%95 = load i32, ptr %4, align 4
%96 = load i32, ptr %8, align 4
%97 = icmp slt i32 %95, %96
br i1 %97, label %98, label %179
98: ; preds = %94
store i32 0, ptr %14, align 4
store i32 0, ptr %3, align 4
br label %99
99: ; preds = %158, %98
%100 = load i32, ptr %3, align 4
%101 = load i32, ptr %7, align 4
%102 = icmp slt i32 %100, %101
br i1 %102, label %103, label %161
103: ; preds = %99
store i32 0, ptr %2, align 4
br label %104
104: ; preds = %138, %103
%105 = load i32, ptr %2, align 4
%106 = load i32, ptr %6, align 4
%107 = icmp slt i32 %105, %106
br i1 %107, label %108, label %141
108: ; preds = %104
%109 = load ptr, ptr %9, align 8
%110 = load i32, ptr %4, align 4
%111 = load i32, ptr %7, align 4
%112 = mul nsw i32 %110, %111
%113 = load i32, ptr %6, align 4
%114 = mul nsw i32 %112, %113
%115 = load i32, ptr %3, align 4
%116 = load i32, ptr %6, align 4
%117 = mul nsw i32 %115, %116
%118 = add nsw i32 %114, %117
%119 = load i32, ptr %2, align 4
%120 = add nsw i32 %118, %119
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds i32, ptr %109, i64 %121
%123 = load i32, ptr %122, align 4
%124 = load ptr, ptr %10, align 8
%125 = load i32, ptr %4, align 4
%126 = load i32, ptr %7, align 4
%127 = mul nsw i32 %125, %126
%128 = load i32, ptr %6, align 4
%129 = mul nsw i32 %127, %128
%130 = load i32, ptr %3, align 4
%131 = load i32, ptr %6, align 4
%132 = mul nsw i32 %130, %131
%133 = add nsw i32 %129, %132
%134 = load i32, ptr %2, align 4
%135 = add nsw i32 %133, %134
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds i32, ptr %124, i64 %136
store i32 %123, ptr %137, align 4
br label %138
138: ; preds = %108
%139 = load i32, ptr %2, align 4
%140 = add nsw i32 %139, 1
store i32 %140, ptr %2, align 4
br label %104, !llvm.loop !10
141: ; preds = %104
%142 = load ptr, ptr %10, align 8
%143 = load i32, ptr %4, align 4
%144 = load i32, ptr %7, align 4
%145 = mul nsw i32 %143, %144
%146 = load i32, ptr %6, align 4
%147 = mul nsw i32 %145, %146
%148 = load i32, ptr %3, align 4
%149 = load i32, ptr %6, align 4
%150 = mul nsw i32 %148, %149
%151 = add nsw i32 %147, %150
%152 = add nsw i32 %151, 0
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds i32, ptr %142, i64 %153
%155 = load i32, ptr %154, align 4
%156 = load i32, ptr %14, align 4
%157 = add nsw i32 %156, %155
store i32 %157, ptr %14, align 4
br label %158
158: ; preds = %141
%159 = load i32, ptr %3, align 4
%160 = add nsw i32 %159, 1
store i32 %160, ptr %3, align 4
br label %99, !llvm.loop !11
161: ; preds = %99
%162 = load i32, ptr %4, align 4
%163 = load i32, ptr %14, align 4
%164 = add nsw i32 %163, %162
store i32 %164, ptr %14, align 4
%165 = load i32, ptr %14, align 4
%166 = load ptr, ptr %10, align 8
%167 = load i32, ptr %4, align 4
%168 = load i32, ptr %7, align 4
%169 = mul nsw i32 %167, %168
%170 = load i32, ptr %6, align 4
%171 = mul nsw i32 %169, %170
%172 = add nsw i32 %171, 0
%173 = add nsw i32 %172, 0
%174 = sext i32 %173 to i64
%175 = getelementptr inbounds i32, ptr %166, i64 %174
store i32 %165, ptr %175, align 4
br label %176
176: ; preds = %161
%177 = load i32, ptr %4, align 4
%178 = add nsw i32 %177, 1
store i32 %178, ptr %4, align 4
br label %94, !llvm.loop !12
179: ; preds = %94
%180 = call i32 @gettimeofday(ptr noundef %11, ptr noundef null)
%181 = getelementptr inbounds %struct.timeval, ptr %11, i32 0, i32 0
%182 = load i32, ptr %181, align 8
%183 = mul nsw i32 %182, 1000
%184 = sitofp i32 %183 to double
%185 = getelementptr inbounds %struct.timeval, ptr %11, i32 0, i32 1
%186 = load double, ptr %185, align 8
%187 = fdiv double %186, 1.000000e+03
%188 = fadd double %184, %187
store double %188, ptr %13, align 8
store i32 0, ptr %5, align 4
store i32 0, ptr %4, align 4
br label %189
189: ; preds = %237, %179
%190 = load i32, ptr %4, align 4
%191 = load i32, ptr %8, align 4
%192 = icmp slt i32 %190, %191
br i1 %192, label %193, label %240
193: ; preds = %189
store i32 0, ptr %15, align 4
store i32 0, ptr %3, align 4
br label %194
194: ; preds = %215, %193
%195 = load i32, ptr %3, align 4
%196 = load i32, ptr %7, align 4
%197 = icmp slt i32 %195, %196
br i1 %197, label %198, label %218
198: ; preds = %194
%199 = load ptr, ptr %9, align 8
%200 = load i32, ptr %4, align 4
%201 = load i32, ptr %7, align 4
%202 = mul nsw i32 %200, %201
%203 = load i32, ptr %6, align 4
%204 = mul nsw i32 %202, %203
%205 = load i32, ptr %3, align 4
%206 = load i32, ptr %6, align 4
%207 = mul nsw i32 %205, %206
%208 = add nsw i32 %204, %207
%209 = add nsw i32 %208, 0
%210 = sext i32 %209 to i64
%211 = getelementptr inbounds i32, ptr %199, i64 %210
%212 = load i32, ptr %211, align 4
%213 = load i32, ptr %15, align 4
%214 = add nsw i32 %213, %212
store i32 %214, ptr %15, align 4
br label %215
215: ; preds = %198
%216 = load i32, ptr %3, align 4
%217 = add nsw i32 %216, 1
store i32 %217, ptr %3, align 4
br label %194, !llvm.loop !13
218: ; preds = %194
%219 = load i32, ptr %4, align 4
%220 = load i32, ptr %15, align 4
%221 = add nsw i32 %220, %219
store i32 %221, ptr %15, align 4
%222 = load ptr, ptr %10, align 8
%223 = load i32, ptr %4, align 4
%224 = load i32, ptr %7, align 4
%225 = mul nsw i32 %223, %224
%226 = load i32, ptr %6, align 4
%227 = mul nsw i32 %225, %226
%228 = sext i32 %227 to i64
%229 = getelementptr inbounds i32, ptr %222, i64 %228
%230 = load i32, ptr %229, align 4
%231 = load i32, ptr %15, align 4
%232 = icmp ne i32 %230, %231
br i1 %232, label %233, label %236
233: ; preds = %218
%234 = load i32, ptr %5, align 4
%235 = add nsw i32 %234, 1
store i32 %235, ptr %5, align 4
br label %236
236: ; preds = %233, %218
br label %237
237: ; preds = %236
%238 = load i32, ptr %4, align 4
%239 = add nsw i32 %238, 1
store i32 %239, ptr %4, align 4
br label %189, !llvm.loop !14
240: ; preds = %189
%241 = load ptr, ptr %9, align 8
%242 = call i32 @free(ptr noundef %241)
%243 = load ptr, ptr %10, align 8
%244 = call i32 @free(ptr noundef %243)
%245 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%246 = load i32, ptr %5, align 4
%247 = icmp eq i32 %246, 0
br i1 %247, label %248, label %250
248: ; preds = %240
%249 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %253
250: ; preds = %240
%251 = load i32, ptr %5, align 4
%252 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %251)
br label %253
253: ; preds = %250, %248
%254 = load double, ptr %13, align 8
%255 = load double, ptr %12, align 8
%256 = fsub double %254, %255
%257 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %256)
%258 = load i32, ptr %1, align 4
ret i32 %258
}
declare i32 @acc_init(i32 noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @gettimeofday(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!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/tmp9jg7ftro.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, double }
@acc_device_default = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [27 x i8] c"Test for worker reduction\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"SUCCESSFUL!\0A\00", align 1
@.str.2 = private unnamed_addr constant [40 x i8] c"Test for reduction +. FAILED! error=%d\0A\00", align 1
@.str.3 = private unnamed_addr constant [26 x i8] c"Execution time: %.2lf ms\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca %struct.timeval, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1024, ptr %6, align 4
store i32 512, ptr %7, align 4
store i32 128, ptr %8, align 4
%16 = load i32, ptr @acc_device_default, align 4
%17 = call i32 @acc_init(i32 noundef %16)
%18 = load i32, ptr %8, align 4
%19 = load i32, ptr %7, align 4
%20 = mul nsw i32 %18, %19
%21 = load i32, ptr %6, align 4
%22 = mul nsw i32 %20, %21
%23 = sext i32 %22 to i64
%24 = mul i64 %23, 4
%25 = trunc i64 %24 to i32
%26 = call i64 @malloc(i32 noundef %25)
%27 = inttoptr i64 %26 to ptr
store ptr %27, ptr %9, align 8
%28 = load i32, ptr %8, align 4
%29 = load i32, ptr %7, align 4
%30 = mul nsw i32 %28, %29
%31 = load i32, ptr %6, align 4
%32 = mul nsw i32 %30, %31
%33 = sext i32 %32 to i64
%34 = mul i64 %33, 4
%35 = trunc i64 %34 to i32
%36 = call i64 @malloc(i32 noundef %35)
%37 = inttoptr i64 %36 to ptr
store ptr %37, ptr %10, align 8
store i32 0, ptr %4, align 4
%38 = load i32, ptr %4, align 4
%39 = load i32, ptr %8, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %.lr.ph5, label %90
.lr.ph5: ; preds = %0
br label %41
41: ; preds = %.lr.ph5, %84
store i32 0, ptr %3, align 4
%42 = load i32, ptr %3, align 4
%43 = load i32, ptr %7, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %.lr.ph2, label %83
.lr.ph2: ; preds = %41
br label %45
45: ; preds = %.lr.ph2, %77
store i32 0, ptr %2, align 4
%46 = load i32, ptr %2, align 4
%47 = load i32, ptr %6, align 4
%48 = icmp slt i32 %46, %47
br i1 %48, label %.lr.ph, label %76
.lr.ph: ; preds = %45
br label %49
49: ; preds = %.lr.ph, %70
%50 = load i32, ptr %4, align 4
%51 = load i32, ptr %3, align 4
%52 = add nsw i32 %50, %51
%53 = load i32, ptr %2, align 4
%54 = add nsw i32 %52, %53
%55 = srem i32 %54, 10
%56 = load ptr, ptr %9, align 8
%57 = load i32, ptr %4, align 4
%58 = load i32, ptr %7, align 4
%59 = mul nsw i32 %57, %58
%60 = load i32, ptr %6, align 4
%61 = mul nsw i32 %59, %60
%62 = load i32, ptr %3, align 4
%63 = load i32, ptr %6, align 4
%64 = mul nsw i32 %62, %63
%65 = add nsw i32 %61, %64
%66 = load i32, ptr %2, align 4
%67 = add nsw i32 %65, %66
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i32, ptr %56, i64 %68
store i32 %55, ptr %69, align 4
br label %70
70: ; preds = %49
%71 = load i32, ptr %2, align 4
%72 = add nsw i32 %71, 1
store i32 %72, ptr %2, align 4
%73 = load i32, ptr %2, align 4
%74 = load i32, ptr %6, align 4
%75 = icmp slt i32 %73, %74
br i1 %75, label %49, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %70
br label %76
76: ; preds = %._crit_edge, %45
br label %77
77: ; preds = %76
%78 = load i32, ptr %3, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %3, align 4
%80 = load i32, ptr %3, align 4
%81 = load i32, ptr %7, align 4
%82 = icmp slt i32 %80, %81
br i1 %82, label %45, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %77
br label %83
83: ; preds = %._crit_edge3, %41
br label %84
84: ; preds = %83
%85 = load i32, ptr %4, align 4
%86 = add nsw i32 %85, 1
store i32 %86, ptr %4, align 4
%87 = load i32, ptr %4, align 4
%88 = load i32, ptr %8, align 4
%89 = icmp slt i32 %87, %88
br i1 %89, label %41, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %84
br label %90
90: ; preds = %._crit_edge6, %0
%91 = call i32 @gettimeofday(ptr noundef %11, ptr noundef null)
%92 = getelementptr inbounds %struct.timeval, ptr %11, i32 0, i32 0
%93 = load i32, ptr %92, align 8
%94 = mul nsw i32 %93, 1000
%95 = sitofp i32 %94 to double
%96 = getelementptr inbounds %struct.timeval, ptr %11, i32 0, i32 1
%97 = load double, ptr %96, align 8
%98 = fdiv double %97, 1.000000e+03
%99 = fadd double %95, %98
store double %99, ptr %12, align 8
store i32 0, ptr %4, align 4
%100 = load i32, ptr %4, align 4
%101 = load i32, ptr %8, align 4
%102 = icmp slt i32 %100, %101
br i1 %102, label %.lr.ph14, label %191
.lr.ph14: ; preds = %90
br label %103
103: ; preds = %.lr.ph14, %185
store i32 0, ptr %14, align 4
store i32 0, ptr %3, align 4
%104 = load i32, ptr %3, align 4
%105 = load i32, ptr %7, align 4
%106 = icmp slt i32 %104, %105
br i1 %106, label %.lr.ph11, label %170
.lr.ph11: ; preds = %103
br label %107
107: ; preds = %.lr.ph11, %164
store i32 0, ptr %2, align 4
%108 = load i32, ptr %2, align 4
%109 = load i32, ptr %6, align 4
%110 = icmp slt i32 %108, %109
br i1 %110, label %.lr.ph8, label %147
.lr.ph8: ; preds = %107
br label %111
111: ; preds = %.lr.ph8, %141
%112 = load ptr, ptr %9, align 8
%113 = load i32, ptr %4, align 4
%114 = load i32, ptr %7, align 4
%115 = mul nsw i32 %113, %114
%116 = load i32, ptr %6, align 4
%117 = mul nsw i32 %115, %116
%118 = load i32, ptr %3, align 4
%119 = load i32, ptr %6, align 4
%120 = mul nsw i32 %118, %119
%121 = add nsw i32 %117, %120
%122 = load i32, ptr %2, align 4
%123 = add nsw i32 %121, %122
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds i32, ptr %112, i64 %124
%126 = load i32, ptr %125, align 4
%127 = load ptr, ptr %10, align 8
%128 = load i32, ptr %4, align 4
%129 = load i32, ptr %7, align 4
%130 = mul nsw i32 %128, %129
%131 = load i32, ptr %6, align 4
%132 = mul nsw i32 %130, %131
%133 = load i32, ptr %3, align 4
%134 = load i32, ptr %6, align 4
%135 = mul nsw i32 %133, %134
%136 = add nsw i32 %132, %135
%137 = load i32, ptr %2, align 4
%138 = add nsw i32 %136, %137
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds i32, ptr %127, i64 %139
store i32 %126, ptr %140, align 4
br label %141
141: ; preds = %111
%142 = load i32, ptr %2, align 4
%143 = add nsw i32 %142, 1
store i32 %143, ptr %2, align 4
%144 = load i32, ptr %2, align 4
%145 = load i32, ptr %6, align 4
%146 = icmp slt i32 %144, %145
br i1 %146, label %111, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %141
br label %147
147: ; preds = %._crit_edge9, %107
%148 = load ptr, ptr %10, align 8
%149 = load i32, ptr %4, align 4
%150 = load i32, ptr %7, align 4
%151 = mul nsw i32 %149, %150
%152 = load i32, ptr %6, align 4
%153 = mul nsw i32 %151, %152
%154 = load i32, ptr %3, align 4
%155 = load i32, ptr %6, align 4
%156 = mul nsw i32 %154, %155
%157 = add nsw i32 %153, %156
%158 = add nsw i32 %157, 0
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds i32, ptr %148, i64 %159
%161 = load i32, ptr %160, align 4
%162 = load i32, ptr %14, align 4
%163 = add nsw i32 %162, %161
store i32 %163, ptr %14, align 4
br label %164
164: ; preds = %147
%165 = load i32, ptr %3, align 4
%166 = add nsw i32 %165, 1
store i32 %166, ptr %3, align 4
%167 = load i32, ptr %3, align 4
%168 = load i32, ptr %7, align 4
%169 = icmp slt i32 %167, %168
br i1 %169, label %107, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %164
br label %170
170: ; preds = %._crit_edge12, %103
%171 = load i32, ptr %4, align 4
%172 = load i32, ptr %14, align 4
%173 = add nsw i32 %172, %171
store i32 %173, ptr %14, align 4
%174 = load i32, ptr %14, align 4
%175 = load ptr, ptr %10, align 8
%176 = load i32, ptr %4, align 4
%177 = load i32, ptr %7, align 4
%178 = mul nsw i32 %176, %177
%179 = load i32, ptr %6, align 4
%180 = mul nsw i32 %178, %179
%181 = add nsw i32 %180, 0
%182 = add nsw i32 %181, 0
%183 = sext i32 %182 to i64
%184 = getelementptr inbounds i32, ptr %175, i64 %183
store i32 %174, ptr %184, align 4
br label %185
185: ; preds = %170
%186 = load i32, ptr %4, align 4
%187 = add nsw i32 %186, 1
store i32 %187, ptr %4, align 4
%188 = load i32, ptr %4, align 4
%189 = load i32, ptr %8, align 4
%190 = icmp slt i32 %188, %189
br i1 %190, label %103, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %185
br label %191
191: ; preds = %._crit_edge15, %90
%192 = call i32 @gettimeofday(ptr noundef %11, ptr noundef null)
%193 = getelementptr inbounds %struct.timeval, ptr %11, i32 0, i32 0
%194 = load i32, ptr %193, align 8
%195 = mul nsw i32 %194, 1000
%196 = sitofp i32 %195 to double
%197 = getelementptr inbounds %struct.timeval, ptr %11, i32 0, i32 1
%198 = load double, ptr %197, align 8
%199 = fdiv double %198, 1.000000e+03
%200 = fadd double %196, %199
store double %200, ptr %13, align 8
store i32 0, ptr %5, align 4
store i32 0, ptr %4, align 4
%201 = load i32, ptr %4, align 4
%202 = load i32, ptr %8, align 4
%203 = icmp slt i32 %201, %202
br i1 %203, label %.lr.ph20, label %256
.lr.ph20: ; preds = %191
br label %204
204: ; preds = %.lr.ph20, %250
store i32 0, ptr %15, align 4
store i32 0, ptr %3, align 4
%205 = load i32, ptr %3, align 4
%206 = load i32, ptr %7, align 4
%207 = icmp slt i32 %205, %206
br i1 %207, label %.lr.ph17, label %231
.lr.ph17: ; preds = %204
br label %208
208: ; preds = %.lr.ph17, %225
%209 = load ptr, ptr %9, align 8
%210 = load i32, ptr %4, align 4
%211 = load i32, ptr %7, align 4
%212 = mul nsw i32 %210, %211
%213 = load i32, ptr %6, align 4
%214 = mul nsw i32 %212, %213
%215 = load i32, ptr %3, align 4
%216 = load i32, ptr %6, align 4
%217 = mul nsw i32 %215, %216
%218 = add nsw i32 %214, %217
%219 = add nsw i32 %218, 0
%220 = sext i32 %219 to i64
%221 = getelementptr inbounds i32, ptr %209, i64 %220
%222 = load i32, ptr %221, align 4
%223 = load i32, ptr %15, align 4
%224 = add nsw i32 %223, %222
store i32 %224, ptr %15, align 4
br label %225
225: ; preds = %208
%226 = load i32, ptr %3, align 4
%227 = add nsw i32 %226, 1
store i32 %227, ptr %3, align 4
%228 = load i32, ptr %3, align 4
%229 = load i32, ptr %7, align 4
%230 = icmp slt i32 %228, %229
br i1 %230, label %208, label %._crit_edge18, !llvm.loop !13
._crit_edge18: ; preds = %225
br label %231
231: ; preds = %._crit_edge18, %204
%232 = load i32, ptr %4, align 4
%233 = load i32, ptr %15, align 4
%234 = add nsw i32 %233, %232
store i32 %234, ptr %15, align 4
%235 = load ptr, ptr %10, align 8
%236 = load i32, ptr %4, align 4
%237 = load i32, ptr %7, align 4
%238 = mul nsw i32 %236, %237
%239 = load i32, ptr %6, align 4
%240 = mul nsw i32 %238, %239
%241 = sext i32 %240 to i64
%242 = getelementptr inbounds i32, ptr %235, i64 %241
%243 = load i32, ptr %242, align 4
%244 = load i32, ptr %15, align 4
%245 = icmp ne i32 %243, %244
br i1 %245, label %246, label %249
246: ; preds = %231
%247 = load i32, ptr %5, align 4
%248 = add nsw i32 %247, 1
store i32 %248, ptr %5, align 4
br label %249
249: ; preds = %246, %231
br label %250
250: ; preds = %249
%251 = load i32, ptr %4, align 4
%252 = add nsw i32 %251, 1
store i32 %252, ptr %4, align 4
%253 = load i32, ptr %4, align 4
%254 = load i32, ptr %8, align 4
%255 = icmp slt i32 %253, %254
br i1 %255, label %204, label %._crit_edge21, !llvm.loop !14
._crit_edge21: ; preds = %250
br label %256
256: ; preds = %._crit_edge21, %191
%257 = load ptr, ptr %9, align 8
%258 = call i32 @free(ptr noundef %257)
%259 = load ptr, ptr %10, align 8
%260 = call i32 @free(ptr noundef %259)
%261 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%262 = load i32, ptr %5, align 4
%263 = icmp eq i32 %262, 0
br i1 %263, label %264, label %266
264: ; preds = %256
%265 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %269
266: ; preds = %256
%267 = load i32, ptr %5, align 4
%268 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %267)
br label %269
269: ; preds = %266, %264
%270 = load double, ptr %13, align 8
%271 = load double, ptr %12, align 8
%272 = fsub double %270, %271
%273 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %272)
%274 = load i32, ptr %1, align 4
ret i32 %274
}
declare i32 @acc_init(i32 noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @gettimeofday(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!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/tmpni44mv9o.c'
source_filename = "/tmp/tmpni44mv9o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"one\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"1\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"two\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"2\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_hasht_resize(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i32 @strdup(ptr noundef @.str)
%7 = call i32 @strdup(ptr noundef @.str.1)
%8 = call i32 @hasht_insert(ptr noundef %5, i32 noundef %6, i32 noundef %7)
%9 = load ptr, ptr %3, align 8
%10 = call i32 @strdup(ptr noundef @.str.2)
%11 = call i32 @strdup(ptr noundef @.str.3)
%12 = call i32 @hasht_insert(ptr noundef %9, i32 noundef %10, i32 noundef %11)
%13 = load ptr, ptr %3, align 8
%14 = call i64 @hasht_size(ptr noundef %13)
%15 = load i64, ptr %4, align 8
%16 = mul i64 %15, 2
%17 = icmp eq i64 %14, %16
%18 = zext i1 %17 to i32
%19 = call i32 @assert(i32 noundef %18)
%20 = load ptr, ptr %3, align 8
%21 = call i32 @test_hasht_used(ptr noundef %20, i32 noundef 4)
ret void
}
declare i32 @hasht_insert(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strdup(ptr noundef) #1
declare i32 @assert(i32 noundef) #1
declare i64 @hasht_size(ptr noundef) #1
declare i32 @test_hasht_used(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/tmpni44mv9o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"one\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"1\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"two\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"2\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_hasht_resize(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i32 @strdup(ptr noundef @.str)
%7 = call i32 @strdup(ptr noundef @.str.1)
%8 = call i32 @hasht_insert(ptr noundef %5, i32 noundef %6, i32 noundef %7)
%9 = load ptr, ptr %3, align 8
%10 = call i32 @strdup(ptr noundef @.str.2)
%11 = call i32 @strdup(ptr noundef @.str.3)
%12 = call i32 @hasht_insert(ptr noundef %9, i32 noundef %10, i32 noundef %11)
%13 = load ptr, ptr %3, align 8
%14 = call i64 @hasht_size(ptr noundef %13)
%15 = load i64, ptr %4, align 8
%16 = mul i64 %15, 2
%17 = icmp eq i64 %14, %16
%18 = zext i1 %17 to i32
%19 = call i32 @assert(i32 noundef %18)
%20 = load ptr, ptr %3, align 8
%21 = call i32 @test_hasht_used(ptr noundef %20, i32 noundef 4)
ret void
}
declare i32 @hasht_insert(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strdup(ptr noundef) #1
declare i32 @assert(i32 noundef) #1
declare i64 @hasht_size(ptr noundef) #1
declare i32 @test_hasht_used(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/tmpwelv72p1.c'
source_filename = "/tmp/tmpwelv72p1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [40 x i8] c"NOT IMPLEMENTED:pa_mainloop_get_retval\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pa_mainloop_get_retval() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwelv72p1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [40 x i8] c"NOT IMPLEMENTED:pa_mainloop_get_retval\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pa_mainloop_get_retval() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpw62tv7m_.c'
source_filename = "/tmp/tmpw62tv7m_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vector_1(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%7 = load ptr, ptr %3, align 8
%8 = load i32, ptr %4, align 4
%9 = call i32 @clear(ptr noundef %7, i32 noundef %8)
store i32 0, ptr %5, align 4
br label %10
10: ; preds = %28, %2
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %11, 1
br i1 %12, label %13, label %31
13: ; preds = %10
store i32 0, ptr %6, align 4
br label %14
14: ; preds = %24, %13
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %27
18: ; preds = %14
%19 = call i32 (...) @place()
%20 = load ptr, ptr %3, align 8
%21 = load i32, ptr %6, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i32, ptr %20, i64 %22
store i32 %19, ptr %23, align 4
br label %24
24: ; preds = %18
%25 = load i32, ptr %6, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %6, align 4
br label %14, !llvm.loop !6
27: ; preds = %14
br label %28
28: ; preds = %27
%29 = load i32, ptr %5, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %5, align 4
br label %10, !llvm.loop !8
31: ; preds = %10
%32 = load ptr, ptr %3, align 8
%33 = load i32, ptr %4, align 4
%34 = call i32 @check(ptr noundef %32, i32 noundef %33, i32 noundef 0, i32 noundef 0, i32 noundef 1)
ret i32 %34
}
declare i32 @clear(ptr noundef, i32 noundef) #1
declare i32 @place(...) #1
declare i32 @check(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw62tv7m_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vector_1(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%7 = load ptr, ptr %3, align 8
%8 = load i32, ptr %4, align 4
%9 = call i32 @clear(ptr noundef %7, i32 noundef %8)
store i32 0, ptr %5, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp slt i32 %10, 1
br i1 %11, label %.lr.ph2, label %34
.lr.ph2: ; preds = %2
br label %12
12: ; preds = %.lr.ph2, %29
store i32 0, ptr %6, align 4
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph, label %28
.lr.ph: ; preds = %12
br label %16
16: ; preds = %.lr.ph, %22
%17 = call i32 (...) @place()
%18 = load ptr, ptr %3, align 8
%19 = load i32, ptr %6, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i32, ptr %18, i64 %20
store i32 %17, ptr %21, align 4
br label %22
22: ; preds = %16
%23 = load i32, ptr %6, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %6, align 4
%25 = load i32, ptr %6, align 4
%26 = load i32, ptr %4, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %28
28: ; preds = %._crit_edge, %12
br label %29
29: ; preds = %28
%30 = load i32, ptr %5, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %5, align 4
%32 = load i32, ptr %5, align 4
%33 = icmp slt i32 %32, 1
br i1 %33, label %12, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %29
br label %34
34: ; preds = %._crit_edge3, %2
%35 = load ptr, ptr %3, align 8
%36 = load i32, ptr %4, align 4
%37 = call i32 @check(ptr noundef %35, i32 noundef %36, i32 noundef 0, i32 noundef 0, i32 noundef 1)
ret i32 %37
}
declare i32 @clear(ptr noundef, i32 noundef) #1
declare i32 @place(...) #1
declare i32 @check(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp5wts3mcy.c'
source_filename = "/tmp/tmp5wts3mcy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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
%8 = 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
store i32 0, ptr %7, align 4
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, 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 @partion(ptr noundef %13, i32 noundef %14, i32 noundef %15, ptr noundef %7)
store i32 0, ptr %8, 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, %3
ret void
}
declare i32 @partion(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5wts3mcy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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
%8 = 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
store i32 0, ptr %7, align 4
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, 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 @partion(ptr noundef %13, i32 noundef %14, i32 noundef %15, ptr noundef %7)
store i32 0, ptr %8, 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, %3
ret void
}
declare i32 @partion(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpe0be86fc.c'
source_filename = "/tmp/tmpe0be86fc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%5 = load float, ptr %2, align 4
%6 = fpext float %5 to double
%7 = call double @llvm.fmuladd.f64(double 1.800000e+00, double %6, double 3.200000e+01)
%8 = fptrunc double %7 to float
store float %8, ptr %3, align 4
%9 = load float, ptr %3, align 4
%10 = call i32 @printf(ptr noundef @.str.1, float noundef %9)
ret i32 0
}
declare i32 @scanf(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 i32 @printf(ptr noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpe0be86fc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%5 = load float, ptr %2, align 4
%6 = fpext float %5 to double
%7 = call double @llvm.fmuladd.f64(double 1.800000e+00, double %6, double 3.200000e+01)
%8 = fptrunc double %7 to float
store float %8, ptr %3, align 4
%9 = load float, ptr %3, align 4
%10 = call i32 @printf(ptr noundef @.str.1, float noundef %9)
ret i32 0
}
declare i32 @scanf(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 i32 @printf(ptr noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmp4bkgm22v.c'
source_filename = "/tmp/tmp4bkgm22v.c"
target datalayout = "e-m:e-p270: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_FILENO = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [40 x i8] c"ERROR: I Can't get terminal attributes.\00", align 1
@F_GETFL = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @term_info(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load i32, ptr @STDIN_FILENO, align 4
%6 = load ptr, ptr %3, align 8
%7 = call i32 @tcgetattr(i32 noundef %5, ptr noundef %6)
%8 = icmp eq i32 %7, -1
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 @error(ptr noundef @.str)
br label %11
11: ; preds = %9, %2
%12 = load i32, ptr @STDIN_FILENO, align 4
%13 = load i32, ptr @F_GETFL, align 4
%14 = call i32 @fcntl(i32 noundef %12, i32 noundef %13, i32 noundef 0)
%15 = load ptr, ptr %4, align 8
store i32 %14, ptr %15, align 4
ret void
}
declare i32 @tcgetattr(i32 noundef, ptr noundef) #1
declare i32 @error(ptr noundef) #1
declare i32 @fcntl(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4bkgm22v.c"
target datalayout = "e-m:e-p270: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_FILENO = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [40 x i8] c"ERROR: I Can't get terminal attributes.\00", align 1
@F_GETFL = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @term_info(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load i32, ptr @STDIN_FILENO, align 4
%6 = load ptr, ptr %3, align 8
%7 = call i32 @tcgetattr(i32 noundef %5, ptr noundef %6)
%8 = icmp eq i32 %7, -1
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 @error(ptr noundef @.str)
br label %11
11: ; preds = %9, %2
%12 = load i32, ptr @STDIN_FILENO, align 4
%13 = load i32, ptr @F_GETFL, align 4
%14 = call i32 @fcntl(i32 noundef %12, i32 noundef %13, i32 noundef 0)
%15 = load ptr, ptr %4, align 8
store i32 %14, ptr %15, align 4
ret void
}
declare i32 @tcgetattr(i32 noundef, ptr noundef) #1
declare i32 @error(ptr noundef) #1
declare i32 @fcntl(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnuoplg1t.c'
source_filename = "/tmp/tmpnuoplg1t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"PASS\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"ERROR\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @chk_int(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = call i32 @printf(ptr noundef @.str)
br label %10
7: ; preds = %1
%8 = call i32 @printf(ptr noundef @.str.1)
%9 = call i32 @exit(i32 noundef 1) #3
unreachable
10: ; preds = %5
ret i32 0
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnuoplg1t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"PASS\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"ERROR\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @chk_int(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = call i32 @printf(ptr noundef @.str)
br label %10
7: ; preds = %1
%8 = call i32 @printf(ptr noundef @.str.1)
%9 = call i32 @exit(i32 noundef 1) #3
unreachable
10: ; preds = %5
ret i32 0
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgaqru6je.c'
source_filename = "/tmp/tmpgaqru6je.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @setup()
%3 = call i32 (...) @run()
%4 = icmp ne i32 %3, 0
%5 = xor i1 %4, true
%6 = zext i1 %5 to i32
ret i32 %6
}
declare i32 @setup(...) #1
declare i32 @run(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgaqru6je.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @setup()
%3 = call i32 (...) @run()
%4 = icmp ne i32 %3, 0
%5 = xor i1 %4, true
%6 = zext i1 %5 to i32
ret i32 %6
}
declare i32 @setup(...) #1
declare i32 @run(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpl7muwdvu.c'
source_filename = "/tmp/tmpl7muwdvu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fault(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 @warning(ptr noundef %3)
%5 = call i32 @_exit(i32 noundef 1) #3
unreachable
}
declare i32 @warning(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/tmpl7muwdvu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fault(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 @warning(ptr noundef %3)
%5 = call i32 @_exit(i32 noundef 1) #3
unreachable
}
declare i32 @warning(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/tmp1hvvo8aw.c'
source_filename = "/tmp/tmp1hvvo8aw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"a=%f b=%f a+b=%f\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"a=%f b=%f a-b=%f\0A\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"a=%f b=%f a*b=%f\0A\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"a=%f b=%f a/b=%f\0A\00", align 1
@.str.4 = private unnamed_addr constant [17 x i8] c"a=%f sqrt(a)=%f\0A\00", align 1
@.str.5 = private unnamed_addr constant [16 x i8] c"a=%f sin(a)=%f\0A\00", align 1
@.str.6 = private unnamed_addr constant [16 x i8] c"a=%f cos(a)=%f\0A\00", align 1
@.str.7 = private unnamed_addr constant [16 x i8] c"a=%f tan(a)=%f\0A\00", align 1
@.str.8 = private unnamed_addr constant [16 x i8] c"a=%f log(a)=%f\0A\00", align 1
@.str.9 = private unnamed_addr constant [16 x i8] c"a=%f exp(a)=%f\0A\00", align 1
@.str.10 = private unnamed_addr constant [26 x i8] c"a=%f b=%f atan2(a, b)=%f\0A\00", align 1
@.str.11 = private unnamed_addr constant [22 x i8] c"a=%f asin(sin(a))=%f\0A\00", align 1
@.str.12 = private unnamed_addr constant [22 x i8] c"a=%f acos(cos(a))=%f\0A\00", align 1
@.str.13 = private unnamed_addr constant [22 x i8] c"a=%f atan(tan(a))=%f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_fops(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%5 = load double, ptr %3, align 8
%6 = load double, ptr %4, align 8
%7 = load double, ptr %3, align 8
%8 = load double, ptr %4, align 8
%9 = fadd double %7, %8
%10 = call i32 (ptr, double, double, ...) @printf(ptr noundef @.str, double noundef %5, double noundef %6, double noundef %9)
%11 = load double, ptr %3, align 8
%12 = load double, ptr %4, align 8
%13 = load double, ptr %3, align 8
%14 = load double, ptr %4, align 8
%15 = fsub double %13, %14
%16 = call i32 (ptr, double, double, ...) @printf(ptr noundef @.str.1, double noundef %11, double noundef %12, double noundef %15)
%17 = load double, ptr %3, align 8
%18 = load double, ptr %4, align 8
%19 = load double, ptr %3, align 8
%20 = load double, ptr %4, align 8
%21 = fmul double %19, %20
%22 = call i32 (ptr, double, double, ...) @printf(ptr noundef @.str.2, double noundef %17, double noundef %18, double noundef %21)
%23 = load double, ptr %3, align 8
%24 = load double, ptr %4, align 8
%25 = load double, ptr %3, align 8
%26 = load double, ptr %4, align 8
%27 = fdiv double %25, %26
%28 = call i32 (ptr, double, double, ...) @printf(ptr noundef @.str.3, double noundef %23, double noundef %24, double noundef %27)
%29 = load double, ptr %3, align 8
%30 = load double, ptr %3, align 8
%31 = call double @sqrt(double noundef %30) #3
%32 = call i32 (ptr, double, double, ...) @printf(ptr noundef @.str.4, double noundef %29, double noundef %31)
%33 = load double, ptr %3, align 8
%34 = load double, ptr %3, align 8
%35 = call double @sin(double noundef %34) #3
%36 = call i32 (ptr, double, double, ...) @printf(ptr noundef @.str.5, double noundef %33, double noundef %35)
%37 = load double, ptr %3, align 8
%38 = load double, ptr %3, align 8
%39 = call double @cos(double noundef %38) #3
%40 = call i32 (ptr, double, double, ...) @printf(ptr noundef @.str.6, double noundef %37, double noundef %39)
%41 = load double, ptr %3, align 8
%42 = load double, ptr %3, align 8
%43 = call double @tan(double noundef %42) #3
%44 = call i32 (ptr, double, double, ...) @printf(ptr noundef @.str.7, double noundef %41, double noundef %43)
%45 = load double, ptr %3, align 8
%46 = load double, ptr %3, align 8
%47 = call double @log(double noundef %46) #3
%48 = call i32 (ptr, double, double, ...) @printf(ptr noundef @.str.8, double noundef %45, double noundef %47)
%49 = load double, ptr %3, align 8
%50 = load double, ptr %3, align 8
%51 = call double @exp(double noundef %50) #3
%52 = call i32 (ptr, double, double, ...) @printf(ptr noundef @.str.9, double noundef %49, double noundef %51)
%53 = load double, ptr %3, align 8
%54 = load double, ptr %4, align 8
%55 = load double, ptr %3, align 8
%56 = load double, ptr %4, align 8
%57 = call double @atan2(double noundef %55, double noundef %56) #3
%58 = call i32 (ptr, double, double, ...) @printf(ptr noundef @.str.10, double noundef %53, double noundef %54, double noundef %57)
%59 = load double, ptr %3, align 8
%60 = load double, ptr %3, align 8
%61 = call double @sin(double noundef %60) #3
%62 = call double @asin(double noundef %61) #3
%63 = call i32 (ptr, double, double, ...) @printf(ptr noundef @.str.11, double noundef %59, double noundef %62)
%64 = load double, ptr %3, align 8
%65 = load double, ptr %3, align 8
%66 = call double @cos(double noundef %65) #3
%67 = call double @acos(double noundef %66) #3
%68 = call i32 (ptr, double, double, ...) @printf(ptr noundef @.str.12, double noundef %64, double noundef %67)
%69 = load double, ptr %3, align 8
%70 = load double, ptr %3, align 8
%71 = call double @tan(double noundef %70) #3
%72 = call double @atan(double noundef %71) #3
%73 = call i32 (ptr, double, double, ...) @printf(ptr noundef @.str.13, double noundef %69, double noundef %72)
ret void
}
declare i32 @printf(ptr noundef, double noundef, double noundef, ...) #1
; Function Attrs: nounwind
declare double @sqrt(double noundef) #2
; Function Attrs: nounwind
declare double @sin(double noundef) #2
; Function Attrs: nounwind
declare double @cos(double noundef) #2
; Function Attrs: nounwind
declare double @tan(double noundef) #2
; Function Attrs: nounwind
declare double @log(double noundef) #2
; Function Attrs: nounwind
declare double @exp(double noundef) #2
; Function Attrs: nounwind
declare double @atan2(double noundef, double noundef) #2
; Function Attrs: nounwind
declare double @asin(double noundef) #2
; Function Attrs: nounwind
declare double @acos(double noundef) #2
; Function Attrs: nounwind
declare double @atan(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 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1hvvo8aw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"a=%f b=%f a+b=%f\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"a=%f b=%f a-b=%f\0A\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"a=%f b=%f a*b=%f\0A\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"a=%f b=%f a/b=%f\0A\00", align 1
@.str.4 = private unnamed_addr constant [17 x i8] c"a=%f sqrt(a)=%f\0A\00", align 1
@.str.5 = private unnamed_addr constant [16 x i8] c"a=%f sin(a)=%f\0A\00", align 1
@.str.6 = private unnamed_addr constant [16 x i8] c"a=%f cos(a)=%f\0A\00", align 1
@.str.7 = private unnamed_addr constant [16 x i8] c"a=%f tan(a)=%f\0A\00", align 1
@.str.8 = private unnamed_addr constant [16 x i8] c"a=%f log(a)=%f\0A\00", align 1
@.str.9 = private unnamed_addr constant [16 x i8] c"a=%f exp(a)=%f\0A\00", align 1
@.str.10 = private unnamed_addr constant [26 x i8] c"a=%f b=%f atan2(a, b)=%f\0A\00", align 1
@.str.11 = private unnamed_addr constant [22 x i8] c"a=%f asin(sin(a))=%f\0A\00", align 1
@.str.12 = private unnamed_addr constant [22 x i8] c"a=%f acos(cos(a))=%f\0A\00", align 1
@.str.13 = private unnamed_addr constant [22 x i8] c"a=%f atan(tan(a))=%f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_fops(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%5 = load double, ptr %3, align 8
%6 = load double, ptr %4, align 8
%7 = load double, ptr %3, align 8
%8 = load double, ptr %4, align 8
%9 = fadd double %7, %8
%10 = call i32 (ptr, double, double, ...) @printf(ptr noundef @.str, double noundef %5, double noundef %6, double noundef %9)
%11 = load double, ptr %3, align 8
%12 = load double, ptr %4, align 8
%13 = load double, ptr %3, align 8
%14 = load double, ptr %4, align 8
%15 = fsub double %13, %14
%16 = call i32 (ptr, double, double, ...) @printf(ptr noundef @.str.1, double noundef %11, double noundef %12, double noundef %15)
%17 = load double, ptr %3, align 8
%18 = load double, ptr %4, align 8
%19 = load double, ptr %3, align 8
%20 = load double, ptr %4, align 8
%21 = fmul double %19, %20
%22 = call i32 (ptr, double, double, ...) @printf(ptr noundef @.str.2, double noundef %17, double noundef %18, double noundef %21)
%23 = load double, ptr %3, align 8
%24 = load double, ptr %4, align 8
%25 = load double, ptr %3, align 8
%26 = load double, ptr %4, align 8
%27 = fdiv double %25, %26
%28 = call i32 (ptr, double, double, ...) @printf(ptr noundef @.str.3, double noundef %23, double noundef %24, double noundef %27)
%29 = load double, ptr %3, align 8
%30 = load double, ptr %3, align 8
%31 = call double @sqrt(double noundef %30) #3
%32 = call i32 (ptr, double, double, ...) @printf(ptr noundef @.str.4, double noundef %29, double noundef %31)
%33 = load double, ptr %3, align 8
%34 = load double, ptr %3, align 8
%35 = call double @sin(double noundef %34) #3
%36 = call i32 (ptr, double, double, ...) @printf(ptr noundef @.str.5, double noundef %33, double noundef %35)
%37 = load double, ptr %3, align 8
%38 = load double, ptr %3, align 8
%39 = call double @cos(double noundef %38) #3
%40 = call i32 (ptr, double, double, ...) @printf(ptr noundef @.str.6, double noundef %37, double noundef %39)
%41 = load double, ptr %3, align 8
%42 = load double, ptr %3, align 8
%43 = call double @tan(double noundef %42) #3
%44 = call i32 (ptr, double, double, ...) @printf(ptr noundef @.str.7, double noundef %41, double noundef %43)
%45 = load double, ptr %3, align 8
%46 = load double, ptr %3, align 8
%47 = call double @log(double noundef %46) #3
%48 = call i32 (ptr, double, double, ...) @printf(ptr noundef @.str.8, double noundef %45, double noundef %47)
%49 = load double, ptr %3, align 8
%50 = load double, ptr %3, align 8
%51 = call double @exp(double noundef %50) #3
%52 = call i32 (ptr, double, double, ...) @printf(ptr noundef @.str.9, double noundef %49, double noundef %51)
%53 = load double, ptr %3, align 8
%54 = load double, ptr %4, align 8
%55 = load double, ptr %3, align 8
%56 = load double, ptr %4, align 8
%57 = call double @atan2(double noundef %55, double noundef %56) #3
%58 = call i32 (ptr, double, double, ...) @printf(ptr noundef @.str.10, double noundef %53, double noundef %54, double noundef %57)
%59 = load double, ptr %3, align 8
%60 = load double, ptr %3, align 8
%61 = call double @sin(double noundef %60) #3
%62 = call double @asin(double noundef %61) #3
%63 = call i32 (ptr, double, double, ...) @printf(ptr noundef @.str.11, double noundef %59, double noundef %62)
%64 = load double, ptr %3, align 8
%65 = load double, ptr %3, align 8
%66 = call double @cos(double noundef %65) #3
%67 = call double @acos(double noundef %66) #3
%68 = call i32 (ptr, double, double, ...) @printf(ptr noundef @.str.12, double noundef %64, double noundef %67)
%69 = load double, ptr %3, align 8
%70 = load double, ptr %3, align 8
%71 = call double @tan(double noundef %70) #3
%72 = call double @atan(double noundef %71) #3
%73 = call i32 (ptr, double, double, ...) @printf(ptr noundef @.str.13, double noundef %69, double noundef %72)
ret void
}
declare i32 @printf(ptr noundef, double noundef, double noundef, ...) #1
; Function Attrs: nounwind
declare double @sqrt(double noundef) #2
; Function Attrs: nounwind
declare double @sin(double noundef) #2
; Function Attrs: nounwind
declare double @cos(double noundef) #2
; Function Attrs: nounwind
declare double @tan(double noundef) #2
; Function Attrs: nounwind
declare double @log(double noundef) #2
; Function Attrs: nounwind
declare double @exp(double noundef) #2
; Function Attrs: nounwind
declare double @atan2(double noundef, double noundef) #2
; Function Attrs: nounwind
declare double @asin(double noundef) #2
; Function Attrs: nounwind
declare double @acos(double noundef) #2
; Function Attrs: nounwind
declare double @atan(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 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpp9esgwud.c'
source_filename = "/tmp/tmpp9esgwud.c"
target datalayout = "e-m:e-p270: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/tmpp9esgwud.c"
target datalayout = "e-m:e-p270: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/tmpjx5l3c1u.c'
source_filename = "/tmp/tmpjx5l3c1u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lf %lf\00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"now %8.3f, t %8.3f, p %12f, A %12f %12e\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 double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
%18 = call double @strtod(ptr noundef %17, ptr noundef null)
store double %18, ptr %6, align 8
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 2
%21 = load ptr, ptr %20, align 8
%22 = call double @strtod(ptr noundef %21, ptr noundef null)
store double %22, ptr %7, align 8
store double 0.000000e+00, ptr %8, align 8
store double 0.000000e+00, ptr %9, align 8
store double 0.000000e+00, ptr %10, align 8
br label %23
23: ; preds = %73, %2
%24 = call i32 @scanf(ptr noundef @.str, ptr noundef %11, ptr noundef %12)
%25 = icmp eq i32 %24, 2
br i1 %25, label %26, label %83
26: ; preds = %23
%27 = load double, ptr %11, align 8
%28 = load double, ptr %8, align 8
%29 = fsub double %27, %28
%30 = load double, ptr %6, align 8
%31 = fdiv double %29, %30
%32 = call double @llvm.floor.f64(double %31)
store double %32, ptr %13, align 8
%33 = load double, ptr %13, align 8
%34 = fcmp ogt double %33, 0.000000e+00
br i1 %34, label %35, label %59
35: ; preds = %26
%36 = load double, ptr %9, align 8
%37 = load double, ptr %6, align 8
%38 = fdiv double %36, %37
store double %38, ptr %14, align 8
%39 = load double, ptr %10, align 8
%40 = fcmp ole double %39, 0.000000e+00
br i1 %40, label %41, label %43
41: ; preds = %35
%42 = load double, ptr %14, align 8
store double %42, ptr %10, align 8
br label %54
43: ; preds = %35
%44 = load double, ptr %6, align 8
%45 = fneg double %44
%46 = load double, ptr %7, align 8
%47 = fdiv double %45, %46
%48 = call double @expm1(double noundef %47) #4
%49 = load double, ptr %10, align 8
%50 = load double, ptr %14, align 8
%51 = fsub double %49, %50
%52 = load double, ptr %10, align 8
%53 = call double @llvm.fmuladd.f64(double %48, double %51, double %52)
store double %53, ptr %10, align 8
br label %54
54: ; preds = %43, %41
%55 = load double, ptr %13, align 8
%56 = load double, ptr %6, align 8
%57 = load double, ptr %8, align 8
%58 = call double @llvm.fmuladd.f64(double %55, double %56, double %57)
store double %58, ptr %8, align 8
store double 0.000000e+00, ptr %9, align 8
br label %59
59: ; preds = %54, %26
%60 = load double, ptr %13, align 8
%61 = fcmp ogt double %60, 1.000000e+00
br i1 %61, label %62, label %73
62: ; preds = %59
%63 = load double, ptr %13, align 8
%64 = fsub double %63, 1.000000e+00
%65 = load double, ptr %6, align 8
%66 = fneg double %65
%67 = load double, ptr %7, align 8
%68 = fdiv double %66, %67
%69 = fmul double %64, %68
%70 = call double @exp(double noundef %69) #4
%71 = load double, ptr %10, align 8
%72 = fmul double %71, %70
store double %72, ptr %10, align 8
br label %73
73: ; preds = %62, %59
%74 = load double, ptr %12, align 8
%75 = load double, ptr %9, align 8
%76 = fadd double %75, %74
store double %76, ptr %9, align 8
%77 = load double, ptr %11, align 8
%78 = load double, ptr %8, align 8
%79 = load double, ptr %9, align 8
%80 = load double, ptr %10, align 8
%81 = load double, ptr %10, align 8
%82 = call i32 @printf(ptr noundef @.str.1, double noundef %77, double noundef %78, double noundef %79, double noundef %80, double noundef %81)
br label %23, !llvm.loop !6
83: ; preds = %23
ret i32 0
}
declare double @strtod(ptr noundef, ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.floor.f64(double) #2
; Function Attrs: nounwind
declare double @expm1(double noundef) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
; Function Attrs: nounwind
declare double @exp(double noundef) #3
declare i32 @printf(ptr noundef, double noundef, double noundef, double 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" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjx5l3c1u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lf %lf\00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"now %8.3f, t %8.3f, p %12f, A %12f %12e\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 double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
%18 = call double @strtod(ptr noundef %17, ptr noundef null)
store double %18, ptr %6, align 8
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 2
%21 = load ptr, ptr %20, align 8
%22 = call double @strtod(ptr noundef %21, ptr noundef null)
store double %22, ptr %7, align 8
store double 0.000000e+00, ptr %8, align 8
store double 0.000000e+00, ptr %9, align 8
store double 0.000000e+00, ptr %10, align 8
%23 = call i32 @scanf(ptr noundef @.str, ptr noundef %11, ptr noundef %12)
%24 = icmp eq i32 %23, 2
br i1 %24, label %.lr.ph, label %84
.lr.ph: ; preds = %2
br label %25
25: ; preds = %.lr.ph, %72
%26 = load double, ptr %11, align 8
%27 = load double, ptr %8, align 8
%28 = fsub double %26, %27
%29 = load double, ptr %6, align 8
%30 = fdiv double %28, %29
%31 = call double @llvm.floor.f64(double %30)
store double %31, ptr %13, align 8
%32 = load double, ptr %13, align 8
%33 = fcmp ogt double %32, 0.000000e+00
br i1 %33, label %34, label %58
34: ; preds = %25
%35 = load double, ptr %9, align 8
%36 = load double, ptr %6, align 8
%37 = fdiv double %35, %36
store double %37, ptr %14, align 8
%38 = load double, ptr %10, align 8
%39 = fcmp ole double %38, 0.000000e+00
br i1 %39, label %40, label %42
40: ; preds = %34
%41 = load double, ptr %14, align 8
store double %41, ptr %10, align 8
br label %53
42: ; preds = %34
%43 = load double, ptr %6, align 8
%44 = fneg double %43
%45 = load double, ptr %7, align 8
%46 = fdiv double %44, %45
%47 = call double @expm1(double noundef %46) #4
%48 = load double, ptr %10, align 8
%49 = load double, ptr %14, align 8
%50 = fsub double %48, %49
%51 = load double, ptr %10, align 8
%52 = call double @llvm.fmuladd.f64(double %47, double %50, double %51)
store double %52, ptr %10, align 8
br label %53
53: ; preds = %42, %40
%54 = load double, ptr %13, align 8
%55 = load double, ptr %6, align 8
%56 = load double, ptr %8, align 8
%57 = call double @llvm.fmuladd.f64(double %54, double %55, double %56)
store double %57, ptr %8, align 8
store double 0.000000e+00, ptr %9, align 8
br label %58
58: ; preds = %53, %25
%59 = load double, ptr %13, align 8
%60 = fcmp ogt double %59, 1.000000e+00
br i1 %60, label %61, label %72
61: ; preds = %58
%62 = load double, ptr %13, align 8
%63 = fsub double %62, 1.000000e+00
%64 = load double, ptr %6, align 8
%65 = fneg double %64
%66 = load double, ptr %7, align 8
%67 = fdiv double %65, %66
%68 = fmul double %63, %67
%69 = call double @exp(double noundef %68) #4
%70 = load double, ptr %10, align 8
%71 = fmul double %70, %69
store double %71, ptr %10, align 8
br label %72
72: ; preds = %61, %58
%73 = load double, ptr %12, align 8
%74 = load double, ptr %9, align 8
%75 = fadd double %74, %73
store double %75, ptr %9, align 8
%76 = load double, ptr %11, align 8
%77 = load double, ptr %8, align 8
%78 = load double, ptr %9, align 8
%79 = load double, ptr %10, align 8
%80 = load double, ptr %10, align 8
%81 = call i32 @printf(ptr noundef @.str.1, double noundef %76, double noundef %77, double noundef %78, double noundef %79, double noundef %80)
%82 = call i32 @scanf(ptr noundef @.str, ptr noundef %11, ptr noundef %12)
%83 = icmp eq i32 %82, 2
br i1 %83, label %25, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %72
br label %84
84: ; preds = %._crit_edge, %2
ret i32 0
}
declare double @strtod(ptr noundef, ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.floor.f64(double) #2
; Function Attrs: nounwind
declare double @expm1(double noundef) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
; Function Attrs: nounwind
declare double @exp(double noundef) #3
declare i32 @printf(ptr noundef, double noundef, double noundef, double 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" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #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"}
|
; ModuleID = '/tmp/tmp5tv1lcfu.c'
source_filename = "/tmp/tmp5tv1lcfu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vlogical_imm_and9_int64_t(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %21, %2
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %24
10: ; preds = %6
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i32, ptr %11, i64 %13
%15 = load i32, ptr %14, align 4
%16 = and i32 %15, 9
%17 = load ptr, ptr %3, align 8
%18 = load i32, ptr %5, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %17, i64 %19
store i32 %16, ptr %20, align 4
br label %21
21: ; preds = %10
%22 = load i32, ptr %5, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %5, align 4
br label %6, !llvm.loop !6
24: ; preds = %6
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5tv1lcfu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vlogical_imm_and9_int64_t(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %.lr.ph, label %26
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %20
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %5, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i32, ptr %10, i64 %12
%14 = load i32, ptr %13, align 4
%15 = and i32 %14, 9
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %5, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i32, ptr %16, i64 %18
store i32 %15, ptr %19, align 4
br label %20
20: ; preds = %9
%21 = load i32, ptr %5, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %5, align 4
%23 = load i32, ptr %5, align 4
%24 = load i32, ptr %4, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %26
26: ; preds = %._crit_edge, %2
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpxkocpwax.c'
source_filename = "/tmp/tmpxkocpwax.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"Doing nothing.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @thread_callback(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = call i32 @printf(ptr noundef @.str)
%5 = load ptr, ptr %2, align 8
ret ptr %5
}
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/tmpxkocpwax.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"Doing nothing.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @thread_callback(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = call i32 @printf(ptr noundef @.str)
%5 = load ptr, ptr %2, align 8
ret ptr %5
}
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/tmpxmaq7x73.c'
source_filename = "/tmp/tmpxmaq7x73.c"
target datalayout = "e-m:e-p270: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.buffer = private unnamed_addr constant [2 x i8] c"ab", align 1
@.str = private unnamed_addr constant [13 x i8] c"testfile.bin\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"wb\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"Test\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"%s %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"TESTSTR\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 [2 x i8], align 1
%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
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @__const.main.buffer, i64 2, i1 false)
%9 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %9, ptr %6, align 8
%10 = getelementptr inbounds [2 x i8], ptr %7, i64 0, i64 0
%11 = load ptr, ptr %6, align 8
%12 = call i32 @fwrite(ptr noundef %10, i32 noundef 1, i32 noundef 2, ptr noundef %11)
%13 = load ptr, ptr %6, align 8
%14 = call i32 @fgetc(ptr noundef %13)
store i32 %14, ptr %8, align 4
%15 = load ptr, ptr %6, align 8
%16 = call i32 @fputs(ptr noundef @.str.2, ptr noundef %15)
%17 = load ptr, ptr %6, align 8
%18 = call i32 @fprintf(ptr noundef %17, ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 47)
%19 = load ptr, ptr %6, align 8
%20 = call i32 @fclose(ptr noundef %19)
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 ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2
declare i32 @fgetc(ptr noundef) #2
declare i32 @fputs(ptr noundef, ptr noundef) #2
declare i32 @fprintf(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @fclose(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxmaq7x73.c"
target datalayout = "e-m:e-p270: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.buffer = private unnamed_addr constant [2 x i8] c"ab", align 1
@.str = private unnamed_addr constant [13 x i8] c"testfile.bin\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"wb\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"Test\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"%s %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"TESTSTR\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 [2 x i8], align 1
%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
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @__const.main.buffer, i64 2, i1 false)
%9 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %9, ptr %6, align 8
%10 = getelementptr inbounds [2 x i8], ptr %7, i64 0, i64 0
%11 = load ptr, ptr %6, align 8
%12 = call i32 @fwrite(ptr noundef %10, i32 noundef 1, i32 noundef 2, ptr noundef %11)
%13 = load ptr, ptr %6, align 8
%14 = call i32 @fgetc(ptr noundef %13)
store i32 %14, ptr %8, align 4
%15 = load ptr, ptr %6, align 8
%16 = call i32 @fputs(ptr noundef @.str.2, ptr noundef %15)
%17 = load ptr, ptr %6, align 8
%18 = call i32 @fprintf(ptr noundef %17, ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 47)
%19 = load ptr, ptr %6, align 8
%20 = call i32 @fclose(ptr noundef %19)
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 ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2
declare i32 @fgetc(ptr noundef) #2
declare i32 @fputs(ptr noundef, ptr noundef) #2
declare i32 @fprintf(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @fclose(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7n6rx5hw.c'
source_filename = "/tmp/tmp7n6rx5hw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [50 x i8] c"Logaritmasi alinacak bir deger ve taban veriniz.\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%lf%lf\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @logg() #0 {
%1 = alloca double, align 8
%2 = alloca double, align 8
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %1, ptr noundef %2)
%5 = load double, ptr %1, align 8
%6 = call double @log(double noundef %5) #3
%7 = load double, ptr %2, align 8
%8 = call double @log(double noundef %7) #3
%9 = fdiv double %6, %8
ret double %9
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
; Function Attrs: nounwind
declare double @log(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 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7n6rx5hw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [50 x i8] c"Logaritmasi alinacak bir deger ve taban veriniz.\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%lf%lf\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @logg() #0 {
%1 = alloca double, align 8
%2 = alloca double, align 8
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %1, ptr noundef %2)
%5 = load double, ptr %1, align 8
%6 = call double @log(double noundef %5) #3
%7 = load double, ptr %2, align 8
%8 = call double @log(double noundef %7) #3
%9 = fdiv double %6, %8
ret double %9
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
; Function Attrs: nounwind
declare double @log(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 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9rdb7i21.c'
source_filename = "/tmp/tmp9rdb7i21.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"%d+%d+%d+%d=%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%5 = load i32, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = add nsw i32 %5, %6
%8 = load i32, ptr %2, align 4
%9 = add nsw i32 %7, %8
%10 = load i32, ptr %2, align 4
%11 = add nsw i32 %9, %10
store i32 %11, ptr %3, align 4
%12 = load i32, ptr %2, align 4
%13 = load i32, ptr %2, align 4
%14 = load i32, ptr %2, align 4
%15 = load i32, ptr %2, align 4
%16 = load i32, ptr %3, align 4
%17 = call i32 @printf(ptr noundef @.str.1, i32 noundef %12, i32 noundef %13, i32 noundef %14, i32 noundef %15, i32 noundef %16)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9rdb7i21.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"%d+%d+%d+%d=%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%5 = load i32, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = add nsw i32 %5, %6
%8 = load i32, ptr %2, align 4
%9 = add nsw i32 %7, %8
%10 = load i32, ptr %2, align 4
%11 = add nsw i32 %9, %10
store i32 %11, ptr %3, align 4
%12 = load i32, ptr %2, align 4
%13 = load i32, ptr %2, align 4
%14 = load i32, ptr %2, align 4
%15 = load i32, ptr %2, align 4
%16 = load i32, ptr %3, align 4
%17 = call i32 @printf(ptr noundef @.str.1, i32 noundef %12, i32 noundef %13, i32 noundef %14, i32 noundef %15, i32 noundef %16)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyhvufpus.c'
source_filename = "/tmp/tmpyhvufpus.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @compter_char(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i8 %1, ptr %5, align 1
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
br label %8
8: ; preds = %38, %2
%9 = load i32, ptr %7, align 4
%10 = load ptr, ptr %4, align 8
%11 = call i64 @strlen(ptr noundef %10)
%12 = trunc i64 %11 to i32
%13 = icmp slt i32 %9, %12
br i1 %13, label %14, label %41
14: ; preds = %8
%15 = load ptr, ptr %4, align 8
%16 = load i32, ptr %7, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %15, i64 %17
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = load i8, ptr %5, align 1
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %20, %22
%24 = zext i1 %23 to i64
%25 = select i1 %23, i32 1, i32 0
%26 = load i32, ptr %6, align 4
%27 = add nsw i32 %26, %25
store i32 %27, ptr %6, align 4
%28 = load ptr, ptr %4, align 8
%29 = load i32, ptr %7, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %28, i64 %30
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %33, 10
br i1 %34, label %35, label %37
35: ; preds = %14
%36 = load i32, ptr %6, align 4
store i32 %36, ptr %3, align 4
br label %43
37: ; preds = %14
br label %38
38: ; preds = %37
%39 = load i32, ptr %7, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %7, align 4
br label %8, !llvm.loop !6
41: ; preds = %8
%42 = load i32, ptr %6, align 4
store i32 %42, ptr %3, align 4
br label %43
43: ; preds = %41, %35
%44 = load i32, ptr %3, align 4
ret i32 %44
}
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyhvufpus.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @compter_char(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i8 %1, ptr %5, align 1
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
%8 = load i32, ptr %7, align 4
%9 = load ptr, ptr %4, align 8
%10 = call i64 @strlen(ptr noundef %9)
%11 = trunc i64 %10 to i32
%12 = icmp slt i32 %8, %11
br i1 %12, label %.lr.ph, label %45
.lr.ph: ; preds = %2
br label %13
13: ; preds = %.lr.ph, %37
%14 = load ptr, ptr %4, align 8
%15 = load i32, ptr %7, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = load i8, ptr %5, align 1
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %19, %21
%23 = zext i1 %22 to i64
%24 = select i1 %22, i32 1, i32 0
%25 = load i32, ptr %6, align 4
%26 = add nsw i32 %25, %24
store i32 %26, ptr %6, align 4
%27 = load ptr, ptr %4, align 8
%28 = load i32, ptr %7, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %27, i64 %29
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = icmp eq i32 %32, 10
br i1 %33, label %34, label %36
34: ; preds = %13
%35 = load i32, ptr %6, align 4
store i32 %35, ptr %3, align 4
br label %47
36: ; preds = %13
br label %37
37: ; preds = %36
%38 = load i32, ptr %7, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %7, align 4
%40 = load i32, ptr %7, align 4
%41 = load ptr, ptr %4, align 8
%42 = call i64 @strlen(ptr noundef %41)
%43 = trunc i64 %42 to i32
%44 = icmp slt i32 %40, %43
br i1 %44, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %37
br label %45
45: ; preds = %._crit_edge, %2
%46 = load i32, ptr %6, align 4
store i32 %46, ptr %3, align 4
br label %47
47: ; preds = %45, %34
%48 = load i32, ptr %3, align 4
ret i32 %48
}
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpf7ua27yn.c'
source_filename = "/tmp/tmpf7ua27yn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PyThread_exit_prog(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @do_PyThread_exit_prog(i32 noundef %3, i32 noundef 0)
ret void
}
declare i32 @do_PyThread_exit_prog(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/tmpf7ua27yn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PyThread_exit_prog(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @do_PyThread_exit_prog(i32 noundef %3, i32 noundef 0)
ret void
}
declare i32 @do_PyThread_exit_prog(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/tmpmqjmmje0.c'
source_filename = "/tmp/tmpmqjmmje0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isspace.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isspace should be 0 for 0xe4\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isspace_0xe4() #0 {
%1 = call i64 @isspace(i32 noundef 228)
%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 1145, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isspace(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/tmpmqjmmje0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isspace.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isspace should be 0 for 0xe4\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isspace_0xe4() #0 {
%1 = call i64 @isspace(i32 noundef 228)
%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 1145, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isspace(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_t682q73.c'
source_filename = "/tmp/tmp_t682q73.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SysCtlPeripheralReset(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 = and i32 %4, 65280
%6 = ashr i32 %5, 8
%7 = add nsw i32 1074783488, %6
%8 = sext i32 %7 to i64
%9 = and i64 %8, 4026531840
%10 = or i64 %9, 33554432
%11 = load i32, ptr %2, align 4
%12 = and i32 %11, 65280
%13 = ashr i32 %12, 8
%14 = add nsw i32 1074783488, %13
%15 = sext i32 %14 to i64
%16 = and i64 %15, 1048575
%17 = shl i64 %16, 5
%18 = or i64 %10, %17
%19 = load i32, ptr %2, align 4
%20 = and i32 %19, 255
%21 = shl i32 %20, 2
%22 = sext i32 %21 to i64
%23 = or i64 %18, %22
%24 = inttoptr i64 %23 to ptr
store volatile i64 1, ptr %24, align 8
store volatile i32 0, ptr %3, align 4
br label %25
25: ; preds = %29, %1
%26 = load volatile i32, ptr %3, align 4
%27 = icmp slt i32 %26, 16
br i1 %27, label %28, label %32
28: ; preds = %25
br label %29
29: ; preds = %28
%30 = load volatile i32, ptr %3, align 4
%31 = add nsw i32 %30, 1
store volatile i32 %31, ptr %3, align 4
br label %25, !llvm.loop !6
32: ; preds = %25
%33 = load i32, ptr %2, align 4
%34 = and i32 %33, 65280
%35 = ashr i32 %34, 8
%36 = add nsw i32 1074783488, %35
%37 = sext i32 %36 to i64
%38 = and i64 %37, 4026531840
%39 = or i64 %38, 33554432
%40 = load i32, ptr %2, align 4
%41 = and i32 %40, 65280
%42 = ashr i32 %41, 8
%43 = add nsw i32 1074783488, %42
%44 = sext i32 %43 to i64
%45 = and i64 %44, 1048575
%46 = shl i64 %45, 5
%47 = or i64 %39, %46
%48 = load i32, ptr %2, align 4
%49 = and i32 %48, 255
%50 = shl i32 %49, 2
%51 = sext i32 %50 to i64
%52 = or i64 %47, %51
%53 = inttoptr i64 %52 to ptr
store volatile i64 0, ptr %53, align 8
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_t682q73.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SysCtlPeripheralReset(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 = and i32 %4, 65280
%6 = ashr i32 %5, 8
%7 = add nsw i32 1074783488, %6
%8 = sext i32 %7 to i64
%9 = and i64 %8, 4026531840
%10 = or i64 %9, 33554432
%11 = load i32, ptr %2, align 4
%12 = and i32 %11, 65280
%13 = ashr i32 %12, 8
%14 = add nsw i32 1074783488, %13
%15 = sext i32 %14 to i64
%16 = and i64 %15, 1048575
%17 = shl i64 %16, 5
%18 = or i64 %10, %17
%19 = load i32, ptr %2, align 4
%20 = and i32 %19, 255
%21 = shl i32 %20, 2
%22 = sext i32 %21 to i64
%23 = or i64 %18, %22
%24 = inttoptr i64 %23 to ptr
store volatile i64 1, ptr %24, align 8
store volatile i32 0, ptr %3, align 4
%25 = load volatile i32, ptr %3, align 4
%26 = icmp slt i32 %25, 16
br i1 %26, label %.lr.ph, label %33
.lr.ph: ; preds = %1
br label %27
27: ; preds = %.lr.ph, %28
br label %28
28: ; preds = %27
%29 = load volatile i32, ptr %3, align 4
%30 = add nsw i32 %29, 1
store volatile i32 %30, ptr %3, align 4
%31 = load volatile i32, ptr %3, align 4
%32 = icmp slt i32 %31, 16
br i1 %32, label %27, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %33
33: ; preds = %._crit_edge, %1
%34 = load i32, ptr %2, align 4
%35 = and i32 %34, 65280
%36 = ashr i32 %35, 8
%37 = add nsw i32 1074783488, %36
%38 = sext i32 %37 to i64
%39 = and i64 %38, 4026531840
%40 = or i64 %39, 33554432
%41 = load i32, ptr %2, align 4
%42 = and i32 %41, 65280
%43 = ashr i32 %42, 8
%44 = add nsw i32 1074783488, %43
%45 = sext i32 %44 to i64
%46 = and i64 %45, 1048575
%47 = shl i64 %46, 5
%48 = or i64 %40, %47
%49 = load i32, ptr %2, align 4
%50 = and i32 %49, 255
%51 = shl i32 %50, 2
%52 = sext i32 %51 to i64
%53 = or i64 %48, %52
%54 = inttoptr i64 %53 to ptr
store volatile i64 0, ptr %54, align 8
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpg34qlnxs.c'
source_filename = "/tmp/tmpg34qlnxs.c"
target datalayout = "e-m:e-p270: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/tmpg34qlnxs.c"
target datalayout = "e-m:e-p270: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/tmpxhqye154.c'
source_filename = "/tmp/tmpxhqye154.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_event_size() #0 {
ret i32 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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxhqye154.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_event_size() #0 {
ret i32 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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpou516hgh.c'
source_filename = "/tmp/tmpou516hgh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [162 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/stdlib/isqrt.c\00", align 1
@.str.1 = private unnamed_addr constant [40 x i8] c"Integer square root of 141 should be 11\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_sqrt_141() #0 {
%1 = call i32 @isqrt(i32 noundef 141)
%2 = icmp eq i32 %1, 11
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 710, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @isqrt(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/tmpou516hgh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [162 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/stdlib/isqrt.c\00", align 1
@.str.1 = private unnamed_addr constant [40 x i8] c"Integer square root of 141 should be 11\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_sqrt_141() #0 {
%1 = call i32 @isqrt(i32 noundef 141)
%2 = icmp eq i32 %1, 11
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 710, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @isqrt(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/tmprmw_fynj.c'
source_filename = "/tmp/tmprmw_fynj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memset(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
store i32 0, ptr %7, align 4
store i32 0, ptr %7, align 4
br label %8
8: ; preds = %19, %3
%9 = load i32, ptr %7, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %22
12: ; preds = %8
%13 = load i32, ptr %5, align 4
%14 = trunc i32 %13 to i8
%15 = load ptr, ptr %4, align 8
%16 = load i32, ptr %7, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %15, i64 %17
store i8 %14, ptr %18, align 1
br label %19
19: ; preds = %12
%20 = load i32, ptr %7, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %7, align 4
br label %8, !llvm.loop !6
22: ; preds = %8
%23 = load ptr, ptr %4, align 8
ret ptr %23
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmprmw_fynj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memset(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
store i32 0, ptr %7, align 4
store i32 0, ptr %7, align 4
%8 = load i32, ptr %7, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %24
.lr.ph: ; preds = %3
br label %11
11: ; preds = %.lr.ph, %18
%12 = load i32, ptr %5, align 4
%13 = trunc i32 %12 to i8
%14 = load ptr, ptr %4, align 8
%15 = load i32, ptr %7, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
store i8 %13, ptr %17, align 1
br label %18
18: ; preds = %11
%19 = load i32, ptr %7, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %7, align 4
%21 = load i32, ptr %7, align 4
%22 = load i32, ptr %6, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %24
24: ; preds = %._crit_edge, %3
%25 = load ptr, ptr %4, align 8
ret ptr %25
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpx1846hqt.c'
source_filename = "/tmp/tmpx1846hqt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @reader(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
%7 = load ptr, ptr %4, align 8
store ptr %7, ptr %6, align 8
br label %8
8: ; preds = %12, %2
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %18
12: ; preds = %8
%13 = load ptr, ptr %6, align 8
%14 = load i64, ptr %13, align 8
%15 = inttoptr i64 %14 to ptr
store ptr %15, ptr %6, align 8
%16 = load i32, ptr %5, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %5, align 4
br label %8, !llvm.loop !6
18: ; preds = %8
%19 = load ptr, ptr %6, align 8
ret ptr %19
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx1846hqt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @reader(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
%7 = load ptr, ptr %4, align 8
store ptr %7, ptr %6, align 8
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %3, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %20
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %11
%12 = load ptr, ptr %6, align 8
%13 = load i64, ptr %12, align 8
%14 = inttoptr i64 %13 to ptr
store ptr %14, ptr %6, align 8
%15 = load i32, ptr %5, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %5, align 4
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr %3, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %11
br label %20
20: ; preds = %._crit_edge, %2
%21 = load ptr, ptr %6, align 8
ret ptr %21
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpvkeitwf8.c'
source_filename = "/tmp/tmpvkeitwf8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@IFF_UP = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @tap_bring_up(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 ptr, ptr %4, align 8
%6 = load i32, ptr @IFF_UP, align 4
%7 = call i32 @tap_set_flags(ptr noundef %5, i32 noundef %6)
ret i32 %7
}
declare i32 @tap_set_flags(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/tmpvkeitwf8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@IFF_UP = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @tap_bring_up(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 ptr, ptr %4, align 8
%6 = load i32, ptr @IFF_UP, align 4
%7 = call i32 @tap_set_flags(ptr noundef %5, i32 noundef %6)
ret i32 %7
}
declare i32 @tap_set_flags(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/tmp79d7zc58.c'
source_filename = "/tmp/tmp79d7zc58.c"
target datalayout = "e-m:e-p270: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/tmp79d7zc58.c"
target datalayout = "e-m:e-p270: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/tmpb0z1wlp8.c'
source_filename = "/tmp/tmpb0z1wlp8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @partition(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%10 = load ptr, ptr %4, align 8
%11 = load i32, ptr %6, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i32, ptr %10, i64 %12
%14 = load i32, ptr %13, align 4
store i32 %14, ptr %7, align 4
%15 = load i32, ptr %5, align 4
%16 = sub nsw i32 %15, 1
store i32 %16, ptr %8, align 4
%17 = load i32, ptr %5, align 4
store i32 %17, ptr %9, align 4
br label %18
18: ; preds = %37, %3
%19 = load i32, ptr %9, align 4
%20 = load i32, ptr %6, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %40
22: ; preds = %18
%23 = load ptr, ptr %4, align 8
%24 = load i32, ptr %9, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, ptr %23, i64 %25
%27 = load i32, ptr %26, align 4
%28 = load i32, ptr %7, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %30, label %36
30: ; preds = %22
%31 = load ptr, ptr %4, align 8
%32 = load i32, ptr %8, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %8, align 4
%34 = load i32, ptr %9, align 4
%35 = call i32 @swap(ptr noundef %31, i32 noundef %33, i32 noundef %34)
br label %36
36: ; preds = %30, %22
br label %37
37: ; preds = %36
%38 = load i32, ptr %9, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %9, align 4
br label %18, !llvm.loop !6
40: ; preds = %18
%41 = load ptr, ptr %4, align 8
%42 = load i32, ptr %8, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %8, align 4
%44 = load i32, ptr %6, align 4
%45 = call i32 @swap(ptr noundef %41, i32 noundef %43, i32 noundef %44)
%46 = load i32, ptr %8, align 4
ret i32 %46
}
declare i32 @swap(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb0z1wlp8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @partition(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%10 = load ptr, ptr %4, align 8
%11 = load i32, ptr %6, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i32, ptr %10, i64 %12
%14 = load i32, ptr %13, align 4
store i32 %14, ptr %7, align 4
%15 = load i32, ptr %5, align 4
%16 = sub nsw i32 %15, 1
store i32 %16, ptr %8, align 4
%17 = load i32, ptr %5, align 4
store i32 %17, ptr %9, align 4
%18 = load i32, ptr %9, align 4
%19 = load i32, ptr %6, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %.lr.ph, label %42
.lr.ph: ; preds = %3
br label %21
21: ; preds = %.lr.ph, %36
%22 = load ptr, ptr %4, align 8
%23 = load i32, ptr %9, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i32, ptr %22, i64 %24
%26 = load i32, ptr %25, align 4
%27 = load i32, ptr %7, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %29, label %35
29: ; preds = %21
%30 = load ptr, ptr %4, align 8
%31 = load i32, ptr %8, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %8, align 4
%33 = load i32, ptr %9, align 4
%34 = call i32 @swap(ptr noundef %30, i32 noundef %32, i32 noundef %33)
br label %35
35: ; preds = %29, %21
br label %36
36: ; preds = %35
%37 = load i32, ptr %9, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %9, align 4
%39 = load i32, ptr %9, align 4
%40 = load i32, ptr %6, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %36
br label %42
42: ; preds = %._crit_edge, %3
%43 = load ptr, ptr %4, align 8
%44 = load i32, ptr %8, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %8, align 4
%46 = load i32, ptr %6, align 4
%47 = call i32 @swap(ptr noundef %43, i32 noundef %45, i32 noundef %46)
%48 = load i32, ptr %8, align 4
ret i32 %48
}
declare i32 @swap(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpf5tjgkdb.c'
source_filename = "/tmp/tmpf5tjgkdb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bsearch(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i64 %2, ptr %9, align 8
store i64 %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
br label %15
15: ; preds = %66, %5
%16 = load i64, ptr %9, align 8
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %15
store ptr null, ptr %6, align 8
br label %67
19: ; preds = %15
%20 = load i64, ptr %9, align 8
%21 = icmp eq i64 %20, 1
br i1 %21, label %22, label %31
22: ; preds = %19
%23 = load ptr, ptr %11, align 8
%24 = load ptr, ptr %7, align 8
%25 = load ptr, ptr %8, align 8
%26 = call i32 %23(ptr noundef %24, ptr noundef %25)
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %22
%29 = load ptr, ptr %8, align 8
store ptr %29, ptr %6, align 8
br label %67
30: ; preds = %22
store ptr null, ptr %6, align 8
br label %67
31: ; preds = %19
br label %32
32: ; preds = %31
%33 = load i64, ptr %9, align 8
%34 = lshr i64 %33, 1
%35 = trunc i64 %34 to i32
store i32 %35, ptr %12, align 4
%36 = load ptr, ptr %8, align 8
%37 = load i32, ptr %12, align 4
%38 = sext i32 %37 to i64
%39 = load i64, ptr %10, align 8
%40 = mul i64 %38, %39
%41 = getelementptr inbounds i8, ptr %36, i64 %40
store ptr %41, ptr %14, align 8
%42 = load ptr, ptr %11, align 8
%43 = load ptr, ptr %7, align 8
%44 = load ptr, ptr %14, align 8
%45 = call i32 %42(ptr noundef %43, ptr noundef %44)
store i32 %45, ptr %13, align 4
%46 = load i32, ptr %13, align 4
%47 = icmp eq i32 %46, 0
br i1 %47, label %48, label %50
48: ; preds = %32
%49 = load ptr, ptr %14, align 8
store ptr %49, ptr %6, align 8
br label %67
50: ; preds = %32
%51 = load i32, ptr %13, align 4
%52 = icmp slt i32 %51, 0
br i1 %52, label %53, label %56
53: ; preds = %50
%54 = load i32, ptr %12, align 4
%55 = sext i32 %54 to i64
store i64 %55, ptr %9, align 8
br label %65
56: ; preds = %50
%57 = load ptr, ptr %14, align 8
%58 = load i64, ptr %10, align 8
%59 = getelementptr inbounds i8, ptr %57, i64 %58
store ptr %59, ptr %8, align 8
%60 = load i64, ptr %9, align 8
%61 = load i32, ptr %12, align 4
%62 = sext i32 %61 to i64
%63 = sub i64 %60, %62
%64 = sub i64 %63, 1
store i64 %64, ptr %9, align 8
br label %65
65: ; preds = %56, %53
br label %66
66: ; preds = %65
br label %15
67: ; preds = %48, %30, %28, %18
%68 = load ptr, ptr %6, align 8
ret ptr %68
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf5tjgkdb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bsearch(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i64 %2, ptr %9, align 8
store i64 %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
%15 = load i64, ptr %9, align 8
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %.lr.ph
.lr.ph: ; preds = %5
br label %18
._crit_edge: ; preds = %65
br label %17
17: ; preds = %._crit_edge, %5
store ptr null, ptr %6, align 8
br label %68
18: ; preds = %.lr.ph, %65
%19 = load i64, ptr %9, align 8
%20 = icmp eq i64 %19, 1
br i1 %20, label %21, label %30
21: ; preds = %18
%22 = load ptr, ptr %11, align 8
%23 = load ptr, ptr %7, align 8
%24 = load ptr, ptr %8, align 8
%25 = call i32 %22(ptr noundef %23, ptr noundef %24)
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %29
27: ; preds = %21
%28 = load ptr, ptr %8, align 8
store ptr %28, ptr %6, align 8
br label %68
29: ; preds = %21
store ptr null, ptr %6, align 8
br label %68
30: ; preds = %18
br label %31
31: ; preds = %30
%32 = load i64, ptr %9, align 8
%33 = lshr i64 %32, 1
%34 = trunc i64 %33 to i32
store i32 %34, ptr %12, align 4
%35 = load ptr, ptr %8, align 8
%36 = load i32, ptr %12, align 4
%37 = sext i32 %36 to i64
%38 = load i64, ptr %10, align 8
%39 = mul i64 %37, %38
%40 = getelementptr inbounds i8, ptr %35, i64 %39
store ptr %40, ptr %14, align 8
%41 = load ptr, ptr %11, align 8
%42 = load ptr, ptr %7, align 8
%43 = load ptr, ptr %14, align 8
%44 = call i32 %41(ptr noundef %42, ptr noundef %43)
store i32 %44, ptr %13, align 4
%45 = load i32, ptr %13, align 4
%46 = icmp eq i32 %45, 0
br i1 %46, label %47, label %49
47: ; preds = %31
%48 = load ptr, ptr %14, align 8
store ptr %48, ptr %6, align 8
br label %68
49: ; preds = %31
%50 = load i32, ptr %13, align 4
%51 = icmp slt i32 %50, 0
br i1 %51, label %52, label %55
52: ; preds = %49
%53 = load i32, ptr %12, align 4
%54 = sext i32 %53 to i64
store i64 %54, ptr %9, align 8
br label %64
55: ; preds = %49
%56 = load ptr, ptr %14, align 8
%57 = load i64, ptr %10, align 8
%58 = getelementptr inbounds i8, ptr %56, i64 %57
store ptr %58, ptr %8, align 8
%59 = load i64, ptr %9, align 8
%60 = load i32, ptr %12, align 4
%61 = sext i32 %60 to i64
%62 = sub i64 %59, %61
%63 = sub i64 %62, 1
store i64 %63, ptr %9, align 8
br label %64
64: ; preds = %55, %52
br label %65
65: ; preds = %64
%66 = load i64, ptr %9, align 8
%67 = icmp eq i64 %66, 0
br i1 %67, label %._crit_edge, label %18
68: ; preds = %47, %29, %27, %17
%69 = load ptr, ptr %6, align 8
ret ptr %69
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpaxc9h78x.c'
source_filename = "/tmp/tmpaxc9h78x.c"
target datalayout = "e-m:e-p270: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_FILENO = dso_local global i32 0, align 4
@STDIN_FILENO = dso_local global i32 0, align 4
@STDOUT_FILENO = 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/tmpaxc9h78x.c"
target datalayout = "e-m:e-p270: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_FILENO = dso_local global i32 0, align 4
@STDIN_FILENO = dso_local global i32 0, align 4
@STDOUT_FILENO = 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/tmpcxi60kl7.c'
source_filename = "/tmp/tmpcxi60kl7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"abc\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @NativeVoidToString3() #0 {
%1 = alloca ptr, align 8
%2 = call ptr @malloc(i32 noundef 4)
store ptr %2, ptr %1, align 8
%3 = load ptr, ptr %1, align 8
%4 = call i32 @strcpy(ptr noundef %3, ptr noundef @.str)
%5 = load ptr, ptr %1, align 8
ret ptr %5
}
declare ptr @malloc(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcxi60kl7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"abc\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @NativeVoidToString3() #0 {
%1 = alloca ptr, align 8
%2 = call ptr @malloc(i32 noundef 4)
store ptr %2, ptr %1, align 8
%3 = load ptr, ptr %1, align 8
%4 = call i32 @strcpy(ptr noundef %3, ptr noundef @.str)
%5 = load ptr, ptr %1, align 8
ret ptr %5
}
declare ptr @malloc(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"}
|
; ModuleID = '/tmp/tmped97aw12.c'
source_filename = "/tmp/tmped97aw12.c"
target datalayout = "e-m:e-p270: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/tmped97aw12.c"
target datalayout = "e-m:e-p270: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/tmpk18efalr.c'
source_filename = "/tmp/tmpk18efalr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [72 x i8] c"Digite 1 para realizar nova busca\0ADigite 0 para encerrar o programa\0A::>\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%i\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Fluxo Maximo: %d\0A \00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"Digite algo para continuar...\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 -1, ptr %2, align 4
store i32 -1, ptr %3, align 4
br label %4
4: ; preds = %0, %21
%5 = call i32 (...) @limpa()
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%8 = load i32, ptr %2, align 4
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %16
10: ; preds = %4
%11 = call i32 (...) @ResultadoFordFulkerson()
store i32 %11, ptr %3, align 4
%12 = load i32, ptr %3, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %12)
%14 = call i32 @puts(ptr noundef @.str.3)
%15 = call i32 (...) @getchar()
br label %21
16: ; preds = %4
%17 = load i32, ptr %2, align 4
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %16
ret i32 0
20: ; preds = %16
br label %21
21: ; preds = %20, %10
br label %4
}
declare i32 @limpa(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @ResultadoFordFulkerson(...) #1
declare i32 @puts(ptr noundef) #1
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk18efalr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [72 x i8] c"Digite 1 para realizar nova busca\0ADigite 0 para encerrar o programa\0A::>\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%i\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Fluxo Maximo: %d\0A \00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"Digite algo para continuar...\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 -1, ptr %2, align 4
store i32 -1, ptr %3, align 4
br label %4
4: ; preds = %21, %0
%5 = call i32 (...) @limpa()
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%8 = load i32, ptr %2, align 4
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %16
10: ; preds = %4
%11 = call i32 (...) @ResultadoFordFulkerson()
store i32 %11, ptr %3, align 4
%12 = load i32, ptr %3, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %12)
%14 = call i32 @puts(ptr noundef @.str.3)
%15 = call i32 (...) @getchar()
br label %21
16: ; preds = %4
%17 = load i32, ptr %2, align 4
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %16
ret i32 0
20: ; preds = %16
br label %21
21: ; preds = %20, %10
br label %4
}
declare i32 @limpa(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @ResultadoFordFulkerson(...) #1
declare i32 @puts(ptr noundef) #1
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppto76cvc.c'
source_filename = "/tmp/tmppto76cvc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [47 x i8] c"Fib Error: Input %d, Expected %d, Received %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"Fib Tests Passed\0A\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"Fib Test: %d errors\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fib_test() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %1, align 4
br label %3
3: ; preds = %22, %0
%4 = load i32, ptr %1, align 4
%5 = icmp sle i32 %4, 46
br i1 %5, label %6, label %25
6: ; preds = %3
%7 = load i32, ptr %1, align 4
%8 = call i32 @fib(i32 noundef %7)
%9 = load i32, ptr %1, align 4
%10 = call i32 @fib_c(i32 noundef %9)
%11 = icmp ne i32 %8, %10
br i1 %11, label %12, label %21
12: ; preds = %6
%13 = load i32, ptr %1, align 4
%14 = load i32, ptr %1, align 4
%15 = call i32 @fib_c(i32 noundef %14)
%16 = load i32, ptr %1, align 4
%17 = call i32 @fib(i32 noundef %16)
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %13, i32 noundef %15, i32 noundef %17)
%19 = load i32, ptr %2, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %2, align 4
br label %21
21: ; preds = %12, %6
br label %22
22: ; preds = %21
%23 = load i32, ptr %1, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %1, align 4
br label %3, !llvm.loop !6
25: ; preds = %3
%26 = load i32, ptr %2, align 4
%27 = icmp ne i32 %26, 0
br i1 %27, label %30, label %28
28: ; preds = %25
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %33
30: ; preds = %25
%31 = load i32, ptr %2, align 4
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %31)
br label %33
33: ; preds = %30, %28
ret void
}
declare i32 @fib(i32 noundef) #1
declare i32 @fib_c(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppto76cvc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [47 x i8] c"Fib Error: Input %d, Expected %d, Received %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"Fib Tests Passed\0A\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"Fib Test: %d errors\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fib_test() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %1, align 4
%3 = load i32, ptr %1, align 4
%4 = icmp sle i32 %3, 46
br i1 %4, label %.lr.ph, label %26
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %21
%6 = load i32, ptr %1, align 4
%7 = call i32 @fib(i32 noundef %6)
%8 = load i32, ptr %1, align 4
%9 = call i32 @fib_c(i32 noundef %8)
%10 = icmp ne i32 %7, %9
br i1 %10, label %11, label %20
11: ; preds = %5
%12 = load i32, ptr %1, align 4
%13 = load i32, ptr %1, align 4
%14 = call i32 @fib_c(i32 noundef %13)
%15 = load i32, ptr %1, align 4
%16 = call i32 @fib(i32 noundef %15)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %12, i32 noundef %14, i32 noundef %16)
%18 = load i32, ptr %2, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %2, align 4
br label %20
20: ; preds = %11, %5
br label %21
21: ; preds = %20
%22 = load i32, ptr %1, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %1, align 4
%24 = load i32, ptr %1, align 4
%25 = icmp sle i32 %24, 46
br i1 %25, label %5, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %26
26: ; preds = %._crit_edge, %0
%27 = load i32, ptr %2, align 4
%28 = icmp ne i32 %27, 0
br i1 %28, label %31, label %29
29: ; preds = %26
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %34
31: ; preds = %26
%32 = load i32, ptr %2, align 4
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %32)
br label %34
34: ; preds = %31, %29
ret void
}
declare i32 @fib(i32 noundef) #1
declare i32 @fib_c(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp3gwcsda3.c'
source_filename = "/tmp/tmp3gwcsda3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_can = type { i64, i32 }
%struct.canfd_frame = type { i32 }
%struct.ifreq = type { ptr, i32, i64 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [33 x i8] c"Usage: %s <device> <can_frame>.\0A\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"\0AWrong CAN-frame format! Try:\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [51 x i8] c" <can_id>#{R|data} for CAN 2.0 frames\0A\00", align 1
@.str.3 = private unnamed_addr constant [51 x i8] c" <can_id>##<flags>{data} for CAN FD frames\0A\0A\00", align 1
@.str.4 = private unnamed_addr constant [48 x i8] c"<can_id> can have 3 (SFF) or 8 (EFF) hex chars\0A\00", align 1
@.str.5 = private unnamed_addr constant [60 x i8] c"{data} has 0..8 (0..64 CAN FD) ASCII hex-values (optionally\00", align 1
@.str.6 = private unnamed_addr constant [20 x i8] c" separated by '.')\0A\00", align 1
@.str.7 = private unnamed_addr constant [56 x i8] c"<flags> a single ASCII Hex value (0 .. F) which defines\00", align 1
@.str.8 = private unnamed_addr constant [21 x i8] c" canfd_frame.flags\0A\0A\00", align 1
@.str.9 = private unnamed_addr constant [54 x i8] c"e.g. 5A1#11.2233.44556677.88 / 123#DEADBEEF / 5AA# / \00", align 1
@.str.10 = private unnamed_addr constant [58 x i8] c"123##1 / 213##311\0A 1F334455#1122334455667788 / 123#R \00", align 1
@.str.11 = private unnamed_addr constant [35 x i8] c"for remote transmission request.\0A\0A\00", align 1
@PF_CAN = dso_local global i32 0, align 4
@SOCK_RAW = dso_local global i32 0, align 4
@CAN_RAW = dso_local global i32 0, align 4
@.str.12 = private unnamed_addr constant [7 x i8] c"socket\00", align 1
@IFNAMSIZ = dso_local global i32 0, align 4
@.str.13 = private unnamed_addr constant [15 x i8] c"if_nametoindex\00", align 1
@AF_CAN = dso_local global i32 0, align 4
@CAN_MTU = dso_local global i32 0, align 4
@SIOCGIFMTU = dso_local global i32 0, align 4
@.str.14 = private unnamed_addr constant [11 x i8] c"SIOCGIFMTU\00", align 1
@CANFD_MTU = dso_local global i32 0, align 4
@.str.15 = private unnamed_addr constant [47 x i8] c"CAN interface ist not CAN FD capable - sorry.\0A\00", align 1
@SOL_CAN_RAW = dso_local global i32 0, align 4
@CAN_RAW_FD_FRAMES = dso_local global i32 0, align 4
@.str.16 = private unnamed_addr constant [36 x i8] c"error when enabling CAN FD support\0A\00", align 1
@CAN_RAW_FILTER = dso_local global i32 0, align 4
@.str.17 = private unnamed_addr constant [5 x i8] c"bind\00", align 1
@.str.18 = private unnamed_addr constant [6 x i8] c"write\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 %struct.sockaddr_can, align 8
%11 = alloca %struct.canfd_frame, align 4
%12 = alloca %struct.ifreq, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %9, align 4
%13 = load i32, ptr %4, align 4
%14 = icmp ne i32 %13, 3
br i1 %14, label %15, label %21
15: ; preds = %2
%16 = load i32, ptr @stderr, align 4
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 0
%19 = load ptr, ptr %18, align 8
%20 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %16, ptr noundef @.str, ptr noundef %19)
store i32 1, ptr %3, align 4
br label %142
21: ; preds = %2
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 2
%24 = load ptr, ptr %23, align 8
%25 = call i32 @parse_canframe(ptr noundef %24, ptr noundef %11)
store i32 %25, ptr %7, align 4
%26 = load i32, ptr %7, align 4
%27 = icmp ne i32 %26, 0
br i1 %27, label %51, label %28
28: ; preds = %21
%29 = load i32, ptr @stderr, align 4
%30 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %29, ptr noundef @.str.1)
%31 = load i32, ptr @stderr, align 4
%32 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %31, ptr noundef @.str.2)
%33 = load i32, ptr @stderr, align 4
%34 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %33, ptr noundef @.str.3)
%35 = load i32, ptr @stderr, align 4
%36 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %35, ptr noundef @.str.4)
%37 = load i32, ptr @stderr, align 4
%38 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %37, ptr noundef @.str.5)
%39 = load i32, ptr @stderr, align 4
%40 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %39, ptr noundef @.str.6)
%41 = load i32, ptr @stderr, align 4
%42 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %41, ptr noundef @.str.7)
%43 = load i32, ptr @stderr, align 4
%44 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %43, ptr noundef @.str.8)
%45 = load i32, ptr @stderr, align 4
%46 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %45, ptr noundef @.str.9)
%47 = load i32, ptr @stderr, align 4
%48 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %47, ptr noundef @.str.10)
%49 = load i32, ptr @stderr, align 4
%50 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %49, ptr noundef @.str.11)
store i32 1, ptr %3, align 4
br label %142
51: ; preds = %21
%52 = load i32, ptr @PF_CAN, align 4
%53 = load i32, ptr @SOCK_RAW, align 4
%54 = load i32, ptr @CAN_RAW, align 4
%55 = call i32 @socket(i32 noundef %52, i32 noundef %53, i32 noundef %54)
store i32 %55, ptr %6, align 4
%56 = icmp slt i32 %55, 0
br i1 %56, label %57, label %59
57: ; preds = %51
%58 = call i32 @perror(ptr noundef @.str.12)
store i32 1, ptr %3, align 4
br label %142
59: ; preds = %51
%60 = getelementptr inbounds %struct.ifreq, ptr %12, i32 0, i32 0
%61 = load ptr, ptr %60, align 8
%62 = load ptr, ptr %5, align 8
%63 = getelementptr inbounds ptr, ptr %62, i64 1
%64 = load ptr, ptr %63, align 8
%65 = load i32, ptr @IFNAMSIZ, align 4
%66 = sub nsw i32 %65, 1
%67 = call i32 @strncpy(ptr noundef %61, ptr noundef %64, i32 noundef %66)
%68 = getelementptr inbounds %struct.ifreq, ptr %12, i32 0, i32 0
%69 = load ptr, ptr %68, align 8
%70 = load i32, ptr @IFNAMSIZ, align 4
%71 = sub nsw i32 %70, 1
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i8, ptr %69, i64 %72
store i8 0, ptr %73, align 1
%74 = getelementptr inbounds %struct.ifreq, ptr %12, i32 0, i32 0
%75 = load ptr, ptr %74, align 8
%76 = call i64 @if_nametoindex(ptr noundef %75)
%77 = getelementptr inbounds %struct.ifreq, ptr %12, i32 0, i32 2
store i64 %76, ptr %77, align 8
%78 = getelementptr inbounds %struct.ifreq, ptr %12, i32 0, i32 2
%79 = load i64, ptr %78, align 8
%80 = icmp ne i64 %79, 0
br i1 %80, label %83, label %81
81: ; preds = %59
%82 = call i32 @perror(ptr noundef @.str.13)
store i32 1, ptr %3, align 4
br label %142
83: ; preds = %59
%84 = load i32, ptr @AF_CAN, align 4
%85 = getelementptr inbounds %struct.sockaddr_can, ptr %10, i32 0, i32 1
store i32 %84, ptr %85, align 8
%86 = getelementptr inbounds %struct.ifreq, ptr %12, i32 0, i32 2
%87 = load i64, ptr %86, align 8
%88 = getelementptr inbounds %struct.sockaddr_can, ptr %10, i32 0, i32 0
store i64 %87, ptr %88, align 8
%89 = load i32, ptr %7, align 4
%90 = load i32, ptr @CAN_MTU, align 4
%91 = icmp sgt i32 %89, %90
br i1 %91, label %92, label %121
92: ; preds = %83
%93 = load i32, ptr %6, align 4
%94 = load i32, ptr @SIOCGIFMTU, align 4
%95 = call i64 @ioctl(i32 noundef %93, i32 noundef %94, ptr noundef %12)
%96 = icmp slt i64 %95, 0
br i1 %96, label %97, label %99
97: ; preds = %92
%98 = call i32 @perror(ptr noundef @.str.14)
store i32 1, ptr %3, align 4
br label %142
99: ; preds = %92
%100 = getelementptr inbounds %struct.ifreq, ptr %12, i32 0, i32 1
%101 = load i32, ptr %100, align 8
store i32 %101, ptr %8, align 4
%102 = load i32, ptr %8, align 4
%103 = load i32, ptr @CANFD_MTU, align 4
%104 = icmp ne i32 %102, %103
br i1 %104, label %105, label %107
105: ; preds = %99
%106 = call i32 @printf(ptr noundef @.str.15)
store i32 1, ptr %3, align 4
br label %142
107: ; preds = %99
%108 = load i32, ptr %6, align 4
%109 = load i32, ptr @SOL_CAN_RAW, align 4
%110 = load i32, ptr @CAN_RAW_FD_FRAMES, align 4
%111 = call i64 @setsockopt(i32 noundef %108, i32 noundef %109, i32 noundef %110, ptr noundef %9, i32 noundef 4)
%112 = icmp ne i64 %111, 0
br i1 %112, label %113, label %115
113: ; preds = %107
%114 = call i32 @printf(ptr noundef @.str.16)
store i32 1, ptr %3, align 4
br label %142
115: ; preds = %107
%116 = getelementptr inbounds %struct.canfd_frame, ptr %11, i32 0, i32 0
%117 = load i32, ptr %116, align 4
%118 = call i32 @can_len2dlc(i32 noundef %117)
%119 = call i32 @can_dlc2len(i32 noundef %118)
%120 = getelementptr inbounds %struct.canfd_frame, ptr %11, i32 0, i32 0
store i32 %119, ptr %120, align 4
br label %121
121: ; preds = %115, %83
%122 = load i32, ptr %6, align 4
%123 = load i32, ptr @SOL_CAN_RAW, align 4
%124 = load i32, ptr @CAN_RAW_FILTER, align 4
%125 = call i64 @setsockopt(i32 noundef %122, i32 noundef %123, i32 noundef %124, ptr noundef null, i32 noundef 0)
%126 = load i32, ptr %6, align 4
%127 = call i64 @bind(i32 noundef %126, ptr noundef %10, i32 noundef 16)
%128 = icmp slt i64 %127, 0
br i1 %128, label %129, label %131
129: ; preds = %121
%130 = call i32 @perror(ptr noundef @.str.17)
store i32 1, ptr %3, align 4
br label %142
131: ; preds = %121
%132 = load i32, ptr %6, align 4
%133 = load i32, ptr %7, align 4
%134 = call i32 @write(i32 noundef %132, ptr noundef %11, i32 noundef %133)
%135 = load i32, ptr %7, align 4
%136 = icmp ne i32 %134, %135
br i1 %136, label %137, label %139
137: ; preds = %131
%138 = call i32 @perror(ptr noundef @.str.18)
store i32 1, ptr %3, align 4
br label %142
139: ; preds = %131
%140 = load i32, ptr %6, align 4
%141 = call i32 @close(i32 noundef %140)
store i32 0, ptr %3, align 4
br label %142
142: ; preds = %139, %137, %129, %113, %105, %97, %81, %57, %28, %15
%143 = load i32, ptr %3, align 4
ret i32 %143
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @parse_canframe(ptr noundef, ptr noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @if_nametoindex(ptr noundef) #1
declare i64 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i64 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @can_dlc2len(i32 noundef) #1
declare i32 @can_len2dlc(i32 noundef) #1
declare i64 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3gwcsda3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_can = type { i64, i32 }
%struct.canfd_frame = type { i32 }
%struct.ifreq = type { ptr, i32, i64 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [33 x i8] c"Usage: %s <device> <can_frame>.\0A\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"\0AWrong CAN-frame format! Try:\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [51 x i8] c" <can_id>#{R|data} for CAN 2.0 frames\0A\00", align 1
@.str.3 = private unnamed_addr constant [51 x i8] c" <can_id>##<flags>{data} for CAN FD frames\0A\0A\00", align 1
@.str.4 = private unnamed_addr constant [48 x i8] c"<can_id> can have 3 (SFF) or 8 (EFF) hex chars\0A\00", align 1
@.str.5 = private unnamed_addr constant [60 x i8] c"{data} has 0..8 (0..64 CAN FD) ASCII hex-values (optionally\00", align 1
@.str.6 = private unnamed_addr constant [20 x i8] c" separated by '.')\0A\00", align 1
@.str.7 = private unnamed_addr constant [56 x i8] c"<flags> a single ASCII Hex value (0 .. F) which defines\00", align 1
@.str.8 = private unnamed_addr constant [21 x i8] c" canfd_frame.flags\0A\0A\00", align 1
@.str.9 = private unnamed_addr constant [54 x i8] c"e.g. 5A1#11.2233.44556677.88 / 123#DEADBEEF / 5AA# / \00", align 1
@.str.10 = private unnamed_addr constant [58 x i8] c"123##1 / 213##311\0A 1F334455#1122334455667788 / 123#R \00", align 1
@.str.11 = private unnamed_addr constant [35 x i8] c"for remote transmission request.\0A\0A\00", align 1
@PF_CAN = dso_local global i32 0, align 4
@SOCK_RAW = dso_local global i32 0, align 4
@CAN_RAW = dso_local global i32 0, align 4
@.str.12 = private unnamed_addr constant [7 x i8] c"socket\00", align 1
@IFNAMSIZ = dso_local global i32 0, align 4
@.str.13 = private unnamed_addr constant [15 x i8] c"if_nametoindex\00", align 1
@AF_CAN = dso_local global i32 0, align 4
@CAN_MTU = dso_local global i32 0, align 4
@SIOCGIFMTU = dso_local global i32 0, align 4
@.str.14 = private unnamed_addr constant [11 x i8] c"SIOCGIFMTU\00", align 1
@CANFD_MTU = dso_local global i32 0, align 4
@.str.15 = private unnamed_addr constant [47 x i8] c"CAN interface ist not CAN FD capable - sorry.\0A\00", align 1
@SOL_CAN_RAW = dso_local global i32 0, align 4
@CAN_RAW_FD_FRAMES = dso_local global i32 0, align 4
@.str.16 = private unnamed_addr constant [36 x i8] c"error when enabling CAN FD support\0A\00", align 1
@CAN_RAW_FILTER = dso_local global i32 0, align 4
@.str.17 = private unnamed_addr constant [5 x i8] c"bind\00", align 1
@.str.18 = private unnamed_addr constant [6 x i8] c"write\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 %struct.sockaddr_can, align 8
%11 = alloca %struct.canfd_frame, align 4
%12 = alloca %struct.ifreq, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %9, align 4
%13 = load i32, ptr %4, align 4
%14 = icmp ne i32 %13, 3
br i1 %14, label %15, label %21
15: ; preds = %2
%16 = load i32, ptr @stderr, align 4
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 0
%19 = load ptr, ptr %18, align 8
%20 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %16, ptr noundef @.str, ptr noundef %19)
store i32 1, ptr %3, align 4
br label %142
21: ; preds = %2
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 2
%24 = load ptr, ptr %23, align 8
%25 = call i32 @parse_canframe(ptr noundef %24, ptr noundef %11)
store i32 %25, ptr %7, align 4
%26 = load i32, ptr %7, align 4
%27 = icmp ne i32 %26, 0
br i1 %27, label %51, label %28
28: ; preds = %21
%29 = load i32, ptr @stderr, align 4
%30 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %29, ptr noundef @.str.1)
%31 = load i32, ptr @stderr, align 4
%32 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %31, ptr noundef @.str.2)
%33 = load i32, ptr @stderr, align 4
%34 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %33, ptr noundef @.str.3)
%35 = load i32, ptr @stderr, align 4
%36 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %35, ptr noundef @.str.4)
%37 = load i32, ptr @stderr, align 4
%38 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %37, ptr noundef @.str.5)
%39 = load i32, ptr @stderr, align 4
%40 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %39, ptr noundef @.str.6)
%41 = load i32, ptr @stderr, align 4
%42 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %41, ptr noundef @.str.7)
%43 = load i32, ptr @stderr, align 4
%44 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %43, ptr noundef @.str.8)
%45 = load i32, ptr @stderr, align 4
%46 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %45, ptr noundef @.str.9)
%47 = load i32, ptr @stderr, align 4
%48 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %47, ptr noundef @.str.10)
%49 = load i32, ptr @stderr, align 4
%50 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %49, ptr noundef @.str.11)
store i32 1, ptr %3, align 4
br label %142
51: ; preds = %21
%52 = load i32, ptr @PF_CAN, align 4
%53 = load i32, ptr @SOCK_RAW, align 4
%54 = load i32, ptr @CAN_RAW, align 4
%55 = call i32 @socket(i32 noundef %52, i32 noundef %53, i32 noundef %54)
store i32 %55, ptr %6, align 4
%56 = icmp slt i32 %55, 0
br i1 %56, label %57, label %59
57: ; preds = %51
%58 = call i32 @perror(ptr noundef @.str.12)
store i32 1, ptr %3, align 4
br label %142
59: ; preds = %51
%60 = getelementptr inbounds %struct.ifreq, ptr %12, i32 0, i32 0
%61 = load ptr, ptr %60, align 8
%62 = load ptr, ptr %5, align 8
%63 = getelementptr inbounds ptr, ptr %62, i64 1
%64 = load ptr, ptr %63, align 8
%65 = load i32, ptr @IFNAMSIZ, align 4
%66 = sub nsw i32 %65, 1
%67 = call i32 @strncpy(ptr noundef %61, ptr noundef %64, i32 noundef %66)
%68 = getelementptr inbounds %struct.ifreq, ptr %12, i32 0, i32 0
%69 = load ptr, ptr %68, align 8
%70 = load i32, ptr @IFNAMSIZ, align 4
%71 = sub nsw i32 %70, 1
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i8, ptr %69, i64 %72
store i8 0, ptr %73, align 1
%74 = getelementptr inbounds %struct.ifreq, ptr %12, i32 0, i32 0
%75 = load ptr, ptr %74, align 8
%76 = call i64 @if_nametoindex(ptr noundef %75)
%77 = getelementptr inbounds %struct.ifreq, ptr %12, i32 0, i32 2
store i64 %76, ptr %77, align 8
%78 = getelementptr inbounds %struct.ifreq, ptr %12, i32 0, i32 2
%79 = load i64, ptr %78, align 8
%80 = icmp ne i64 %79, 0
br i1 %80, label %83, label %81
81: ; preds = %59
%82 = call i32 @perror(ptr noundef @.str.13)
store i32 1, ptr %3, align 4
br label %142
83: ; preds = %59
%84 = load i32, ptr @AF_CAN, align 4
%85 = getelementptr inbounds %struct.sockaddr_can, ptr %10, i32 0, i32 1
store i32 %84, ptr %85, align 8
%86 = getelementptr inbounds %struct.ifreq, ptr %12, i32 0, i32 2
%87 = load i64, ptr %86, align 8
%88 = getelementptr inbounds %struct.sockaddr_can, ptr %10, i32 0, i32 0
store i64 %87, ptr %88, align 8
%89 = load i32, ptr %7, align 4
%90 = load i32, ptr @CAN_MTU, align 4
%91 = icmp sgt i32 %89, %90
br i1 %91, label %92, label %121
92: ; preds = %83
%93 = load i32, ptr %6, align 4
%94 = load i32, ptr @SIOCGIFMTU, align 4
%95 = call i64 @ioctl(i32 noundef %93, i32 noundef %94, ptr noundef %12)
%96 = icmp slt i64 %95, 0
br i1 %96, label %97, label %99
97: ; preds = %92
%98 = call i32 @perror(ptr noundef @.str.14)
store i32 1, ptr %3, align 4
br label %142
99: ; preds = %92
%100 = getelementptr inbounds %struct.ifreq, ptr %12, i32 0, i32 1
%101 = load i32, ptr %100, align 8
store i32 %101, ptr %8, align 4
%102 = load i32, ptr %8, align 4
%103 = load i32, ptr @CANFD_MTU, align 4
%104 = icmp ne i32 %102, %103
br i1 %104, label %105, label %107
105: ; preds = %99
%106 = call i32 @printf(ptr noundef @.str.15)
store i32 1, ptr %3, align 4
br label %142
107: ; preds = %99
%108 = load i32, ptr %6, align 4
%109 = load i32, ptr @SOL_CAN_RAW, align 4
%110 = load i32, ptr @CAN_RAW_FD_FRAMES, align 4
%111 = call i64 @setsockopt(i32 noundef %108, i32 noundef %109, i32 noundef %110, ptr noundef %9, i32 noundef 4)
%112 = icmp ne i64 %111, 0
br i1 %112, label %113, label %115
113: ; preds = %107
%114 = call i32 @printf(ptr noundef @.str.16)
store i32 1, ptr %3, align 4
br label %142
115: ; preds = %107
%116 = getelementptr inbounds %struct.canfd_frame, ptr %11, i32 0, i32 0
%117 = load i32, ptr %116, align 4
%118 = call i32 @can_len2dlc(i32 noundef %117)
%119 = call i32 @can_dlc2len(i32 noundef %118)
%120 = getelementptr inbounds %struct.canfd_frame, ptr %11, i32 0, i32 0
store i32 %119, ptr %120, align 4
br label %121
121: ; preds = %115, %83
%122 = load i32, ptr %6, align 4
%123 = load i32, ptr @SOL_CAN_RAW, align 4
%124 = load i32, ptr @CAN_RAW_FILTER, align 4
%125 = call i64 @setsockopt(i32 noundef %122, i32 noundef %123, i32 noundef %124, ptr noundef null, i32 noundef 0)
%126 = load i32, ptr %6, align 4
%127 = call i64 @bind(i32 noundef %126, ptr noundef %10, i32 noundef 16)
%128 = icmp slt i64 %127, 0
br i1 %128, label %129, label %131
129: ; preds = %121
%130 = call i32 @perror(ptr noundef @.str.17)
store i32 1, ptr %3, align 4
br label %142
131: ; preds = %121
%132 = load i32, ptr %6, align 4
%133 = load i32, ptr %7, align 4
%134 = call i32 @write(i32 noundef %132, ptr noundef %11, i32 noundef %133)
%135 = load i32, ptr %7, align 4
%136 = icmp ne i32 %134, %135
br i1 %136, label %137, label %139
137: ; preds = %131
%138 = call i32 @perror(ptr noundef @.str.18)
store i32 1, ptr %3, align 4
br label %142
139: ; preds = %131
%140 = load i32, ptr %6, align 4
%141 = call i32 @close(i32 noundef %140)
store i32 0, ptr %3, align 4
br label %142
142: ; preds = %139, %137, %129, %113, %105, %97, %81, %57, %28, %15
%143 = load i32, ptr %3, align 4
ret i32 %143
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @parse_canframe(ptr noundef, ptr noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @if_nametoindex(ptr noundef) #1
declare i64 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i64 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @can_dlc2len(i32 noundef) #1
declare i32 @can_len2dlc(i32 noundef) #1
declare i64 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfq9o4v3k.c'
source_filename = "/tmp/tmpfq9o4v3k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [56 x i8] c"DD = %u , min = %u > .dd = %u , frac = %u > ..ddd = %u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @GPS_coord_to_degrees(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
%9 = load ptr, ptr %2, align 8
store ptr %9, ptr %3, align 8
br label %10
10: ; preds = %16, %1
%11 = load ptr, ptr %3, align 8
%12 = load i8, ptr %11, align 1
%13 = call i64 @isdigit(i8 noundef signext %12)
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %19
15: ; preds = %10
br label %16
16: ; preds = %15
%17 = load ptr, ptr %3, align 8
%18 = getelementptr inbounds i8, ptr %17, i32 1
store ptr %18, ptr %3, align 8
br label %10, !llvm.loop !6
19: ; preds = %10
%20 = load ptr, ptr %2, align 8
store ptr %20, ptr %4, align 8
br label %21
21: ; preds = %34, %19
%22 = load ptr, ptr %3, align 8
%23 = load ptr, ptr %4, align 8
%24 = ptrtoint ptr %22 to i64
%25 = ptrtoint ptr %23 to i64
%26 = sub i64 %24, %25
%27 = icmp sgt i64 %26, 2
br i1 %27, label %28, label %42
28: ; preds = %21
%29 = load i32, ptr %5, align 4
%30 = icmp ne i32 %29, 0
br i1 %30, label %31, label %34
31: ; preds = %28
%32 = load i32, ptr %5, align 4
%33 = mul nsw i32 %32, 10
store i32 %33, ptr %5, align 4
br label %34
34: ; preds = %31, %28
%35 = load ptr, ptr %4, align 8
%36 = getelementptr inbounds i8, ptr %35, i32 1
store ptr %36, ptr %4, align 8
%37 = load i8, ptr %35, align 1
%38 = sext i8 %37 to i32
%39 = sub nsw i32 %38, 48
%40 = load i32, ptr %5, align 4
%41 = add nsw i32 %40, %39
store i32 %41, ptr %5, align 4
br label %21, !llvm.loop !8
42: ; preds = %21
br label %43
43: ; preds = %53, %42
%44 = load ptr, ptr %3, align 8
%45 = load ptr, ptr %4, align 8
%46 = icmp ugt ptr %44, %45
br i1 %46, label %47, label %61
47: ; preds = %43
%48 = load i32, ptr %6, align 4
%49 = icmp ne i32 %48, 0
br i1 %49, label %50, label %53
50: ; preds = %47
%51 = load i32, ptr %6, align 4
%52 = mul nsw i32 %51, 10
store i32 %52, ptr %6, align 4
br label %53
53: ; preds = %50, %47
%54 = load ptr, ptr %4, align 8
%55 = getelementptr inbounds i8, ptr %54, i32 1
store ptr %55, ptr %4, align 8
%56 = load i8, ptr %54, align 1
%57 = sext i8 %56 to i32
%58 = sub nsw i32 %57, 48
%59 = load i32, ptr %6, align 4
%60 = add nsw i32 %59, %58
store i32 %60, ptr %6, align 4
br label %43, !llvm.loop !9
61: ; preds = %43
%62 = load ptr, ptr %3, align 8
%63 = load i8, ptr %62, align 1
%64 = sext i8 %63 to i32
%65 = icmp eq i32 %64, 46
br i1 %65, label %66, label %92
66: ; preds = %61
%67 = load ptr, ptr %3, align 8
%68 = getelementptr inbounds i8, ptr %67, i64 1
store ptr %68, ptr %4, align 8
store i32 0, ptr %8, align 4
br label %69
69: ; preds = %88, %66
%70 = load i32, ptr %8, align 4
%71 = icmp slt i32 %70, 5
br i1 %71, label %72, label %91
72: ; preds = %69
%73 = load i32, ptr %7, align 4
%74 = mul i32 %73, 10
store i32 %74, ptr %7, align 4
%75 = load ptr, ptr %4, align 8
%76 = load i8, ptr %75, align 1
%77 = call i64 @isdigit(i8 noundef signext %76)
%78 = icmp ne i64 %77, 0
br i1 %78, label %79, label %87
79: ; preds = %72
%80 = load ptr, ptr %4, align 8
%81 = getelementptr inbounds i8, ptr %80, i32 1
store ptr %81, ptr %4, align 8
%82 = load i8, ptr %80, align 1
%83 = sext i8 %82 to i32
%84 = sub nsw i32 %83, 48
%85 = load i32, ptr %7, align 4
%86 = add i32 %85, %84
store i32 %86, ptr %7, align 4
br label %87
87: ; preds = %79, %72
br label %88
88: ; preds = %87
%89 = load i32, ptr %8, align 4
%90 = add nsw i32 %89, 1
store i32 %90, ptr %8, align 4
br label %69, !llvm.loop !10
91: ; preds = %69
br label %92
92: ; preds = %91, %61
%93 = load i32, ptr %5, align 4
%94 = load i32, ptr %6, align 4
%95 = load i32, ptr %6, align 4
%96 = mul nsw i32 %95, 100
%97 = sdiv i32 %96, 60
%98 = load i32, ptr %7, align 4
%99 = load i32, ptr %7, align 4
%100 = mul i32 %99, 100
%101 = udiv i32 %100, 60
%102 = call i32 @printf(ptr noundef @.str, i32 noundef %93, i32 noundef %94, i32 noundef %97, i32 noundef %98, i32 noundef %101)
%103 = load i32, ptr %5, align 4
%104 = sext i32 %103 to i64
%105 = mul i64 %104, 10000000
%106 = load i32, ptr %6, align 4
%107 = sext i32 %106 to i64
%108 = mul i64 %107, 10000000
%109 = load i32, ptr %7, align 4
%110 = zext i32 %109 to i64
%111 = mul i64 %110, 100
%112 = add i64 %108, %111
%113 = udiv i64 %112, 60
%114 = add i64 %105, %113
%115 = trunc i64 %114 to i32
ret i32 %115
}
declare i64 @isdigit(i8 noundef signext) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!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/tmpfq9o4v3k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [56 x i8] c"DD = %u , min = %u > .dd = %u , frac = %u > ..ddd = %u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @GPS_coord_to_degrees(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
%9 = load ptr, ptr %2, align 8
store ptr %9, ptr %3, align 8
%10 = load ptr, ptr %3, align 8
%11 = load i8, ptr %10, align 1
%12 = call i64 @isdigit(i8 noundef signext %11)
%13 = icmp ne i64 %12, 0
br i1 %13, label %.lr.ph, label %22
.lr.ph: ; preds = %1
br label %14
14: ; preds = %.lr.ph, %15
br label %15
15: ; preds = %14
%16 = load ptr, ptr %3, align 8
%17 = getelementptr inbounds i8, ptr %16, i32 1
store ptr %17, ptr %3, align 8
%18 = load ptr, ptr %3, align 8
%19 = load i8, ptr %18, align 1
%20 = call i64 @isdigit(i8 noundef signext %19)
%21 = icmp ne i64 %20, 0
br i1 %21, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %22
22: ; preds = %._crit_edge, %1
%23 = load ptr, ptr %2, align 8
store ptr %23, ptr %4, align 8
%24 = load ptr, ptr %3, align 8
%25 = load ptr, ptr %4, align 8
%26 = ptrtoint ptr %24 to i64
%27 = ptrtoint ptr %25 to i64
%28 = sub i64 %26, %27
%29 = icmp sgt i64 %28, 2
br i1 %29, label %.lr.ph2, label %50
.lr.ph2: ; preds = %22
br label %30
30: ; preds = %.lr.ph2, %36
%31 = load i32, ptr %5, align 4
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %36
33: ; preds = %30
%34 = load i32, ptr %5, align 4
%35 = mul nsw i32 %34, 10
store i32 %35, ptr %5, align 4
br label %36
36: ; preds = %33, %30
%37 = load ptr, ptr %4, align 8
%38 = getelementptr inbounds i8, ptr %37, i32 1
store ptr %38, ptr %4, align 8
%39 = load i8, ptr %37, align 1
%40 = sext i8 %39 to i32
%41 = sub nsw i32 %40, 48
%42 = load i32, ptr %5, align 4
%43 = add nsw i32 %42, %41
store i32 %43, ptr %5, align 4
%44 = load ptr, ptr %3, align 8
%45 = load ptr, ptr %4, align 8
%46 = ptrtoint ptr %44 to i64
%47 = ptrtoint ptr %45 to i64
%48 = sub i64 %46, %47
%49 = icmp sgt i64 %48, 2
br i1 %49, label %30, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %36
br label %50
50: ; preds = %._crit_edge3, %22
%51 = load ptr, ptr %3, align 8
%52 = load ptr, ptr %4, align 8
%53 = icmp ugt ptr %51, %52
br i1 %53, label %.lr.ph5, label %71
.lr.ph5: ; preds = %50
br label %54
54: ; preds = %.lr.ph5, %60
%55 = load i32, ptr %6, align 4
%56 = icmp ne i32 %55, 0
br i1 %56, label %57, label %60
57: ; preds = %54
%58 = load i32, ptr %6, align 4
%59 = mul nsw i32 %58, 10
store i32 %59, ptr %6, align 4
br label %60
60: ; preds = %57, %54
%61 = load ptr, ptr %4, align 8
%62 = getelementptr inbounds i8, ptr %61, i32 1
store ptr %62, ptr %4, align 8
%63 = load i8, ptr %61, align 1
%64 = sext i8 %63 to i32
%65 = sub nsw i32 %64, 48
%66 = load i32, ptr %6, align 4
%67 = add nsw i32 %66, %65
store i32 %67, ptr %6, align 4
%68 = load ptr, ptr %3, align 8
%69 = load ptr, ptr %4, align 8
%70 = icmp ugt ptr %68, %69
br i1 %70, label %54, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %60
br label %71
71: ; preds = %._crit_edge6, %50
%72 = load ptr, ptr %3, align 8
%73 = load i8, ptr %72, align 1
%74 = sext i8 %73 to i32
%75 = icmp eq i32 %74, 46
br i1 %75, label %76, label %103
76: ; preds = %71
%77 = load ptr, ptr %3, align 8
%78 = getelementptr inbounds i8, ptr %77, i64 1
store ptr %78, ptr %4, align 8
store i32 0, ptr %8, align 4
%79 = load i32, ptr %8, align 4
%80 = icmp slt i32 %79, 5
br i1 %80, label %.lr.ph8, label %102
.lr.ph8: ; preds = %76
br label %81
81: ; preds = %.lr.ph8, %97
%82 = load i32, ptr %7, align 4
%83 = mul i32 %82, 10
store i32 %83, ptr %7, align 4
%84 = load ptr, ptr %4, align 8
%85 = load i8, ptr %84, align 1
%86 = call i64 @isdigit(i8 noundef signext %85)
%87 = icmp ne i64 %86, 0
br i1 %87, label %88, label %96
88: ; preds = %81
%89 = load ptr, ptr %4, align 8
%90 = getelementptr inbounds i8, ptr %89, i32 1
store ptr %90, ptr %4, align 8
%91 = load i8, ptr %89, align 1
%92 = sext i8 %91 to i32
%93 = sub nsw i32 %92, 48
%94 = load i32, ptr %7, align 4
%95 = add i32 %94, %93
store i32 %95, ptr %7, align 4
br label %96
96: ; preds = %88, %81
br label %97
97: ; preds = %96
%98 = load i32, ptr %8, align 4
%99 = add nsw i32 %98, 1
store i32 %99, ptr %8, align 4
%100 = load i32, ptr %8, align 4
%101 = icmp slt i32 %100, 5
br i1 %101, label %81, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %97
br label %102
102: ; preds = %._crit_edge9, %76
br label %103
103: ; preds = %102, %71
%104 = load i32, ptr %5, align 4
%105 = load i32, ptr %6, align 4
%106 = load i32, ptr %6, align 4
%107 = mul nsw i32 %106, 100
%108 = sdiv i32 %107, 60
%109 = load i32, ptr %7, align 4
%110 = load i32, ptr %7, align 4
%111 = mul i32 %110, 100
%112 = udiv i32 %111, 60
%113 = call i32 @printf(ptr noundef @.str, i32 noundef %104, i32 noundef %105, i32 noundef %108, i32 noundef %109, i32 noundef %112)
%114 = load i32, ptr %5, align 4
%115 = sext i32 %114 to i64
%116 = mul i64 %115, 10000000
%117 = load i32, ptr %6, align 4
%118 = sext i32 %117 to i64
%119 = mul i64 %118, 10000000
%120 = load i32, ptr %7, align 4
%121 = zext i32 %120 to i64
%122 = mul i64 %121, 100
%123 = add i64 %119, %122
%124 = udiv i64 %123, 60
%125 = add i64 %116, %124
%126 = trunc i64 %125 to i32
ret i32 %126
}
declare i64 @isdigit(i8 noundef signext) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpsjd34eht.c'
source_filename = "/tmp/tmpsjd34eht.c"
target datalayout = "e-m:e-p270: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/tmpsjd34eht.c"
target datalayout = "e-m:e-p270: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/tmp6vc5jdj8.c'
source_filename = "/tmp/tmp6vc5jdj8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @writefile(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i64 4096, ptr %11, align 8
%13 = load ptr, ptr %6, align 8
store ptr %13, ptr %9, align 8
%14 = load i64, ptr %7, align 8
store i64 %14, ptr %8, align 8
br label %15
15: ; preds = %42, %3
%16 = load i64, ptr %8, align 8
%17 = icmp ugt i64 %16, 0
br i1 %17, label %18, label %46
18: ; preds = %15
%19 = load i64, ptr %11, align 8
store i64 %19, ptr %12, align 8
%20 = load i64, ptr %8, align 8
%21 = load i64, ptr %12, align 8
%22 = icmp ult i64 %20, %21
br i1 %22, label %23, label %25
23: ; preds = %18
%24 = load i64, ptr %8, align 8
store i64 %24, ptr %12, align 8
br label %25
25: ; preds = %23, %18
%26 = load i32, ptr %5, align 4
%27 = load ptr, ptr %9, align 8
%28 = load i64, ptr %7, align 8
%29 = getelementptr inbounds i8, ptr %27, i64 %28
%30 = load i64, ptr %8, align 8
%31 = sub i64 0, %30
%32 = getelementptr inbounds i8, ptr %29, i64 %31
%33 = load i64, ptr %12, align 8
%34 = call i64 @write(i32 noundef %26, ptr noundef %32, i64 noundef %33)
store i64 %34, ptr %10, align 8
%35 = load i64, ptr %10, align 8
%36 = icmp ne i64 %35, 0
br i1 %36, label %38, label %37
37: ; preds = %25
br label %46
38: ; preds = %25
%39 = load i64, ptr %10, align 8
%40 = icmp slt i64 %39, 0
br i1 %40, label %41, label %42
41: ; preds = %38
store i32 -1, ptr %4, align 4
br label %49
42: ; preds = %38
%43 = load i64, ptr %12, align 8
%44 = load i64, ptr %8, align 8
%45 = sub i64 %44, %43
store i64 %45, ptr %8, align 8
br label %15, !llvm.loop !6
46: ; preds = %37, %15
%47 = load i64, ptr %7, align 8
%48 = trunc i64 %47 to i32
store i32 %48, ptr %4, align 4
br label %49
49: ; preds = %46, %41
%50 = load i32, ptr %4, align 4
ret i32 %50
}
declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6vc5jdj8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @writefile(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i64 4096, ptr %11, align 8
%13 = load ptr, ptr %6, align 8
store ptr %13, ptr %9, align 8
%14 = load i64, ptr %7, align 8
store i64 %14, ptr %8, align 8
%15 = load i64, ptr %8, align 8
%16 = icmp ugt i64 %15, 0
br i1 %16, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %3
br label %17
17: ; preds = %.lr.ph, %41
%18 = load i64, ptr %11, align 8
store i64 %18, ptr %12, align 8
%19 = load i64, ptr %8, align 8
%20 = load i64, ptr %12, align 8
%21 = icmp ult i64 %19, %20
br i1 %21, label %22, label %24
22: ; preds = %17
%23 = load i64, ptr %8, align 8
store i64 %23, ptr %12, align 8
br label %24
24: ; preds = %22, %17
%25 = load i32, ptr %5, align 4
%26 = load ptr, ptr %9, align 8
%27 = load i64, ptr %7, align 8
%28 = getelementptr inbounds i8, ptr %26, i64 %27
%29 = load i64, ptr %8, align 8
%30 = sub i64 0, %29
%31 = getelementptr inbounds i8, ptr %28, i64 %30
%32 = load i64, ptr %12, align 8
%33 = call i64 @write(i32 noundef %25, ptr noundef %31, i64 noundef %32)
store i64 %33, ptr %10, align 8
%34 = load i64, ptr %10, align 8
%35 = icmp ne i64 %34, 0
br i1 %35, label %37, label %36
36: ; preds = %24
br label %47
37: ; preds = %24
%38 = load i64, ptr %10, align 8
%39 = icmp slt i64 %38, 0
br i1 %39, label %40, label %41
40: ; preds = %37
store i32 -1, ptr %4, align 4
br label %50
41: ; preds = %37
%42 = load i64, ptr %12, align 8
%43 = load i64, ptr %8, align 8
%44 = sub i64 %43, %42
store i64 %44, ptr %8, align 8
%45 = load i64, ptr %8, align 8
%46 = icmp ugt i64 %45, 0
br i1 %46, label %17, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %41
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %3
br label %47
47: ; preds = %.loopexit, %36
%48 = load i64, ptr %7, align 8
%49 = trunc i64 %48 to i32
store i32 %49, ptr %4, align 4
br label %50
50: ; preds = %47, %40
%51 = load i32, ptr %4, align 4
ret i32 %51
}
declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpxfre1mfr.c'
source_filename = "/tmp/tmpxfre1mfr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"clCreateCommandQueue failed.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @oclCreateCommandQueue(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %4, align 4
%9 = call i32 @clCreateCommandQueue(i32 noundef %7, i32 noundef %8, i32 noundef 0, ptr noundef %5)
store i32 %9, ptr %6, align 4
%10 = load i32, ptr %5, align 4
%11 = call i32 @oclCheckStatus(i32 noundef %10, ptr noundef @.str)
%12 = load i32, ptr %6, align 4
ret i32 %12
}
declare i32 @clCreateCommandQueue(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @oclCheckStatus(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/tmpxfre1mfr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"clCreateCommandQueue failed.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @oclCreateCommandQueue(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %4, align 4
%9 = call i32 @clCreateCommandQueue(i32 noundef %7, i32 noundef %8, i32 noundef 0, ptr noundef %5)
store i32 %9, ptr %6, align 4
%10 = load i32, ptr %5, align 4
%11 = call i32 @oclCheckStatus(i32 noundef %10, ptr noundef @.str)
%12 = load i32, ptr %6, align 4
ret i32 %12
}
declare i32 @clCreateCommandQueue(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @oclCheckStatus(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/tmpqvthe_13.c'
source_filename = "/tmp/tmpqvthe_13.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_current_datetime(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr null, ptr %4, align 8
%7 = call i64 @calloc(i32 noundef 30, i32 noundef 1)
%8 = inttoptr i64 %7 to ptr
store ptr %8, ptr %4, align 8
%9 = load ptr, ptr %4, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %12, label %11
11: ; preds = %1
store ptr null, ptr %2, align 8
br label %20
12: ; preds = %1
%13 = call i32 @time(ptr noundef null)
store i32 %13, ptr %5, align 4
%14 = call ptr @localtime(ptr noundef %5)
store ptr %14, ptr %6, align 8
%15 = load ptr, ptr %4, align 8
%16 = load ptr, ptr %3, align 8
%17 = load ptr, ptr %6, align 8
%18 = call i32 @strftime(ptr noundef %15, i32 noundef 30, ptr noundef %16, ptr noundef %17)
%19 = load ptr, ptr %4, align 8
store ptr %19, ptr %2, align 8
br label %20
20: ; preds = %12, %11
%21 = load ptr, ptr %2, align 8
ret ptr %21
}
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare ptr @localtime(ptr noundef) #1
declare i32 @strftime(ptr 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/tmpqvthe_13.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_current_datetime(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr null, ptr %4, align 8
%7 = call i64 @calloc(i32 noundef 30, i32 noundef 1)
%8 = inttoptr i64 %7 to ptr
store ptr %8, ptr %4, align 8
%9 = load ptr, ptr %4, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %12, label %11
11: ; preds = %1
store ptr null, ptr %2, align 8
br label %20
12: ; preds = %1
%13 = call i32 @time(ptr noundef null)
store i32 %13, ptr %5, align 4
%14 = call ptr @localtime(ptr noundef %5)
store ptr %14, ptr %6, align 8
%15 = load ptr, ptr %4, align 8
%16 = load ptr, ptr %3, align 8
%17 = load ptr, ptr %6, align 8
%18 = call i32 @strftime(ptr noundef %15, i32 noundef 30, ptr noundef %16, ptr noundef %17)
%19 = load ptr, ptr %4, align 8
store ptr %19, ptr %2, align 8
br label %20
20: ; preds = %12, %11
%21 = load ptr, ptr %2, align 8
ret ptr %21
}
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare ptr @localtime(ptr noundef) #1
declare i32 @strftime(ptr 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/tmpru1qp3j4.c'
source_filename = "/tmp/tmpru1qp3j4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @shmm_open(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%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 ptr, ptr %5, align 8
%7 = call ptr @_conv_blk(ptr noundef %6)
store ptr %7, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = load ptr, ptr %5, align 8
%10 = call ptr @shmm_open_raw(i32 noundef %8, ptr noundef %9)
store ptr %10, ptr %3, align 8
br label %12
11: ; No predecessors!
store ptr null, ptr %3, align 8
br label %12
12: ; preds = %11, %2
%13 = load ptr, ptr %3, align 8
ret ptr %13
}
declare ptr @_conv_blk(ptr noundef) #1
declare ptr @shmm_open_raw(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/tmpru1qp3j4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @shmm_open(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%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 ptr, ptr %5, align 8
%7 = call ptr @_conv_blk(ptr noundef %6)
store ptr %7, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = load ptr, ptr %5, align 8
%10 = call ptr @shmm_open_raw(i32 noundef %8, ptr noundef %9)
store ptr %10, ptr %3, align 8
br label %12
11: ; No predecessors!
store ptr null, ptr %3, align 8
br label %12
12: ; preds = %11, %2
%13 = load ptr, ptr %3, align 8
ret ptr %13
}
declare ptr @_conv_blk(ptr noundef) #1
declare ptr @shmm_open_raw(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/tmp04x6xdy6.c'
source_filename = "/tmp/tmp04x6xdy6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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" TAK\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c" NIE\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 2, ptr %2, align 4
store i32 4, ptr %3, align 4
store i32 2, ptr %2, align 4
store i32 4, ptr %3, align 4
br i1 false, label %4, label %6
4: ; preds = %0
%5 = call i32 @printf(ptr noundef @.str)
br label %8
6: ; preds = %0
%7 = call i32 @printf(ptr noundef @.str.1)
br label %8
8: ; preds = %6, %4
%9 = load i32, ptr %1, align 4
ret i32 %9
}
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/tmp04x6xdy6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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" TAK\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c" NIE\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 2, ptr %2, align 4
store i32 4, ptr %3, align 4
store i32 2, ptr %2, align 4
store i32 4, ptr %3, align 4
br i1 false, label %4, label %6
4: ; preds = %0
%5 = call i32 @printf(ptr noundef @.str)
br label %8
6: ; preds = %0
%7 = call i32 @printf(ptr noundef @.str.1)
br label %8
8: ; preds = %6, %4
%9 = load i32, ptr %1, align 4
ret i32 %9
}
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/tmp38fxsj6o.c'
source_filename = "/tmp/tmp38fxsj6o.c"
target datalayout = "e-m:e-p270: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 [25 x i8] c"running quaternion test\0A\00", align 1
@__const.bot_quaternion_test.rvec = private unnamed_addr constant [3 x double] [double 0.000000e+00, double 0.000000e+00, double 1.000000e+00], align 16
@.str.1 = private unnamed_addr constant [39 x i8] c"bot_quaternion_test failed at line %d\0A\00", align 1
@M_PI = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [26 x i8] c"<%.3f, %.3f, %.3f, %.3f>\0A\00", align 1
@__const.bot_quaternion_test.axis1 = private unnamed_addr constant [3 x double] [double 0.000000e+00, double 1.000000e+00, double 0.000000e+00], align 16
@__const.bot_quaternion_test.axis2 = private unnamed_addr constant [3 x double] [double 0.000000e+00, double 0.000000e+00, double 1.000000e+00], align 16
@.str.3 = private unnamed_addr constant [28 x i8] c"by q: [ %.2f, %.2f, %.2f ]\0A\00", align 1
@.str.4 = private unnamed_addr constant [29 x i8] c"by q2: [ %.2f, %.2f, %.2f ]\0A\00", align 1
@.str.5 = private unnamed_addr constant [31 x i8] c"by q*q2: [ %.2f, %.2f, %.2f ]\0A\00", align 1
@.str.6 = private unnamed_addr constant [31 x i8] c"by q2*q: [ %.2f, %.2f, %.2f ]\0A\00", align 1
@.str.7 = private unnamed_addr constant [30 x i8] c"bot_quaternion_test complete\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @bot_quaternion_test() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca [3 x double], align 16
%4 = alloca [4 x double], align 16
%5 = alloca [3 x double], align 16
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca [4 x double], align 16
%10 = alloca [4 x double], align 16
%11 = alloca [3 x double], align 16
%12 = alloca [3 x double], align 16
%13 = load i32, ptr @stderr, align 4
%14 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %13, ptr noundef @.str)
store double 0.000000e+00, ptr %2, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.bot_quaternion_test.rvec, i64 24, i1 false)
%15 = load double, ptr %2, align 8
%16 = fptosi double %15 to i32
%17 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
%18 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%19 = call i32 @bot_angle_axis_to_quat(i32 noundef %16, ptr noundef %17, ptr noundef %18)
%20 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%21 = call i32 @qeq(ptr noundef %20, i32 noundef 1, i32 noundef 0, i32 noundef 0, i32 noundef 0)
%22 = icmp ne i32 %21, 0
br i1 %22, label %26, label %23
23: ; preds = %0
%24 = load i32, ptr @stderr, align 4
%25 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %24, ptr noundef @.str.1, i32 noundef 362)
store i32 0, ptr %1, align 4
br label %187
26: ; preds = %0
%27 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%28 = getelementptr inbounds [3 x double], ptr %5, i64 0, i64 0
%29 = call i32 @bot_quat_to_roll_pitch_yaw(ptr noundef %27, ptr noundef %28)
%30 = getelementptr inbounds [3 x double], ptr %5, i64 0, i64 0
%31 = load double, ptr %30, align 16
store double %31, ptr %6, align 8
%32 = getelementptr inbounds [3 x double], ptr %5, i64 0, i64 1
%33 = load double, ptr %32, align 8
store double %33, ptr %7, align 8
%34 = getelementptr inbounds [3 x double], ptr %5, i64 0, i64 2
%35 = load double, ptr %34, align 16
store double %35, ptr %8, align 8
%36 = load double, ptr %6, align 8
%37 = load double, ptr %7, align 8
%38 = load double, ptr %8, align 8
%39 = call i32 @rpyeq(double noundef %36, double noundef %37, double noundef %38, i32 noundef 0, i32 noundef 0, i32 noundef 0)
%40 = icmp ne i32 %39, 0
br i1 %40, label %44, label %41
41: ; preds = %26
%42 = load i32, ptr @stderr, align 4
%43 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %42, ptr noundef @.str.1, i32 noundef 367)
store i32 0, ptr %1, align 4
br label %187
44: ; preds = %26
%45 = load i32, ptr @M_PI, align 4
%46 = sitofp i32 %45 to double
store double %46, ptr %2, align 8
%47 = load double, ptr %2, align 8
%48 = fptosi double %47 to i32
%49 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
%50 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%51 = call i32 @bot_angle_axis_to_quat(i32 noundef %48, ptr noundef %49, ptr noundef %50)
%52 = load i32, ptr @stderr, align 4
%53 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%54 = load double, ptr %53, align 16
%55 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 1
%56 = load double, ptr %55, align 8
%57 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 2
%58 = load double, ptr %57, align 16
%59 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 3
%60 = load double, ptr %59, align 8
%61 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %52, ptr noundef @.str.2, double noundef %54, double noundef %56, double noundef %58, double noundef %60)
%62 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%63 = call i32 @qeq(ptr noundef %62, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 1)
%64 = icmp ne i32 %63, 0
br i1 %64, label %68, label %65
65: ; preds = %44
%66 = load i32, ptr @stderr, align 4
%67 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %66, ptr noundef @.str.1, i32 noundef 374)
store i32 0, ptr %1, align 4
br label %187
68: ; preds = %44
%69 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%70 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
%71 = call i32 @bot_quat_to_angle_axis(ptr noundef %69, ptr noundef %2, ptr noundef %70)
%72 = load double, ptr %2, align 8
%73 = load i32, ptr @M_PI, align 4
%74 = call i32 @feq(double noundef %72, i32 noundef %73)
%75 = icmp ne i32 %74, 0
br i1 %75, label %79, label %76
76: ; preds = %68
%77 = load i32, ptr @stderr, align 4
%78 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %77, ptr noundef @.str.1, i32 noundef 378)
store i32 0, ptr %1, align 4
br label %187
79: ; preds = %68
%80 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
%81 = load double, ptr %80, align 16
%82 = call i32 @feq(double noundef %81, i32 noundef 0)
%83 = icmp ne i32 %82, 0
br i1 %83, label %84, label %94
84: ; preds = %79
%85 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 1
%86 = load double, ptr %85, align 8
%87 = call i32 @feq(double noundef %86, i32 noundef 0)
%88 = icmp ne i32 %87, 0
br i1 %88, label %89, label %94
89: ; preds = %84
%90 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 2
%91 = load double, ptr %90, align 16
%92 = call i32 @feq(double noundef %91, i32 noundef 1)
%93 = icmp ne i32 %92, 0
br i1 %93, label %97, label %94
94: ; preds = %89, %84, %79
%95 = load i32, ptr @stderr, align 4
%96 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %95, ptr noundef @.str.1, i32 noundef 379)
store i32 0, ptr %1, align 4
br label %187
97: ; preds = %89
%98 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%99 = getelementptr inbounds [3 x double], ptr %5, i64 0, i64 0
%100 = call i32 @bot_quat_to_roll_pitch_yaw(ptr noundef %98, ptr noundef %99)
%101 = load double, ptr %6, align 8
%102 = load double, ptr %7, align 8
%103 = load double, ptr %8, align 8
%104 = load i32, ptr @M_PI, align 4
%105 = call i32 @rpyeq(double noundef %101, double noundef %102, double noundef %103, i32 noundef 0, i32 noundef 0, i32 noundef %104)
%106 = icmp ne i32 %105, 0
br i1 %106, label %110, label %107
107: ; preds = %97
%108 = load i32, ptr @stderr, align 4
%109 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %108, ptr noundef @.str.1, i32 noundef 383)
store i32 0, ptr %1, align 4
br label %187
110: ; preds = %97
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %11, ptr align 16 @__const.bot_quaternion_test.axis1, i64 24, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %12, ptr align 16 @__const.bot_quaternion_test.axis2, i64 24, i1 false)
%111 = load i32, ptr @M_PI, align 4
%112 = sdiv i32 %111, 2
%113 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 0
%114 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%115 = call i32 @bot_angle_axis_to_quat(i32 noundef %112, ptr noundef %113, ptr noundef %114)
%116 = load i32, ptr @M_PI, align 4
%117 = sdiv i32 %116, 2
%118 = getelementptr inbounds [3 x double], ptr %12, i64 0, i64 0
%119 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%120 = call i32 @bot_angle_axis_to_quat(i32 noundef %117, ptr noundef %118, ptr noundef %119)
%121 = getelementptr inbounds [4 x double], ptr %10, i64 0, i64 0
%122 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%123 = getelementptr inbounds [4 x double], ptr %9, i64 0, i64 0
%124 = call i32 @bot_quat_mult(ptr noundef %121, ptr noundef %122, ptr noundef %123)
%125 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
store double 0.000000e+00, ptr %125, align 16
%126 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 1
store double 0.000000e+00, ptr %126, align 8
%127 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 2
store double 1.000000e+00, ptr %127, align 16
%128 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%129 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
%130 = call i32 @bot_quat_rotate(ptr noundef %128, ptr noundef %129)
%131 = load i32, ptr @stderr, align 4
%132 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
%133 = load double, ptr %132, align 16
%134 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 1
%135 = load double, ptr %134, align 8
%136 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 2
%137 = load double, ptr %136, align 16
%138 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %131, ptr noundef @.str.3, double noundef %133, double noundef %135, double noundef %137)
%139 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
store double 0.000000e+00, ptr %139, align 16
%140 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 1
store double 0.000000e+00, ptr %140, align 8
%141 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 2
store double 1.000000e+00, ptr %141, align 16
%142 = getelementptr inbounds [4 x double], ptr %9, i64 0, i64 0
%143 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
%144 = call i32 @bot_quat_rotate(ptr noundef %142, ptr noundef %143)
%145 = load i32, ptr @stderr, align 4
%146 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
%147 = load double, ptr %146, align 16
%148 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 1
%149 = load double, ptr %148, align 8
%150 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 2
%151 = load double, ptr %150, align 16
%152 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %145, ptr noundef @.str.4, double noundef %147, double noundef %149, double noundef %151)
%153 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
store double 0.000000e+00, ptr %153, align 16
%154 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 1
store double 0.000000e+00, ptr %154, align 8
%155 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 2
store double 1.000000e+00, ptr %155, align 16
%156 = getelementptr inbounds [4 x double], ptr %10, i64 0, i64 0
%157 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
%158 = call i32 @bot_quat_rotate(ptr noundef %156, ptr noundef %157)
%159 = load i32, ptr @stderr, align 4
%160 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
%161 = load double, ptr %160, align 16
%162 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 1
%163 = load double, ptr %162, align 8
%164 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 2
%165 = load double, ptr %164, align 16
%166 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %159, ptr noundef @.str.5, double noundef %161, double noundef %163, double noundef %165)
%167 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
store double 0.000000e+00, ptr %167, align 16
%168 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 1
store double 0.000000e+00, ptr %168, align 8
%169 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 2
store double 1.000000e+00, ptr %169, align 16
%170 = getelementptr inbounds [4 x double], ptr %10, i64 0, i64 0
%171 = getelementptr inbounds [4 x double], ptr %9, i64 0, i64 0
%172 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%173 = call i32 @bot_quat_mult(ptr noundef %170, ptr noundef %171, ptr noundef %172)
%174 = getelementptr inbounds [4 x double], ptr %10, i64 0, i64 0
%175 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
%176 = call i32 @bot_quat_rotate(ptr noundef %174, ptr noundef %175)
%177 = load i32, ptr @stderr, align 4
%178 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
%179 = load double, ptr %178, align 16
%180 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 1
%181 = load double, ptr %180, align 8
%182 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 2
%183 = load double, ptr %182, align 16
%184 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %177, ptr noundef @.str.6, double noundef %179, double noundef %181, double noundef %183)
%185 = load i32, ptr @stderr, align 4
%186 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %185, ptr noundef @.str.7)
store i32 1, ptr %1, align 4
br label %187
187: ; preds = %110, %107, %94, %76, %65, %41, %23
%188 = load i32, ptr %1, align 4
ret i32 %188
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @bot_angle_axis_to_quat(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @qeq(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @bot_quat_to_roll_pitch_yaw(ptr noundef, ptr noundef) #1
declare i32 @rpyeq(double noundef, double noundef, double noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @bot_quat_to_angle_axis(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @feq(double noundef, i32 noundef) #1
declare i32 @bot_quat_mult(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @bot_quat_rotate(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp38fxsj6o.c"
target datalayout = "e-m:e-p270: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 [25 x i8] c"running quaternion test\0A\00", align 1
@__const.bot_quaternion_test.rvec = private unnamed_addr constant [3 x double] [double 0.000000e+00, double 0.000000e+00, double 1.000000e+00], align 16
@.str.1 = private unnamed_addr constant [39 x i8] c"bot_quaternion_test failed at line %d\0A\00", align 1
@M_PI = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [26 x i8] c"<%.3f, %.3f, %.3f, %.3f>\0A\00", align 1
@__const.bot_quaternion_test.axis1 = private unnamed_addr constant [3 x double] [double 0.000000e+00, double 1.000000e+00, double 0.000000e+00], align 16
@__const.bot_quaternion_test.axis2 = private unnamed_addr constant [3 x double] [double 0.000000e+00, double 0.000000e+00, double 1.000000e+00], align 16
@.str.3 = private unnamed_addr constant [28 x i8] c"by q: [ %.2f, %.2f, %.2f ]\0A\00", align 1
@.str.4 = private unnamed_addr constant [29 x i8] c"by q2: [ %.2f, %.2f, %.2f ]\0A\00", align 1
@.str.5 = private unnamed_addr constant [31 x i8] c"by q*q2: [ %.2f, %.2f, %.2f ]\0A\00", align 1
@.str.6 = private unnamed_addr constant [31 x i8] c"by q2*q: [ %.2f, %.2f, %.2f ]\0A\00", align 1
@.str.7 = private unnamed_addr constant [30 x i8] c"bot_quaternion_test complete\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @bot_quaternion_test() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca [3 x double], align 16
%4 = alloca [4 x double], align 16
%5 = alloca [3 x double], align 16
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca [4 x double], align 16
%10 = alloca [4 x double], align 16
%11 = alloca [3 x double], align 16
%12 = alloca [3 x double], align 16
%13 = load i32, ptr @stderr, align 4
%14 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %13, ptr noundef @.str)
store double 0.000000e+00, ptr %2, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.bot_quaternion_test.rvec, i64 24, i1 false)
%15 = load double, ptr %2, align 8
%16 = fptosi double %15 to i32
%17 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
%18 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%19 = call i32 @bot_angle_axis_to_quat(i32 noundef %16, ptr noundef %17, ptr noundef %18)
%20 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%21 = call i32 @qeq(ptr noundef %20, i32 noundef 1, i32 noundef 0, i32 noundef 0, i32 noundef 0)
%22 = icmp ne i32 %21, 0
br i1 %22, label %26, label %23
23: ; preds = %0
%24 = load i32, ptr @stderr, align 4
%25 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %24, ptr noundef @.str.1, i32 noundef 362)
store i32 0, ptr %1, align 4
br label %187
26: ; preds = %0
%27 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%28 = getelementptr inbounds [3 x double], ptr %5, i64 0, i64 0
%29 = call i32 @bot_quat_to_roll_pitch_yaw(ptr noundef %27, ptr noundef %28)
%30 = getelementptr inbounds [3 x double], ptr %5, i64 0, i64 0
%31 = load double, ptr %30, align 16
store double %31, ptr %6, align 8
%32 = getelementptr inbounds [3 x double], ptr %5, i64 0, i64 1
%33 = load double, ptr %32, align 8
store double %33, ptr %7, align 8
%34 = getelementptr inbounds [3 x double], ptr %5, i64 0, i64 2
%35 = load double, ptr %34, align 16
store double %35, ptr %8, align 8
%36 = load double, ptr %6, align 8
%37 = load double, ptr %7, align 8
%38 = load double, ptr %8, align 8
%39 = call i32 @rpyeq(double noundef %36, double noundef %37, double noundef %38, i32 noundef 0, i32 noundef 0, i32 noundef 0)
%40 = icmp ne i32 %39, 0
br i1 %40, label %44, label %41
41: ; preds = %26
%42 = load i32, ptr @stderr, align 4
%43 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %42, ptr noundef @.str.1, i32 noundef 367)
store i32 0, ptr %1, align 4
br label %187
44: ; preds = %26
%45 = load i32, ptr @M_PI, align 4
%46 = sitofp i32 %45 to double
store double %46, ptr %2, align 8
%47 = load double, ptr %2, align 8
%48 = fptosi double %47 to i32
%49 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
%50 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%51 = call i32 @bot_angle_axis_to_quat(i32 noundef %48, ptr noundef %49, ptr noundef %50)
%52 = load i32, ptr @stderr, align 4
%53 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%54 = load double, ptr %53, align 16
%55 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 1
%56 = load double, ptr %55, align 8
%57 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 2
%58 = load double, ptr %57, align 16
%59 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 3
%60 = load double, ptr %59, align 8
%61 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %52, ptr noundef @.str.2, double noundef %54, double noundef %56, double noundef %58, double noundef %60)
%62 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%63 = call i32 @qeq(ptr noundef %62, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 1)
%64 = icmp ne i32 %63, 0
br i1 %64, label %68, label %65
65: ; preds = %44
%66 = load i32, ptr @stderr, align 4
%67 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %66, ptr noundef @.str.1, i32 noundef 374)
store i32 0, ptr %1, align 4
br label %187
68: ; preds = %44
%69 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%70 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
%71 = call i32 @bot_quat_to_angle_axis(ptr noundef %69, ptr noundef %2, ptr noundef %70)
%72 = load double, ptr %2, align 8
%73 = load i32, ptr @M_PI, align 4
%74 = call i32 @feq(double noundef %72, i32 noundef %73)
%75 = icmp ne i32 %74, 0
br i1 %75, label %79, label %76
76: ; preds = %68
%77 = load i32, ptr @stderr, align 4
%78 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %77, ptr noundef @.str.1, i32 noundef 378)
store i32 0, ptr %1, align 4
br label %187
79: ; preds = %68
%80 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
%81 = load double, ptr %80, align 16
%82 = call i32 @feq(double noundef %81, i32 noundef 0)
%83 = icmp ne i32 %82, 0
br i1 %83, label %84, label %94
84: ; preds = %79
%85 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 1
%86 = load double, ptr %85, align 8
%87 = call i32 @feq(double noundef %86, i32 noundef 0)
%88 = icmp ne i32 %87, 0
br i1 %88, label %89, label %94
89: ; preds = %84
%90 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 2
%91 = load double, ptr %90, align 16
%92 = call i32 @feq(double noundef %91, i32 noundef 1)
%93 = icmp ne i32 %92, 0
br i1 %93, label %97, label %94
94: ; preds = %89, %84, %79
%95 = load i32, ptr @stderr, align 4
%96 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %95, ptr noundef @.str.1, i32 noundef 379)
store i32 0, ptr %1, align 4
br label %187
97: ; preds = %89
%98 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%99 = getelementptr inbounds [3 x double], ptr %5, i64 0, i64 0
%100 = call i32 @bot_quat_to_roll_pitch_yaw(ptr noundef %98, ptr noundef %99)
%101 = load double, ptr %6, align 8
%102 = load double, ptr %7, align 8
%103 = load double, ptr %8, align 8
%104 = load i32, ptr @M_PI, align 4
%105 = call i32 @rpyeq(double noundef %101, double noundef %102, double noundef %103, i32 noundef 0, i32 noundef 0, i32 noundef %104)
%106 = icmp ne i32 %105, 0
br i1 %106, label %110, label %107
107: ; preds = %97
%108 = load i32, ptr @stderr, align 4
%109 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %108, ptr noundef @.str.1, i32 noundef 383)
store i32 0, ptr %1, align 4
br label %187
110: ; preds = %97
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %11, ptr align 16 @__const.bot_quaternion_test.axis1, i64 24, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %12, ptr align 16 @__const.bot_quaternion_test.axis2, i64 24, i1 false)
%111 = load i32, ptr @M_PI, align 4
%112 = sdiv i32 %111, 2
%113 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 0
%114 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%115 = call i32 @bot_angle_axis_to_quat(i32 noundef %112, ptr noundef %113, ptr noundef %114)
%116 = load i32, ptr @M_PI, align 4
%117 = sdiv i32 %116, 2
%118 = getelementptr inbounds [3 x double], ptr %12, i64 0, i64 0
%119 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%120 = call i32 @bot_angle_axis_to_quat(i32 noundef %117, ptr noundef %118, ptr noundef %119)
%121 = getelementptr inbounds [4 x double], ptr %10, i64 0, i64 0
%122 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%123 = getelementptr inbounds [4 x double], ptr %9, i64 0, i64 0
%124 = call i32 @bot_quat_mult(ptr noundef %121, ptr noundef %122, ptr noundef %123)
%125 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
store double 0.000000e+00, ptr %125, align 16
%126 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 1
store double 0.000000e+00, ptr %126, align 8
%127 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 2
store double 1.000000e+00, ptr %127, align 16
%128 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%129 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
%130 = call i32 @bot_quat_rotate(ptr noundef %128, ptr noundef %129)
%131 = load i32, ptr @stderr, align 4
%132 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
%133 = load double, ptr %132, align 16
%134 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 1
%135 = load double, ptr %134, align 8
%136 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 2
%137 = load double, ptr %136, align 16
%138 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %131, ptr noundef @.str.3, double noundef %133, double noundef %135, double noundef %137)
%139 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
store double 0.000000e+00, ptr %139, align 16
%140 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 1
store double 0.000000e+00, ptr %140, align 8
%141 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 2
store double 1.000000e+00, ptr %141, align 16
%142 = getelementptr inbounds [4 x double], ptr %9, i64 0, i64 0
%143 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
%144 = call i32 @bot_quat_rotate(ptr noundef %142, ptr noundef %143)
%145 = load i32, ptr @stderr, align 4
%146 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
%147 = load double, ptr %146, align 16
%148 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 1
%149 = load double, ptr %148, align 8
%150 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 2
%151 = load double, ptr %150, align 16
%152 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %145, ptr noundef @.str.4, double noundef %147, double noundef %149, double noundef %151)
%153 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
store double 0.000000e+00, ptr %153, align 16
%154 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 1
store double 0.000000e+00, ptr %154, align 8
%155 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 2
store double 1.000000e+00, ptr %155, align 16
%156 = getelementptr inbounds [4 x double], ptr %10, i64 0, i64 0
%157 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
%158 = call i32 @bot_quat_rotate(ptr noundef %156, ptr noundef %157)
%159 = load i32, ptr @stderr, align 4
%160 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
%161 = load double, ptr %160, align 16
%162 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 1
%163 = load double, ptr %162, align 8
%164 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 2
%165 = load double, ptr %164, align 16
%166 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %159, ptr noundef @.str.5, double noundef %161, double noundef %163, double noundef %165)
%167 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
store double 0.000000e+00, ptr %167, align 16
%168 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 1
store double 0.000000e+00, ptr %168, align 8
%169 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 2
store double 1.000000e+00, ptr %169, align 16
%170 = getelementptr inbounds [4 x double], ptr %10, i64 0, i64 0
%171 = getelementptr inbounds [4 x double], ptr %9, i64 0, i64 0
%172 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%173 = call i32 @bot_quat_mult(ptr noundef %170, ptr noundef %171, ptr noundef %172)
%174 = getelementptr inbounds [4 x double], ptr %10, i64 0, i64 0
%175 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
%176 = call i32 @bot_quat_rotate(ptr noundef %174, ptr noundef %175)
%177 = load i32, ptr @stderr, align 4
%178 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
%179 = load double, ptr %178, align 16
%180 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 1
%181 = load double, ptr %180, align 8
%182 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 2
%183 = load double, ptr %182, align 16
%184 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %177, ptr noundef @.str.6, double noundef %179, double noundef %181, double noundef %183)
%185 = load i32, ptr @stderr, align 4
%186 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %185, ptr noundef @.str.7)
store i32 1, ptr %1, align 4
br label %187
187: ; preds = %110, %107, %94, %76, %65, %41, %23
%188 = load i32, ptr %1, align 4
ret i32 %188
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @bot_angle_axis_to_quat(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @qeq(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @bot_quat_to_roll_pitch_yaw(ptr noundef, ptr noundef) #1
declare i32 @rpyeq(double noundef, double noundef, double noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @bot_quat_to_angle_axis(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @feq(double noundef, i32 noundef) #1
declare i32 @bot_quat_mult(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @bot_quat_rotate(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8pistynu.c'
source_filename = "/tmp/tmp8pistynu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"%lf %lf %lf\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"NAO FORMA TRIANGULO\0A\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"TRIANGULO RETANGULO\0A\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"TRIANGULO OBTUSANGULO\0A\00", align 1
@.str.4 = private unnamed_addr constant [22 x i8] c"TRIANGULO ACUTANGULO\0A\00", align 1
@.str.5 = private unnamed_addr constant [22 x i8] c"TRIANGULO EQUILATERO\0A\00", align 1
@.str.6 = private unnamed_addr constant [21 x i8] c"TRIANGULO ISOSCELES\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 [3 x double], align 16
%7 = alloca i32, align 4
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%14 = getelementptr inbounds [3 x double], ptr %6, i64 0, i64 0
%15 = getelementptr inbounds [3 x double], ptr %6, i64 0, i64 1
%16 = getelementptr inbounds [3 x double], ptr %6, i64 0, i64 2
%17 = call i32 @scanf(ptr noundef @.str, ptr noundef %14, ptr noundef %15, ptr noundef %16)
store i32 3, ptr %7, align 4
%18 = getelementptr inbounds [3 x double], ptr %6, i64 0, i64 0
%19 = load i32, ptr %7, align 4
%20 = call i32 @simple_sort(ptr noundef %18, i32 noundef %19)
%21 = getelementptr inbounds [3 x double], ptr %6, i64 0, i64 2
%22 = load double, ptr %21, align 16
store double %22, ptr %8, align 8
%23 = getelementptr inbounds [3 x double], ptr %6, i64 0, i64 1
%24 = load double, ptr %23, align 8
store double %24, ptr %9, align 8
%25 = getelementptr inbounds [3 x double], ptr %6, i64 0, i64 0
%26 = load double, ptr %25, align 16
store double %26, ptr %10, align 8
%27 = load double, ptr %8, align 8
%28 = call double @pow(double noundef %27, double noundef 2.000000e+00) #3
store double %28, ptr %11, align 8
%29 = load double, ptr %9, align 8
%30 = call double @pow(double noundef %29, double noundef 2.000000e+00) #3
store double %30, ptr %12, align 8
%31 = load double, ptr %10, align 8
%32 = call double @pow(double noundef %31, double noundef 2.000000e+00) #3
store double %32, ptr %13, align 8
%33 = load double, ptr %8, align 8
%34 = load double, ptr %9, align 8
%35 = load double, ptr %10, align 8
%36 = fadd double %34, %35
%37 = fcmp oge double %33, %36
br i1 %37, label %38, label %40
38: ; preds = %2
%39 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %3, align 4
br label %93
40: ; preds = %2
%41 = load double, ptr %11, align 8
%42 = load double, ptr %12, align 8
%43 = load double, ptr %13, align 8
%44 = fadd double %42, %43
%45 = fcmp oeq double %41, %44
br i1 %45, label %46, label %48
46: ; preds = %40
%47 = call i32 @printf(ptr noundef @.str.2)
br label %48
48: ; preds = %46, %40
%49 = load double, ptr %11, align 8
%50 = load double, ptr %12, align 8
%51 = load double, ptr %13, align 8
%52 = fadd double %50, %51
%53 = fcmp ogt double %49, %52
br i1 %53, label %54, label %56
54: ; preds = %48
%55 = call i32 @printf(ptr noundef @.str.3)
br label %56
56: ; preds = %54, %48
%57 = load double, ptr %11, align 8
%58 = load double, ptr %12, align 8
%59 = load double, ptr %13, align 8
%60 = fadd double %58, %59
%61 = fcmp olt double %57, %60
br i1 %61, label %62, label %64
62: ; preds = %56
%63 = call i32 @printf(ptr noundef @.str.4)
br label %64
64: ; preds = %62, %56
%65 = load double, ptr %8, align 8
%66 = load double, ptr %9, align 8
%67 = fcmp oeq double %65, %66
br i1 %67, label %68, label %74
68: ; preds = %64
%69 = load double, ptr %9, align 8
%70 = load double, ptr %10, align 8
%71 = fcmp oeq double %69, %70
br i1 %71, label %72, label %74
72: ; preds = %68
%73 = call i32 @printf(ptr noundef @.str.5)
br label %74
74: ; preds = %72, %68, %64
%75 = load double, ptr %8, align 8
%76 = load double, ptr %9, align 8
%77 = fcmp oeq double %75, %76
br i1 %77, label %78, label %82
78: ; preds = %74
%79 = load double, ptr %9, align 8
%80 = load double, ptr %10, align 8
%81 = fcmp une double %79, %80
br i1 %81, label %90, label %82
82: ; preds = %78, %74
%83 = load double, ptr %9, align 8
%84 = load double, ptr %10, align 8
%85 = fcmp oeq double %83, %84
br i1 %85, label %86, label %92
86: ; preds = %82
%87 = load double, ptr %8, align 8
%88 = load double, ptr %9, align 8
%89 = fcmp une double %87, %88
br i1 %89, label %90, label %92
90: ; preds = %86, %78
%91 = call i32 @printf(ptr noundef @.str.6)
br label %92
92: ; preds = %90, %86, %82
store i32 0, ptr %3, align 4
br label %93
93: ; preds = %92, %38
%94 = load i32, ptr %3, align 4
ret i32 %94
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @simple_sort(ptr noundef, i32 noundef) #1
; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #2
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" }
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/tmp8pistynu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"%lf %lf %lf\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"NAO FORMA TRIANGULO\0A\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"TRIANGULO RETANGULO\0A\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"TRIANGULO OBTUSANGULO\0A\00", align 1
@.str.4 = private unnamed_addr constant [22 x i8] c"TRIANGULO ACUTANGULO\0A\00", align 1
@.str.5 = private unnamed_addr constant [22 x i8] c"TRIANGULO EQUILATERO\0A\00", align 1
@.str.6 = private unnamed_addr constant [21 x i8] c"TRIANGULO ISOSCELES\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 [3 x double], align 16
%7 = alloca i32, align 4
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%14 = getelementptr inbounds [3 x double], ptr %6, i64 0, i64 0
%15 = getelementptr inbounds [3 x double], ptr %6, i64 0, i64 1
%16 = getelementptr inbounds [3 x double], ptr %6, i64 0, i64 2
%17 = call i32 @scanf(ptr noundef @.str, ptr noundef %14, ptr noundef %15, ptr noundef %16)
store i32 3, ptr %7, align 4
%18 = getelementptr inbounds [3 x double], ptr %6, i64 0, i64 0
%19 = load i32, ptr %7, align 4
%20 = call i32 @simple_sort(ptr noundef %18, i32 noundef %19)
%21 = getelementptr inbounds [3 x double], ptr %6, i64 0, i64 2
%22 = load double, ptr %21, align 16
store double %22, ptr %8, align 8
%23 = getelementptr inbounds [3 x double], ptr %6, i64 0, i64 1
%24 = load double, ptr %23, align 8
store double %24, ptr %9, align 8
%25 = getelementptr inbounds [3 x double], ptr %6, i64 0, i64 0
%26 = load double, ptr %25, align 16
store double %26, ptr %10, align 8
%27 = load double, ptr %8, align 8
%28 = call double @pow(double noundef %27, double noundef 2.000000e+00) #3
store double %28, ptr %11, align 8
%29 = load double, ptr %9, align 8
%30 = call double @pow(double noundef %29, double noundef 2.000000e+00) #3
store double %30, ptr %12, align 8
%31 = load double, ptr %10, align 8
%32 = call double @pow(double noundef %31, double noundef 2.000000e+00) #3
store double %32, ptr %13, align 8
%33 = load double, ptr %8, align 8
%34 = load double, ptr %9, align 8
%35 = load double, ptr %10, align 8
%36 = fadd double %34, %35
%37 = fcmp oge double %33, %36
br i1 %37, label %38, label %40
38: ; preds = %2
%39 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %3, align 4
br label %93
40: ; preds = %2
%41 = load double, ptr %11, align 8
%42 = load double, ptr %12, align 8
%43 = load double, ptr %13, align 8
%44 = fadd double %42, %43
%45 = fcmp oeq double %41, %44
br i1 %45, label %46, label %48
46: ; preds = %40
%47 = call i32 @printf(ptr noundef @.str.2)
br label %48
48: ; preds = %46, %40
%49 = load double, ptr %11, align 8
%50 = load double, ptr %12, align 8
%51 = load double, ptr %13, align 8
%52 = fadd double %50, %51
%53 = fcmp ogt double %49, %52
br i1 %53, label %54, label %56
54: ; preds = %48
%55 = call i32 @printf(ptr noundef @.str.3)
br label %56
56: ; preds = %54, %48
%57 = load double, ptr %11, align 8
%58 = load double, ptr %12, align 8
%59 = load double, ptr %13, align 8
%60 = fadd double %58, %59
%61 = fcmp olt double %57, %60
br i1 %61, label %62, label %64
62: ; preds = %56
%63 = call i32 @printf(ptr noundef @.str.4)
br label %64
64: ; preds = %62, %56
%65 = load double, ptr %8, align 8
%66 = load double, ptr %9, align 8
%67 = fcmp oeq double %65, %66
br i1 %67, label %68, label %74
68: ; preds = %64
%69 = load double, ptr %9, align 8
%70 = load double, ptr %10, align 8
%71 = fcmp oeq double %69, %70
br i1 %71, label %72, label %74
72: ; preds = %68
%73 = call i32 @printf(ptr noundef @.str.5)
br label %74
74: ; preds = %72, %68, %64
%75 = load double, ptr %8, align 8
%76 = load double, ptr %9, align 8
%77 = fcmp oeq double %75, %76
br i1 %77, label %78, label %82
78: ; preds = %74
%79 = load double, ptr %9, align 8
%80 = load double, ptr %10, align 8
%81 = fcmp une double %79, %80
br i1 %81, label %90, label %82
82: ; preds = %78, %74
%83 = load double, ptr %9, align 8
%84 = load double, ptr %10, align 8
%85 = fcmp oeq double %83, %84
br i1 %85, label %86, label %92
86: ; preds = %82
%87 = load double, ptr %8, align 8
%88 = load double, ptr %9, align 8
%89 = fcmp une double %87, %88
br i1 %89, label %90, label %92
90: ; preds = %86, %78
%91 = call i32 @printf(ptr noundef @.str.6)
br label %92
92: ; preds = %90, %86, %82
store i32 0, ptr %3, align 4
br label %93
93: ; preds = %92, %38
%94 = load i32, ptr %3, align 4
ret i32 %94
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @simple_sort(ptr noundef, i32 noundef) #1
; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #2
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" }
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/tmptxb04129.c'
source_filename = "/tmp/tmptxb04129.c"
target datalayout = "e-m:e-p270: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/tmptxb04129.c"
target datalayout = "e-m:e-p270: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/tmpeec2gxib.c'
source_filename = "/tmp/tmpeec2gxib.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_percent() #0 {
%1 = call i32 @random_range(i32 noundef 1, i32 noundef 100)
ret i32 %1
}
declare i32 @random_range(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/tmpeec2gxib.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_percent() #0 {
%1 = call i32 @random_range(i32 noundef 1, i32 noundef 100)
ret i32 %1
}
declare i32 @random_range(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/tmptsyqwbm2.c'
source_filename = "/tmp/tmptsyqwbm2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dfftss_init_threads_() #0 {
%1 = call i32 (...) @fftss_init_threads()
ret void
}
declare i32 @fftss_init_threads(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptsyqwbm2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dfftss_init_threads_() #0 {
%1 = call i32 (...) @fftss_init_threads()
ret void
}
declare i32 @fftss_init_threads(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp88u93074.c'
source_filename = "/tmp/tmp88u93074.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @narrowfloatrand() #0 {
%1 = alloca float, align 4
%2 = alloca float, align 4
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = call i64 (...) @rand()
store i64 %6, ptr %3, align 8
%7 = call i64 (...) @rand()
store i64 %7, ptr %4, align 8
%8 = load i64, ptr %3, align 8
%9 = sub nsw i64 %8, 1073741824
%10 = ashr i64 %9, 6
%11 = sitofp i64 %10 to float
store float %11, ptr %1, align 4
store i64 512, ptr %5, align 8
store float 2.000000e+00, ptr %2, align 4
br label %12
12: ; preds = %25, %0
%13 = load i64, ptr %5, align 8
%14 = icmp sle i64 %13, 2048
br i1 %14, label %15, label %31
15: ; preds = %12
%16 = load i64, ptr %4, align 8
%17 = load i64, ptr %5, align 8
%18 = and i64 %16, %17
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %24
20: ; preds = %15
%21 = load float, ptr %2, align 4
%22 = load float, ptr %1, align 4
%23 = fmul float %22, %21
store float %23, ptr %1, align 4
br label %24
24: ; preds = %20, %15
br label %25
25: ; preds = %24
%26 = load i64, ptr %5, align 8
%27 = mul nsw i64 %26, 2
store i64 %27, ptr %5, align 8
%28 = load float, ptr %2, align 4
%29 = load float, ptr %2, align 4
%30 = fmul float %28, %29
store float %30, ptr %2, align 4
br label %12, !llvm.loop !6
31: ; preds = %12
%32 = load float, ptr %1, align 4
ret float %32
}
declare i64 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp88u93074.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @narrowfloatrand() #0 {
%1 = alloca float, align 4
%2 = alloca float, align 4
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = call i64 (...) @rand()
store i64 %6, ptr %3, align 8
%7 = call i64 (...) @rand()
store i64 %7, ptr %4, align 8
%8 = load i64, ptr %3, align 8
%9 = sub nsw i64 %8, 1073741824
%10 = ashr i64 %9, 6
%11 = sitofp i64 %10 to float
store float %11, ptr %1, align 4
store i64 512, ptr %5, align 8
store float 2.000000e+00, ptr %2, align 4
%12 = load i64, ptr %5, align 8
%13 = icmp sle i64 %12, 2048
br i1 %13, label %.lr.ph, label %32
.lr.ph: ; preds = %0
br label %14
14: ; preds = %.lr.ph, %24
%15 = load i64, ptr %4, align 8
%16 = load i64, ptr %5, align 8
%17 = and i64 %15, %16
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %23
19: ; preds = %14
%20 = load float, ptr %2, align 4
%21 = load float, ptr %1, align 4
%22 = fmul float %21, %20
store float %22, ptr %1, align 4
br label %23
23: ; preds = %19, %14
br label %24
24: ; preds = %23
%25 = load i64, ptr %5, align 8
%26 = mul nsw i64 %25, 2
store i64 %26, ptr %5, align 8
%27 = load float, ptr %2, align 4
%28 = load float, ptr %2, align 4
%29 = fmul float %27, %28
store float %29, ptr %2, align 4
%30 = load i64, ptr %5, align 8
%31 = icmp sle i64 %30, 2048
br i1 %31, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %32
32: ; preds = %._crit_edge, %0
%33 = load float, ptr %1, align 4
ret float %33
}
declare i64 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpb9yux5sd.c'
source_filename = "/tmp/tmpb9yux5sd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Number required!\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 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(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp ne i32 %8, 2
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %12
12: ; preds = %10, %2
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 1
%15 = load ptr, ptr %14, align 8
%16 = call i32 @atoi(ptr noundef %15)
store i32 %16, ptr %6, align 4
store i32 0, ptr %7, align 4
br label %17
17: ; preds = %25, %12
%18 = load i32, ptr %7, align 4
%19 = load i32, ptr %6, align 4
%20 = icmp sle i32 %18, %19
br i1 %20, label %21, label %28
21: ; preds = %17
%22 = load i32, ptr %7, align 4
%23 = call i32 @fibonacci(i32 noundef %22)
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %23)
br label %25
25: ; preds = %21
%26 = load i32, ptr %7, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %7, align 4
br label %17, !llvm.loop !6
28: ; preds = %17
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%30 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @fibonacci(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb9yux5sd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Number required!\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 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(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp ne i32 %8, 2
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %12
12: ; preds = %10, %2
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 1
%15 = load ptr, ptr %14, align 8
%16 = call i32 @atoi(ptr noundef %15)
store i32 %16, ptr %6, align 4
store i32 0, ptr %7, align 4
%17 = load i32, ptr %7, align 4
%18 = load i32, ptr %6, align 4
%19 = icmp sle i32 %17, %18
br i1 %19, label %.lr.ph, label %30
.lr.ph: ; preds = %12
br label %20
20: ; preds = %.lr.ph, %24
%21 = load i32, ptr %7, align 4
%22 = call i32 @fibonacci(i32 noundef %21)
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %22)
br label %24
24: ; preds = %20
%25 = load i32, ptr %7, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %7, align 4
%27 = load i32, ptr %7, align 4
%28 = load i32, ptr %6, align 4
%29 = icmp sle i32 %27, %28
br i1 %29, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %30
30: ; preds = %._crit_edge, %12
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%32 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @fibonacci(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp0pcizg59.c'
source_filename = "/tmp/tmp0pcizg59.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"Makefile\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"autogen.sh\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"/Project/settings/__init__.py\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"settings/__init__.py\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_endswith() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr @.str, ptr %1, align 8
store ptr @.str.1, ptr %2, align 8
store ptr @.str.2, ptr %3, align 8
store ptr @.str, ptr %4, align 8
store ptr @.str.3, ptr %5, align 8
%6 = load ptr, ptr %1, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i64 @endswith(ptr noundef %6, ptr noundef %7)
%9 = icmp slt i64 0, %8
%10 = zext i1 %9 to i32
%11 = call i32 @assert(i32 noundef %10)
%12 = load ptr, ptr %1, align 8
%13 = load ptr, ptr %5, align 8
%14 = call i64 @endswith(ptr noundef %12, ptr noundef %13)
%15 = icmp eq i64 0, %14
%16 = zext i1 %15 to i32
%17 = call i32 @assert(i32 noundef %16)
%18 = load ptr, ptr %2, align 8
%19 = load ptr, ptr %4, align 8
%20 = call i64 @endswith(ptr noundef %18, ptr noundef %19)
%21 = icmp eq i64 0, %20
%22 = zext i1 %21 to i32
%23 = call i32 @assert(i32 noundef %22)
%24 = load ptr, ptr %2, align 8
%25 = load ptr, ptr %5, align 8
%26 = call i64 @endswith(ptr noundef %24, ptr noundef %25)
%27 = icmp eq i64 0, %26
%28 = zext i1 %27 to i32
%29 = call i32 @assert(i32 noundef %28)
%30 = load ptr, ptr %3, align 8
%31 = load ptr, ptr %4, align 8
%32 = call i64 @endswith(ptr noundef %30, ptr noundef %31)
%33 = icmp eq i64 0, %32
%34 = zext i1 %33 to i32
%35 = call i32 @assert(i32 noundef %34)
%36 = load ptr, ptr %3, align 8
%37 = load ptr, ptr %5, align 8
%38 = call i64 @endswith(ptr noundef %36, ptr noundef %37)
%39 = icmp slt i64 0, %38
%40 = zext i1 %39 to i32
%41 = call i32 @assert(i32 noundef %40)
ret void
}
declare i32 @assert(i32 noundef) #1
declare i64 @endswith(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/tmp0pcizg59.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"Makefile\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"autogen.sh\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"/Project/settings/__init__.py\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"settings/__init__.py\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_endswith() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr @.str, ptr %1, align 8
store ptr @.str.1, ptr %2, align 8
store ptr @.str.2, ptr %3, align 8
store ptr @.str, ptr %4, align 8
store ptr @.str.3, ptr %5, align 8
%6 = load ptr, ptr %1, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i64 @endswith(ptr noundef %6, ptr noundef %7)
%9 = icmp slt i64 0, %8
%10 = zext i1 %9 to i32
%11 = call i32 @assert(i32 noundef %10)
%12 = load ptr, ptr %1, align 8
%13 = load ptr, ptr %5, align 8
%14 = call i64 @endswith(ptr noundef %12, ptr noundef %13)
%15 = icmp eq i64 0, %14
%16 = zext i1 %15 to i32
%17 = call i32 @assert(i32 noundef %16)
%18 = load ptr, ptr %2, align 8
%19 = load ptr, ptr %4, align 8
%20 = call i64 @endswith(ptr noundef %18, ptr noundef %19)
%21 = icmp eq i64 0, %20
%22 = zext i1 %21 to i32
%23 = call i32 @assert(i32 noundef %22)
%24 = load ptr, ptr %2, align 8
%25 = load ptr, ptr %5, align 8
%26 = call i64 @endswith(ptr noundef %24, ptr noundef %25)
%27 = icmp eq i64 0, %26
%28 = zext i1 %27 to i32
%29 = call i32 @assert(i32 noundef %28)
%30 = load ptr, ptr %3, align 8
%31 = load ptr, ptr %4, align 8
%32 = call i64 @endswith(ptr noundef %30, ptr noundef %31)
%33 = icmp eq i64 0, %32
%34 = zext i1 %33 to i32
%35 = call i32 @assert(i32 noundef %34)
%36 = load ptr, ptr %3, align 8
%37 = load ptr, ptr %5, align 8
%38 = call i64 @endswith(ptr noundef %36, ptr noundef %37)
%39 = icmp slt i64 0, %38
%40 = zext i1 %39 to i32
%41 = call i32 @assert(i32 noundef %40)
ret void
}
declare i32 @assert(i32 noundef) #1
declare i64 @endswith(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/tmp0mcekx_i.c'
source_filename = "/tmp/tmp0mcekx_i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0mcekx_i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpx17ls65c.c'
source_filename = "/tmp/tmpx17ls65c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.1 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @getWordsForScale(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%10 = load i32, ptr %4, align 4
%11 = load i32, ptr %5, align 4
%12 = sdiv i32 %10, %11
store i32 %12, ptr %8, align 4
%13 = load i32, ptr %8, align 4
%14 = icmp sgt i32 %13, 0
br i1 %14, label %15, label %35
15: ; preds = %3
%16 = load i32, ptr %8, align 4
%17 = call ptr @getWordsFor2DigitNumber(i32 noundef %16)
store ptr %17, ptr %9, align 8
%18 = load ptr, ptr %9, align 8
%19 = call i64 @strlen(ptr noundef %18)
%20 = load ptr, ptr %6, align 8
%21 = call i64 @strlen(ptr noundef %20)
%22 = add nsw i64 %19, %21
%23 = add nsw i64 %22, 1
%24 = call ptr @allocateMemory(i64 noundef %23)
store ptr %24, ptr %7, align 8
%25 = load ptr, ptr %7, align 8
%26 = load ptr, ptr %9, align 8
%27 = call i32 @strcpy(ptr noundef %25, ptr noundef %26)
%28 = load ptr, ptr %7, align 8
%29 = call i32 @strcat(ptr noundef %28, ptr noundef @.str)
%30 = load ptr, ptr %7, align 8
%31 = load ptr, ptr %6, align 8
%32 = call i32 @strcat(ptr noundef %30, ptr noundef %31)
%33 = load ptr, ptr %7, align 8
%34 = call i32 @strcat(ptr noundef %33, ptr noundef @.str)
br label %36
35: ; preds = %3
store ptr @.str.1, ptr %7, align 8
br label %36
36: ; preds = %35, %15
%37 = load ptr, ptr %7, align 8
ret ptr %37
}
declare ptr @getWordsFor2DigitNumber(i32 noundef) #1
declare ptr @allocateMemory(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx17ls65c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.1 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @getWordsForScale(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%10 = load i32, ptr %4, align 4
%11 = load i32, ptr %5, align 4
%12 = sdiv i32 %10, %11
store i32 %12, ptr %8, align 4
%13 = load i32, ptr %8, align 4
%14 = icmp sgt i32 %13, 0
br i1 %14, label %15, label %35
15: ; preds = %3
%16 = load i32, ptr %8, align 4
%17 = call ptr @getWordsFor2DigitNumber(i32 noundef %16)
store ptr %17, ptr %9, align 8
%18 = load ptr, ptr %9, align 8
%19 = call i64 @strlen(ptr noundef %18)
%20 = load ptr, ptr %6, align 8
%21 = call i64 @strlen(ptr noundef %20)
%22 = add nsw i64 %19, %21
%23 = add nsw i64 %22, 1
%24 = call ptr @allocateMemory(i64 noundef %23)
store ptr %24, ptr %7, align 8
%25 = load ptr, ptr %7, align 8
%26 = load ptr, ptr %9, align 8
%27 = call i32 @strcpy(ptr noundef %25, ptr noundef %26)
%28 = load ptr, ptr %7, align 8
%29 = call i32 @strcat(ptr noundef %28, ptr noundef @.str)
%30 = load ptr, ptr %7, align 8
%31 = load ptr, ptr %6, align 8
%32 = call i32 @strcat(ptr noundef %30, ptr noundef %31)
%33 = load ptr, ptr %7, align 8
%34 = call i32 @strcat(ptr noundef %33, ptr noundef @.str)
br label %36
35: ; preds = %3
store ptr @.str.1, ptr %7, align 8
br label %36
36: ; preds = %35, %15
%37 = load ptr, ptr %7, align 8
ret ptr %37
}
declare ptr @getWordsFor2DigitNumber(i32 noundef) #1
declare ptr @allocateMemory(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpynn75v4s.c'
source_filename = "/tmp/tmpynn75v4s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EAGAIN = 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/tmpynn75v4s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EAGAIN = 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/tmpc25am35c.c'
source_filename = "/tmp/tmpc25am35c.c"
target datalayout = "e-m:e-p270: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.array = private unnamed_addr constant [9 x i32] [i32 -2, i32 1, i32 -3, i32 4, i32 -1, i32 2, i32 1, i32 -5, i32 5], 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 [9 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.array, i64 36, i1 false)
%3 = getelementptr inbounds [9 x i32], ptr %2, i64 0, i64 0
%4 = call i32 @max_sum(ptr noundef %3, i32 noundef 9)
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, i32 noundef) #2
declare i32 @max_sum(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/tmpc25am35c.c"
target datalayout = "e-m:e-p270: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.array = private unnamed_addr constant [9 x i32] [i32 -2, i32 1, i32 -3, i32 4, i32 -1, i32 2, i32 1, i32 -5, i32 5], 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 [9 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.array, i64 36, i1 false)
%3 = getelementptr inbounds [9 x i32], ptr %2, i64 0, i64 0
%4 = call i32 @max_sum(ptr noundef %3, i32 noundef 9)
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, i32 noundef) #2
declare i32 @max_sum(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/tmpwinaxo_8.c'
source_filename = "/tmp/tmpwinaxo_8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_mm_njaa_b_c_bc_i4_d() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i64, 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 i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca double, align 8
%21 = alloca double, align 8
store i32 21, ptr %1, align 4
store i32 23, ptr %2, align 4
store i32 25, ptr %3, align 4
%22 = load i32, ptr %1, align 4
%23 = zext i32 %22 to i64
%24 = load i32, ptr %2, align 4
%25 = zext i32 %24 to i64
%26 = call ptr @llvm.stacksave()
store ptr %26, ptr %4, align 8
%27 = mul nuw i64 %23, %25
%28 = alloca i32, i64 %27, align 16
store i64 %23, ptr %5, align 8
store i64 %25, ptr %6, align 8
%29 = load i32, ptr %2, align 4
%30 = zext i32 %29 to i64
%31 = load i32, ptr %3, align 4
%32 = zext i32 %31 to i64
%33 = mul nuw i64 %30, %32
%34 = alloca i32, i64 %33, align 16
store i64 %30, ptr %7, align 8
store i64 %32, ptr %8, align 8
%35 = load i32, ptr %1, align 4
%36 = zext i32 %35 to i64
%37 = load i32, ptr %3, align 4
%38 = zext i32 %37 to i64
%39 = mul nuw i64 %36, %38
%40 = alloca i32, i64 %39, align 16
store i64 %36, ptr %9, align 8
store i64 %38, ptr %10, align 8
store i32 0, ptr %11, align 4
br label %41
41: ; preds = %68, %0
%42 = load i32, ptr %11, align 4
%43 = load i32, ptr %1, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %45, label %71
45: ; preds = %41
store i32 0, ptr %12, align 4
br label %46
46: ; preds = %64, %45
%47 = load i32, ptr %12, align 4
%48 = load i32, ptr %2, align 4
%49 = icmp slt i32 %47, %48
br i1 %49, label %50, label %67
50: ; preds = %46
%51 = load i32, ptr %11, align 4
%52 = load i32, ptr %1, align 4
%53 = mul nsw i32 %51, %52
%54 = load i32, ptr %12, align 4
%55 = add nsw i32 %53, %54
%56 = add nsw i32 %55, 1
%57 = load i32, ptr %11, align 4
%58 = sext i32 %57 to i64
%59 = mul nsw i64 %58, %25
%60 = getelementptr inbounds i32, ptr %28, i64 %59
%61 = load i32, ptr %12, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i32, ptr %60, i64 %62
store i32 %56, ptr %63, align 4
br label %64
64: ; preds = %50
%65 = load i32, ptr %12, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %12, align 4
br label %46, !llvm.loop !6
67: ; preds = %46
br label %68
68: ; preds = %67
%69 = load i32, ptr %11, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %11, align 4
br label %41, !llvm.loop !8
71: ; preds = %41
store i32 0, ptr %11, align 4
br label %72
72: ; preds = %99, %71
%73 = load i32, ptr %11, align 4
%74 = load i32, ptr %2, align 4
%75 = icmp slt i32 %73, %74
br i1 %75, label %76, label %102
76: ; preds = %72
store i32 0, ptr %12, align 4
br label %77
77: ; preds = %95, %76
%78 = load i32, ptr %12, align 4
%79 = load i32, ptr %3, align 4
%80 = icmp slt i32 %78, %79
br i1 %80, label %81, label %98
81: ; preds = %77
%82 = load i32, ptr %12, align 4
%83 = load i32, ptr %3, align 4
%84 = mul nsw i32 %82, %83
%85 = load i32, ptr %11, align 4
%86 = add nsw i32 %84, %85
%87 = add nsw i32 %86, 1
%88 = load i32, ptr %11, align 4
%89 = sext i32 %88 to i64
%90 = mul nsw i64 %89, %32
%91 = getelementptr inbounds i32, ptr %34, i64 %90
%92 = load i32, ptr %12, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i32, ptr %91, i64 %93
store i32 %87, ptr %94, align 4
br label %95
95: ; preds = %81
%96 = load i32, ptr %12, align 4
%97 = add nsw i32 %96, 1
store i32 %97, ptr %12, align 4
br label %77, !llvm.loop !9
98: ; preds = %77
br label %99
99: ; preds = %98
%100 = load i32, ptr %11, align 4
%101 = add nsw i32 %100, 1
store i32 %101, ptr %11, align 4
br label %72, !llvm.loop !10
102: ; preds = %72
store i32 0, ptr %11, align 4
br label %103
103: ; preds = %124, %102
%104 = load i32, ptr %11, align 4
%105 = load i32, ptr %1, align 4
%106 = icmp slt i32 %104, %105
br i1 %106, label %107, label %127
107: ; preds = %103
store i32 0, ptr %12, align 4
br label %108
108: ; preds = %120, %107
%109 = load i32, ptr %12, align 4
%110 = load i32, ptr %3, align 4
%111 = icmp slt i32 %109, %110
br i1 %111, label %112, label %123
112: ; preds = %108
%113 = load i32, ptr %11, align 4
%114 = sext i32 %113 to i64
%115 = mul nsw i64 %114, %38
%116 = getelementptr inbounds i32, ptr %40, i64 %115
%117 = load i32, ptr %12, align 4
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds i32, ptr %116, i64 %118
store i32 0, ptr %119, align 4
br label %120
120: ; preds = %112
%121 = load i32, ptr %12, align 4
%122 = add nsw i32 %121, 1
store i32 %122, ptr %12, align 4
br label %108, !llvm.loop !11
123: ; preds = %108
br label %124
124: ; preds = %123
%125 = load i32, ptr %11, align 4
%126 = add nsw i32 %125, 1
store i32 %126, ptr %11, align 4
br label %103, !llvm.loop !12
127: ; preds = %103
%128 = call i32 @xmp_desc_of(ptr noundef %40)
%129 = call i32 @xmp_desc_of(ptr noundef %28)
%130 = call i32 @xmp_desc_of(ptr noundef %34)
%131 = call i32 @xmp_matmul(i32 noundef %128, i32 noundef %129, i32 noundef %130)
store i32 0, ptr %13, align 4
%132 = load i32, ptr %1, align 4
%133 = sitofp i32 %132 to double
store double %133, ptr %14, align 8
%134 = load i32, ptr %2, align 4
%135 = sitofp i32 %134 to double
store double %135, ptr %15, align 8
%136 = load i32, ptr %3, align 4
%137 = sitofp i32 %136 to double
store double %137, ptr %16, align 8
%138 = load double, ptr %15, align 8
%139 = load double, ptr %15, align 8
%140 = fadd double %139, 1.000000e+00
%141 = fmul double %138, %140
%142 = load double, ptr %15, align 8
%143 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %142, double 1.000000e+00)
%144 = fmul double %141, %143
%145 = fdiv double %144, 6.000000e+00
store double %145, ptr %17, align 8
%146 = load double, ptr %15, align 8
%147 = load double, ptr %15, align 8
%148 = fadd double %147, 1.000000e+00
%149 = fmul double %146, %148
%150 = fdiv double %149, 2.000000e+00
store double %150, ptr %18, align 8
store i32 0, ptr %11, align 4
br label %151
151: ; preds = %199, %127
%152 = load i32, ptr %11, align 4
%153 = load i32, ptr %1, align 4
%154 = icmp slt i32 %152, %153
br i1 %154, label %155, label %202
155: ; preds = %151
store i32 0, ptr %12, align 4
br label %156
156: ; preds = %195, %155
%157 = load i32, ptr %12, align 4
%158 = load i32, ptr %3, align 4
%159 = icmp slt i32 %157, %158
br i1 %159, label %160, label %198
160: ; preds = %156
%161 = load i32, ptr %11, align 4
%162 = sitofp i32 %161 to double
%163 = load double, ptr %14, align 8
%164 = fmul double %162, %163
store double %164, ptr %20, align 8
%165 = load i32, ptr %12, align 4
%166 = sitofp i32 %165 to double
%167 = load double, ptr %16, align 8
%168 = fmul double %166, %167
store double %168, ptr %21, align 8
%169 = load double, ptr %17, align 8
%170 = load double, ptr %18, align 8
%171 = load double, ptr %20, align 8
%172 = load double, ptr %21, align 8
%173 = fadd double %171, %172
%174 = call double @llvm.fmuladd.f64(double %170, double %173, double %169)
%175 = load double, ptr %20, align 8
%176 = load double, ptr %21, align 8
%177 = fmul double %175, %176
%178 = load double, ptr %15, align 8
%179 = call double @llvm.fmuladd.f64(double %177, double %178, double %174)
store double %179, ptr %19, align 8
%180 = load i32, ptr %13, align 4
%181 = sitofp i32 %180 to double
%182 = load i32, ptr %11, align 4
%183 = sext i32 %182 to i64
%184 = mul nsw i64 %183, %38
%185 = getelementptr inbounds i32, ptr %40, i64 %184
%186 = load i32, ptr %12, align 4
%187 = sext i32 %186 to i64
%188 = getelementptr inbounds i32, ptr %185, i64 %187
%189 = load i32, ptr %188, align 4
%190 = sitofp i32 %189 to double
%191 = load double, ptr %19, align 8
%192 = fsub double %190, %191
%193 = fadd double %181, %192
%194 = fptosi double %193 to i32
store i32 %194, ptr %13, align 4
br label %195
195: ; preds = %160
%196 = load i32, ptr %12, align 4
%197 = add nsw i32 %196, 1
store i32 %197, ptr %12, align 4
br label %156, !llvm.loop !13
198: ; preds = %156
br label %199
199: ; preds = %198
%200 = load i32, ptr %11, align 4
%201 = add nsw i32 %200, 1
store i32 %201, ptr %11, align 4
br label %151, !llvm.loop !14
202: ; preds = %151
%203 = load i32, ptr %13, align 4
%204 = call i32 @chk_int(i32 noundef %203)
%205 = load ptr, ptr %4, align 8
call void @llvm.stackrestore(ptr %205)
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @xmp_matmul(i32 noundef, i32 noundef, i32 noundef) #2
declare i32 @xmp_desc_of(ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
declare i32 @chk_int(i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!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/tmpwinaxo_8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_mm_njaa_b_c_bc_i4_d() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i64, 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 i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca double, align 8
%21 = alloca double, align 8
store i32 21, ptr %1, align 4
store i32 23, ptr %2, align 4
store i32 25, ptr %3, align 4
%22 = load i32, ptr %1, align 4
%23 = zext i32 %22 to i64
%24 = load i32, ptr %2, align 4
%25 = zext i32 %24 to i64
%26 = call ptr @llvm.stacksave()
store ptr %26, ptr %4, align 8
%27 = mul nuw i64 %23, %25
%28 = alloca i32, i64 %27, align 16
store i64 %23, ptr %5, align 8
store i64 %25, ptr %6, align 8
%29 = load i32, ptr %2, align 4
%30 = zext i32 %29 to i64
%31 = load i32, ptr %3, align 4
%32 = zext i32 %31 to i64
%33 = mul nuw i64 %30, %32
%34 = alloca i32, i64 %33, align 16
store i64 %30, ptr %7, align 8
store i64 %32, ptr %8, align 8
%35 = load i32, ptr %1, align 4
%36 = zext i32 %35 to i64
%37 = load i32, ptr %3, align 4
%38 = zext i32 %37 to i64
%39 = mul nuw i64 %36, %38
%40 = alloca i32, i64 %39, align 16
store i64 %36, ptr %9, align 8
store i64 %38, ptr %10, align 8
store i32 0, ptr %11, align 4
%41 = load i32, ptr %11, align 4
%42 = load i32, ptr %1, align 4
%43 = icmp slt i32 %41, %42
br i1 %43, label %.lr.ph2, label %75
.lr.ph2: ; preds = %0
br label %44
44: ; preds = %.lr.ph2, %69
store i32 0, ptr %12, align 4
%45 = load i32, ptr %12, align 4
%46 = load i32, ptr %2, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %.lr.ph, label %68
.lr.ph: ; preds = %44
br label %48
48: ; preds = %.lr.ph, %62
%49 = load i32, ptr %11, align 4
%50 = load i32, ptr %1, align 4
%51 = mul nsw i32 %49, %50
%52 = load i32, ptr %12, align 4
%53 = add nsw i32 %51, %52
%54 = add nsw i32 %53, 1
%55 = load i32, ptr %11, align 4
%56 = sext i32 %55 to i64
%57 = mul nsw i64 %56, %25
%58 = getelementptr inbounds i32, ptr %28, i64 %57
%59 = load i32, ptr %12, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i32, ptr %58, i64 %60
store i32 %54, ptr %61, align 4
br label %62
62: ; preds = %48
%63 = load i32, ptr %12, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %12, align 4
%65 = load i32, ptr %12, align 4
%66 = load i32, ptr %2, align 4
%67 = icmp slt i32 %65, %66
br i1 %67, label %48, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %62
br label %68
68: ; preds = %._crit_edge, %44
br label %69
69: ; preds = %68
%70 = load i32, ptr %11, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %11, align 4
%72 = load i32, ptr %11, align 4
%73 = load i32, ptr %1, align 4
%74 = icmp slt i32 %72, %73
br i1 %74, label %44, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %69
br label %75
75: ; preds = %._crit_edge3, %0
store i32 0, ptr %11, align 4
%76 = load i32, ptr %11, align 4
%77 = load i32, ptr %2, align 4
%78 = icmp slt i32 %76, %77
br i1 %78, label %.lr.ph8, label %110
.lr.ph8: ; preds = %75
br label %79
79: ; preds = %.lr.ph8, %104
store i32 0, ptr %12, align 4
%80 = load i32, ptr %12, align 4
%81 = load i32, ptr %3, align 4
%82 = icmp slt i32 %80, %81
br i1 %82, label %.lr.ph5, label %103
.lr.ph5: ; preds = %79
br label %83
83: ; preds = %.lr.ph5, %97
%84 = load i32, ptr %12, align 4
%85 = load i32, ptr %3, align 4
%86 = mul nsw i32 %84, %85
%87 = load i32, ptr %11, align 4
%88 = add nsw i32 %86, %87
%89 = add nsw i32 %88, 1
%90 = load i32, ptr %11, align 4
%91 = sext i32 %90 to i64
%92 = mul nsw i64 %91, %32
%93 = getelementptr inbounds i32, ptr %34, i64 %92
%94 = load i32, ptr %12, align 4
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds i32, ptr %93, i64 %95
store i32 %89, ptr %96, align 4
br label %97
97: ; preds = %83
%98 = load i32, ptr %12, align 4
%99 = add nsw i32 %98, 1
store i32 %99, ptr %12, align 4
%100 = load i32, ptr %12, align 4
%101 = load i32, ptr %3, align 4
%102 = icmp slt i32 %100, %101
br i1 %102, label %83, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %97
br label %103
103: ; preds = %._crit_edge6, %79
br label %104
104: ; preds = %103
%105 = load i32, ptr %11, align 4
%106 = add nsw i32 %105, 1
store i32 %106, ptr %11, align 4
%107 = load i32, ptr %11, align 4
%108 = load i32, ptr %2, align 4
%109 = icmp slt i32 %107, %108
br i1 %109, label %79, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %104
br label %110
110: ; preds = %._crit_edge9, %75
store i32 0, ptr %11, align 4
%111 = load i32, ptr %11, align 4
%112 = load i32, ptr %1, align 4
%113 = icmp slt i32 %111, %112
br i1 %113, label %.lr.ph14, label %139
.lr.ph14: ; preds = %110
br label %114
114: ; preds = %.lr.ph14, %133
store i32 0, ptr %12, align 4
%115 = load i32, ptr %12, align 4
%116 = load i32, ptr %3, align 4
%117 = icmp slt i32 %115, %116
br i1 %117, label %.lr.ph11, label %132
.lr.ph11: ; preds = %114
br label %118
118: ; preds = %.lr.ph11, %126
%119 = load i32, ptr %11, align 4
%120 = sext i32 %119 to i64
%121 = mul nsw i64 %120, %38
%122 = getelementptr inbounds i32, ptr %40, i64 %121
%123 = load i32, ptr %12, align 4
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds i32, ptr %122, i64 %124
store i32 0, ptr %125, align 4
br label %126
126: ; preds = %118
%127 = load i32, ptr %12, align 4
%128 = add nsw i32 %127, 1
store i32 %128, ptr %12, align 4
%129 = load i32, ptr %12, align 4
%130 = load i32, ptr %3, align 4
%131 = icmp slt i32 %129, %130
br i1 %131, label %118, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %126
br label %132
132: ; preds = %._crit_edge12, %114
br label %133
133: ; preds = %132
%134 = load i32, ptr %11, align 4
%135 = add nsw i32 %134, 1
store i32 %135, ptr %11, align 4
%136 = load i32, ptr %11, align 4
%137 = load i32, ptr %1, align 4
%138 = icmp slt i32 %136, %137
br i1 %138, label %114, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %133
br label %139
139: ; preds = %._crit_edge15, %110
%140 = call i32 @xmp_desc_of(ptr noundef %40)
%141 = call i32 @xmp_desc_of(ptr noundef %28)
%142 = call i32 @xmp_desc_of(ptr noundef %34)
%143 = call i32 @xmp_matmul(i32 noundef %140, i32 noundef %141, i32 noundef %142)
store i32 0, ptr %13, align 4
%144 = load i32, ptr %1, align 4
%145 = sitofp i32 %144 to double
store double %145, ptr %14, align 8
%146 = load i32, ptr %2, align 4
%147 = sitofp i32 %146 to double
store double %147, ptr %15, align 8
%148 = load i32, ptr %3, align 4
%149 = sitofp i32 %148 to double
store double %149, ptr %16, align 8
%150 = load double, ptr %15, align 8
%151 = load double, ptr %15, align 8
%152 = fadd double %151, 1.000000e+00
%153 = fmul double %150, %152
%154 = load double, ptr %15, align 8
%155 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %154, double 1.000000e+00)
%156 = fmul double %153, %155
%157 = fdiv double %156, 6.000000e+00
store double %157, ptr %17, align 8
%158 = load double, ptr %15, align 8
%159 = load double, ptr %15, align 8
%160 = fadd double %159, 1.000000e+00
%161 = fmul double %158, %160
%162 = fdiv double %161, 2.000000e+00
store double %162, ptr %18, align 8
store i32 0, ptr %11, align 4
%163 = load i32, ptr %11, align 4
%164 = load i32, ptr %1, align 4
%165 = icmp slt i32 %163, %164
br i1 %165, label %.lr.ph20, label %218
.lr.ph20: ; preds = %139
br label %166
166: ; preds = %.lr.ph20, %212
store i32 0, ptr %12, align 4
%167 = load i32, ptr %12, align 4
%168 = load i32, ptr %3, align 4
%169 = icmp slt i32 %167, %168
br i1 %169, label %.lr.ph17, label %211
.lr.ph17: ; preds = %166
br label %170
170: ; preds = %.lr.ph17, %205
%171 = load i32, ptr %11, align 4
%172 = sitofp i32 %171 to double
%173 = load double, ptr %14, align 8
%174 = fmul double %172, %173
store double %174, ptr %20, align 8
%175 = load i32, ptr %12, align 4
%176 = sitofp i32 %175 to double
%177 = load double, ptr %16, align 8
%178 = fmul double %176, %177
store double %178, ptr %21, align 8
%179 = load double, ptr %17, align 8
%180 = load double, ptr %18, align 8
%181 = load double, ptr %20, align 8
%182 = load double, ptr %21, align 8
%183 = fadd double %181, %182
%184 = call double @llvm.fmuladd.f64(double %180, double %183, double %179)
%185 = load double, ptr %20, align 8
%186 = load double, ptr %21, align 8
%187 = fmul double %185, %186
%188 = load double, ptr %15, align 8
%189 = call double @llvm.fmuladd.f64(double %187, double %188, double %184)
store double %189, ptr %19, align 8
%190 = load i32, ptr %13, align 4
%191 = sitofp i32 %190 to double
%192 = load i32, ptr %11, align 4
%193 = sext i32 %192 to i64
%194 = mul nsw i64 %193, %38
%195 = getelementptr inbounds i32, ptr %40, i64 %194
%196 = load i32, ptr %12, align 4
%197 = sext i32 %196 to i64
%198 = getelementptr inbounds i32, ptr %195, i64 %197
%199 = load i32, ptr %198, align 4
%200 = sitofp i32 %199 to double
%201 = load double, ptr %19, align 8
%202 = fsub double %200, %201
%203 = fadd double %191, %202
%204 = fptosi double %203 to i32
store i32 %204, ptr %13, align 4
br label %205
205: ; preds = %170
%206 = load i32, ptr %12, align 4
%207 = add nsw i32 %206, 1
store i32 %207, ptr %12, align 4
%208 = load i32, ptr %12, align 4
%209 = load i32, ptr %3, align 4
%210 = icmp slt i32 %208, %209
br i1 %210, label %170, label %._crit_edge18, !llvm.loop !13
._crit_edge18: ; preds = %205
br label %211
211: ; preds = %._crit_edge18, %166
br label %212
212: ; preds = %211
%213 = load i32, ptr %11, align 4
%214 = add nsw i32 %213, 1
store i32 %214, ptr %11, align 4
%215 = load i32, ptr %11, align 4
%216 = load i32, ptr %1, align 4
%217 = icmp slt i32 %215, %216
br i1 %217, label %166, label %._crit_edge21, !llvm.loop !14
._crit_edge21: ; preds = %212
br label %218
218: ; preds = %._crit_edge21, %139
%219 = load i32, ptr %13, align 4
%220 = call i32 @chk_int(i32 noundef %219)
%221 = load ptr, ptr %4, align 8
call void @llvm.stackrestore(ptr %221)
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @xmp_matmul(i32 noundef, i32 noundef, i32 noundef) #2
declare i32 @xmp_desc_of(ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
declare i32 @chk_int(i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!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/tmp2r_qyios.c'
source_filename = "/tmp/tmp2r_qyios.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i32 }
@.str = private unnamed_addr constant [30 x i8] c"Silvano's CNC - V. %s for %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"0.0.1 alpha\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"GNU/Linux\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"Path to file: \00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.6 = private unnamed_addr constant [6 x i8] c"ERROR\00", align 1
@errno = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [18 x i8] c"Checking file... \00", align 1
@.str.8 = private unnamed_addr constant [20 x i8] c"Valid file format.\0A\00", align 1
@.str.9 = private unnamed_addr constant [8 x i8] c"Begin.\0A\00", align 1
@.str.10 = private unnamed_addr constant [41 x i8] c"Printing complete after %d milliseconds!\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 %struct.timeval, align 4
%8 = alloca %struct.timeval, align 4
%9 = alloca i32, align 4
%10 = alloca [128 x i8], align 16
%11 = 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
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.2)
%13 = load i32, ptr %4, align 4
%14 = icmp sgt i32 %13, 1
br i1 %14, label %15, label %19
15: ; preds = %2
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 1
%18 = load ptr, ptr %17, align 8
store ptr %18, ptr %6, align 8
br label %24
19: ; preds = %2
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%21 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
%22 = call i32 @scanf(ptr noundef @.str.4, ptr noundef %21)
%23 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
store ptr %23, ptr %6, align 8
br label %24
24: ; preds = %19, %15
%25 = load ptr, ptr %6, align 8
%26 = call ptr @fopen(ptr noundef %25, ptr noundef @.str.5)
store ptr %26, ptr %11, align 8
%27 = load ptr, ptr %11, align 8
%28 = icmp eq ptr %27, null
br i1 %28, label %29, label %33
29: ; preds = %24
%30 = call i32 @perror(ptr noundef @.str.6)
%31 = load i32, ptr @errno, align 4
%32 = call i32 @exit(i32 noundef %31) #3
unreachable
33: ; preds = %24
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%35 = load ptr, ptr %11, align 8
%36 = call i32 @check_instructions(ptr noundef %35)
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%39 = call i32 @gettimeofday(ptr noundef %7, ptr noundef null)
%40 = load ptr, ptr %11, align 8
%41 = call i32 @begin_print(ptr noundef %40)
%42 = call i32 @gettimeofday(ptr noundef %8, ptr noundef null)
%43 = getelementptr inbounds %struct.timeval, ptr %8, i32 0, i32 0
%44 = load i32, ptr %43, align 4
%45 = getelementptr inbounds %struct.timeval, ptr %7, i32 0, i32 0
%46 = load i32, ptr %45, align 4
%47 = sub nsw i32 %44, %46
%48 = mul nsw i32 1000, %47
%49 = getelementptr inbounds %struct.timeval, ptr %8, i32 0, i32 1
%50 = load i32, ptr %49, align 4
%51 = getelementptr inbounds %struct.timeval, ptr %7, i32 0, i32 1
%52 = load i32, ptr %51, align 4
%53 = sub nsw i32 %50, %52
%54 = sdiv i32 %53, 1000
%55 = add nsw i32 %48, %54
store i32 %55, ptr %9, align 4
%56 = load i32, ptr %9, align 4
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %56)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @check_instructions(ptr noundef) #1
declare i32 @gettimeofday(ptr noundef, ptr noundef) #1
declare i32 @begin_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" }
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/tmp2r_qyios.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i32 }
@.str = private unnamed_addr constant [30 x i8] c"Silvano's CNC - V. %s for %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"0.0.1 alpha\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"GNU/Linux\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"Path to file: \00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.6 = private unnamed_addr constant [6 x i8] c"ERROR\00", align 1
@errno = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [18 x i8] c"Checking file... \00", align 1
@.str.8 = private unnamed_addr constant [20 x i8] c"Valid file format.\0A\00", align 1
@.str.9 = private unnamed_addr constant [8 x i8] c"Begin.\0A\00", align 1
@.str.10 = private unnamed_addr constant [41 x i8] c"Printing complete after %d milliseconds!\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 %struct.timeval, align 4
%8 = alloca %struct.timeval, align 4
%9 = alloca i32, align 4
%10 = alloca [128 x i8], align 16
%11 = 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
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.2)
%13 = load i32, ptr %4, align 4
%14 = icmp sgt i32 %13, 1
br i1 %14, label %15, label %19
15: ; preds = %2
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 1
%18 = load ptr, ptr %17, align 8
store ptr %18, ptr %6, align 8
br label %24
19: ; preds = %2
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%21 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
%22 = call i32 @scanf(ptr noundef @.str.4, ptr noundef %21)
%23 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
store ptr %23, ptr %6, align 8
br label %24
24: ; preds = %19, %15
%25 = load ptr, ptr %6, align 8
%26 = call ptr @fopen(ptr noundef %25, ptr noundef @.str.5)
store ptr %26, ptr %11, align 8
%27 = load ptr, ptr %11, align 8
%28 = icmp eq ptr %27, null
br i1 %28, label %29, label %33
29: ; preds = %24
%30 = call i32 @perror(ptr noundef @.str.6)
%31 = load i32, ptr @errno, align 4
%32 = call i32 @exit(i32 noundef %31) #3
unreachable
33: ; preds = %24
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%35 = load ptr, ptr %11, align 8
%36 = call i32 @check_instructions(ptr noundef %35)
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%39 = call i32 @gettimeofday(ptr noundef %7, ptr noundef null)
%40 = load ptr, ptr %11, align 8
%41 = call i32 @begin_print(ptr noundef %40)
%42 = call i32 @gettimeofday(ptr noundef %8, ptr noundef null)
%43 = getelementptr inbounds %struct.timeval, ptr %8, i32 0, i32 0
%44 = load i32, ptr %43, align 4
%45 = getelementptr inbounds %struct.timeval, ptr %7, i32 0, i32 0
%46 = load i32, ptr %45, align 4
%47 = sub nsw i32 %44, %46
%48 = mul nsw i32 1000, %47
%49 = getelementptr inbounds %struct.timeval, ptr %8, i32 0, i32 1
%50 = load i32, ptr %49, align 4
%51 = getelementptr inbounds %struct.timeval, ptr %7, i32 0, i32 1
%52 = load i32, ptr %51, align 4
%53 = sub nsw i32 %50, %52
%54 = sdiv i32 %53, 1000
%55 = add nsw i32 %48, %54
store i32 %55, ptr %9, align 4
%56 = load i32, ptr %9, align 4
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %56)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @check_instructions(ptr noundef) #1
declare i32 @gettimeofday(ptr noundef, ptr noundef) #1
declare i32 @begin_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" }
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/tmp0p1sfkmh.c'
source_filename = "/tmp/tmp0p1sfkmh.c"
target datalayout = "e-m:e-p270: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/tmp0p1sfkmh.c"
target datalayout = "e-m:e-p270: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/tmpt8y97m55.c'
source_filename = "/tmp/tmpt8y97m55.c"
target datalayout = "e-m:e-p270: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/tmpt8y97m55.c"
target datalayout = "e-m:e-p270: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/tmpxaw0lolk.c'
source_filename = "/tmp/tmpxaw0lolk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"%ld => %ld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i64 2183293, ptr %2, align 8
store i64 0, ptr %3, align 8
%5 = load i64, ptr %2, align 8
store i64 %5, ptr %4, align 8
br label %6
6: ; preds = %9, %0
%7 = load i64, ptr %2, align 8
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %18
9: ; preds = %6
%10 = load i64, ptr %3, align 8
%11 = mul nsw i64 %10, 10
store i64 %11, ptr %3, align 8
%12 = load i64, ptr %3, align 8
%13 = load i64, ptr %2, align 8
%14 = srem i64 %13, 10
%15 = add nsw i64 %12, %14
store i64 %15, ptr %3, align 8
%16 = load i64, ptr %2, align 8
%17 = sdiv i64 %16, 10
store i64 %17, ptr %2, align 8
br label %6, !llvm.loop !6
18: ; preds = %6
%19 = load i64, ptr %4, align 8
%20 = load i64, ptr %3, align 8
%21 = call i32 @printf(ptr noundef @.str, i64 noundef %19, i64 noundef %20)
ret i32 0
}
declare i32 @printf(ptr noundef, 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/tmpxaw0lolk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"%ld => %ld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i64 2183293, ptr %2, align 8
store i64 0, ptr %3, align 8
%5 = load i64, ptr %2, align 8
store i64 %5, ptr %4, align 8
%6 = load i64, ptr %2, align 8
%7 = icmp ne i64 %6, 0
br i1 %7, label %.lr.ph, label %19
.lr.ph: ; preds = %0
br label %8
8: ; preds = %.lr.ph, %8
%9 = load i64, ptr %3, align 8
%10 = mul nsw i64 %9, 10
store i64 %10, ptr %3, align 8
%11 = load i64, ptr %3, align 8
%12 = load i64, ptr %2, align 8
%13 = srem i64 %12, 10
%14 = add nsw i64 %11, %13
store i64 %14, ptr %3, align 8
%15 = load i64, ptr %2, align 8
%16 = sdiv i64 %15, 10
store i64 %16, ptr %2, align 8
%17 = load i64, ptr %2, align 8
%18 = icmp ne i64 %17, 0
br i1 %18, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %8
br label %19
19: ; preds = %._crit_edge, %0
%20 = load i64, ptr %4, align 8
%21 = load i64, ptr %3, align 8
%22 = call i32 @printf(ptr noundef @.str, i64 noundef %20, i64 noundef %21)
ret i32 0
}
declare i32 @printf(ptr noundef, 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/tmppn7v49g5.c'
source_filename = "/tmp/tmppn7v49g5.c"
target datalayout = "e-m:e-p270: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_WRONLY = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @create_or_die(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = load i32, ptr @O_WRONLY, align 4
%8 = load i32, ptr @O_CREAT, align 4
%9 = or i32 %7, %8
%10 = load i32, ptr %4, align 4
%11 = call i32 @open_or_die_m(ptr noundef %6, i32 noundef %9, i32 noundef %10)
store i32 %11, ptr %5, align 4
%12 = load i32, ptr %5, align 4
%13 = call i32 @close(i32 noundef %12)
ret void
}
declare i32 @open_or_die_m(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppn7v49g5.c"
target datalayout = "e-m:e-p270: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_WRONLY = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @create_or_die(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = load i32, ptr @O_WRONLY, align 4
%8 = load i32, ptr @O_CREAT, align 4
%9 = or i32 %7, %8
%10 = load i32, ptr %4, align 4
%11 = call i32 @open_or_die_m(ptr noundef %6, i32 noundef %9, i32 noundef %10)
store i32 %11, ptr %5, align 4
%12 = load i32, ptr %5, align 4
%13 = call i32 @close(i32 noundef %12)
ret void
}
declare i32 @open_or_die_m(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpeqep8vy7.c'
source_filename = "/tmp/tmpeqep8vy7.c"
target datalayout = "e-m:e-p270: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/tmpeqep8vy7.c"
target datalayout = "e-m:e-p270: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/tmpilead4f6.c'
source_filename = "/tmp/tmpilead4f6.c"
target datalayout = "e-m:e-p270: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/tmpilead4f6.c"
target datalayout = "e-m:e-p270: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/tmphdbxdsgr.c'
source_filename = "/tmp/tmphdbxdsgr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"usage: %s <hostname> [<page>]\0A\00", align 1
@.str.1 = private unnamed_addr constant [62 x i8] c"`hostname` is mandatory, `page` is optional (defaults to '/')\00", align 1
@.str.2 = private unnamed_addr constant [97 x i8] c"`is present,`page must start with `/`. Otherwise the response will likely be `400 - bad request`\00", align 1
@.str.3 = private unnamed_addr constant [31 x i8] c"example: %s www.example.com /\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 @puts(ptr noundef @.str.1)
%6 = call i32 @puts(ptr noundef @.str.2)
%7 = load ptr, ptr %2, align 8
%8 = call i32 @printf(ptr noundef @.str.3, ptr noundef %7)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphdbxdsgr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"usage: %s <hostname> [<page>]\0A\00", align 1
@.str.1 = private unnamed_addr constant [62 x i8] c"`hostname` is mandatory, `page` is optional (defaults to '/')\00", align 1
@.str.2 = private unnamed_addr constant [97 x i8] c"`is present,`page must start with `/`. Otherwise the response will likely be `400 - bad request`\00", align 1
@.str.3 = private unnamed_addr constant [31 x i8] c"example: %s www.example.com /\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 @puts(ptr noundef @.str.1)
%6 = call i32 @puts(ptr noundef @.str.2)
%7 = load ptr, ptr %2, align 8
%8 = call i32 @printf(ptr noundef @.str.3, ptr noundef %7)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpoqncjhiz.c'
source_filename = "/tmp/tmpoqncjhiz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sol_comms_shutdown() #0 {
%1 = call i32 (...) @sol_http_client_shutdown()
%2 = call i32 (...) @sol_http_server_shutdown()
%3 = call i32 (...) @sol_network_shutdown()
%4 = call i32 (...) @sol_netctl_shutdown()
ret void
}
declare i32 @sol_http_client_shutdown(...) #1
declare i32 @sol_http_server_shutdown(...) #1
declare i32 @sol_network_shutdown(...) #1
declare i32 @sol_netctl_shutdown(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoqncjhiz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sol_comms_shutdown() #0 {
%1 = call i32 (...) @sol_http_client_shutdown()
%2 = call i32 (...) @sol_http_server_shutdown()
%3 = call i32 (...) @sol_network_shutdown()
%4 = call i32 (...) @sol_netctl_shutdown()
ret void
}
declare i32 @sol_http_client_shutdown(...) #1
declare i32 @sol_http_server_shutdown(...) #1
declare i32 @sol_network_shutdown(...) #1
declare i32 @sol_netctl_shutdown(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnmmb0786.c'
source_filename = "/tmp/tmpnmmb0786.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strcmp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 0, ptr %6, align 8
br label %7
7: ; preds = %53, %2
%8 = load ptr, ptr %4, align 8
%9 = load i64, ptr %6, align 8
%10 = getelementptr inbounds i8, ptr %8, i64 %9
%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 %21
14: ; preds = %7
%15 = load ptr, ptr %5, align 8
%16 = load i64, ptr %6, align 8
%17 = getelementptr inbounds i8, ptr %15, i64 %16
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp ne i32 %19, 0
br label %21
21: ; preds = %14, %7
%22 = phi i1 [ false, %7 ], [ %20, %14 ]
br i1 %22, label %23, label %54
23: ; preds = %21
%24 = load ptr, ptr %4, align 8
%25 = load i64, ptr %6, align 8
%26 = getelementptr inbounds i8, ptr %24, i64 %25
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = load ptr, ptr %5, align 8
%30 = load i64, ptr %6, align 8
%31 = getelementptr inbounds i8, ptr %29, i64 %30
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp slt i32 %28, %33
br i1 %34, label %35, label %36
35: ; preds = %23
store i32 -1, ptr %3, align 4
br label %71
36: ; preds = %23
%37 = load ptr, ptr %4, align 8
%38 = load i64, ptr %6, align 8
%39 = getelementptr inbounds i8, ptr %37, i64 %38
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = load ptr, ptr %5, align 8
%43 = load i64, ptr %6, align 8
%44 = getelementptr inbounds i8, ptr %42, i64 %43
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = icmp sgt i32 %41, %46
br i1 %47, label %48, label %49
48: ; preds = %36
store i32 1, ptr %3, align 4
br label %71
49: ; preds = %36
%50 = load i64, ptr %6, align 8
%51 = add i64 %50, 1
store i64 %51, ptr %6, align 8
br label %52
52: ; preds = %49
br label %53
53: ; preds = %52
br label %7, !llvm.loop !6
54: ; preds = %21
%55 = load ptr, ptr %4, align 8
%56 = load i64, ptr %6, align 8
%57 = getelementptr inbounds i8, ptr %55, i64 %56
%58 = load i8, ptr %57, align 1
%59 = sext i8 %58 to i32
%60 = icmp ne i32 %59, 0
br i1 %60, label %61, label %62
61: ; preds = %54
store i32 1, ptr %3, align 4
br label %71
62: ; preds = %54
%63 = load ptr, ptr %5, align 8
%64 = load i64, ptr %6, align 8
%65 = getelementptr inbounds i8, ptr %63, i64 %64
%66 = load i8, ptr %65, align 1
%67 = sext i8 %66 to i32
%68 = icmp ne i32 %67, 0
br i1 %68, label %69, label %70
69: ; preds = %62
store i32 -1, ptr %3, align 4
br label %71
70: ; preds = %62
store i32 0, ptr %3, align 4
br label %71
71: ; preds = %70, %69, %61, %48, %35
%72 = load i32, ptr %3, align 4
ret i32 %72
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpnmmb0786.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strcmp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 0, ptr %6, align 8
br label %7
7: ; preds = %53, %2
%8 = load ptr, ptr %4, align 8
%9 = load i64, ptr %6, align 8
%10 = getelementptr inbounds i8, ptr %8, i64 %9
%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 %21
14: ; preds = %7
%15 = load ptr, ptr %5, align 8
%16 = load i64, ptr %6, align 8
%17 = getelementptr inbounds i8, ptr %15, i64 %16
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp ne i32 %19, 0
br label %21
21: ; preds = %14, %7
%22 = phi i1 [ false, %7 ], [ %20, %14 ]
br i1 %22, label %23, label %54
23: ; preds = %21
%24 = load ptr, ptr %4, align 8
%25 = load i64, ptr %6, align 8
%26 = getelementptr inbounds i8, ptr %24, i64 %25
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = load ptr, ptr %5, align 8
%30 = load i64, ptr %6, align 8
%31 = getelementptr inbounds i8, ptr %29, i64 %30
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp slt i32 %28, %33
br i1 %34, label %35, label %36
35: ; preds = %23
store i32 -1, ptr %3, align 4
br label %71
36: ; preds = %23
%37 = load ptr, ptr %4, align 8
%38 = load i64, ptr %6, align 8
%39 = getelementptr inbounds i8, ptr %37, i64 %38
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = load ptr, ptr %5, align 8
%43 = load i64, ptr %6, align 8
%44 = getelementptr inbounds i8, ptr %42, i64 %43
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = icmp sgt i32 %41, %46
br i1 %47, label %48, label %49
48: ; preds = %36
store i32 1, ptr %3, align 4
br label %71
49: ; preds = %36
%50 = load i64, ptr %6, align 8
%51 = add i64 %50, 1
store i64 %51, ptr %6, align 8
br label %52
52: ; preds = %49
br label %53
53: ; preds = %52
br label %7, !llvm.loop !6
54: ; preds = %21
%55 = load ptr, ptr %4, align 8
%56 = load i64, ptr %6, align 8
%57 = getelementptr inbounds i8, ptr %55, i64 %56
%58 = load i8, ptr %57, align 1
%59 = sext i8 %58 to i32
%60 = icmp ne i32 %59, 0
br i1 %60, label %61, label %62
61: ; preds = %54
store i32 1, ptr %3, align 4
br label %71
62: ; preds = %54
%63 = load ptr, ptr %5, align 8
%64 = load i64, ptr %6, align 8
%65 = getelementptr inbounds i8, ptr %63, i64 %64
%66 = load i8, ptr %65, align 1
%67 = sext i8 %66 to i32
%68 = icmp ne i32 %67, 0
br i1 %68, label %69, label %70
69: ; preds = %62
store i32 -1, ptr %3, align 4
br label %71
70: ; preds = %62
store i32 0, ptr %3, align 4
br label %71
71: ; preds = %70, %69, %61, %48, %35
%72 = load i32, ptr %3, align 4
ret i32 %72
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpz9f3po1o.c'
source_filename = "/tmp/tmpz9f3po1o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"wb\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"Error opening .encr file\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @write_buffer(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
store i32 0, ptr %7, align 4
store ptr null, ptr %8, align 8
%9 = load ptr, ptr %4, align 8
%10 = call ptr @fopen(ptr noundef %9, ptr noundef @.str)
store ptr %10, ptr %8, align 8
%11 = load ptr, ptr %8, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %15
13: ; preds = %3
%14 = call i32 @printf(ptr noundef @.str.1)
store i32 3, ptr %7, align 4
br label %22
15: ; preds = %3
%16 = load ptr, ptr %5, align 8
%17 = load i64, ptr %6, align 8
%18 = load ptr, ptr %8, align 8
%19 = call i32 @fwrite(ptr noundef %16, i32 noundef 1, i64 noundef %17, ptr noundef %18)
%20 = load ptr, ptr %8, align 8
%21 = call i32 @fclose(ptr noundef %20)
br label %22
22: ; preds = %15, %13
%23 = load ptr, ptr %8, align 8
%24 = call i32 @fclose(ptr noundef %23)
%25 = load i32, ptr %7, align 4
ret i32 %25
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz9f3po1o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"wb\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"Error opening .encr file\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @write_buffer(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
store i32 0, ptr %7, align 4
store ptr null, ptr %8, align 8
%9 = load ptr, ptr %4, align 8
%10 = call ptr @fopen(ptr noundef %9, ptr noundef @.str)
store ptr %10, ptr %8, align 8
%11 = load ptr, ptr %8, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %15
13: ; preds = %3
%14 = call i32 @printf(ptr noundef @.str.1)
store i32 3, ptr %7, align 4
br label %22
15: ; preds = %3
%16 = load ptr, ptr %5, align 8
%17 = load i64, ptr %6, align 8
%18 = load ptr, ptr %8, align 8
%19 = call i32 @fwrite(ptr noundef %16, i32 noundef 1, i64 noundef %17, ptr noundef %18)
%20 = load ptr, ptr %8, align 8
%21 = call i32 @fclose(ptr noundef %20)
br label %22
22: ; preds = %15, %13
%23 = load ptr, ptr %8, align 8
%24 = call i32 @fclose(ptr noundef %23)
%25 = load i32, ptr %7, align 4
ret i32 %25
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphedprn3f.c'
source_filename = "/tmp/tmphedprn3f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_NONBLOCK = dso_local global i32 0, align 4
@O_RDONLY = dso_local global i32 0, align 4
@LOCK_EX = dso_local global i32 0, align 4
@O_WRONLY = dso_local global i32 0, align 4
@LOCK_SH = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
@ENOENT = dso_local global i64 0, align 8
@EACCES = dso_local global i64 0, align 8
@LOCK_NB = dso_local global i32 0, align 4
@EWOULDBLOCK = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @rl_is_flocked(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%10 = load i32, ptr @O_NONBLOCK, align 4
store i32 %10, ptr %7, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp eq i32 %11, 1
br i1 %12, label %13, label %18
13: ; preds = %2
%14 = load i32, ptr @O_RDONLY, align 4
%15 = load i32, ptr %7, align 4
%16 = or i32 %15, %14
store i32 %16, ptr %7, align 4
%17 = load i32, ptr @LOCK_EX, align 4
store i32 %17, ptr %8, align 4
br label %28
18: ; preds = %2
%19 = load i32, ptr %5, align 4
%20 = icmp eq i32 %19, 2
br i1 %20, label %21, label %26
21: ; preds = %18
%22 = load i32, ptr @O_WRONLY, align 4
%23 = load i32, ptr %7, align 4
%24 = or i32 %23, %22
store i32 %24, ptr %7, align 4
%25 = load i32, ptr @LOCK_SH, align 4
store i32 %25, ptr %8, align 4
br label %27
26: ; preds = %18
store i32 6, ptr %3, align 4
br label %76
27: ; preds = %21
br label %28
28: ; preds = %27, %13
%29 = load ptr, ptr %4, align 8
%30 = load i32, ptr %7, align 4
%31 = call i32 @open(ptr noundef %29, i32 noundef %30)
store i32 %31, ptr %9, align 4
%32 = load i32, ptr %9, align 4
%33 = icmp eq i32 %32, -1
br i1 %33, label %34, label %44
34: ; preds = %28
%35 = load i64, ptr @errno, align 8
%36 = load i64, ptr @ENOENT, align 8
%37 = icmp eq i64 %35, %36
br i1 %37, label %42, label %38
38: ; preds = %34
%39 = load i64, ptr @errno, align 8
%40 = load i64, ptr @EACCES, align 8
%41 = icmp eq i64 %39, %40
br i1 %41, label %42, label %43
42: ; preds = %38, %34
store i32 3, ptr %3, align 4
br label %76
43: ; preds = %38
store i32 6, ptr %3, align 4
br label %76
44: ; preds = %28
%45 = load i32, ptr %9, align 4
%46 = load i32, ptr %8, align 4
%47 = load i32, ptr @LOCK_NB, align 4
%48 = or i32 %46, %47
%49 = call i32 @flock(i32 noundef %45, i32 noundef %48)
store i32 %49, ptr %6, align 4
%50 = load i32, ptr %6, align 4
%51 = icmp eq i32 %50, 0
br i1 %51, label %52, label %53
52: ; preds = %44
store i32 3, ptr %6, align 4
br label %72
53: ; preds = %44
%54 = load i64, ptr @errno, align 8
%55 = load i64, ptr @EWOULDBLOCK, align 8
%56 = icmp eq i64 %54, %55
br i1 %56, label %57, label %71
57: ; preds = %53
%58 = load i32, ptr %5, align 4
%59 = icmp eq i32 %58, 1
br i1 %59, label %60, label %70
60: ; preds = %57
%61 = load i32, ptr %9, align 4
%62 = load i32, ptr @LOCK_SH, align 4
%63 = load i32, ptr @LOCK_NB, align 4
%64 = or i32 %62, %63
%65 = call i32 @flock(i32 noundef %61, i32 noundef %64)
store i32 %65, ptr %6, align 4
%66 = load i32, ptr %6, align 4
%67 = icmp eq i32 %66, 0
br i1 %67, label %68, label %69
68: ; preds = %60
store i32 2, ptr %6, align 4
br label %72
69: ; preds = %60
store i32 3, ptr %6, align 4
br label %72
70: ; preds = %57
store i32 2, ptr %6, align 4
br label %72
71: ; preds = %53
store i32 6, ptr %6, align 4
br label %72
72: ; preds = %71, %70, %69, %68, %52
%73 = load i32, ptr %9, align 4
%74 = call i32 @close(i32 noundef %73)
%75 = load i32, ptr %6, align 4
store i32 %75, ptr %3, align 4
br label %76
76: ; preds = %72, %43, %42, %26
%77 = load i32, ptr %3, align 4
ret i32 %77
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @flock(i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphedprn3f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_NONBLOCK = dso_local global i32 0, align 4
@O_RDONLY = dso_local global i32 0, align 4
@LOCK_EX = dso_local global i32 0, align 4
@O_WRONLY = dso_local global i32 0, align 4
@LOCK_SH = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
@ENOENT = dso_local global i64 0, align 8
@EACCES = dso_local global i64 0, align 8
@LOCK_NB = dso_local global i32 0, align 4
@EWOULDBLOCK = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @rl_is_flocked(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%10 = load i32, ptr @O_NONBLOCK, align 4
store i32 %10, ptr %7, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp eq i32 %11, 1
br i1 %12, label %13, label %18
13: ; preds = %2
%14 = load i32, ptr @O_RDONLY, align 4
%15 = load i32, ptr %7, align 4
%16 = or i32 %15, %14
store i32 %16, ptr %7, align 4
%17 = load i32, ptr @LOCK_EX, align 4
store i32 %17, ptr %8, align 4
br label %28
18: ; preds = %2
%19 = load i32, ptr %5, align 4
%20 = icmp eq i32 %19, 2
br i1 %20, label %21, label %26
21: ; preds = %18
%22 = load i32, ptr @O_WRONLY, align 4
%23 = load i32, ptr %7, align 4
%24 = or i32 %23, %22
store i32 %24, ptr %7, align 4
%25 = load i32, ptr @LOCK_SH, align 4
store i32 %25, ptr %8, align 4
br label %27
26: ; preds = %18
store i32 6, ptr %3, align 4
br label %76
27: ; preds = %21
br label %28
28: ; preds = %27, %13
%29 = load ptr, ptr %4, align 8
%30 = load i32, ptr %7, align 4
%31 = call i32 @open(ptr noundef %29, i32 noundef %30)
store i32 %31, ptr %9, align 4
%32 = load i32, ptr %9, align 4
%33 = icmp eq i32 %32, -1
br i1 %33, label %34, label %44
34: ; preds = %28
%35 = load i64, ptr @errno, align 8
%36 = load i64, ptr @ENOENT, align 8
%37 = icmp eq i64 %35, %36
br i1 %37, label %42, label %38
38: ; preds = %34
%39 = load i64, ptr @errno, align 8
%40 = load i64, ptr @EACCES, align 8
%41 = icmp eq i64 %39, %40
br i1 %41, label %42, label %43
42: ; preds = %38, %34
store i32 3, ptr %3, align 4
br label %76
43: ; preds = %38
store i32 6, ptr %3, align 4
br label %76
44: ; preds = %28
%45 = load i32, ptr %9, align 4
%46 = load i32, ptr %8, align 4
%47 = load i32, ptr @LOCK_NB, align 4
%48 = or i32 %46, %47
%49 = call i32 @flock(i32 noundef %45, i32 noundef %48)
store i32 %49, ptr %6, align 4
%50 = load i32, ptr %6, align 4
%51 = icmp eq i32 %50, 0
br i1 %51, label %52, label %53
52: ; preds = %44
store i32 3, ptr %6, align 4
br label %72
53: ; preds = %44
%54 = load i64, ptr @errno, align 8
%55 = load i64, ptr @EWOULDBLOCK, align 8
%56 = icmp eq i64 %54, %55
br i1 %56, label %57, label %71
57: ; preds = %53
%58 = load i32, ptr %5, align 4
%59 = icmp eq i32 %58, 1
br i1 %59, label %60, label %70
60: ; preds = %57
%61 = load i32, ptr %9, align 4
%62 = load i32, ptr @LOCK_SH, align 4
%63 = load i32, ptr @LOCK_NB, align 4
%64 = or i32 %62, %63
%65 = call i32 @flock(i32 noundef %61, i32 noundef %64)
store i32 %65, ptr %6, align 4
%66 = load i32, ptr %6, align 4
%67 = icmp eq i32 %66, 0
br i1 %67, label %68, label %69
68: ; preds = %60
store i32 2, ptr %6, align 4
br label %72
69: ; preds = %60
store i32 3, ptr %6, align 4
br label %72
70: ; preds = %57
store i32 2, ptr %6, align 4
br label %72
71: ; preds = %53
store i32 6, ptr %6, align 4
br label %72
72: ; preds = %71, %70, %69, %68, %52
%73 = load i32, ptr %9, align 4
%74 = call i32 @close(i32 noundef %73)
%75 = load i32, ptr %6, align 4
store i32 %75, ptr %3, align 4
br label %76
76: ; preds = %72, %43, %42, %26
%77 = load i32, ptr %3, align 4
ret i32 %77
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @flock(i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpuswdbwnc.c'
source_filename = "/tmp/tmpuswdbwnc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @magnitude(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds double, ptr %3, i64 0
%5 = load double, ptr %4, align 8
%6 = call i64 @pow(double noundef %5, i32 noundef 2)
%7 = load ptr, ptr %2, align 8
%8 = getelementptr inbounds double, ptr %7, i64 1
%9 = load double, ptr %8, align 8
%10 = call i64 @pow(double noundef %9, i32 noundef 2)
%11 = add nsw i64 %6, %10
%12 = load ptr, ptr %2, align 8
%13 = getelementptr inbounds double, ptr %12, i64 2
%14 = load double, ptr %13, align 8
%15 = call i64 @pow(double noundef %14, i32 noundef 2)
%16 = add nsw i64 %11, %15
%17 = call double @sqrt(i64 noundef %16)
ret double %17
}
declare double @sqrt(i64 noundef) #1
declare i64 @pow(double noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuswdbwnc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @magnitude(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds double, ptr %3, i64 0
%5 = load double, ptr %4, align 8
%6 = call i64 @pow(double noundef %5, i32 noundef 2)
%7 = load ptr, ptr %2, align 8
%8 = getelementptr inbounds double, ptr %7, i64 1
%9 = load double, ptr %8, align 8
%10 = call i64 @pow(double noundef %9, i32 noundef 2)
%11 = add nsw i64 %6, %10
%12 = load ptr, ptr %2, align 8
%13 = getelementptr inbounds double, ptr %12, i64 2
%14 = load double, ptr %13, align 8
%15 = call i64 @pow(double noundef %14, i32 noundef 2)
%16 = add nsw i64 %11, %15
%17 = call double @sqrt(i64 noundef %16)
ret double %17
}
declare double @sqrt(i64 noundef) #1
declare i64 @pow(double noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfyfkr1qv.c'
source_filename = "/tmp/tmpfyfkr1qv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isspace.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isspace should be 1 for 0x0c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isspace_0x0c() #0 {
%1 = call i32 @isspace(i32 noundef 12) #3
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 65, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @isspace(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 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-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 willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfyfkr1qv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isspace.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isspace should be 1 for 0x0c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isspace_0x0c() #0 {
%1 = call i32 @isspace(i32 noundef 12) #3
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 65, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @isspace(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 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-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 willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp50rp_icp.c'
source_filename = "/tmp/tmp50rp_icp.c"
target datalayout = "e-m:e-p270: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/tmp50rp_icp.c"
target datalayout = "e-m:e-p270: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/tmp0nv8oqov.c'
source_filename = "/tmp/tmp0nv8oqov.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%c\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @escreva_matriz_tela(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
br label %9
9: ; preds = %35, %3
%10 = load i32, ptr %7, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %38
13: ; preds = %9
store i32 0, ptr %8, align 4
br label %14
14: ; preds = %30, %13
%15 = load i32, ptr %8, align 4
%16 = load i32, ptr %6, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %33
18: ; preds = %14
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %7, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds ptr, ptr %19, i64 %21
%23 = load ptr, ptr %22, 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 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %28)
br label %30
30: ; preds = %18
%31 = load i32, ptr %8, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %8, align 4
br label %14, !llvm.loop !6
33: ; preds = %14
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %35
35: ; preds = %33
%36 = load i32, ptr %7, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %7, align 4
br label %9, !llvm.loop !8
38: ; preds = %9
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0nv8oqov.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%c\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @escreva_matriz_tela(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
%9 = load i32, ptr %7, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph2, label %42
.lr.ph2: ; preds = %3
br label %12
12: ; preds = %.lr.ph2, %36
store i32 0, ptr %8, align 4
%13 = load i32, ptr %8, align 4
%14 = load i32, ptr %6, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph, label %34
.lr.ph: ; preds = %12
br label %16
16: ; preds = %.lr.ph, %28
%17 = load ptr, ptr %4, align 8
%18 = load i32, ptr %7, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds ptr, ptr %17, i64 %19
%21 = load ptr, ptr %20, align 8
%22 = load i32, ptr %8, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %21, i64 %23
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %26)
br label %28
28: ; preds = %16
%29 = load i32, ptr %8, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %8, align 4
%31 = load i32, ptr %8, align 4
%32 = load i32, ptr %6, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %34
34: ; preds = %._crit_edge, %12
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %36
36: ; preds = %34
%37 = load i32, ptr %7, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %7, align 4
%39 = load i32, ptr %7, align 4
%40 = load i32, ptr %5, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %12, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %36
br label %42
42: ; preds = %._crit_edge3, %3
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpr2p0dpaz.c'
source_filename = "/tmp/tmpr2p0dpaz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SendString(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = call i32 @strlen(ptr noundef %9)
store i32 %10, ptr %6, align 4
%11 = load i32, ptr %4, align 4
%12 = call i32 @write(i32 noundef %11, ptr noundef %6, i32 noundef 4)
store i32 %12, ptr %8, align 4
%13 = load i32, ptr %8, align 4
%14 = icmp sle i32 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %2
store i32 -1, ptr %3, align 4
br label %27
16: ; preds = %2
%17 = load i32, ptr %4, align 4
%18 = load ptr, ptr %5, align 8
%19 = load i32, ptr %6, align 4
%20 = call i32 @SendData(i32 noundef %17, ptr noundef %18, i32 noundef %19)
store i32 %20, ptr %7, align 4
%21 = load i32, ptr %7, align 4
%22 = load i32, ptr %6, align 4
%23 = icmp eq i32 %21, %22
%24 = zext i1 %23 to i32
%25 = call i32 @assert(i32 noundef %24)
%26 = load i32, ptr %7, align 4
store i32 %26, ptr %3, align 4
br label %27
27: ; preds = %16, %15
%28 = load i32, ptr %3, align 4
ret i32 %28
}
declare i32 @strlen(ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @SendData(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr2p0dpaz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SendString(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = call i32 @strlen(ptr noundef %9)
store i32 %10, ptr %6, align 4
%11 = load i32, ptr %4, align 4
%12 = call i32 @write(i32 noundef %11, ptr noundef %6, i32 noundef 4)
store i32 %12, ptr %8, align 4
%13 = load i32, ptr %8, align 4
%14 = icmp sle i32 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %2
store i32 -1, ptr %3, align 4
br label %27
16: ; preds = %2
%17 = load i32, ptr %4, align 4
%18 = load ptr, ptr %5, align 8
%19 = load i32, ptr %6, align 4
%20 = call i32 @SendData(i32 noundef %17, ptr noundef %18, i32 noundef %19)
store i32 %20, ptr %7, align 4
%21 = load i32, ptr %7, align 4
%22 = load i32, ptr %6, align 4
%23 = icmp eq i32 %21, %22
%24 = zext i1 %23 to i32
%25 = call i32 @assert(i32 noundef %24)
%26 = load i32, ptr %7, align 4
store i32 %26, ptr %3, align 4
br label %27
27: ; preds = %16, %15
%28 = load i32, ptr %3, align 4
ret i32 %28
}
declare i32 @strlen(ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @SendData(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmps0prb5d2.c'
source_filename = "/tmp/tmps0prb5d2.c"
target datalayout = "e-m:e-p270: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/tmps0prb5d2.c"
target datalayout = "e-m:e-p270: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/tmp2sz23zlh.c'
source_filename = "/tmp/tmp2sz23zlh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isalpha.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isalpha should be 0 for 0xac\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalpha_0xac() #0 {
%1 = call i64 @isalpha(i32 noundef 172)
%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 865, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isalpha(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/tmp2sz23zlh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isalpha.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isalpha should be 0 for 0xac\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalpha_0xac() #0 {
%1 = call i64 @isalpha(i32 noundef 172)
%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 865, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isalpha(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/tmps6iag702.c'
source_filename = "/tmp/tmps6iag702.c"
target datalayout = "e-m:e-p270: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/tmps6iag702.c"
target datalayout = "e-m:e-p270: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/tmpfyuujdlo.c'
source_filename = "/tmp/tmpfyuujdlo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"%d %d %d %d\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"%d %d %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5)
store i32 0, ptr %6, align 4
br label %8
8: ; preds = %14, %0
%9 = load i32, ptr %6, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %17
12: ; preds = %8
%13 = call i32 @rotr(ptr noundef %2, ptr noundef %3, ptr noundef %4)
br label %14
14: ; preds = %12
%15 = load i32, ptr %6, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %6, align 4
br label %8, !llvm.loop !6
17: ; preds = %8
%18 = load i32, ptr %2, align 4
%19 = load i32, ptr %3, align 4
%20 = load i32, ptr %4, align 4
%21 = call i32 @printf(ptr noundef @.str.1, i32 noundef %18, i32 noundef %19, i32 noundef %20)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @rotr(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfyuujdlo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"%d %d %d %d\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"%d %d %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5)
store i32 0, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %19
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %13
%12 = call i32 @rotr(ptr noundef %2, ptr noundef %3, ptr noundef %4)
br label %13
13: ; preds = %11
%14 = load i32, ptr %6, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %6, align 4
%16 = load i32, ptr %6, align 4
%17 = load i32, ptr %5, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %19
19: ; preds = %._crit_edge, %0
%20 = load i32, ptr %2, align 4
%21 = load i32, ptr %3, align 4
%22 = load i32, ptr %4, align 4
%23 = call i32 @printf(ptr noundef @.str.1, i32 noundef %20, i32 noundef %21, i32 noundef %22)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @rotr(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp_bgu5spn.c'
source_filename = "/tmp/tmp_bgu5spn.c"
target datalayout = "e-m:e-p270: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 [34 x i8] c"Name of System Map file missing.\0A\00", align 1
@.str.1 = private unnamed_addr constant [31 x i8] c"Name of vmlinux file missing.\0A\00", align 1
@.str.2 = private unnamed_addr constant [38 x i8] c"Name of vmlinux output file missing.\0A\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.4 = private unnamed_addr constant [38 x i8] c"System Map file \22%s\22 failed to open.\0A\00", align 1
@.str.5 = private unnamed_addr constant [35 x i8] c"vmlinux file \22%s\22 failed to open.\0A\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.7 = private unnamed_addr constant [42 x i8] c"output vmlinux file \22%s\22 failed to open.\0A\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [24 x i8] c"kernel file size = %ld\0A\00", align 1
@.str.9 = private unnamed_addr constant [51 x i8] c"You must have a linux kernel specified as argv[2]\0A\00", align 1
@.str.10 = private unnamed_addr constant [53 x i8] c"actual kernel length (minus ELF header) = %ld/%lxx \0A\00", align 1
@.str.11 = private unnamed_addr constant [55 x i8] c"Kernel length rounded up to a 4k multiple = %ld/%lxx \0A\00", align 1
@.str.12 = private unnamed_addr constant [33 x i8] c"Kernel pages to copy = %ld/%lxx\0A\00", align 1
@.str.13 = private unnamed_addr constant [20 x i8] c"%s file size = %ld\0A\00", align 1
@.str.14 = private unnamed_addr constant [63 x i8] c"Rounding System Map file up to a multiple of 4096, adding %ld\0A\00", align 1
@.str.15 = private unnamed_addr constant [32 x i8] c"Rounded System Map size is %ld\0A\00", align 1
@.str.16 = private unnamed_addr constant [32 x i8] c"System map pages to copy = %ld\0A\00", align 1
@.str.17 = private unnamed_addr constant [6 x i8] c" _end\00", align 1
@.str.18 = private unnamed_addr constant [41 x i8] c"Unable to find _end in the sysmap file \0A\00", align 1
@.str.19 = private unnamed_addr constant [9 x i8] c"inbuf: \0A\00", align 1
@.str.20 = private unnamed_addr constant [5 x i8] c"%s \0A\00", align 1
@.str.21 = private unnamed_addr constant [86 x i8] c"Found _end in the last page of the sysmap - backing up 10 characters it looks like %s\00", align 1
@.str.22 = private unnamed_addr constant [79 x i8] c"vmlinux is larger than _end indicates it needs to be - sysmapStartOffs = %lx \0A\00", align 1
@.str.23 = private unnamed_addr constant [72 x i8] c"will insert %lx pages between the vmlinux and the start of the sysmap \0A\00", align 1
@.str.24 = private unnamed_addr constant [75 x i8] c"vmlinux is smaller than _end indicates is needed - sysmapStartOffs = %lx \0A\00", align 1
@.str.25 = private unnamed_addr constant [39 x i8] c"Storing embedded_sysmap_start at 0x3c\0A\00", align 1
@.str.26 = private unnamed_addr constant [37 x i8] c"Storing embedded_sysmap_end at 0x44\0A\00", align 1
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@S_IXUSR = dso_local global i32 0, align 4
@S_IRGRP = dso_local global i32 0, align 4
@S_IXGRP = dso_local global i32 0, align 4
@S_IROTH = 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 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 [4096 x i8], align 16
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
%14 = alloca i64, align 8
%15 = alloca i64, align 8
%16 = alloca i64, align 8
%17 = alloca i64, align 8
%18 = alloca i64, align 8
%19 = alloca i64, align 8
%20 = alloca i64, align 8
%21 = alloca i64, align 8
%22 = alloca i64, align 8
%23 = 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 null, ptr %7, align 8
store ptr null, ptr %8, align 8
store ptr null, ptr %9, align 8
store ptr null, ptr %10, align 8
store i64 0, ptr %11, align 8
store i64 0, ptr %12, align 8
store i64 0, ptr %13, align 8
store i64 0, ptr %14, align 8
store i64 0, ptr %15, align 8
store i64 0, ptr %16, align 8
store i64 0, ptr %17, align 8
store i64 0, ptr %18, align 8
store i64 0, ptr %19, align 8
store i64 0, ptr %20, align 8
store i64 0, ptr %21, align 8
store i64 0, ptr %22, align 8
%24 = load i32, ptr %4, align 4
%25 = icmp slt i32 %24, 2
br i1 %25, label %26, label %30
26: ; preds = %2
%27 = load i32, ptr @stderr, align 4
%28 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %27, ptr noundef @.str)
%29 = call i32 @exit(i32 noundef 1) #3
unreachable
30: ; preds = %2
%31 = load i32, ptr %4, align 4
%32 = icmp slt i32 %31, 3
br i1 %32, label %33, label %37
33: ; preds = %30
%34 = load i32, ptr @stderr, align 4
%35 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %34, ptr noundef @.str.1)
%36 = call i32 @exit(i32 noundef 1) #3
unreachable
37: ; preds = %30
%38 = load i32, ptr %4, align 4
%39 = icmp slt i32 %38, 4
br i1 %39, label %40, label %44
40: ; preds = %37
%41 = load i32, ptr @stderr, align 4
%42 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %41, ptr noundef @.str.2)
%43 = call i32 @exit(i32 noundef 1) #3
unreachable
44: ; preds = %37
%45 = load ptr, ptr %5, align 8
%46 = getelementptr inbounds ptr, ptr %45, i64 1
%47 = load ptr, ptr %46, align 8
%48 = call ptr @fopen(ptr noundef %47, ptr noundef @.str.3)
store ptr %48, ptr %7, align 8
%49 = load ptr, ptr %7, align 8
%50 = icmp ne ptr %49, null
br i1 %50, label %58, label %51
51: ; preds = %44
%52 = load i32, ptr @stderr, align 4
%53 = load ptr, ptr %5, align 8
%54 = getelementptr inbounds ptr, ptr %53, i64 1
%55 = load ptr, ptr %54, align 8
%56 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %52, ptr noundef @.str.4, ptr noundef %55)
%57 = call i32 @exit(i32 noundef 1) #3
unreachable
58: ; preds = %44
%59 = load ptr, ptr %5, align 8
%60 = getelementptr inbounds ptr, ptr %59, i64 2
%61 = load ptr, ptr %60, align 8
%62 = call ptr @fopen(ptr noundef %61, ptr noundef @.str.3)
store ptr %62, ptr %9, align 8
%63 = load ptr, ptr %9, align 8
%64 = icmp ne ptr %63, null
br i1 %64, label %72, label %65
65: ; preds = %58
%66 = load i32, ptr @stderr, align 4
%67 = load ptr, ptr %5, align 8
%68 = getelementptr inbounds ptr, ptr %67, i64 2
%69 = load ptr, ptr %68, align 8
%70 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %66, ptr noundef @.str.5, ptr noundef %69)
%71 = call i32 @exit(i32 noundef 1) #3
unreachable
72: ; preds = %58
%73 = load ptr, ptr %5, align 8
%74 = getelementptr inbounds ptr, ptr %73, i64 3
%75 = load ptr, ptr %74, align 8
%76 = call ptr @fopen(ptr noundef %75, ptr noundef @.str.6)
store ptr %76, ptr %10, align 8
%77 = load ptr, ptr %10, align 8
%78 = icmp ne ptr %77, null
br i1 %78, label %86, label %79
79: ; preds = %72
%80 = load i32, ptr @stderr, align 4
%81 = load ptr, ptr %5, align 8
%82 = getelementptr inbounds ptr, ptr %81, i64 3
%83 = load ptr, ptr %82, align 8
%84 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %80, ptr noundef @.str.7, ptr noundef %83)
%85 = call i32 @exit(i32 noundef 1) #3
unreachable
86: ; preds = %72
%87 = load ptr, ptr %9, align 8
%88 = load i32, ptr @SEEK_END, align 4
%89 = call i32 @fseek(ptr noundef %87, i32 noundef 0, i32 noundef %88)
%90 = load ptr, ptr %9, align 8
%91 = call i64 @ftell(ptr noundef %90)
store i64 %91, ptr %15, align 8
%92 = load ptr, ptr %9, align 8
%93 = load i32, ptr @SEEK_SET, align 4
%94 = call i32 @fseek(ptr noundef %92, i32 noundef 0, i32 noundef %93)
%95 = load i64, ptr %15, align 8
%96 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i64 noundef %95)
%97 = load i64, ptr %15, align 8
%98 = icmp eq i64 %97, 0
br i1 %98, label %99, label %103
99: ; preds = %86
%100 = load i32, ptr @stderr, align 4
%101 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %100, ptr noundef @.str.9)
%102 = call i32 @exit(i32 noundef 1) #3
unreachable
103: ; preds = %86
%104 = load i64, ptr %15, align 8
%105 = sub i64 %104, 65536
store i64 %105, ptr %16, align 8
%106 = load i64, ptr %16, align 8
%107 = load i64, ptr %16, align 8
%108 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i64 noundef %106, i64 noundef %107)
%109 = load i64, ptr %16, align 8
%110 = urem i64 %109, 4096
store i64 %110, ptr %17, align 8
%111 = load i64, ptr %16, align 8
store i64 %111, ptr %18, align 8
%112 = load i64, ptr %17, align 8
%113 = icmp ne i64 %112, 0
br i1 %113, label %114, label %119
114: ; preds = %103
%115 = load i64, ptr %17, align 8
%116 = sub i64 4096, %115
%117 = load i64, ptr %18, align 8
%118 = add i64 %117, %116
store i64 %118, ptr %18, align 8
br label %119
119: ; preds = %114, %103
%120 = load i64, ptr %18, align 8
%121 = load i64, ptr %18, align 8
%122 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i64 noundef %120, i64 noundef %121)
%123 = load i64, ptr %18, align 8
%124 = udiv i64 %123, 4096
store i64 %124, ptr %21, align 8
%125 = load i64, ptr %21, align 8
%126 = load i64, ptr %21, align 8
%127 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i64 noundef %125, i64 noundef %126)
%128 = load ptr, ptr %7, align 8
%129 = load i32, ptr @SEEK_END, align 4
%130 = call i32 @fseek(ptr noundef %128, i32 noundef 0, i32 noundef %129)
%131 = load ptr, ptr %7, align 8
%132 = call i64 @ftell(ptr noundef %131)
store i64 %132, ptr %12, align 8
%133 = load ptr, ptr %7, align 8
%134 = load i32, ptr @SEEK_SET, align 4
%135 = call i32 @fseek(ptr noundef %133, i32 noundef 0, i32 noundef %134)
%136 = load ptr, ptr %5, align 8
%137 = getelementptr inbounds ptr, ptr %136, i64 1
%138 = load ptr, ptr %137, align 8
%139 = load i64, ptr %12, align 8
%140 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, ptr noundef %138, i64 noundef %139)
%141 = load i64, ptr %12, align 8
store i64 %141, ptr %13, align 8
%142 = load i64, ptr %13, align 8
%143 = urem i64 %142, 4096
%144 = sub i64 4096, %143
store i64 %144, ptr %14, align 8
%145 = load i64, ptr %14, align 8
%146 = icmp ne i64 %145, 0
br i1 %146, label %147, label %153
147: ; preds = %119
%148 = load i64, ptr %14, align 8
%149 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i64 noundef %148)
%150 = load i64, ptr %14, align 8
%151 = load i64, ptr %13, align 8
%152 = add i64 %151, %150
store i64 %152, ptr %13, align 8
br label %153
153: ; preds = %147, %119
%154 = load i64, ptr %13, align 8
%155 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i64 noundef %154)
%156 = load i64, ptr %13, align 8
%157 = udiv i64 %156, 4096
store i64 %157, ptr %20, align 8
%158 = load i64, ptr %20, align 8
%159 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, i64 noundef %158)
store i64 0, ptr %11, align 8
br label %160
160: ; preds = %168, %153
%161 = load i64, ptr %11, align 8
%162 = load i64, ptr %20, align 8
%163 = icmp ult i64 %161, %162
br i1 %163, label %164, label %171
164: ; preds = %160
%165 = load ptr, ptr %7, align 8
%166 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%167 = call i32 @get4k(ptr noundef %165, ptr noundef %166)
br label %168
168: ; preds = %164
%169 = load i64, ptr %11, align 8
%170 = add nsw i64 %169, 1
store i64 %170, ptr %11, align 8
br label %160, !llvm.loop !6
171: ; preds = %160
%172 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%173 = call ptr @strstr(ptr noundef %172, ptr noundef @.str.17)
store ptr %173, ptr %8, align 8
%174 = load ptr, ptr %8, align 8
%175 = icmp ne ptr %174, null
br i1 %175, label %185, label %176
176: ; preds = %171
%177 = load i32, ptr @stderr, align 4
%178 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %177, ptr noundef @.str.18)
%179 = load i32, ptr @stderr, align 4
%180 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %179, ptr noundef @.str.19)
%181 = load i32, ptr @stderr, align 4
%182 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%183 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %181, ptr noundef @.str.20, ptr noundef %182)
%184 = call i32 @exit(i32 noundef 1) #3
unreachable
185: ; preds = %171
%186 = load ptr, ptr %8, align 8
%187 = getelementptr inbounds i8, ptr %186, i64 -10
%188 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, ptr noundef %187)
%189 = load ptr, ptr %8, align 8
%190 = getelementptr inbounds i8, ptr %189, i64 -10
%191 = call i64 @strtol(ptr noundef %190, ptr noundef null, i32 noundef 16)
%192 = trunc i64 %191 to i32
%193 = zext i32 %192 to i64
store i64 %193, ptr %19, align 8
%194 = load i64, ptr %19, align 8
%195 = udiv i64 %194, 4096
%196 = load i64, ptr %21, align 8
%197 = sub i64 %195, %196
store i64 %197, ptr %22, align 8
%198 = load i64, ptr %22, align 8
%199 = icmp slt i64 %198, 0
br i1 %199, label %200, label %206
200: ; preds = %185
%201 = load i64, ptr %18, align 8
store i64 %201, ptr %19, align 8
%202 = load i64, ptr %19, align 8
%203 = call i32 (ptr, ...) @printf(ptr noundef @.str.22, i64 noundef %202)
store i64 0, ptr %22, align 8
%204 = load i64, ptr %22, align 8
%205 = call i32 (ptr, ...) @printf(ptr noundef @.str.23, i64 noundef %204)
br label %211
206: ; preds = %185
%207 = load i64, ptr %19, align 8
%208 = call i32 (ptr, ...) @printf(ptr noundef @.str.24, i64 noundef %207)
%209 = load i64, ptr %22, align 8
%210 = call i32 (ptr, ...) @printf(ptr noundef @.str.23, i64 noundef %209)
br label %211
211: ; preds = %206, %200
store i64 0, ptr %11, align 8
br label %212
212: ; preds = %222, %211
%213 = load i64, ptr %11, align 8
%214 = icmp slt i64 %213, 16
br i1 %214, label %215, label %225
215: ; preds = %212
%216 = load ptr, ptr %9, align 8
%217 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%218 = call i32 @get4k(ptr noundef %216, ptr noundef %217)
%219 = load ptr, ptr %10, align 8
%220 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%221 = call i32 @put4k(ptr noundef %219, ptr noundef %220)
br label %222
222: ; preds = %215
%223 = load i64, ptr %11, align 8
%224 = add nsw i64 %223, 1
store i64 %224, ptr %11, align 8
br label %212, !llvm.loop !8
225: ; preds = %212
%226 = load ptr, ptr %9, align 8
%227 = load i32, ptr @SEEK_SET, align 4
%228 = call i32 @fseek(ptr noundef %226, i32 noundef 65536, i32 noundef %227)
store i64 0, ptr %11, align 8
br label %229
229: ; preds = %256, %225
%230 = load i64, ptr %11, align 8
%231 = load i64, ptr %21, align 8
%232 = icmp ult i64 %230, %231
br i1 %232, label %233, label %259
233: ; preds = %229
%234 = load ptr, ptr %9, align 8
%235 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%236 = call i32 @get4k(ptr noundef %234, ptr noundef %235)
%237 = load i64, ptr %11, align 8
%238 = icmp eq i64 %237, 0
br i1 %238, label %239, label %252
239: ; preds = %233
%240 = call i32 (ptr, ...) @printf(ptr noundef @.str.25)
%241 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%242 = getelementptr inbounds i8, ptr %241, i64 60
store ptr %242, ptr %23, align 8
%243 = load i64, ptr %19, align 8
%244 = load ptr, ptr %23, align 8
store i64 %243, ptr %244, align 8
%245 = call i32 (ptr, ...) @printf(ptr noundef @.str.26)
%246 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%247 = getelementptr inbounds i8, ptr %246, i64 68
store ptr %247, ptr %23, align 8
%248 = load i64, ptr %19, align 8
%249 = load i64, ptr %12, align 8
%250 = add i64 %248, %249
%251 = load ptr, ptr %23, align 8
store i64 %250, ptr %251, align 8
br label %252
252: ; preds = %239, %233
%253 = load ptr, ptr %10, align 8
%254 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%255 = call i32 @put4k(ptr noundef %253, ptr noundef %254)
br label %256
256: ; preds = %252
%257 = load i64, ptr %11, align 8
%258 = add nsw i64 %257, 1
store i64 %258, ptr %11, align 8
br label %229, !llvm.loop !9
259: ; preds = %229
store i64 0, ptr %11, align 8
br label %260
260: ; preds = %270, %259
%261 = load i64, ptr %11, align 8
%262 = load i64, ptr %22, align 8
%263 = icmp slt i64 %261, %262
br i1 %263, label %264, label %273
264: ; preds = %260
%265 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%266 = call i32 @memset(ptr noundef %265, i32 noundef 0, i32 noundef 4096)
%267 = load ptr, ptr %10, align 8
%268 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%269 = call i32 @put4k(ptr noundef %267, ptr noundef %268)
br label %270
270: ; preds = %264
%271 = load i64, ptr %11, align 8
%272 = add nsw i64 %271, 1
store i64 %272, ptr %11, align 8
br label %260, !llvm.loop !10
273: ; preds = %260
%274 = load ptr, ptr %7, align 8
%275 = load i32, ptr @SEEK_SET, align 4
%276 = call i32 @fseek(ptr noundef %274, i32 noundef 0, i32 noundef %275)
store i64 0, ptr %11, align 8
br label %277
277: ; preds = %288, %273
%278 = load i64, ptr %11, align 8
%279 = load i64, ptr %20, align 8
%280 = icmp ult i64 %278, %279
br i1 %280, label %281, label %291
281: ; preds = %277
%282 = load ptr, ptr %7, align 8
%283 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%284 = call i32 @get4k(ptr noundef %282, ptr noundef %283)
%285 = load ptr, ptr %10, align 8
%286 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%287 = call i32 @put4k(ptr noundef %285, ptr noundef %286)
br label %288
288: ; preds = %281
%289 = load i64, ptr %11, align 8
%290 = add nsw i64 %289, 1
store i64 %290, ptr %11, align 8
br label %277, !llvm.loop !11
291: ; preds = %277
%292 = load ptr, ptr %7, align 8
%293 = call i32 @fclose(ptr noundef %292)
%294 = load ptr, ptr %9, align 8
%295 = call i32 @fclose(ptr noundef %294)
%296 = load ptr, ptr %10, align 8
%297 = call i32 @fclose(ptr noundef %296)
%298 = load ptr, ptr %5, align 8
%299 = getelementptr inbounds ptr, ptr %298, i64 3
%300 = load ptr, ptr %299, align 8
%301 = load i32, ptr @S_IRUSR, align 4
%302 = load i32, ptr @S_IWUSR, align 4
%303 = or i32 %301, %302
%304 = load i32, ptr @S_IXUSR, align 4
%305 = or i32 %303, %304
%306 = load i32, ptr @S_IRGRP, align 4
%307 = or i32 %305, %306
%308 = load i32, ptr @S_IXGRP, align 4
%309 = or i32 %307, %308
%310 = load i32, ptr @S_IROTH, align 4
%311 = or i32 %309, %310
%312 = load i32, ptr @S_IXOTH, align 4
%313 = or i32 %311, %312
%314 = call i32 @chmod(ptr noundef %300, i32 noundef %313)
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @get4k(ptr noundef, ptr noundef) #1
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare i64 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @put4k(ptr noundef, ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @chmod(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_bgu5spn.c"
target datalayout = "e-m:e-p270: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 [34 x i8] c"Name of System Map file missing.\0A\00", align 1
@.str.1 = private unnamed_addr constant [31 x i8] c"Name of vmlinux file missing.\0A\00", align 1
@.str.2 = private unnamed_addr constant [38 x i8] c"Name of vmlinux output file missing.\0A\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.4 = private unnamed_addr constant [38 x i8] c"System Map file \22%s\22 failed to open.\0A\00", align 1
@.str.5 = private unnamed_addr constant [35 x i8] c"vmlinux file \22%s\22 failed to open.\0A\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.7 = private unnamed_addr constant [42 x i8] c"output vmlinux file \22%s\22 failed to open.\0A\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [24 x i8] c"kernel file size = %ld\0A\00", align 1
@.str.9 = private unnamed_addr constant [51 x i8] c"You must have a linux kernel specified as argv[2]\0A\00", align 1
@.str.10 = private unnamed_addr constant [53 x i8] c"actual kernel length (minus ELF header) = %ld/%lxx \0A\00", align 1
@.str.11 = private unnamed_addr constant [55 x i8] c"Kernel length rounded up to a 4k multiple = %ld/%lxx \0A\00", align 1
@.str.12 = private unnamed_addr constant [33 x i8] c"Kernel pages to copy = %ld/%lxx\0A\00", align 1
@.str.13 = private unnamed_addr constant [20 x i8] c"%s file size = %ld\0A\00", align 1
@.str.14 = private unnamed_addr constant [63 x i8] c"Rounding System Map file up to a multiple of 4096, adding %ld\0A\00", align 1
@.str.15 = private unnamed_addr constant [32 x i8] c"Rounded System Map size is %ld\0A\00", align 1
@.str.16 = private unnamed_addr constant [32 x i8] c"System map pages to copy = %ld\0A\00", align 1
@.str.17 = private unnamed_addr constant [6 x i8] c" _end\00", align 1
@.str.18 = private unnamed_addr constant [41 x i8] c"Unable to find _end in the sysmap file \0A\00", align 1
@.str.19 = private unnamed_addr constant [9 x i8] c"inbuf: \0A\00", align 1
@.str.20 = private unnamed_addr constant [5 x i8] c"%s \0A\00", align 1
@.str.21 = private unnamed_addr constant [86 x i8] c"Found _end in the last page of the sysmap - backing up 10 characters it looks like %s\00", align 1
@.str.22 = private unnamed_addr constant [79 x i8] c"vmlinux is larger than _end indicates it needs to be - sysmapStartOffs = %lx \0A\00", align 1
@.str.23 = private unnamed_addr constant [72 x i8] c"will insert %lx pages between the vmlinux and the start of the sysmap \0A\00", align 1
@.str.24 = private unnamed_addr constant [75 x i8] c"vmlinux is smaller than _end indicates is needed - sysmapStartOffs = %lx \0A\00", align 1
@.str.25 = private unnamed_addr constant [39 x i8] c"Storing embedded_sysmap_start at 0x3c\0A\00", align 1
@.str.26 = private unnamed_addr constant [37 x i8] c"Storing embedded_sysmap_end at 0x44\0A\00", align 1
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@S_IXUSR = dso_local global i32 0, align 4
@S_IRGRP = dso_local global i32 0, align 4
@S_IXGRP = dso_local global i32 0, align 4
@S_IROTH = 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 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 [4096 x i8], align 16
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
%14 = alloca i64, align 8
%15 = alloca i64, align 8
%16 = alloca i64, align 8
%17 = alloca i64, align 8
%18 = alloca i64, align 8
%19 = alloca i64, align 8
%20 = alloca i64, align 8
%21 = alloca i64, align 8
%22 = alloca i64, align 8
%23 = 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 null, ptr %7, align 8
store ptr null, ptr %8, align 8
store ptr null, ptr %9, align 8
store ptr null, ptr %10, align 8
store i64 0, ptr %11, align 8
store i64 0, ptr %12, align 8
store i64 0, ptr %13, align 8
store i64 0, ptr %14, align 8
store i64 0, ptr %15, align 8
store i64 0, ptr %16, align 8
store i64 0, ptr %17, align 8
store i64 0, ptr %18, align 8
store i64 0, ptr %19, align 8
store i64 0, ptr %20, align 8
store i64 0, ptr %21, align 8
store i64 0, ptr %22, align 8
%24 = load i32, ptr %4, align 4
%25 = icmp slt i32 %24, 2
br i1 %25, label %26, label %30
26: ; preds = %2
%27 = load i32, ptr @stderr, align 4
%28 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %27, ptr noundef @.str)
%29 = call i32 @exit(i32 noundef 1) #3
unreachable
30: ; preds = %2
%31 = load i32, ptr %4, align 4
%32 = icmp slt i32 %31, 3
br i1 %32, label %33, label %37
33: ; preds = %30
%34 = load i32, ptr @stderr, align 4
%35 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %34, ptr noundef @.str.1)
%36 = call i32 @exit(i32 noundef 1) #3
unreachable
37: ; preds = %30
%38 = load i32, ptr %4, align 4
%39 = icmp slt i32 %38, 4
br i1 %39, label %40, label %44
40: ; preds = %37
%41 = load i32, ptr @stderr, align 4
%42 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %41, ptr noundef @.str.2)
%43 = call i32 @exit(i32 noundef 1) #3
unreachable
44: ; preds = %37
%45 = load ptr, ptr %5, align 8
%46 = getelementptr inbounds ptr, ptr %45, i64 1
%47 = load ptr, ptr %46, align 8
%48 = call ptr @fopen(ptr noundef %47, ptr noundef @.str.3)
store ptr %48, ptr %7, align 8
%49 = load ptr, ptr %7, align 8
%50 = icmp ne ptr %49, null
br i1 %50, label %58, label %51
51: ; preds = %44
%52 = load i32, ptr @stderr, align 4
%53 = load ptr, ptr %5, align 8
%54 = getelementptr inbounds ptr, ptr %53, i64 1
%55 = load ptr, ptr %54, align 8
%56 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %52, ptr noundef @.str.4, ptr noundef %55)
%57 = call i32 @exit(i32 noundef 1) #3
unreachable
58: ; preds = %44
%59 = load ptr, ptr %5, align 8
%60 = getelementptr inbounds ptr, ptr %59, i64 2
%61 = load ptr, ptr %60, align 8
%62 = call ptr @fopen(ptr noundef %61, ptr noundef @.str.3)
store ptr %62, ptr %9, align 8
%63 = load ptr, ptr %9, align 8
%64 = icmp ne ptr %63, null
br i1 %64, label %72, label %65
65: ; preds = %58
%66 = load i32, ptr @stderr, align 4
%67 = load ptr, ptr %5, align 8
%68 = getelementptr inbounds ptr, ptr %67, i64 2
%69 = load ptr, ptr %68, align 8
%70 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %66, ptr noundef @.str.5, ptr noundef %69)
%71 = call i32 @exit(i32 noundef 1) #3
unreachable
72: ; preds = %58
%73 = load ptr, ptr %5, align 8
%74 = getelementptr inbounds ptr, ptr %73, i64 3
%75 = load ptr, ptr %74, align 8
%76 = call ptr @fopen(ptr noundef %75, ptr noundef @.str.6)
store ptr %76, ptr %10, align 8
%77 = load ptr, ptr %10, align 8
%78 = icmp ne ptr %77, null
br i1 %78, label %86, label %79
79: ; preds = %72
%80 = load i32, ptr @stderr, align 4
%81 = load ptr, ptr %5, align 8
%82 = getelementptr inbounds ptr, ptr %81, i64 3
%83 = load ptr, ptr %82, align 8
%84 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %80, ptr noundef @.str.7, ptr noundef %83)
%85 = call i32 @exit(i32 noundef 1) #3
unreachable
86: ; preds = %72
%87 = load ptr, ptr %9, align 8
%88 = load i32, ptr @SEEK_END, align 4
%89 = call i32 @fseek(ptr noundef %87, i32 noundef 0, i32 noundef %88)
%90 = load ptr, ptr %9, align 8
%91 = call i64 @ftell(ptr noundef %90)
store i64 %91, ptr %15, align 8
%92 = load ptr, ptr %9, align 8
%93 = load i32, ptr @SEEK_SET, align 4
%94 = call i32 @fseek(ptr noundef %92, i32 noundef 0, i32 noundef %93)
%95 = load i64, ptr %15, align 8
%96 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i64 noundef %95)
%97 = load i64, ptr %15, align 8
%98 = icmp eq i64 %97, 0
br i1 %98, label %99, label %103
99: ; preds = %86
%100 = load i32, ptr @stderr, align 4
%101 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %100, ptr noundef @.str.9)
%102 = call i32 @exit(i32 noundef 1) #3
unreachable
103: ; preds = %86
%104 = load i64, ptr %15, align 8
%105 = sub i64 %104, 65536
store i64 %105, ptr %16, align 8
%106 = load i64, ptr %16, align 8
%107 = load i64, ptr %16, align 8
%108 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i64 noundef %106, i64 noundef %107)
%109 = load i64, ptr %16, align 8
%110 = urem i64 %109, 4096
store i64 %110, ptr %17, align 8
%111 = load i64, ptr %16, align 8
store i64 %111, ptr %18, align 8
%112 = load i64, ptr %17, align 8
%113 = icmp ne i64 %112, 0
br i1 %113, label %114, label %119
114: ; preds = %103
%115 = load i64, ptr %17, align 8
%116 = sub i64 4096, %115
%117 = load i64, ptr %18, align 8
%118 = add i64 %117, %116
store i64 %118, ptr %18, align 8
br label %119
119: ; preds = %114, %103
%120 = load i64, ptr %18, align 8
%121 = load i64, ptr %18, align 8
%122 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i64 noundef %120, i64 noundef %121)
%123 = load i64, ptr %18, align 8
%124 = udiv i64 %123, 4096
store i64 %124, ptr %21, align 8
%125 = load i64, ptr %21, align 8
%126 = load i64, ptr %21, align 8
%127 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i64 noundef %125, i64 noundef %126)
%128 = load ptr, ptr %7, align 8
%129 = load i32, ptr @SEEK_END, align 4
%130 = call i32 @fseek(ptr noundef %128, i32 noundef 0, i32 noundef %129)
%131 = load ptr, ptr %7, align 8
%132 = call i64 @ftell(ptr noundef %131)
store i64 %132, ptr %12, align 8
%133 = load ptr, ptr %7, align 8
%134 = load i32, ptr @SEEK_SET, align 4
%135 = call i32 @fseek(ptr noundef %133, i32 noundef 0, i32 noundef %134)
%136 = load ptr, ptr %5, align 8
%137 = getelementptr inbounds ptr, ptr %136, i64 1
%138 = load ptr, ptr %137, align 8
%139 = load i64, ptr %12, align 8
%140 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, ptr noundef %138, i64 noundef %139)
%141 = load i64, ptr %12, align 8
store i64 %141, ptr %13, align 8
%142 = load i64, ptr %13, align 8
%143 = urem i64 %142, 4096
%144 = sub i64 4096, %143
store i64 %144, ptr %14, align 8
%145 = load i64, ptr %14, align 8
%146 = icmp ne i64 %145, 0
br i1 %146, label %147, label %153
147: ; preds = %119
%148 = load i64, ptr %14, align 8
%149 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i64 noundef %148)
%150 = load i64, ptr %14, align 8
%151 = load i64, ptr %13, align 8
%152 = add i64 %151, %150
store i64 %152, ptr %13, align 8
br label %153
153: ; preds = %147, %119
%154 = load i64, ptr %13, align 8
%155 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i64 noundef %154)
%156 = load i64, ptr %13, align 8
%157 = udiv i64 %156, 4096
store i64 %157, ptr %20, align 8
%158 = load i64, ptr %20, align 8
%159 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, i64 noundef %158)
store i64 0, ptr %11, align 8
%160 = load i64, ptr %11, align 8
%161 = load i64, ptr %20, align 8
%162 = icmp ult i64 %160, %161
br i1 %162, label %.lr.ph, label %173
.lr.ph: ; preds = %153
br label %163
163: ; preds = %.lr.ph, %167
%164 = load ptr, ptr %7, align 8
%165 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%166 = call i32 @get4k(ptr noundef %164, ptr noundef %165)
br label %167
167: ; preds = %163
%168 = load i64, ptr %11, align 8
%169 = add nsw i64 %168, 1
store i64 %169, ptr %11, align 8
%170 = load i64, ptr %11, align 8
%171 = load i64, ptr %20, align 8
%172 = icmp ult i64 %170, %171
br i1 %172, label %163, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %167
br label %173
173: ; preds = %._crit_edge, %153
%174 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%175 = call ptr @strstr(ptr noundef %174, ptr noundef @.str.17)
store ptr %175, ptr %8, align 8
%176 = load ptr, ptr %8, align 8
%177 = icmp ne ptr %176, null
br i1 %177, label %187, label %178
178: ; preds = %173
%179 = load i32, ptr @stderr, align 4
%180 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %179, ptr noundef @.str.18)
%181 = load i32, ptr @stderr, align 4
%182 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %181, ptr noundef @.str.19)
%183 = load i32, ptr @stderr, align 4
%184 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%185 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %183, ptr noundef @.str.20, ptr noundef %184)
%186 = call i32 @exit(i32 noundef 1) #3
unreachable
187: ; preds = %173
%188 = load ptr, ptr %8, align 8
%189 = getelementptr inbounds i8, ptr %188, i64 -10
%190 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, ptr noundef %189)
%191 = load ptr, ptr %8, align 8
%192 = getelementptr inbounds i8, ptr %191, i64 -10
%193 = call i64 @strtol(ptr noundef %192, ptr noundef null, i32 noundef 16)
%194 = trunc i64 %193 to i32
%195 = zext i32 %194 to i64
store i64 %195, ptr %19, align 8
%196 = load i64, ptr %19, align 8
%197 = udiv i64 %196, 4096
%198 = load i64, ptr %21, align 8
%199 = sub i64 %197, %198
store i64 %199, ptr %22, align 8
%200 = load i64, ptr %22, align 8
%201 = icmp slt i64 %200, 0
br i1 %201, label %202, label %208
202: ; preds = %187
%203 = load i64, ptr %18, align 8
store i64 %203, ptr %19, align 8
%204 = load i64, ptr %19, align 8
%205 = call i32 (ptr, ...) @printf(ptr noundef @.str.22, i64 noundef %204)
store i64 0, ptr %22, align 8
%206 = load i64, ptr %22, align 8
%207 = call i32 (ptr, ...) @printf(ptr noundef @.str.23, i64 noundef %206)
br label %213
208: ; preds = %187
%209 = load i64, ptr %19, align 8
%210 = call i32 (ptr, ...) @printf(ptr noundef @.str.24, i64 noundef %209)
%211 = load i64, ptr %22, align 8
%212 = call i32 (ptr, ...) @printf(ptr noundef @.str.23, i64 noundef %211)
br label %213
213: ; preds = %208, %202
store i64 0, ptr %11, align 8
%214 = load i64, ptr %11, align 8
%215 = icmp slt i64 %214, 16
br i1 %215, label %.lr.ph2, label %228
.lr.ph2: ; preds = %213
br label %216
216: ; preds = %.lr.ph2, %223
%217 = load ptr, ptr %9, align 8
%218 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%219 = call i32 @get4k(ptr noundef %217, ptr noundef %218)
%220 = load ptr, ptr %10, align 8
%221 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%222 = call i32 @put4k(ptr noundef %220, ptr noundef %221)
br label %223
223: ; preds = %216
%224 = load i64, ptr %11, align 8
%225 = add nsw i64 %224, 1
store i64 %225, ptr %11, align 8
%226 = load i64, ptr %11, align 8
%227 = icmp slt i64 %226, 16
br i1 %227, label %216, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %223
br label %228
228: ; preds = %._crit_edge3, %213
%229 = load ptr, ptr %9, align 8
%230 = load i32, ptr @SEEK_SET, align 4
%231 = call i32 @fseek(ptr noundef %229, i32 noundef 65536, i32 noundef %230)
store i64 0, ptr %11, align 8
%232 = load i64, ptr %11, align 8
%233 = load i64, ptr %21, align 8
%234 = icmp ult i64 %232, %233
br i1 %234, label %.lr.ph5, label %264
.lr.ph5: ; preds = %228
br label %235
235: ; preds = %.lr.ph5, %258
%236 = load ptr, ptr %9, align 8
%237 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%238 = call i32 @get4k(ptr noundef %236, ptr noundef %237)
%239 = load i64, ptr %11, align 8
%240 = icmp eq i64 %239, 0
br i1 %240, label %241, label %254
241: ; preds = %235
%242 = call i32 (ptr, ...) @printf(ptr noundef @.str.25)
%243 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%244 = getelementptr inbounds i8, ptr %243, i64 60
store ptr %244, ptr %23, align 8
%245 = load i64, ptr %19, align 8
%246 = load ptr, ptr %23, align 8
store i64 %245, ptr %246, align 8
%247 = call i32 (ptr, ...) @printf(ptr noundef @.str.26)
%248 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%249 = getelementptr inbounds i8, ptr %248, i64 68
store ptr %249, ptr %23, align 8
%250 = load i64, ptr %19, align 8
%251 = load i64, ptr %12, align 8
%252 = add i64 %250, %251
%253 = load ptr, ptr %23, align 8
store i64 %252, ptr %253, align 8
br label %254
254: ; preds = %241, %235
%255 = load ptr, ptr %10, align 8
%256 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%257 = call i32 @put4k(ptr noundef %255, ptr noundef %256)
br label %258
258: ; preds = %254
%259 = load i64, ptr %11, align 8
%260 = add nsw i64 %259, 1
store i64 %260, ptr %11, align 8
%261 = load i64, ptr %11, align 8
%262 = load i64, ptr %21, align 8
%263 = icmp ult i64 %261, %262
br i1 %263, label %235, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %258
br label %264
264: ; preds = %._crit_edge6, %228
store i64 0, ptr %11, align 8
%265 = load i64, ptr %11, align 8
%266 = load i64, ptr %22, align 8
%267 = icmp slt i64 %265, %266
br i1 %267, label %.lr.ph8, label %280
.lr.ph8: ; preds = %264
br label %268
268: ; preds = %.lr.ph8, %274
%269 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%270 = call i32 @memset(ptr noundef %269, i32 noundef 0, i32 noundef 4096)
%271 = load ptr, ptr %10, align 8
%272 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%273 = call i32 @put4k(ptr noundef %271, ptr noundef %272)
br label %274
274: ; preds = %268
%275 = load i64, ptr %11, align 8
%276 = add nsw i64 %275, 1
store i64 %276, ptr %11, align 8
%277 = load i64, ptr %11, align 8
%278 = load i64, ptr %22, align 8
%279 = icmp slt i64 %277, %278
br i1 %279, label %268, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %274
br label %280
280: ; preds = %._crit_edge9, %264
%281 = load ptr, ptr %7, align 8
%282 = load i32, ptr @SEEK_SET, align 4
%283 = call i32 @fseek(ptr noundef %281, i32 noundef 0, i32 noundef %282)
store i64 0, ptr %11, align 8
%284 = load i64, ptr %11, align 8
%285 = load i64, ptr %20, align 8
%286 = icmp ult i64 %284, %285
br i1 %286, label %.lr.ph11, label %300
.lr.ph11: ; preds = %280
br label %287
287: ; preds = %.lr.ph11, %294
%288 = load ptr, ptr %7, align 8
%289 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%290 = call i32 @get4k(ptr noundef %288, ptr noundef %289)
%291 = load ptr, ptr %10, align 8
%292 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%293 = call i32 @put4k(ptr noundef %291, ptr noundef %292)
br label %294
294: ; preds = %287
%295 = load i64, ptr %11, align 8
%296 = add nsw i64 %295, 1
store i64 %296, ptr %11, align 8
%297 = load i64, ptr %11, align 8
%298 = load i64, ptr %20, align 8
%299 = icmp ult i64 %297, %298
br i1 %299, label %287, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %294
br label %300
300: ; preds = %._crit_edge12, %280
%301 = load ptr, ptr %7, align 8
%302 = call i32 @fclose(ptr noundef %301)
%303 = load ptr, ptr %9, align 8
%304 = call i32 @fclose(ptr noundef %303)
%305 = load ptr, ptr %10, align 8
%306 = call i32 @fclose(ptr noundef %305)
%307 = load ptr, ptr %5, align 8
%308 = getelementptr inbounds ptr, ptr %307, i64 3
%309 = load ptr, ptr %308, align 8
%310 = load i32, ptr @S_IRUSR, align 4
%311 = load i32, ptr @S_IWUSR, align 4
%312 = or i32 %310, %311
%313 = load i32, ptr @S_IXUSR, align 4
%314 = or i32 %312, %313
%315 = load i32, ptr @S_IRGRP, align 4
%316 = or i32 %314, %315
%317 = load i32, ptr @S_IXGRP, align 4
%318 = or i32 %316, %317
%319 = load i32, ptr @S_IROTH, align 4
%320 = or i32 %318, %319
%321 = load i32, ptr @S_IXOTH, align 4
%322 = or i32 %320, %321
%323 = call i32 @chmod(ptr noundef %309, i32 noundef %322)
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @get4k(ptr noundef, ptr noundef) #1
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare i64 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @put4k(ptr noundef, ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @chmod(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '/tmp/tmpyqco47ro.c'
source_filename = "/tmp/tmpyqco47ro.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Cyc_PP_list_of_alist(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call ptr @Cyc_PP_list_of_alist_f(ptr noundef %4, i32 noundef 0)
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
ret ptr %6
}
declare ptr @Cyc_PP_list_of_alist_f(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/tmpyqco47ro.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Cyc_PP_list_of_alist(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call ptr @Cyc_PP_list_of_alist_f(ptr noundef %4, i32 noundef 0)
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
ret ptr %6
}
declare ptr @Cyc_PP_list_of_alist_f(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/tmpu_xneriu.c'
source_filename = "/tmp/tmpu_xneriu.c"
target datalayout = "e-m:e-p270: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/tmpu_xneriu.c"
target datalayout = "e-m:e-p270: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/tmpbx9p9ill.c'
source_filename = "/tmp/tmpbx9p9ill.c"
target datalayout = "e-m:e-p270: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/tmpbx9p9ill.c"
target datalayout = "e-m:e-p270: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/tmpq507exvz.c'
source_filename = "/tmp/tmpq507exvz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"/var/run/wpa_supplicant/wlan0\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"open wpa_ctrl error\0A\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"LIST_NETWORKS\00", align 1
@.str.3 = 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
%7 = alloca [1024 x i8], align 16
%8 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 1024, i1 false)
store i64 1024, ptr %8, align 8
%9 = call ptr @wpa_ctrl_open(ptr noundef @.str)
store ptr %9, ptr %6, align 8
%10 = load ptr, ptr %6, align 8
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 1, ptr %3, align 4
br label %28
14: ; preds = %2
%15 = load ptr, ptr %6, align 8
%16 = call i32 @strlen(ptr noundef @.str.2)
%17 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%18 = call i64 @wpa_ctrl_request(ptr noundef %15, ptr noundef @.str.2, i32 noundef %16, ptr noundef %17, ptr noundef %8, ptr noundef null)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %14
%21 = load ptr, ptr %6, align 8
%22 = call i32 @wpa_ctrl_close(ptr noundef %21)
store i32 1, ptr %3, align 4
br label %28
23: ; preds = %14
%24 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %24)
%26 = load ptr, ptr %6, align 8
%27 = call i32 @wpa_ctrl_close(ptr noundef %26)
store i32 0, ptr %3, align 4
br label %28
28: ; preds = %23, %20, %12
%29 = load i32, ptr %3, align 4
ret i32 %29
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare ptr @wpa_ctrl_open(ptr noundef) #2
declare i32 @printf(ptr noundef, ...) #2
declare i64 @wpa_ctrl_request(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @wpa_ctrl_close(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq507exvz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"/var/run/wpa_supplicant/wlan0\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"open wpa_ctrl error\0A\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"LIST_NETWORKS\00", align 1
@.str.3 = 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
%7 = alloca [1024 x i8], align 16
%8 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 1024, i1 false)
store i64 1024, ptr %8, align 8
%9 = call ptr @wpa_ctrl_open(ptr noundef @.str)
store ptr %9, ptr %6, align 8
%10 = load ptr, ptr %6, align 8
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 1, ptr %3, align 4
br label %28
14: ; preds = %2
%15 = load ptr, ptr %6, align 8
%16 = call i32 @strlen(ptr noundef @.str.2)
%17 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%18 = call i64 @wpa_ctrl_request(ptr noundef %15, ptr noundef @.str.2, i32 noundef %16, ptr noundef %17, ptr noundef %8, ptr noundef null)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %14
%21 = load ptr, ptr %6, align 8
%22 = call i32 @wpa_ctrl_close(ptr noundef %21)
store i32 1, ptr %3, align 4
br label %28
23: ; preds = %14
%24 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %24)
%26 = load ptr, ptr %6, align 8
%27 = call i32 @wpa_ctrl_close(ptr noundef %26)
store i32 0, ptr %3, align 4
br label %28
28: ; preds = %23, %20, %12
%29 = load i32, ptr %3, align 4
ret i32 %29
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare ptr @wpa_ctrl_open(ptr noundef) #2
declare i32 @printf(ptr noundef, ...) #2
declare i64 @wpa_ctrl_request(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @wpa_ctrl_close(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjd3t_700.c'
source_filename = "/tmp/tmpjd3t_700.c"
target datalayout = "e-m:e-p270: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/tmpjd3t_700.c"
target datalayout = "e-m:e-p270: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/tmpx4p62j04.c'
source_filename = "/tmp/tmpx4p62j04.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENODEV = 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/tmpx4p62j04.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENODEV = 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/tmpjmjzzfb5.c'
source_filename = "/tmp/tmpjmjzzfb5.c"
target datalayout = "e-m:e-p270: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 [58 x i8] c"assertion \22%s\22 failed: file \22%s\22, line %d, function \22%s\22\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @__assert2(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
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
%9 = load i32, ptr @stderr, align 4
%10 = load ptr, ptr %8, align 8
%11 = load ptr, ptr %5, align 8
%12 = load i32, ptr %6, align 4
%13 = load ptr, ptr %7, align 8
%14 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str, ptr noundef %10, ptr noundef %11, i32 noundef %12, ptr noundef %13)
%15 = call i32 (...) @abort() #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr 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/tmpjmjzzfb5.c"
target datalayout = "e-m:e-p270: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 [58 x i8] c"assertion \22%s\22 failed: file \22%s\22, line %d, function \22%s\22\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @__assert2(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
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
%9 = load i32, ptr @stderr, align 4
%10 = load ptr, ptr %8, align 8
%11 = load ptr, ptr %5, align 8
%12 = load i32, ptr %6, align 4
%13 = load ptr, ptr %7, align 8
%14 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str, ptr noundef %10, ptr noundef %11, i32 noundef %12, ptr noundef %13)
%15 = call i32 (...) @abort() #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr 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"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.