llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmp_qgb3wub.c'
source_filename = "/tmp/tmp_qgb3wub.c"
target datalayout = "e-m:e-p270: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/tmp_qgb3wub.c"
target datalayout = "e-m:e-p270: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/tmpozd5pze4.c'
source_filename = "/tmp/tmpozd5pze4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"localhost\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [35 x i8] c"Unable to connect to thingy... %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [7 x i8] c"select\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"Sending data to client\0A\00", align 1
@.str.4 = private unnamed_addr constant [24 x i8] c"Sending data to server\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dotunneling(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
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = call i32 @connect_addr(ptr noundef @.str, i32 noundef %9)
store i32 %10, ptr %5, align 4
%11 = icmp eq i32 %10, -1
br i1 %11, label %12, label %17
12: ; preds = %2
%13 = load i32, ptr @stderr, align 4
%14 = load i32, ptr @errno, align 4
%15 = call ptr @strerror(i32 noundef %14)
%16 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str.1, ptr noundef %15)
ret void
17: ; preds = %2
%18 = call i32 @FD_ZERO(ptr noundef %7)
%19 = load i32, ptr %3, align 4
%20 = call i32 @FD_SET(i32 noundef %19, ptr noundef %7)
%21 = load i32, ptr %5, align 4
%22 = call i32 @FD_SET(i32 noundef %21, ptr noundef %7)
%23 = load i32, ptr %3, align 4
%24 = load i32, ptr %5, align 4
%25 = icmp sgt i32 %23, %24
br i1 %25, label %26, label %28
26: ; preds = %17
%27 = load i32, ptr %3, align 4
br label %30
28: ; preds = %17
%29 = load i32, ptr %5, align 4
br label %30
30: ; preds = %28, %26
%31 = phi i32 [ %27, %26 ], [ %29, %28 ]
store i32 %31, ptr %6, align 4
br label %32
32: ; preds = %59, %30
%33 = load i32, ptr %7, align 4
store i32 %33, ptr %8, align 4
%34 = load i32, ptr %6, align 4
%35 = add nsw i32 %34, 1
%36 = call i32 @select(i32 noundef %35, ptr noundef %8, ptr noundef null, ptr noundef null, ptr noundef null)
%37 = icmp eq i32 %36, -1
br i1 %37, label %38, label %41
38: ; preds = %32
%39 = call i32 @perror(ptr noundef @.str.2)
%40 = call i32 @exit(i32 noundef 1) #3
unreachable
41: ; preds = %32
%42 = load i32, ptr %3, align 4
%43 = call i64 @FD_ISSET(i32 noundef %42, ptr noundef %8)
%44 = icmp ne i64 %43, 0
br i1 %44, label %45, label %50
45: ; preds = %41
%46 = call i32 @printf(ptr noundef @.str.3)
%47 = load i32, ptr %3, align 4
%48 = load i32, ptr %5, align 4
%49 = call i32 @pushdata(i32 noundef %47, i32 noundef %48)
br label %50
50: ; preds = %45, %41
%51 = load i32, ptr %5, align 4
%52 = call i64 @FD_ISSET(i32 noundef %51, ptr noundef %8)
%53 = icmp ne i64 %52, 0
br i1 %53, label %54, label %59
54: ; preds = %50
%55 = call i32 @printf(ptr noundef @.str.4)
%56 = load i32, ptr %5, align 4
%57 = load i32, ptr %3, align 4
%58 = call i32 @pushdata(i32 noundef %56, i32 noundef %57)
br label %59
59: ; preds = %54, %50
br label %32
}
declare i32 @connect_addr(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i32 @FD_ZERO(ptr noundef) #1
declare i32 @FD_SET(i32 noundef, ptr noundef) #1
declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @FD_ISSET(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @pushdata(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" }
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/tmpozd5pze4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"localhost\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [35 x i8] c"Unable to connect to thingy... %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [7 x i8] c"select\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"Sending data to client\0A\00", align 1
@.str.4 = private unnamed_addr constant [24 x i8] c"Sending data to server\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dotunneling(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
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = call i32 @connect_addr(ptr noundef @.str, i32 noundef %9)
store i32 %10, ptr %5, align 4
%11 = icmp eq i32 %10, -1
br i1 %11, label %12, label %17
12: ; preds = %2
%13 = load i32, ptr @stderr, align 4
%14 = load i32, ptr @errno, align 4
%15 = call ptr @strerror(i32 noundef %14)
%16 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str.1, ptr noundef %15)
ret void
17: ; preds = %2
%18 = call i32 @FD_ZERO(ptr noundef %7)
%19 = load i32, ptr %3, align 4
%20 = call i32 @FD_SET(i32 noundef %19, ptr noundef %7)
%21 = load i32, ptr %5, align 4
%22 = call i32 @FD_SET(i32 noundef %21, ptr noundef %7)
%23 = load i32, ptr %3, align 4
%24 = load i32, ptr %5, align 4
%25 = icmp sgt i32 %23, %24
br i1 %25, label %26, label %28
26: ; preds = %17
%27 = load i32, ptr %3, align 4
br label %30
28: ; preds = %17
%29 = load i32, ptr %5, align 4
br label %30
30: ; preds = %28, %26
%31 = phi i32 [ %27, %26 ], [ %29, %28 ]
store i32 %31, ptr %6, align 4
%32 = load i32, ptr %7, align 4
store i32 %32, ptr %8, align 4
%33 = load i32, ptr %6, align 4
%34 = add nsw i32 %33, 1
%35 = call i32 @select(i32 noundef %34, ptr noundef %8, ptr noundef null, ptr noundef null, ptr noundef null)
%36 = icmp eq i32 %35, -1
br i1 %36, label %37, label %.lr.ph
.lr.ph: ; preds = %30
br label %40
._crit_edge: ; preds = %58
br label %37
37: ; preds = %._crit_edge, %30
%38 = call i32 @perror(ptr noundef @.str.2)
%39 = call i32 @exit(i32 noundef 1) #3
unreachable
40: ; preds = %.lr.ph, %58
%41 = load i32, ptr %3, align 4
%42 = call i64 @FD_ISSET(i32 noundef %41, ptr noundef %8)
%43 = icmp ne i64 %42, 0
br i1 %43, label %44, label %49
44: ; preds = %40
%45 = call i32 @printf(ptr noundef @.str.3)
%46 = load i32, ptr %3, align 4
%47 = load i32, ptr %5, align 4
%48 = call i32 @pushdata(i32 noundef %46, i32 noundef %47)
br label %49
49: ; preds = %44, %40
%50 = load i32, ptr %5, align 4
%51 = call i64 @FD_ISSET(i32 noundef %50, ptr noundef %8)
%52 = icmp ne i64 %51, 0
br i1 %52, label %53, label %58
53: ; preds = %49
%54 = call i32 @printf(ptr noundef @.str.4)
%55 = load i32, ptr %5, align 4
%56 = load i32, ptr %3, align 4
%57 = call i32 @pushdata(i32 noundef %55, i32 noundef %56)
br label %58
58: ; preds = %53, %49
%59 = load i32, ptr %7, align 4
store i32 %59, ptr %8, align 4
%60 = load i32, ptr %6, align 4
%61 = add nsw i32 %60, 1
%62 = call i32 @select(i32 noundef %61, ptr noundef %8, ptr noundef null, ptr noundef null, ptr noundef null)
%63 = icmp eq i32 %62, -1
br i1 %63, label %._crit_edge, label %40
}
declare i32 @connect_addr(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i32 @FD_ZERO(ptr noundef) #1
declare i32 @FD_SET(i32 noundef, ptr noundef) #1
declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @FD_ISSET(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @pushdata(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" }
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/tmp85mhmrl5.c'
source_filename = "/tmp/tmp85mhmrl5.c"
target datalayout = "e-m:e-p270: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/tmp85mhmrl5.c"
target datalayout = "e-m:e-p270: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/tmpmq_qvcjn.c'
source_filename = "/tmp/tmpmq_qvcjn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @merge_sort_and_count(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = sdiv i32 %10, 2
store i32 %11, ptr %5, align 4
%12 = load i32, ptr %4, align 4
%13 = load i32, ptr %5, align 4
%14 = sub nsw i32 %12, %13
store i32 %14, ptr %6, align 4
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %15, 2
br i1 %16, label %17, label %18
17: ; preds = %2
br label %83
18: ; preds = %2
%19 = load i32, ptr %5, align 4
%20 = sext i32 %19 to i64
%21 = mul i64 4, %20
%22 = trunc i64 %21 to i32
%23 = call i64 @malloc(i32 noundef %22)
%24 = inttoptr i64 %23 to ptr
store ptr %24, ptr %8, align 8
%25 = load i32, ptr %6, align 4
%26 = sext i32 %25 to i64
%27 = mul i64 4, %26
%28 = trunc i64 %27 to i32
%29 = call i64 @malloc(i32 noundef %28)
%30 = inttoptr i64 %29 to ptr
store ptr %30, ptr %9, align 8
store i32 0, ptr %7, align 4
br label %31
31: ; preds = %45, %18
%32 = load i32, ptr %7, align 4
%33 = load i32, ptr %5, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %35, label %48
35: ; preds = %31
%36 = load ptr, ptr %3, align 8
%37 = load i32, ptr %7, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i32, ptr %36, i64 %38
%40 = load i32, ptr %39, align 4
%41 = load ptr, ptr %8, align 8
%42 = load i32, ptr %7, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %41, i64 %43
store i32 %40, ptr %44, align 4
br label %45
45: ; preds = %35
%46 = load i32, ptr %7, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %7, align 4
br label %31, !llvm.loop !6
48: ; preds = %31
store i32 0, ptr %7, align 4
br label %49
49: ; preds = %65, %48
%50 = load i32, ptr %7, align 4
%51 = load i32, ptr %6, align 4
%52 = icmp slt i32 %50, %51
br i1 %52, label %53, label %68
53: ; preds = %49
%54 = load ptr, ptr %3, align 8
%55 = load i32, ptr %5, align 4
%56 = load i32, ptr %7, align 4
%57 = add nsw i32 %55, %56
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i32, ptr %54, i64 %58
%60 = load i32, ptr %59, align 4
%61 = load ptr, ptr %9, align 8
%62 = load i32, ptr %7, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i32, ptr %61, i64 %63
store i32 %60, ptr %64, align 4
br label %65
65: ; preds = %53
%66 = load i32, ptr %7, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %7, align 4
br label %49, !llvm.loop !8
68: ; preds = %49
%69 = load ptr, ptr %8, align 8
%70 = load i32, ptr %5, align 4
call void @merge_sort_and_count(ptr noundef %69, i32 noundef %70)
%71 = load ptr, ptr %9, align 8
%72 = load i32, ptr %6, align 4
call void @merge_sort_and_count(ptr noundef %71, i32 noundef %72)
%73 = load ptr, ptr %8, align 8
%74 = load i32, ptr %5, align 4
%75 = load ptr, ptr %9, align 8
%76 = load i32, ptr %6, align 4
%77 = load ptr, ptr %3, align 8
%78 = call i32 @merge_and_count_split_inv(ptr noundef %73, i32 noundef %74, ptr noundef %75, i32 noundef %76, ptr noundef %77)
%79 = load ptr, ptr %8, align 8
%80 = call i32 @free(ptr noundef %79)
%81 = load ptr, ptr %9, align 8
%82 = call i32 @free(ptr noundef %81)
br label %83
83: ; preds = %68, %17
ret void
}
declare i64 @malloc(i32 noundef) #1
declare i32 @merge_and_count_split_inv(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmq_qvcjn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @merge_sort_and_count(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = sdiv i32 %10, 2
store i32 %11, ptr %5, align 4
%12 = load i32, ptr %4, align 4
%13 = load i32, ptr %5, align 4
%14 = sub nsw i32 %12, %13
store i32 %14, ptr %6, align 4
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %15, 2
br i1 %16, label %17, label %18
17: ; preds = %2
br label %87
18: ; preds = %2
%19 = load i32, ptr %5, align 4
%20 = sext i32 %19 to i64
%21 = mul i64 4, %20
%22 = trunc i64 %21 to i32
%23 = call i64 @malloc(i32 noundef %22)
%24 = inttoptr i64 %23 to ptr
store ptr %24, ptr %8, align 8
%25 = load i32, ptr %6, align 4
%26 = sext i32 %25 to i64
%27 = mul i64 4, %26
%28 = trunc i64 %27 to i32
%29 = call i64 @malloc(i32 noundef %28)
%30 = inttoptr i64 %29 to ptr
store ptr %30, ptr %9, align 8
store i32 0, ptr %7, align 4
%31 = load i32, ptr %7, align 4
%32 = load i32, ptr %5, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %.lr.ph, label %50
.lr.ph: ; preds = %18
br label %34
34: ; preds = %.lr.ph, %44
%35 = load ptr, ptr %3, align 8
%36 = load i32, ptr %7, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i32, ptr %35, i64 %37
%39 = load i32, ptr %38, align 4
%40 = load ptr, ptr %8, align 8
%41 = load i32, ptr %7, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, ptr %40, i64 %42
store i32 %39, ptr %43, align 4
br label %44
44: ; preds = %34
%45 = load i32, ptr %7, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %7, align 4
%47 = load i32, ptr %7, align 4
%48 = load i32, ptr %5, align 4
%49 = icmp slt i32 %47, %48
br i1 %49, label %34, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %44
br label %50
50: ; preds = %._crit_edge, %18
store i32 0, ptr %7, align 4
%51 = load i32, ptr %7, align 4
%52 = load i32, ptr %6, align 4
%53 = icmp slt i32 %51, %52
br i1 %53, label %.lr.ph2, label %72
.lr.ph2: ; preds = %50
br label %54
54: ; preds = %.lr.ph2, %66
%55 = load ptr, ptr %3, align 8
%56 = load i32, ptr %5, align 4
%57 = load i32, ptr %7, align 4
%58 = add nsw i32 %56, %57
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i32, ptr %55, i64 %59
%61 = load i32, ptr %60, align 4
%62 = load ptr, ptr %9, align 8
%63 = load i32, ptr %7, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i32, ptr %62, i64 %64
store i32 %61, ptr %65, align 4
br label %66
66: ; preds = %54
%67 = load i32, ptr %7, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %7, align 4
%69 = load i32, ptr %7, align 4
%70 = load i32, ptr %6, align 4
%71 = icmp slt i32 %69, %70
br i1 %71, label %54, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %66
br label %72
72: ; preds = %._crit_edge3, %50
%73 = load ptr, ptr %8, align 8
%74 = load i32, ptr %5, align 4
call void @merge_sort_and_count(ptr noundef %73, i32 noundef %74)
%75 = load ptr, ptr %9, align 8
%76 = load i32, ptr %6, align 4
call void @merge_sort_and_count(ptr noundef %75, i32 noundef %76)
%77 = load ptr, ptr %8, align 8
%78 = load i32, ptr %5, align 4
%79 = load ptr, ptr %9, align 8
%80 = load i32, ptr %6, align 4
%81 = load ptr, ptr %3, align 8
%82 = call i32 @merge_and_count_split_inv(ptr noundef %77, i32 noundef %78, ptr noundef %79, i32 noundef %80, ptr noundef %81)
%83 = load ptr, ptr %8, align 8
%84 = call i32 @free(ptr noundef %83)
%85 = load ptr, ptr %9, align 8
%86 = call i32 @free(ptr noundef %85)
br label %87
87: ; preds = %72, %17
ret void
}
declare i64 @malloc(i32 noundef) #1
declare i32 @merge_and_count_split_inv(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmppnxkukb3.c'
source_filename = "/tmp/tmppnxkukb3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PixelMapuiv(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
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %5, align 4
%9 = load ptr, ptr %6, align 8
%10 = call i32 @glPixelMapuiv(i32 noundef %7, i32 noundef %8, ptr noundef %9)
ret void
}
declare i32 @glPixelMapuiv(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/tmppnxkukb3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PixelMapuiv(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
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %5, align 4
%9 = load ptr, ptr %6, align 8
%10 = call i32 @glPixelMapuiv(i32 noundef %7, i32 noundef %8, ptr noundef %9)
ret void
}
declare i32 @glPixelMapuiv(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/tmpqbchlk4u.c'
source_filename = "/tmp/tmpqbchlk4u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @foo(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
store double %0, ptr %2, align 8
%5 = load double, ptr %2, align 8
%6 = call double @llvm.fabs.f64(double %5)
store double %6, ptr %3, align 8
store double 0.000000e+00, ptr %4, align 8
%7 = load double, ptr %3, align 8
%8 = load double, ptr %4, align 8
%9 = fcmp olt double %7, %8
br i1 %9, label %10, label %12
10: ; preds = %1
%11 = call i32 (...) @link_error()
br label %12
12: ; preds = %10, %1
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
declare i32 @link_error(...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqbchlk4u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @foo(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
store double %0, ptr %2, align 8
%5 = load double, ptr %2, align 8
%6 = call double @llvm.fabs.f64(double %5)
store double %6, ptr %3, align 8
store double 0.000000e+00, ptr %4, align 8
%7 = load double, ptr %3, align 8
%8 = load double, ptr %4, align 8
%9 = fcmp olt double %7, %8
br i1 %9, label %10, label %12
10: ; preds = %1
%11 = call i32 (...) @link_error()
br label %12
12: ; preds = %10, %1
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
declare i32 @link_error(...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2l6gyb1u.c'
source_filename = "/tmp/tmp2l6gyb1u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Usage: %s [FILE]\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@EOF = dso_local global i8 0, align 1
@.str.2 = private unnamed_addr constant [5 x i8] c" %u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca [11 x i32], align 16
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i8, align 1
%15 = 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 i32 64, ptr %7, align 4
call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 44, i1 false)
store i32 0, ptr %9, align 4
store i32 0, ptr %12, align 4
%16 = load i32, ptr %7, align 4
%17 = call ptr @malloc(i32 noundef %16)
store ptr %17, ptr %15, align 8
%18 = load i32, ptr %4, align 4
%19 = icmp ne i32 %18, 2
br i1 %19, label %20, label %25
20: ; preds = %2
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 0
%23 = load ptr, ptr %22, align 8
%24 = call i32 @printf(ptr noundef @.str, ptr noundef %23)
store i32 1, ptr %3, align 4
br label %124
25: ; preds = %2
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i32 1
store ptr %27, ptr %5, align 8
%28 = load ptr, ptr %27, align 8
%29 = call ptr @fopen(ptr noundef %28, ptr noundef @.str.1)
store ptr %29, ptr %6, align 8
br label %30
30: ; preds = %120, %25
%31 = load ptr, ptr %6, align 8
%32 = call signext i8 @getc(ptr noundef %31)
store i8 %32, ptr %14, align 1
%33 = sext i8 %32 to i32
%34 = load i8, ptr @EOF, align 1
%35 = sext i8 %34 to i32
%36 = icmp ne i32 %33, %35
br i1 %36, label %37, label %121
37: ; preds = %30
%38 = load i8, ptr %14, align 1
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %39, 124
br i1 %40, label %41, label %85
41: ; preds = %37
%42 = load ptr, ptr %6, align 8
%43 = call i32 @fscanf(ptr noundef %42, ptr noundef @.str.2, ptr noundef %13)
br label %44
44: ; preds = %74, %41
%45 = load i32, ptr %12, align 4
%46 = icmp ugt i32 %45, 1
br i1 %46, label %47, label %77
47: ; preds = %44
%48 = load i32, ptr %13, align 4
%49 = load i32, ptr %12, align 4
%50 = urem i32 %48, %49
store i32 %50, ptr %11, align 4
%51 = load i32, ptr %11, align 4
%52 = icmp ugt i32 %51, 0
br i1 %52, label %53, label %74
53: ; preds = %47
%54 = load i32, ptr %11, align 4
%55 = sub i32 %54, 1
store i32 %55, ptr %10, align 4
br label %56
56: ; preds = %70, %53
%57 = load i32, ptr %10, align 4
%58 = load i32, ptr %12, align 4
%59 = sub i32 %58, 1
%60 = icmp ult i32 %57, %59
br i1 %60, label %61, label %73
61: ; preds = %56
%62 = load i32, ptr %10, align 4
%63 = add i32 %62, 1
%64 = zext i32 %63 to i64
%65 = getelementptr inbounds [11 x i32], ptr %8, i64 0, i64 %64
%66 = load i32, ptr %65, align 4
%67 = load i32, ptr %10, align 4
%68 = zext i32 %67 to i64
%69 = getelementptr inbounds [11 x i32], ptr %8, i64 0, i64 %68
store i32 %66, ptr %69, align 4
br label %70
70: ; preds = %61
%71 = load i32, ptr %10, align 4
%72 = add i32 %71, 1
store i32 %72, ptr %10, align 4
br label %56, !llvm.loop !6
73: ; preds = %56
br label %74
74: ; preds = %73, %47
%75 = load i32, ptr %12, align 4
%76 = add i32 %75, -1
store i32 %76, ptr %12, align 4
br label %44, !llvm.loop !8
77: ; preds = %44
%78 = load ptr, ptr %15, align 8
%79 = getelementptr inbounds [11 x i32], ptr %8, i64 0, i64 0
%80 = load i32, ptr %79, align 16
%81 = zext i32 %80 to i64
%82 = getelementptr inbounds i8, ptr %78, i64 %81
%83 = call i32 @puts(ptr noundef %82)
store i32 0, ptr %9, align 4
store i32 0, ptr %12, align 4
%84 = getelementptr inbounds [11 x i32], ptr %8, i64 0, i64 0
store i32 0, ptr %84, align 16
br label %120
85: ; preds = %37
%86 = load i32, ptr %9, align 4
%87 = load i32, ptr %7, align 4
%88 = icmp eq i32 %86, %87
br i1 %88, label %89, label %97
89: ; preds = %85
%90 = load i32, ptr %7, align 4
%91 = udiv i32 %90, 2
%92 = load i32, ptr %7, align 4
%93 = add i32 %92, %91
store i32 %93, ptr %7, align 4
%94 = load ptr, ptr %15, align 8
%95 = load i32, ptr %7, align 4
%96 = call ptr @realloc(ptr noundef %94, i32 noundef %95)
store ptr %96, ptr %15, align 8
br label %97
97: ; preds = %89, %85
%98 = load i8, ptr %14, align 1
%99 = sext i8 %98 to i32
%100 = icmp eq i32 %99, 32
br i1 %100, label %101, label %112
101: ; preds = %97
%102 = load ptr, ptr %15, align 8
%103 = load i32, ptr %9, align 4
%104 = add i32 %103, 1
store i32 %104, ptr %9, align 4
%105 = zext i32 %103 to i64
%106 = getelementptr inbounds i8, ptr %102, i64 %105
store i8 0, ptr %106, align 1
%107 = load i32, ptr %9, align 4
%108 = load i32, ptr %12, align 4
%109 = add i32 %108, 1
store i32 %109, ptr %12, align 4
%110 = zext i32 %109 to i64
%111 = getelementptr inbounds [11 x i32], ptr %8, i64 0, i64 %110
store i32 %107, ptr %111, align 4
br label %119
112: ; preds = %97
%113 = load i8, ptr %14, align 1
%114 = load ptr, ptr %15, align 8
%115 = load i32, ptr %9, align 4
%116 = add i32 %115, 1
store i32 %116, ptr %9, align 4
%117 = zext i32 %115 to i64
%118 = getelementptr inbounds i8, ptr %114, i64 %117
store i8 %113, ptr %118, align 1
br label %119
119: ; preds = %112, %101
br label %120
120: ; preds = %119, %77
br label %30, !llvm.loop !9
121: ; preds = %30
%122 = load ptr, ptr %15, align 8
%123 = call i32 @free(ptr noundef %122)
store i32 0, ptr %3, align 4
br label %124
124: ; preds = %121, %20
%125 = load i32, ptr %3, align 4
ret i32 %125
}
; 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 @malloc(i32 noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare signext i8 @getc(ptr noundef) #2
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @puts(ptr noundef) #2
declare ptr @realloc(ptr noundef, i32 noundef) #2
declare i32 @free(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2l6gyb1u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Usage: %s [FILE]\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@EOF = dso_local global i8 0, align 1
@.str.2 = private unnamed_addr constant [5 x i8] c" %u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca [11 x i32], align 16
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i8, align 1
%15 = 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 i32 64, ptr %7, align 4
call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 44, i1 false)
store i32 0, ptr %9, align 4
store i32 0, ptr %12, align 4
%16 = load i32, ptr %7, align 4
%17 = call ptr @malloc(i32 noundef %16)
store ptr %17, ptr %15, align 8
%18 = load i32, ptr %4, align 4
%19 = icmp ne i32 %18, 2
br i1 %19, label %20, label %25
20: ; preds = %2
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 0
%23 = load ptr, ptr %22, align 8
%24 = call i32 @printf(ptr noundef @.str, ptr noundef %23)
store i32 1, ptr %3, align 4
br label %133
25: ; preds = %2
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i32 1
store ptr %27, ptr %5, align 8
%28 = load ptr, ptr %27, align 8
%29 = call ptr @fopen(ptr noundef %28, ptr noundef @.str.1)
store ptr %29, ptr %6, align 8
%30 = load ptr, ptr %6, align 8
%31 = call signext i8 @getc(ptr noundef %30)
store i8 %31, ptr %14, align 1
%32 = sext i8 %31 to i32
%33 = load i8, ptr @EOF, align 1
%34 = sext i8 %33 to i32
%35 = icmp ne i32 %32, %34
br i1 %35, label %.lr.ph5, label %130
.lr.ph5: ; preds = %25
br label %36
36: ; preds = %.lr.ph5, %123
%37 = load i8, ptr %14, align 1
%38 = sext i8 %37 to i32
%39 = icmp eq i32 %38, 124
br i1 %39, label %40, label %88
40: ; preds = %36
%41 = load ptr, ptr %6, align 8
%42 = call i32 @fscanf(ptr noundef %41, ptr noundef @.str.2, ptr noundef %13)
%43 = load i32, ptr %12, align 4
%44 = icmp ugt i32 %43, 1
br i1 %44, label %.lr.ph2, label %80
.lr.ph2: ; preds = %40
br label %45
45: ; preds = %.lr.ph2, %75
%46 = load i32, ptr %13, align 4
%47 = load i32, ptr %12, align 4
%48 = urem i32 %46, %47
store i32 %48, ptr %11, align 4
%49 = load i32, ptr %11, align 4
%50 = icmp ugt i32 %49, 0
br i1 %50, label %51, label %75
51: ; preds = %45
%52 = load i32, ptr %11, align 4
%53 = sub i32 %52, 1
store i32 %53, ptr %10, align 4
%54 = load i32, ptr %10, align 4
%55 = load i32, ptr %12, align 4
%56 = sub i32 %55, 1
%57 = icmp ult i32 %54, %56
br i1 %57, label %.lr.ph, label %74
.lr.ph: ; preds = %51
br label %58
58: ; preds = %.lr.ph, %67
%59 = load i32, ptr %10, align 4
%60 = add i32 %59, 1
%61 = zext i32 %60 to i64
%62 = getelementptr inbounds [11 x i32], ptr %8, i64 0, i64 %61
%63 = load i32, ptr %62, align 4
%64 = load i32, ptr %10, align 4
%65 = zext i32 %64 to i64
%66 = getelementptr inbounds [11 x i32], ptr %8, i64 0, i64 %65
store i32 %63, ptr %66, align 4
br label %67
67: ; preds = %58
%68 = load i32, ptr %10, align 4
%69 = add i32 %68, 1
store i32 %69, ptr %10, align 4
%70 = load i32, ptr %10, align 4
%71 = load i32, ptr %12, align 4
%72 = sub i32 %71, 1
%73 = icmp ult i32 %70, %72
br i1 %73, label %58, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %67
br label %74
74: ; preds = %._crit_edge, %51
br label %75
75: ; preds = %74, %45
%76 = load i32, ptr %12, align 4
%77 = add i32 %76, -1
store i32 %77, ptr %12, align 4
%78 = load i32, ptr %12, align 4
%79 = icmp ugt i32 %78, 1
br i1 %79, label %45, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %75
br label %80
80: ; preds = %._crit_edge3, %40
%81 = load ptr, ptr %15, align 8
%82 = getelementptr inbounds [11 x i32], ptr %8, i64 0, i64 0
%83 = load i32, ptr %82, align 16
%84 = zext i32 %83 to i64
%85 = getelementptr inbounds i8, ptr %81, i64 %84
%86 = call i32 @puts(ptr noundef %85)
store i32 0, ptr %9, align 4
store i32 0, ptr %12, align 4
%87 = getelementptr inbounds [11 x i32], ptr %8, i64 0, i64 0
store i32 0, ptr %87, align 16
br label %123
88: ; preds = %36
%89 = load i32, ptr %9, align 4
%90 = load i32, ptr %7, align 4
%91 = icmp eq i32 %89, %90
br i1 %91, label %92, label %100
92: ; preds = %88
%93 = load i32, ptr %7, align 4
%94 = udiv i32 %93, 2
%95 = load i32, ptr %7, align 4
%96 = add i32 %95, %94
store i32 %96, ptr %7, align 4
%97 = load ptr, ptr %15, align 8
%98 = load i32, ptr %7, align 4
%99 = call ptr @realloc(ptr noundef %97, i32 noundef %98)
store ptr %99, ptr %15, align 8
br label %100
100: ; preds = %92, %88
%101 = load i8, ptr %14, align 1
%102 = sext i8 %101 to i32
%103 = icmp eq i32 %102, 32
br i1 %103, label %104, label %115
104: ; preds = %100
%105 = load ptr, ptr %15, align 8
%106 = load i32, ptr %9, align 4
%107 = add i32 %106, 1
store i32 %107, ptr %9, align 4
%108 = zext i32 %106 to i64
%109 = getelementptr inbounds i8, ptr %105, i64 %108
store i8 0, ptr %109, align 1
%110 = load i32, ptr %9, align 4
%111 = load i32, ptr %12, align 4
%112 = add i32 %111, 1
store i32 %112, ptr %12, align 4
%113 = zext i32 %112 to i64
%114 = getelementptr inbounds [11 x i32], ptr %8, i64 0, i64 %113
store i32 %110, ptr %114, align 4
br label %122
115: ; preds = %100
%116 = load i8, ptr %14, align 1
%117 = load ptr, ptr %15, align 8
%118 = load i32, ptr %9, align 4
%119 = add i32 %118, 1
store i32 %119, ptr %9, align 4
%120 = zext i32 %118 to i64
%121 = getelementptr inbounds i8, ptr %117, i64 %120
store i8 %116, ptr %121, align 1
br label %122
122: ; preds = %115, %104
br label %123
123: ; preds = %122, %80
%124 = load ptr, ptr %6, align 8
%125 = call signext i8 @getc(ptr noundef %124)
store i8 %125, ptr %14, align 1
%126 = sext i8 %125 to i32
%127 = load i8, ptr @EOF, align 1
%128 = sext i8 %127 to i32
%129 = icmp ne i32 %126, %128
br i1 %129, label %36, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %123
br label %130
130: ; preds = %._crit_edge6, %25
%131 = load ptr, ptr %15, align 8
%132 = call i32 @free(ptr noundef %131)
store i32 0, ptr %3, align 4
br label %133
133: ; preds = %130, %20
%134 = load i32, ptr %3, align 4
ret i32 %134
}
; 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 @malloc(i32 noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare signext i8 @getc(ptr noundef) #2
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @puts(ptr noundef) #2
declare ptr @realloc(ptr noundef, i32 noundef) #2
declare i32 @free(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpff8xc0q5.c'
source_filename = "/tmp/tmpff8xc0q5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @xfree(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp ne ptr %3, null
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load ptr, ptr %2, align 8
%7 = call i32 @free(ptr noundef %6)
br label %8
8: ; preds = %5, %1
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpff8xc0q5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @xfree(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp ne ptr %3, null
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load ptr, ptr %2, align 8
%7 = call i32 @free(ptr noundef %6)
br label %8
8: ; preds = %5, %1
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsn3ufrks.c'
source_filename = "/tmp/tmpsn3ufrks.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Ditt f\C3\B6rnamn: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"Hej %s!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [20 x i8], align 16
store i32 0, ptr %1, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%5 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %5)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsn3ufrks.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Ditt f\C3\B6rnamn: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"Hej %s!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [20 x i8], align 16
store i32 0, ptr %1, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%5 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %5)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsus98_yy.c'
source_filename = "/tmp/tmpsus98_yy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @g_getchar() #0 {
%1 = call i32 (...) @getchar()
ret i32 %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/tmpsus98_yy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @g_getchar() #0 {
%1 = call i32 (...) @getchar()
ret i32 %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/tmp22cqiee7.c'
source_filename = "/tmp/tmp22cqiee7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [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 [10 x i8], align 1
%3 = alloca [5 x i8], align 1
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 0
%9 = call i32 @scanf(ptr noundef @.str, ptr noundef %8)
%10 = getelementptr inbounds [5 x i8], ptr %3, i64 0, i64 0
%11 = call i32 @scanf(ptr noundef @.str, ptr noundef %10)
store i32 0, ptr %4, align 4
store i32 1, ptr %5, align 4
br label %12
12: ; preds = %64, %0
%13 = load i32, ptr %4, align 4
%14 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 0
%15 = call i32 @strlen(ptr noundef %14)
%16 = icmp slt i32 %13, %15
br i1 %16, label %17, label %67
17: ; preds = %12
%18 = load i32, ptr %4, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 %19
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = getelementptr inbounds [5 x i8], ptr %3, i64 0, i64 0
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %22, %25
br i1 %26, label %27, label %63
27: ; preds = %17
store i32 1, ptr %6, align 4
%28 = load i32, ptr %4, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %7, align 4
br label %30
30: ; preds = %50, %27
%31 = load i32, ptr %6, align 4
%32 = getelementptr inbounds [5 x i8], ptr %3, i64 0, i64 0
%33 = call i32 @strlen(ptr noundef %32)
%34 = icmp slt i32 %31, %33
br i1 %34, label %35, label %51
35: ; preds = %30
%36 = load i32, ptr %7, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %7, align 4
%38 = sext i32 %36 to i64
%39 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 %38
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = load i32, ptr %6, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %6, align 4
%44 = sext i32 %42 to i64
%45 = getelementptr inbounds [5 x i8], ptr %3, i64 0, i64 %44
%46 = load i8, ptr %45, align 1
%47 = sext i8 %46 to i32
%48 = icmp ne i32 %41, %47
br i1 %48, label %49, label %50
49: ; preds = %35
store i32 0, ptr %5, align 4
br label %51
50: ; preds = %35
br label %30, !llvm.loop !6
51: ; preds = %49, %30
%52 = load i32, ptr %5, align 4
%53 = icmp eq i32 %52, 1
br i1 %53, label %54, label %62
54: ; preds = %51
%55 = load i32, ptr %6, align 4
%56 = getelementptr inbounds [5 x i8], ptr %3, i64 0, i64 0
%57 = call i32 @strlen(ptr noundef %56)
%58 = icmp eq i32 %55, %57
br i1 %58, label %59, label %62
59: ; preds = %54
%60 = load i32, ptr %4, align 4
%61 = call i32 @printf(ptr noundef @.str.1, i32 noundef %60)
br label %67
62: ; preds = %54, %51
store i32 1, ptr %5, align 4
br label %63
63: ; preds = %62, %17
br label %64
64: ; preds = %63
%65 = load i32, ptr %4, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %4, align 4
br label %12, !llvm.loop !8
67: ; preds = %59, %12
%68 = load i32, ptr %1, align 4
ret i32 %68
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp22cqiee7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [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 [10 x i8], align 1
%3 = alloca [5 x i8], align 1
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 0
%9 = call i32 @scanf(ptr noundef @.str, ptr noundef %8)
%10 = getelementptr inbounds [5 x i8], ptr %3, i64 0, i64 0
%11 = call i32 @scanf(ptr noundef @.str, ptr noundef %10)
store i32 0, ptr %4, align 4
store i32 1, ptr %5, align 4
%12 = load i32, ptr %4, align 4
%13 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 0
%14 = call i32 @strlen(ptr noundef %13)
%15 = icmp slt i32 %12, %14
br i1 %15, label %.lr.ph2, label %.loopexit1
.lr.ph2: ; preds = %0
br label %16
16: ; preds = %.lr.ph2, %65
%17 = load i32, ptr %4, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 %18
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = getelementptr inbounds [5 x i8], ptr %3, i64 0, i64 0
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %21, %24
br i1 %25, label %26, label %64
26: ; preds = %16
store i32 1, ptr %6, align 4
%27 = load i32, ptr %4, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %7, align 4
%29 = load i32, ptr %6, align 4
%30 = getelementptr inbounds [5 x i8], ptr %3, i64 0, i64 0
%31 = call i32 @strlen(ptr noundef %30)
%32 = icmp slt i32 %29, %31
br i1 %32, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %26
br label %37
33: ; preds = %37
%34 = load i32, ptr %6, align 4
%35 = call i32 @strlen(ptr noundef %30)
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %..loopexit_crit_edge, !llvm.loop !6
37: ; preds = %.lr.ph, %33
%38 = load i32, ptr %7, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %7, align 4
%40 = sext i32 %38 to i64
%41 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 %40
%42 = load i8, ptr %41, align 1
%43 = sext i8 %42 to i32
%44 = load i32, ptr %6, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %6, align 4
%46 = sext i32 %44 to i64
%47 = getelementptr inbounds [5 x i8], ptr %3, i64 0, i64 %46
%48 = load i8, ptr %47, align 1
%49 = sext i8 %48 to i32
%50 = icmp ne i32 %43, %49
br i1 %50, label %51, label %33
51: ; preds = %37
store i32 0, ptr %5, align 4
br label %52
..loopexit_crit_edge: ; preds = %33
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %26
br label %52
52: ; preds = %.loopexit, %51
%53 = load i32, ptr %5, align 4
%54 = icmp eq i32 %53, 1
br i1 %54, label %55, label %63
55: ; preds = %52
%56 = load i32, ptr %6, align 4
%57 = getelementptr inbounds [5 x i8], ptr %3, i64 0, i64 0
%58 = call i32 @strlen(ptr noundef %57)
%59 = icmp eq i32 %56, %58
br i1 %59, label %60, label %63
60: ; preds = %55
%61 = load i32, ptr %4, align 4
%62 = call i32 @printf(ptr noundef @.str.1, i32 noundef %61)
br label %71
63: ; preds = %55, %52
store i32 1, ptr %5, align 4
br label %64
64: ; preds = %63, %16
br label %65
65: ; preds = %64
%66 = load i32, ptr %4, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %4, align 4
%68 = load i32, ptr %4, align 4
%69 = call i32 @strlen(ptr noundef %13)
%70 = icmp slt i32 %68, %69
br i1 %70, label %16, label %..loopexit1_crit_edge, !llvm.loop !8
..loopexit1_crit_edge: ; preds = %65
br label %.loopexit1
.loopexit1: ; preds = %..loopexit1_crit_edge, %0
br label %71
71: ; preds = %.loopexit1, %60
%72 = load i32, ptr %1, align 4
ret i32 %72
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpma1ox0h0.c'
source_filename = "/tmp/tmpma1ox0h0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [7 x i8] c"False\0A\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"True\0A\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"ERROR\0A\00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"./bitflip-recursive\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
br label %3
3: ; preds = %0, %16
%4 = load i32, ptr %2, align 4
%5 = icmp eq i32 %4, 1
br i1 %5, label %6, label %8
6: ; preds = %3
store i32 0, ptr %2, align 4
%7 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.1)
br label %16
8: ; preds = %3
%9 = load i32, ptr %2, align 4
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %8
store i32 1, ptr %2, align 4
%12 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.2)
br label %15
13: ; preds = %8
%14 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.3)
ret i32 0
15: ; preds = %11
br label %16
16: ; preds = %15, %6
%17 = call i32 @system(ptr noundef @.str.4)
br label %3
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpma1ox0h0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [7 x i8] c"False\0A\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"True\0A\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"ERROR\0A\00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"./bitflip-recursive\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
br label %3
3: ; preds = %16, %0
%4 = load i32, ptr %2, align 4
%5 = icmp eq i32 %4, 1
br i1 %5, label %6, label %8
6: ; preds = %3
store i32 0, ptr %2, align 4
%7 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.1)
br label %16
8: ; preds = %3
%9 = load i32, ptr %2, align 4
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %8
store i32 1, ptr %2, align 4
%12 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.2)
br label %15
13: ; preds = %8
%14 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.3)
ret i32 0
15: ; preds = %11
br label %16
16: ; preds = %15, %6
%17 = call i32 @system(ptr noundef @.str.4)
br label %3
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnv_ku3et.c'
source_filename = "/tmp/tmpnv_ku3et.c"
target datalayout = "e-m:e-p270: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/tmpnv_ku3et.c"
target datalayout = "e-m:e-p270: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/tmp0bl94jyc.c'
source_filename = "/tmp/tmp0bl94jyc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_bitonic_merge_kernel8core(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [2 x i32], align 4
%6 = alloca [2 x i32], align 4
%7 = alloca [2 x i32], align 4
%8 = alloca [2 x i32], align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%9 = load ptr, ptr %3, align 8
%10 = call i32 @_mm_loadu_ps(ptr noundef %9)
%11 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 0
store i32 %10, ptr %11, align 4
%12 = load ptr, ptr %4, align 8
%13 = call i32 @_mm_loadu_ps(ptr noundef %12)
%14 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
store i32 %13, ptr %14, align 4
%15 = load ptr, ptr %3, align 8
%16 = getelementptr inbounds float, ptr %15, i64 4
%17 = call i32 @_mm_loadu_ps(ptr noundef %16)
%18 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 1
store i32 %17, ptr %18, align 4
%19 = load ptr, ptr %4, align 8
%20 = getelementptr inbounds float, ptr %19, i64 4
%21 = call i32 @_mm_loadu_ps(ptr noundef %20)
%22 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 1
store i32 %21, ptr %22, align 4
%23 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 0
%24 = load i32, ptr %23, align 4
%25 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
%26 = load i32, ptr %25, align 4
%27 = call i32 @_mm_min_ps(i32 noundef %24, i32 noundef %26)
%28 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
store i32 %27, ptr %28, align 4
%29 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 0
%30 = load i32, ptr %29, align 4
%31 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
%32 = load i32, ptr %31, align 4
%33 = call i32 @_mm_max_ps(i32 noundef %30, i32 noundef %32)
%34 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 0
store i32 %33, ptr %34, align 4
%35 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 1
%36 = load i32, ptr %35, align 4
%37 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 1
%38 = load i32, ptr %37, align 4
%39 = call i32 @_mm_min_ps(i32 noundef %36, i32 noundef %38)
%40 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 1
store i32 %39, ptr %40, align 4
%41 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 1
%42 = load i32, ptr %41, align 4
%43 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 1
%44 = load i32, ptr %43, align 4
%45 = call i32 @_mm_max_ps(i32 noundef %42, i32 noundef %44)
%46 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 1
store i32 %45, ptr %46, align 4
%47 = load ptr, ptr %3, align 8
%48 = getelementptr inbounds float, ptr %47, i64 0
%49 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
%50 = load i32, ptr %49, align 4
%51 = call i32 @_mm_storeu_ps(ptr noundef %48, i32 noundef %50)
%52 = load ptr, ptr %3, align 8
%53 = getelementptr inbounds float, ptr %52, i64 4
%54 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 1
%55 = load i32, ptr %54, align 4
%56 = call i32 @_mm_storeu_ps(ptr noundef %53, i32 noundef %55)
%57 = load ptr, ptr %4, align 8
%58 = getelementptr inbounds float, ptr %57, i64 0
%59 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 1
%60 = load i32, ptr %59, align 4
%61 = call i32 @_mm_storeu_ps(ptr noundef %58, i32 noundef %60)
%62 = load ptr, ptr %4, align 8
%63 = getelementptr inbounds float, ptr %62, i64 4
%64 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 0
%65 = load i32, ptr %64, align 4
%66 = call i32 @_mm_storeu_ps(ptr noundef %63, i32 noundef %65)
%67 = load ptr, ptr %3, align 8
%68 = getelementptr inbounds float, ptr %67, i64 0
%69 = load ptr, ptr %3, align 8
%70 = getelementptr inbounds float, ptr %69, i64 4
%71 = call i32 @_bitonic_merge_kernel4core(ptr noundef %68, ptr noundef %70)
%72 = load ptr, ptr %4, align 8
%73 = getelementptr inbounds float, ptr %72, i64 0
%74 = load ptr, ptr %4, align 8
%75 = getelementptr inbounds float, ptr %74, i64 4
%76 = call i32 @_bitonic_merge_kernel4core(ptr noundef %73, ptr noundef %75)
ret void
}
declare i32 @_mm_loadu_ps(ptr noundef) #1
declare i32 @_mm_min_ps(i32 noundef, i32 noundef) #1
declare i32 @_mm_max_ps(i32 noundef, i32 noundef) #1
declare i32 @_mm_storeu_ps(ptr noundef, i32 noundef) #1
declare i32 @_bitonic_merge_kernel4core(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/tmp0bl94jyc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_bitonic_merge_kernel8core(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [2 x i32], align 4
%6 = alloca [2 x i32], align 4
%7 = alloca [2 x i32], align 4
%8 = alloca [2 x i32], align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%9 = load ptr, ptr %3, align 8
%10 = call i32 @_mm_loadu_ps(ptr noundef %9)
%11 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 0
store i32 %10, ptr %11, align 4
%12 = load ptr, ptr %4, align 8
%13 = call i32 @_mm_loadu_ps(ptr noundef %12)
%14 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
store i32 %13, ptr %14, align 4
%15 = load ptr, ptr %3, align 8
%16 = getelementptr inbounds float, ptr %15, i64 4
%17 = call i32 @_mm_loadu_ps(ptr noundef %16)
%18 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 1
store i32 %17, ptr %18, align 4
%19 = load ptr, ptr %4, align 8
%20 = getelementptr inbounds float, ptr %19, i64 4
%21 = call i32 @_mm_loadu_ps(ptr noundef %20)
%22 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 1
store i32 %21, ptr %22, align 4
%23 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 0
%24 = load i32, ptr %23, align 4
%25 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
%26 = load i32, ptr %25, align 4
%27 = call i32 @_mm_min_ps(i32 noundef %24, i32 noundef %26)
%28 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
store i32 %27, ptr %28, align 4
%29 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 0
%30 = load i32, ptr %29, align 4
%31 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
%32 = load i32, ptr %31, align 4
%33 = call i32 @_mm_max_ps(i32 noundef %30, i32 noundef %32)
%34 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 0
store i32 %33, ptr %34, align 4
%35 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 1
%36 = load i32, ptr %35, align 4
%37 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 1
%38 = load i32, ptr %37, align 4
%39 = call i32 @_mm_min_ps(i32 noundef %36, i32 noundef %38)
%40 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 1
store i32 %39, ptr %40, align 4
%41 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 1
%42 = load i32, ptr %41, align 4
%43 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 1
%44 = load i32, ptr %43, align 4
%45 = call i32 @_mm_max_ps(i32 noundef %42, i32 noundef %44)
%46 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 1
store i32 %45, ptr %46, align 4
%47 = load ptr, ptr %3, align 8
%48 = getelementptr inbounds float, ptr %47, i64 0
%49 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
%50 = load i32, ptr %49, align 4
%51 = call i32 @_mm_storeu_ps(ptr noundef %48, i32 noundef %50)
%52 = load ptr, ptr %3, align 8
%53 = getelementptr inbounds float, ptr %52, i64 4
%54 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 1
%55 = load i32, ptr %54, align 4
%56 = call i32 @_mm_storeu_ps(ptr noundef %53, i32 noundef %55)
%57 = load ptr, ptr %4, align 8
%58 = getelementptr inbounds float, ptr %57, i64 0
%59 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 1
%60 = load i32, ptr %59, align 4
%61 = call i32 @_mm_storeu_ps(ptr noundef %58, i32 noundef %60)
%62 = load ptr, ptr %4, align 8
%63 = getelementptr inbounds float, ptr %62, i64 4
%64 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 0
%65 = load i32, ptr %64, align 4
%66 = call i32 @_mm_storeu_ps(ptr noundef %63, i32 noundef %65)
%67 = load ptr, ptr %3, align 8
%68 = getelementptr inbounds float, ptr %67, i64 0
%69 = load ptr, ptr %3, align 8
%70 = getelementptr inbounds float, ptr %69, i64 4
%71 = call i32 @_bitonic_merge_kernel4core(ptr noundef %68, ptr noundef %70)
%72 = load ptr, ptr %4, align 8
%73 = getelementptr inbounds float, ptr %72, i64 0
%74 = load ptr, ptr %4, align 8
%75 = getelementptr inbounds float, ptr %74, i64 4
%76 = call i32 @_bitonic_merge_kernel4core(ptr noundef %73, ptr noundef %75)
ret void
}
declare i32 @_mm_loadu_ps(ptr noundef) #1
declare i32 @_mm_min_ps(i32 noundef, i32 noundef) #1
declare i32 @_mm_max_ps(i32 noundef, i32 noundef) #1
declare i32 @_mm_storeu_ps(ptr noundef, i32 noundef) #1
declare i32 @_bitonic_merge_kernel4core(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/tmpsjiul369.c'
source_filename = "/tmp/tmpsjiul369.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [39 x i8] c"/proc/sys/net/ipv6/conf/all/forwarding\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @prefix_forwarding_enabled() #0 {
%1 = alloca i8, align 1
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 0, ptr %2, align 4
%4 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %4, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %7, label %15
7: ; preds = %0
%8 = load ptr, ptr %3, align 8
%9 = call signext i8 @fgetc(ptr noundef %8)
store i8 %9, ptr %1, align 1
%10 = load i8, ptr %1, align 1
%11 = sext i8 %10 to i32
%12 = icmp eq i32 %11, 49
br i1 %12, label %13, label %14
13: ; preds = %7
store i32 1, ptr %2, align 4
br label %14
14: ; preds = %13, %7
br label %15
15: ; preds = %14, %0
%16 = load ptr, ptr %3, align 8
%17 = call i32 @fclose(ptr noundef %16)
%18 = load i32, ptr %2, align 4
ret i32 %18
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare signext i8 @fgetc(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/tmpsjiul369.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [39 x i8] c"/proc/sys/net/ipv6/conf/all/forwarding\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @prefix_forwarding_enabled() #0 {
%1 = alloca i8, align 1
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 0, ptr %2, align 4
%4 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %4, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %7, label %15
7: ; preds = %0
%8 = load ptr, ptr %3, align 8
%9 = call signext i8 @fgetc(ptr noundef %8)
store i8 %9, ptr %1, align 1
%10 = load i8, ptr %1, align 1
%11 = sext i8 %10 to i32
%12 = icmp eq i32 %11, 49
br i1 %12, label %13, label %14
13: ; preds = %7
store i32 1, ptr %2, align 4
br label %14
14: ; preds = %13, %7
br label %15
15: ; preds = %14, %0
%16 = load ptr, ptr %3, align 8
%17 = call i32 @fclose(ptr noundef %16)
%18 = load i32, ptr %2, align 4
ret i32 %18
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare signext i8 @fgetc(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/tmp1oot3sx7.c'
source_filename = "/tmp/tmp1oot3sx7.c"
target datalayout = "e-m:e-p270: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/tmp1oot3sx7.c"
target datalayout = "e-m:e-p270: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/tmpe5hwms7c.c'
source_filename = "/tmp/tmpe5hwms7c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [6 x i8] c"%02x \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @send_stdout(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i64, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = getelementptr inbounds i8, ptr %5, i64 0
%7 = load i8, ptr %6, align 1
%8 = zext i8 %7 to i32
store i32 %8, ptr %3, align 4
store i64 0, ptr %4, align 8
br label %9
9: ; preds = %22, %1
%10 = load i64, ptr %4, align 8
%11 = load i32, ptr %3, align 4
%12 = add nsw i32 %11, 1
%13 = sext i32 %12 to i64
%14 = icmp ult i64 %10, %13
br i1 %14, label %15, label %25
15: ; preds = %9
%16 = load i32, ptr @stdout, align 4
%17 = load ptr, ptr %2, align 8
%18 = load i64, ptr %4, align 8
%19 = getelementptr inbounds i8, ptr %17, i64 %18
%20 = load i8, ptr %19, align 1
%21 = call i32 @fprintf(i32 noundef %16, ptr noundef @.str, i8 noundef zeroext %20)
br label %22
22: ; preds = %15
%23 = load i64, ptr %4, align 8
%24 = add i64 %23, 1
store i64 %24, ptr %4, align 8
br label %9, !llvm.loop !6
25: ; preds = %9
%26 = call i32 @printf(ptr noundef @.str.1)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, i8 noundef zeroext) #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/tmpe5hwms7c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [6 x i8] c"%02x \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @send_stdout(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i64, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = getelementptr inbounds i8, ptr %5, i64 0
%7 = load i8, ptr %6, align 1
%8 = zext i8 %7 to i32
store i32 %8, ptr %3, align 4
store i64 0, ptr %4, align 8
%9 = load i64, ptr %4, align 8
%10 = load i32, ptr %3, align 4
%11 = add nsw i32 %10, 1
%12 = sext i32 %11 to i64
%13 = icmp ult i64 %9, %12
br i1 %13, label %.lr.ph, label %29
.lr.ph: ; preds = %1
br label %14
14: ; preds = %.lr.ph, %21
%15 = load i32, ptr @stdout, align 4
%16 = load ptr, ptr %2, align 8
%17 = load i64, ptr %4, align 8
%18 = getelementptr inbounds i8, ptr %16, i64 %17
%19 = load i8, ptr %18, align 1
%20 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str, i8 noundef zeroext %19)
br label %21
21: ; preds = %14
%22 = load i64, ptr %4, align 8
%23 = add i64 %22, 1
store i64 %23, ptr %4, align 8
%24 = load i64, ptr %4, align 8
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 1
%27 = sext i32 %26 to i64
%28 = icmp ult i64 %24, %27
br i1 %28, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %29
29: ; preds = %._crit_edge, %1
%30 = call i32 @printf(ptr noundef @.str.1)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, i8 noundef zeroext) #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/tmp2w8y2yqm.c'
source_filename = "/tmp/tmp2w8y2yqm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"I am myexe.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2w8y2yqm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"I am myexe.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmps0voy2_4.c'
source_filename = "/tmp/tmps0voy2_4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"FAILED\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"PASSED\00", align 1
@.str.2 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"initSeed()\00", align 1
@.str.4 = private unnamed_addr constant [14 x i8] c"Executing %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [10 x i8] c"getSeed()\00", align 1
@.str.6 = private unnamed_addr constant [18 x i8] c" %s: Seed is %i\0A\00", align 1
@.str.7 = private unnamed_addr constant [11 x i8] c"coinflip()\00", align 1
@.str.8 = private unnamed_addr constant [33 x i8] c" %s: %s: invalid return values\0A\00", align 1
@.str.9 = private unnamed_addr constant [30 x i8] c" %s: %s: return values okay\0A\00", align 1
@.str.10 = private unnamed_addr constant [31 x i8] c" odd: %i (%f), even: %i (%f)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store ptr @.str, ptr %9, align 8
store ptr @.str.1, ptr %10, align 8
store ptr @.str.2, ptr %11, align 8
store i32 0, ptr %12, align 4
store ptr @.str.3, ptr %11, align 8
%20 = load ptr, ptr %11, align 8
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %20)
%22 = call i32 (...) @initSeed()
store ptr @.str.5, ptr %11, align 8
%23 = load ptr, ptr %11, align 8
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %23)
%25 = call i32 (...) @getSeed()
store i32 %25, ptr %13, align 4
%26 = load ptr, ptr %11, align 8
%27 = load i32, ptr %13, align 4
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %26, i32 noundef %27)
store ptr @.str.7, ptr %11, align 8
%29 = load ptr, ptr %11, align 8
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %29)
store i32 0, ptr %14, align 4
store i32 0, ptr %15, align 4
store i32 0, ptr %16, align 4
store i32 10, ptr %12, align 4
store i32 0, ptr %17, align 4
br label %31
31: ; preds = %53, %2
%32 = load i32, ptr %17, align 4
%33 = load i32, ptr %12, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %35, label %56
35: ; preds = %31
%36 = call i32 (...) @coinflip()
store i32 %36, ptr %18, align 4
%37 = load i32, ptr %18, align 4
%38 = icmp eq i32 %37, 1
br i1 %38, label %39, label %42
39: ; preds = %35
%40 = load i32, ptr %14, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %14, align 4
br label %52
42: ; preds = %35
%43 = load i32, ptr %18, align 4
%44 = icmp eq i32 %43, 0
br i1 %44, label %45, label %48
45: ; preds = %42
%46 = load i32, ptr %15, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %15, align 4
br label %51
48: ; preds = %42
%49 = load i32, ptr %16, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %16, align 4
br label %51
51: ; preds = %48, %45
br label %52
52: ; preds = %51, %39
br label %53
53: ; preds = %52
%54 = load i32, ptr %17, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %17, align 4
br label %31, !llvm.loop !6
56: ; preds = %31
%57 = load i32, ptr %6, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %6, align 4
%59 = load i32, ptr %16, align 4
%60 = icmp sgt i32 %59, 0
br i1 %60, label %61, label %67
61: ; preds = %56
%62 = load i32, ptr %7, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %7, align 4
%64 = load ptr, ptr %11, align 8
%65 = load ptr, ptr %9, align 8
%66 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %64, ptr noundef %65)
br label %73
67: ; preds = %56
%68 = load i32, ptr %8, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %8, align 4
%70 = load ptr, ptr %11, align 8
%71 = load ptr, ptr %10, align 8
%72 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %70, ptr noundef %71)
br label %73
73: ; preds = %67, %61
%74 = load i32, ptr %12, align 4
%75 = sdiv i32 %74, 2
store i32 %75, ptr %19, align 4
%76 = load i32, ptr %14, align 4
%77 = load i32, ptr %14, align 4
%78 = sitofp i32 %77 to double
%79 = load i32, ptr %19, align 4
%80 = sitofp i32 %79 to double
%81 = fdiv double %78, %80
%82 = load i32, ptr %15, align 4
%83 = load i32, ptr %15, align 4
%84 = sitofp i32 %83 to double
%85 = load i32, ptr %19, align 4
%86 = sitofp i32 %85 to double
%87 = fdiv double %84, %86
%88 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %76, double noundef %81, i32 noundef %82, double noundef %87)
%89 = load i32, ptr %3, align 4
ret i32 %89
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @initSeed(...) #1
declare i32 @getSeed(...) #1
declare i32 @coinflip(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmps0voy2_4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"FAILED\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"PASSED\00", align 1
@.str.2 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"initSeed()\00", align 1
@.str.4 = private unnamed_addr constant [14 x i8] c"Executing %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [10 x i8] c"getSeed()\00", align 1
@.str.6 = private unnamed_addr constant [18 x i8] c" %s: Seed is %i\0A\00", align 1
@.str.7 = private unnamed_addr constant [11 x i8] c"coinflip()\00", align 1
@.str.8 = private unnamed_addr constant [33 x i8] c" %s: %s: invalid return values\0A\00", align 1
@.str.9 = private unnamed_addr constant [30 x i8] c" %s: %s: return values okay\0A\00", align 1
@.str.10 = private unnamed_addr constant [31 x i8] c" odd: %i (%f), even: %i (%f)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store ptr @.str, ptr %9, align 8
store ptr @.str.1, ptr %10, align 8
store ptr @.str.2, ptr %11, align 8
store i32 0, ptr %12, align 4
store ptr @.str.3, ptr %11, align 8
%20 = load ptr, ptr %11, align 8
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %20)
%22 = call i32 (...) @initSeed()
store ptr @.str.5, ptr %11, align 8
%23 = load ptr, ptr %11, align 8
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %23)
%25 = call i32 (...) @getSeed()
store i32 %25, ptr %13, align 4
%26 = load ptr, ptr %11, align 8
%27 = load i32, ptr %13, align 4
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %26, i32 noundef %27)
store ptr @.str.7, ptr %11, align 8
%29 = load ptr, ptr %11, align 8
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %29)
store i32 0, ptr %14, align 4
store i32 0, ptr %15, align 4
store i32 0, ptr %16, align 4
store i32 10, ptr %12, align 4
store i32 0, ptr %17, align 4
%31 = load i32, ptr %17, align 4
%32 = load i32, ptr %12, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %.lr.ph, label %58
.lr.ph: ; preds = %2
br label %34
34: ; preds = %.lr.ph, %52
%35 = call i32 (...) @coinflip()
store i32 %35, ptr %18, align 4
%36 = load i32, ptr %18, align 4
%37 = icmp eq i32 %36, 1
br i1 %37, label %38, label %41
38: ; preds = %34
%39 = load i32, ptr %14, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %14, align 4
br label %51
41: ; preds = %34
%42 = load i32, ptr %18, align 4
%43 = icmp eq i32 %42, 0
br i1 %43, label %44, label %47
44: ; preds = %41
%45 = load i32, ptr %15, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %15, align 4
br label %50
47: ; preds = %41
%48 = load i32, ptr %16, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %16, align 4
br label %50
50: ; preds = %47, %44
br label %51
51: ; preds = %50, %38
br label %52
52: ; preds = %51
%53 = load i32, ptr %17, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %17, align 4
%55 = load i32, ptr %17, align 4
%56 = load i32, ptr %12, align 4
%57 = icmp slt i32 %55, %56
br i1 %57, label %34, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %52
br label %58
58: ; preds = %._crit_edge, %2
%59 = load i32, ptr %6, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %6, align 4
%61 = load i32, ptr %16, align 4
%62 = icmp sgt i32 %61, 0
br i1 %62, label %63, label %69
63: ; preds = %58
%64 = load i32, ptr %7, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %7, align 4
%66 = load ptr, ptr %11, align 8
%67 = load ptr, ptr %9, align 8
%68 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %66, ptr noundef %67)
br label %75
69: ; preds = %58
%70 = load i32, ptr %8, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %8, align 4
%72 = load ptr, ptr %11, align 8
%73 = load ptr, ptr %10, align 8
%74 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %72, ptr noundef %73)
br label %75
75: ; preds = %69, %63
%76 = load i32, ptr %12, align 4
%77 = sdiv i32 %76, 2
store i32 %77, ptr %19, align 4
%78 = load i32, ptr %14, align 4
%79 = load i32, ptr %14, align 4
%80 = sitofp i32 %79 to double
%81 = load i32, ptr %19, align 4
%82 = sitofp i32 %81 to double
%83 = fdiv double %80, %82
%84 = load i32, ptr %15, align 4
%85 = load i32, ptr %15, align 4
%86 = sitofp i32 %85 to double
%87 = load i32, ptr %19, align 4
%88 = sitofp i32 %87 to double
%89 = fdiv double %86, %88
%90 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %78, double noundef %83, i32 noundef %84, double noundef %89)
%91 = load i32, ptr %3, align 4
ret i32 %91
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @initSeed(...) #1
declare i32 @getSeed(...) #1
declare i32 @coinflip(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp31t7snai.c'
source_filename = "/tmp/tmp31t7snai.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [41 x i8] c"sentenceyi yazin(sonuna nokta koyunuz):\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.2 = 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 [50 x i8], align 16
%3 = alloca [100 x i32], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 -1, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%8 = call i32 @gets(ptr noundef %7)
br label %9
9: ; preds = %38, %0
%10 = load i32, ptr %4, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %4, align 4
%12 = load i32, ptr %4, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %13
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %16)
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %5, align 4
%20 = load i32, ptr %4, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %21
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 32
br i1 %25, label %33, label %26
26: ; preds = %9
%27 = load i32, ptr %4, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %28
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 46
br i1 %32, label %33, label %37
33: ; preds = %26, %9
%34 = load i32, ptr %5, align 4
%35 = sub nsw i32 %34, 1
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %35)
store i32 0, ptr %5, align 4
br label %37
37: ; preds = %33, %26
br label %38
38: ; preds = %37
%39 = load i32, ptr %4, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %40
%42 = load i8, ptr %41, align 1
%43 = sext i8 %42 to i32
%44 = icmp ne i32 %43, 46
br i1 %44, label %9, label %45, !llvm.loop !6
45: ; preds = %38
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @gets(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp31t7snai.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [41 x i8] c"sentenceyi yazin(sonuna nokta koyunuz):\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.2 = 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 [50 x i8], align 16
%3 = alloca [100 x i32], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 -1, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%8 = call i32 @gets(ptr noundef %7)
br label %9
9: ; preds = %38, %0
%10 = load i32, ptr %4, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %4, align 4
%12 = load i32, ptr %4, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %13
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %16)
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %5, align 4
%20 = load i32, ptr %4, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %21
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 32
br i1 %25, label %33, label %26
26: ; preds = %9
%27 = load i32, ptr %4, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %28
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 46
br i1 %32, label %33, label %37
33: ; preds = %26, %9
%34 = load i32, ptr %5, align 4
%35 = sub nsw i32 %34, 1
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %35)
store i32 0, ptr %5, align 4
br label %37
37: ; preds = %33, %26
br label %38
38: ; preds = %37
%39 = load i32, ptr %4, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %40
%42 = load i8, ptr %41, align 1
%43 = sext i8 %42 to i32
%44 = icmp ne i32 %43, 46
br i1 %44, label %9, label %45, !llvm.loop !6
45: ; preds = %38
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @gets(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpyhlcqkcg.c'
source_filename = "/tmp/tmpyhlcqkcg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.tm = type { i32, i32, i32, i32, i32, i32 }
@.str = private unnamed_addr constant [29 x i8] c"[GMT] %d/%d/%d %d:%02d:%02d\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 ptr, align 8
store i32 0, ptr %1, align 4
%4 = call i32 @time(ptr noundef null)
store i32 %4, ptr %2, align 4
%5 = call ptr @gmtime(ptr noundef %2)
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds %struct.tm, ptr %6, i32 0, i32 0
%8 = load i32, ptr %7, align 4
%9 = add nsw i32 %8, 1900
%10 = load ptr, ptr %3, align 8
%11 = getelementptr inbounds %struct.tm, ptr %10, i32 0, i32 1
%12 = load i32, ptr %11, align 4
%13 = add nsw i32 %12, 1
%14 = load ptr, ptr %3, align 8
%15 = getelementptr inbounds %struct.tm, ptr %14, i32 0, i32 2
%16 = load i32, ptr %15, align 4
%17 = load ptr, ptr %3, align 8
%18 = getelementptr inbounds %struct.tm, ptr %17, i32 0, i32 3
%19 = load i32, ptr %18, align 4
%20 = load ptr, ptr %3, align 8
%21 = getelementptr inbounds %struct.tm, ptr %20, i32 0, i32 4
%22 = load i32, ptr %21, align 4
%23 = load ptr, ptr %3, align 8
%24 = getelementptr inbounds %struct.tm, ptr %23, i32 0, i32 5
%25 = load i32, ptr %24, align 4
%26 = call i32 @printf(ptr noundef @.str, i32 noundef %9, i32 noundef %13, i32 noundef %16, i32 noundef %19, i32 noundef %22, i32 noundef %25)
ret i32 0
}
declare i32 @time(ptr noundef) #1
declare ptr @gmtime(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 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/tmpyhlcqkcg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.tm = type { i32, i32, i32, i32, i32, i32 }
@.str = private unnamed_addr constant [29 x i8] c"[GMT] %d/%d/%d %d:%02d:%02d\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 ptr, align 8
store i32 0, ptr %1, align 4
%4 = call i32 @time(ptr noundef null)
store i32 %4, ptr %2, align 4
%5 = call ptr @gmtime(ptr noundef %2)
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds %struct.tm, ptr %6, i32 0, i32 0
%8 = load i32, ptr %7, align 4
%9 = add nsw i32 %8, 1900
%10 = load ptr, ptr %3, align 8
%11 = getelementptr inbounds %struct.tm, ptr %10, i32 0, i32 1
%12 = load i32, ptr %11, align 4
%13 = add nsw i32 %12, 1
%14 = load ptr, ptr %3, align 8
%15 = getelementptr inbounds %struct.tm, ptr %14, i32 0, i32 2
%16 = load i32, ptr %15, align 4
%17 = load ptr, ptr %3, align 8
%18 = getelementptr inbounds %struct.tm, ptr %17, i32 0, i32 3
%19 = load i32, ptr %18, align 4
%20 = load ptr, ptr %3, align 8
%21 = getelementptr inbounds %struct.tm, ptr %20, i32 0, i32 4
%22 = load i32, ptr %21, align 4
%23 = load ptr, ptr %3, align 8
%24 = getelementptr inbounds %struct.tm, ptr %23, i32 0, i32 5
%25 = load i32, ptr %24, align 4
%26 = call i32 @printf(ptr noundef @.str, i32 noundef %9, i32 noundef %13, i32 noundef %16, i32 noundef %19, i32 noundef %22, i32 noundef %25)
ret i32 0
}
declare i32 @time(ptr noundef) #1
declare ptr @gmtime(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 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/tmp2qh2s7mg.c'
source_filename = "/tmp/tmp2qh2s7mg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @udp_recv(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = call i32 @recv(i32 noundef %7, ptr noundef %8, i32 noundef %9, i32 noundef 0)
ret i32 %10
}
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2qh2s7mg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @udp_recv(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = call i32 @recv(i32 noundef %7, ptr noundef %8, i32 noundef %9, i32 noundef 0)
ret i32 %10
}
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpi8o2xp1t.c'
source_filename = "/tmp/tmpi8o2xp1t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/bin/sh\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1 x ptr], align 8
%7 = alloca [1 x ptr], 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 8 %6, i8 0, i64 8, i1 false)
call void @llvm.memset.p0.i64(ptr align 8 %7, i8 0, i64 8, i1 false)
%8 = call i32 @setreuid(i32 noundef 1337, i32 noundef 31337)
%9 = getelementptr inbounds [1 x ptr], ptr %6, i64 0, i64 0
%10 = getelementptr inbounds [1 x ptr], ptr %7, i64 0, i64 0
%11 = call i32 @execve(ptr noundef @.str, ptr noundef %9, ptr noundef %10)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @setreuid(i32 noundef, i32 noundef) #2
declare i32 @execve(ptr noundef, ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: 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/tmpi8o2xp1t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/bin/sh\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1 x ptr], align 8
%7 = alloca [1 x ptr], 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 8 %6, i8 0, i64 8, i1 false)
call void @llvm.memset.p0.i64(ptr align 8 %7, i8 0, i64 8, i1 false)
%8 = call i32 @setreuid(i32 noundef 1337, i32 noundef 31337)
%9 = getelementptr inbounds [1 x ptr], ptr %6, i64 0, i64 0
%10 = getelementptr inbounds [1 x ptr], ptr %7, i64 0, i64 0
%11 = call i32 @execve(ptr noundef @.str, ptr noundef %9, ptr noundef %10)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @setreuid(i32 noundef, i32 noundef) #2
declare i32 @execve(ptr noundef, ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: 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/tmpmdl90xtt.c'
source_filename = "/tmp/tmpmdl90xtt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__towctrans(i32 noundef %0, i64 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i64, align 8
store i32 %0, ptr %4, align 4
store i64 %1, ptr %5, align 8
%6 = load i64, ptr %5, align 8
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = load i32, ptr %4, align 4
store i32 %9, ptr %3, align 4
br label %15
10: ; preds = %2
%11 = load i64, ptr %5, align 8
%12 = inttoptr i64 %11 to ptr
%13 = load i32, ptr %4, align 4
%14 = call i32 @wctrans_table_lookup(ptr noundef %12, i32 noundef %13)
store i32 %14, ptr %3, align 4
br label %15
15: ; preds = %10, %8
%16 = load i32, ptr %3, align 4
ret i32 %16
}
declare i32 @wctrans_table_lookup(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/tmpmdl90xtt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__towctrans(i32 noundef %0, i64 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i64, align 8
store i32 %0, ptr %4, align 4
store i64 %1, ptr %5, align 8
%6 = load i64, ptr %5, align 8
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = load i32, ptr %4, align 4
store i32 %9, ptr %3, align 4
br label %15
10: ; preds = %2
%11 = load i64, ptr %5, align 8
%12 = inttoptr i64 %11 to ptr
%13 = load i32, ptr %4, align 4
%14 = call i32 @wctrans_table_lookup(ptr noundef %12, i32 noundef %13)
store i32 %14, ptr %3, align 4
br label %15
15: ; preds = %10, %8
%16 = load i32, ptr %3, align 4
ret i32 %16
}
declare i32 @wctrans_table_lookup(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/tmpxilx1i4l.c'
source_filename = "/tmp/tmpxilx1i4l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PerlinNoise1D(double noundef %0, double noundef %1, double noundef %2, i32 noundef %3) #0 {
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
store double %0, ptr %5, align 8
store double %1, ptr %6, align 8
store double %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
store double 0.000000e+00, ptr %11, align 8
store double 1.000000e+00, ptr %13, align 8
%14 = load double, ptr %5, align 8
store double %14, ptr %12, align 8
store i32 0, ptr %9, align 4
br label %15
15: ; preds = %33, %4
%16 = load i32, ptr %9, align 4
%17 = load i32, ptr %8, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %36
19: ; preds = %15
%20 = load double, ptr %12, align 8
%21 = call double @noise1(double noundef %20)
store double %21, ptr %10, align 8
%22 = load double, ptr %10, align 8
%23 = load double, ptr %13, align 8
%24 = fdiv double %22, %23
%25 = load double, ptr %11, align 8
%26 = fadd double %25, %24
store double %26, ptr %11, align 8
%27 = load double, ptr %6, align 8
%28 = load double, ptr %13, align 8
%29 = fmul double %28, %27
store double %29, ptr %13, align 8
%30 = load double, ptr %7, align 8
%31 = load double, ptr %12, align 8
%32 = fmul double %31, %30
store double %32, ptr %12, align 8
br label %33
33: ; preds = %19
%34 = load i32, ptr %9, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %9, align 4
br label %15, !llvm.loop !6
36: ; preds = %15
%37 = load double, ptr %11, align 8
ret double %37
}
declare double @noise1(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxilx1i4l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PerlinNoise1D(double noundef %0, double noundef %1, double noundef %2, i32 noundef %3) #0 {
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
store double %0, ptr %5, align 8
store double %1, ptr %6, align 8
store double %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
store double 0.000000e+00, ptr %11, align 8
store double 1.000000e+00, ptr %13, align 8
%14 = load double, ptr %5, align 8
store double %14, ptr %12, align 8
store i32 0, ptr %9, align 4
%15 = load i32, ptr %9, align 4
%16 = load i32, ptr %8, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %.lr.ph, label %38
.lr.ph: ; preds = %4
br label %18
18: ; preds = %.lr.ph, %32
%19 = load double, ptr %12, align 8
%20 = call double @noise1(double noundef %19)
store double %20, ptr %10, align 8
%21 = load double, ptr %10, align 8
%22 = load double, ptr %13, align 8
%23 = fdiv double %21, %22
%24 = load double, ptr %11, align 8
%25 = fadd double %24, %23
store double %25, ptr %11, align 8
%26 = load double, ptr %6, align 8
%27 = load double, ptr %13, align 8
%28 = fmul double %27, %26
store double %28, ptr %13, align 8
%29 = load double, ptr %7, align 8
%30 = load double, ptr %12, align 8
%31 = fmul double %30, %29
store double %31, ptr %12, align 8
br label %32
32: ; preds = %18
%33 = load i32, ptr %9, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %9, align 4
%35 = load i32, ptr %9, align 4
%36 = load i32, ptr %8, align 4
%37 = icmp slt i32 %35, %36
br i1 %37, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %38
38: ; preds = %._crit_edge, %4
%39 = load double, ptr %11, align 8
ret double %39
}
declare double @noise1(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpv0qcpkei.c'
source_filename = "/tmp/tmpv0qcpkei.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0A* Who will give first move?\0A\00", align 1
@.str.1 = private unnamed_addr constant [37 x i8] c"* Press 1(player-1) or 2(player-2): \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.3 = private unnamed_addr constant [31 x i8] c"\0A**Wrong input!\07\0A**Try again.\0A\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"cls\00", align 1
@.str.5 = private unnamed_addr constant [23 x i8] c"\0A##**HUMAN vs. HUMAN\0A\0A\00", align 1
@.str.6 = private unnamed_addr constant [15 x i8] c"\0A# Move No: %d\00", align 1
@.str.7 = private unnamed_addr constant [18 x i8] c"## Player-%d: %s\0A\00", align 1
@.str.8 = private unnamed_addr constant [24 x i8] c"Select a column (1-5): \00", align 1
@.str.9 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.10 = private unnamed_addr constant [18 x i8] c"**Wrong input1!\07\0A\00", align 1
@.str.11 = private unnamed_addr constant [17 x i8] c"\0AInvalid move!\07\0A\00", align 1
@.str.12 = private unnamed_addr constant [37 x i8] c"\07\07\0A%c\09**## Player-%d: %s wins! ##**\0A\00", align 1
@.str.13 = private unnamed_addr constant [2 x i8] c"\07\00", align 1
@.str.14 = private unnamed_addr constant [3 x i8] c"\07\07\00", align 1
@.str.15 = private unnamed_addr constant [24 x i8] c"\07\0A**The match is draw.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @hvh_choice(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i8, align 1
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i8, align 1
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
br label %12
12: ; preds = %2, %30
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%14 = call i32 @delay(double noundef 5.000000e-01)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%16 = load i32, ptr @stdin, align 4
%17 = call i32 @fflush(i32 noundef %16)
%18 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %6)
%19 = load i8, ptr %6, align 1
%20 = sext i8 %19 to i32
%21 = sub nsw i32 %20, 48
store i32 %21, ptr %5, align 4
%22 = load i32, ptr %5, align 4
%23 = icmp sgt i32 %22, 2
br i1 %23, label %27, label %24
24: ; preds = %12
%25 = load i32, ptr %5, align 4
%26 = icmp slt i32 %25, 1
br i1 %26, label %27, label %29
27: ; preds = %24, %12
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %30
29: ; preds = %24
br label %31
30: ; preds = %27
br label %12
31: ; preds = %29
store i32 0, ptr %7, align 4
br label %32
32: ; preds = %31, %122
%33 = call i32 @system(ptr noundef @.str.4)
%34 = call i32 (...) @introduction()
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%36 = load i32, ptr %7, align 4
%37 = add nsw i32 %36, 1
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %37)
%39 = call i32 (...) @box()
%40 = load i32, ptr %7, align 4
%41 = srem i32 %40, 2
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %45
43: ; preds = %32
%44 = load i32, ptr %5, align 4
store i32 %44, ptr %8, align 4
br label %48
45: ; preds = %32
%46 = load i32, ptr %5, align 4
%47 = sub nsw i32 3, %46
store i32 %47, ptr %8, align 4
br label %48
48: ; preds = %45, %43
%49 = load i32, ptr %8, align 4
%50 = icmp eq i32 %49, 1
br i1 %50, label %51, label %53
51: ; preds = %48
%52 = load ptr, ptr %3, align 8
store ptr %52, ptr %9, align 8
br label %55
53: ; preds = %48
%54 = load ptr, ptr %4, align 8
store ptr %54, ptr %9, align 8
br label %55
55: ; preds = %53, %51
%56 = call i32 @delay(double noundef 3.500000e-01)
%57 = load i32, ptr %8, align 4
%58 = load ptr, ptr %9, align 8
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %57, ptr noundef %58)
%60 = call i32 @delay(double noundef 5.000000e-01)
br label %61
61: ; preds = %55, %75, %82
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%63 = load i32, ptr @stdin, align 4
%64 = call i32 @fflush(i32 noundef %63)
%65 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %11)
%66 = load i8, ptr %11, align 1
%67 = sext i8 %66 to i32
%68 = sub nsw i32 %67, 48
store i32 %68, ptr %10, align 4
%69 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%70 = load i32, ptr %10, align 4
%71 = icmp slt i32 %70, 1
br i1 %71, label %75, label %72
72: ; preds = %61
%73 = load i32, ptr %10, align 4
%74 = icmp sgt i32 %73, 5
br i1 %74, label %75, label %77
75: ; preds = %72, %61
%76 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
br label %61
77: ; preds = %72
%78 = load i32, ptr %10, align 4
%79 = load i32, ptr %8, align 4
%80 = call i64 @assign(i32 noundef %78, i32 noundef %79)
%81 = icmp ne i64 %80, 0
br i1 %81, label %82, label %84
82: ; preds = %77
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
br label %61
84: ; preds = %77
br label %85
85: ; preds = %84
br label %86
86: ; preds = %85
%87 = load i32, ptr %8, align 4
%88 = call i64 @varification(i32 noundef %87)
%89 = icmp ne i64 %88, 0
br i1 %89, label %90, label %105
90: ; preds = %86
%91 = call i32 @system(ptr noundef @.str.4)
%92 = call i32 (...) @introduction()
%93 = load i32, ptr %7, align 4
%94 = add nsw i32 %93, 1
%95 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %94)
%96 = call i32 (...) @box()
%97 = call i32 @delay(double noundef 4.000000e-01)
%98 = load i32, ptr %8, align 4
%99 = load ptr, ptr %9, align 8
%100 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef 1, i32 noundef %98, ptr noundef %99)
%101 = call i32 @delay(double noundef 3.500000e-01)
%102 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
%103 = call i32 @delay(double noundef 6.000000e-01)
%104 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
br label %125
105: ; preds = %86
%106 = load i32, ptr %7, align 4
%107 = icmp eq i32 %106, 34
br i1 %107, label %108, label %121
108: ; preds = %105
%109 = call i32 @system(ptr noundef @.str.4)
%110 = call i32 (...) @introduction()
%111 = load i32, ptr %7, align 4
%112 = add nsw i32 %111, 1
%113 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %112)
%114 = call i32 (...) @box()
%115 = call i32 @delay(double noundef 4.000000e-01)
%116 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
%117 = call i32 @delay(double noundef 2.000000e-01)
%118 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
%119 = call i32 @delay(double noundef 4.000000e-01)
%120 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
br label %125
121: ; preds = %105
br label %122
122: ; preds = %121
%123 = load i32, ptr %7, align 4
%124 = add nsw i32 %123, 1
store i32 %124, ptr %7, align 4
br label %32
125: ; preds = %108, %90
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @delay(double noundef) #1
declare i32 @fflush(i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @system(ptr noundef) #1
declare i32 @introduction(...) #1
declare i32 @box(...) #1
declare i64 @assign(i32 noundef, i32 noundef) #1
declare i64 @varification(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/tmpv0qcpkei.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0A* Who will give first move?\0A\00", align 1
@.str.1 = private unnamed_addr constant [37 x i8] c"* Press 1(player-1) or 2(player-2): \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.3 = private unnamed_addr constant [31 x i8] c"\0A**Wrong input!\07\0A**Try again.\0A\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"cls\00", align 1
@.str.5 = private unnamed_addr constant [23 x i8] c"\0A##**HUMAN vs. HUMAN\0A\0A\00", align 1
@.str.6 = private unnamed_addr constant [15 x i8] c"\0A# Move No: %d\00", align 1
@.str.7 = private unnamed_addr constant [18 x i8] c"## Player-%d: %s\0A\00", align 1
@.str.8 = private unnamed_addr constant [24 x i8] c"Select a column (1-5): \00", align 1
@.str.9 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.10 = private unnamed_addr constant [18 x i8] c"**Wrong input1!\07\0A\00", align 1
@.str.11 = private unnamed_addr constant [17 x i8] c"\0AInvalid move!\07\0A\00", align 1
@.str.12 = private unnamed_addr constant [37 x i8] c"\07\07\0A%c\09**## Player-%d: %s wins! ##**\0A\00", align 1
@.str.13 = private unnamed_addr constant [2 x i8] c"\07\00", align 1
@.str.14 = private unnamed_addr constant [3 x i8] c"\07\07\00", align 1
@.str.15 = private unnamed_addr constant [24 x i8] c"\07\0A**The match is draw.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @hvh_choice(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i8, align 1
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i8, align 1
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
br label %12
12: ; preds = %30, %2
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%14 = call i32 @delay(double noundef 5.000000e-01)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%16 = load i32, ptr @stdin, align 4
%17 = call i32 @fflush(i32 noundef %16)
%18 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %6)
%19 = load i8, ptr %6, align 1
%20 = sext i8 %19 to i32
%21 = sub nsw i32 %20, 48
store i32 %21, ptr %5, align 4
%22 = load i32, ptr %5, align 4
%23 = icmp sgt i32 %22, 2
br i1 %23, label %27, label %24
24: ; preds = %12
%25 = load i32, ptr %5, align 4
%26 = icmp slt i32 %25, 1
br i1 %26, label %27, label %29
27: ; preds = %24, %12
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %30
29: ; preds = %24
br label %31
30: ; preds = %27
br label %12
31: ; preds = %29
store i32 0, ptr %7, align 4
br label %32
32: ; preds = %122, %31
%33 = call i32 @system(ptr noundef @.str.4)
%34 = call i32 (...) @introduction()
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%36 = load i32, ptr %7, align 4
%37 = add nsw i32 %36, 1
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %37)
%39 = call i32 (...) @box()
%40 = load i32, ptr %7, align 4
%41 = srem i32 %40, 2
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %45
43: ; preds = %32
%44 = load i32, ptr %5, align 4
store i32 %44, ptr %8, align 4
br label %48
45: ; preds = %32
%46 = load i32, ptr %5, align 4
%47 = sub nsw i32 3, %46
store i32 %47, ptr %8, align 4
br label %48
48: ; preds = %45, %43
%49 = load i32, ptr %8, align 4
%50 = icmp eq i32 %49, 1
br i1 %50, label %51, label %53
51: ; preds = %48
%52 = load ptr, ptr %3, align 8
store ptr %52, ptr %9, align 8
br label %55
53: ; preds = %48
%54 = load ptr, ptr %4, align 8
store ptr %54, ptr %9, align 8
br label %55
55: ; preds = %53, %51
%56 = call i32 @delay(double noundef 3.500000e-01)
%57 = load i32, ptr %8, align 4
%58 = load ptr, ptr %9, align 8
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %57, ptr noundef %58)
%60 = call i32 @delay(double noundef 5.000000e-01)
br label %61
61: ; preds = %.backedge, %55
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%63 = load i32, ptr @stdin, align 4
%64 = call i32 @fflush(i32 noundef %63)
%65 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %11)
%66 = load i8, ptr %11, align 1
%67 = sext i8 %66 to i32
%68 = sub nsw i32 %67, 48
store i32 %68, ptr %10, align 4
%69 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%70 = load i32, ptr %10, align 4
%71 = icmp slt i32 %70, 1
br i1 %71, label %75, label %72
72: ; preds = %61
%73 = load i32, ptr %10, align 4
%74 = icmp sgt i32 %73, 5
br i1 %74, label %75, label %77
75: ; preds = %72, %61
%76 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
br label %.backedge
.backedge: ; preds = %75, %82
br label %61
77: ; preds = %72
%78 = load i32, ptr %10, align 4
%79 = load i32, ptr %8, align 4
%80 = call i64 @assign(i32 noundef %78, i32 noundef %79)
%81 = icmp ne i64 %80, 0
br i1 %81, label %82, label %84
82: ; preds = %77
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
br label %.backedge
84: ; preds = %77
br label %85
85: ; preds = %84
br label %86
86: ; preds = %85
%87 = load i32, ptr %8, align 4
%88 = call i64 @varification(i32 noundef %87)
%89 = icmp ne i64 %88, 0
br i1 %89, label %90, label %105
90: ; preds = %86
%91 = call i32 @system(ptr noundef @.str.4)
%92 = call i32 (...) @introduction()
%93 = load i32, ptr %7, align 4
%94 = add nsw i32 %93, 1
%95 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %94)
%96 = call i32 (...) @box()
%97 = call i32 @delay(double noundef 4.000000e-01)
%98 = load i32, ptr %8, align 4
%99 = load ptr, ptr %9, align 8
%100 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef 1, i32 noundef %98, ptr noundef %99)
%101 = call i32 @delay(double noundef 3.500000e-01)
%102 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
%103 = call i32 @delay(double noundef 6.000000e-01)
%104 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
br label %125
105: ; preds = %86
%106 = load i32, ptr %7, align 4
%107 = icmp eq i32 %106, 34
br i1 %107, label %108, label %121
108: ; preds = %105
%109 = call i32 @system(ptr noundef @.str.4)
%110 = call i32 (...) @introduction()
%111 = load i32, ptr %7, align 4
%112 = add nsw i32 %111, 1
%113 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %112)
%114 = call i32 (...) @box()
%115 = call i32 @delay(double noundef 4.000000e-01)
%116 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
%117 = call i32 @delay(double noundef 2.000000e-01)
%118 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
%119 = call i32 @delay(double noundef 4.000000e-01)
%120 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
br label %125
121: ; preds = %105
br label %122
122: ; preds = %121
%123 = load i32, ptr %7, align 4
%124 = add nsw i32 %123, 1
store i32 %124, ptr %7, align 4
br label %32
125: ; preds = %108, %90
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @delay(double noundef) #1
declare i32 @fflush(i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @system(ptr noundef) #1
declare i32 @introduction(...) #1
declare i32 @box(...) #1
declare i64 @assign(i32 noundef, i32 noundef) #1
declare i64 @varification(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/tmpsicvdpha.c'
source_filename = "/tmp/tmpsicvdpha.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"Destroy2!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dtor2() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsicvdpha.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"Destroy2!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dtor2() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5esfy443.c'
source_filename = "/tmp/tmp5esfy443.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test(i32 noundef 17)
%3 = call i32 @test(i32 noundef 31)
%4 = call i32 @test(i32 noundef 5)
ret i32 0
}
declare i32 @test(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/tmp5esfy443.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test(i32 noundef 17)
%3 = call i32 @test(i32 noundef 31)
%4 = call i32 @test(i32 noundef 5)
ret i32 0
}
declare i32 @test(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/tmp72y9o54o.c'
source_filename = "/tmp/tmp72y9o54o.c"
target datalayout = "e-m:e-p270: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/tmp72y9o54o.c"
target datalayout = "e-m:e-p270: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/tmpo1at8ika.c'
source_filename = "/tmp/tmpo1at8ika.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [24 x i8] c"c:\\Users\\Public\\Desktop\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @has_public_desktop(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca %struct.stat, align 4
store ptr %0, ptr %2, align 8
%4 = call i32 @stat(ptr noundef @.str, ptr noundef %3)
%5 = getelementptr inbounds %struct.stat, ptr %3, i32 0, i32 0
%6 = load i32, ptr %5, align 4
%7 = call i64 @S_ISDIR(i32 noundef %6)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %10
9: ; preds = %1
br label %12
10: ; preds = %1
%11 = call i32 @exit(i32 noundef 0) #3
unreachable
12: ; preds = %9
ret void
}
declare i32 @stat(ptr noundef, ptr noundef) #1
declare i64 @S_ISDIR(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo1at8ika.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [24 x i8] c"c:\\Users\\Public\\Desktop\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @has_public_desktop(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca %struct.stat, align 4
store ptr %0, ptr %2, align 8
%4 = call i32 @stat(ptr noundef @.str, ptr noundef %3)
%5 = getelementptr inbounds %struct.stat, ptr %3, i32 0, i32 0
%6 = load i32, ptr %5, align 4
%7 = call i64 @S_ISDIR(i32 noundef %6)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %10
9: ; preds = %1
br label %12
10: ; preds = %1
%11 = call i32 @exit(i32 noundef 0) #3
unreachable
12: ; preds = %9
ret void
}
declare i32 @stat(ptr noundef, ptr noundef) #1
declare i64 @S_ISDIR(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp25pmbl76.c'
source_filename = "/tmp/tmp25pmbl76.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0A Created by: MCHD\0A\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [40 x i8] c"Enter the number that will be encrypt: \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [43 x i8] c"\0A\0A Encrypted number: %d %d %d %d\0A\0A\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
store i32 0, ptr %1, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%20 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %2)
%21 = load i32, ptr %2, align 4
%22 = sdiv i32 %21, 1000
store i32 %22, ptr %3, align 4
%23 = load i32, ptr %2, align 4
%24 = srem i32 %23, 1000
store i32 %24, ptr %6, align 4
%25 = load i32, ptr %6, align 4
%26 = sdiv i32 %25, 100
store i32 %26, ptr %4, align 4
%27 = load i32, ptr %6, align 4
%28 = srem i32 %27, 100
store i32 %28, ptr %7, align 4
%29 = load i32, ptr %7, align 4
%30 = sdiv i32 %29, 10
store i32 %30, ptr %5, align 4
%31 = load i32, ptr %7, align 4
%32 = srem i32 %31, 10
store i32 %32, ptr %8, align 4
%33 = load i32, ptr %3, align 4
%34 = add nsw i32 %33, 7
store i32 %34, ptr %9, align 4
%35 = load i32, ptr %4, align 4
%36 = add nsw i32 %35, 7
store i32 %36, ptr %10, align 4
%37 = load i32, ptr %5, align 4
%38 = add nsw i32 %37, 7
store i32 %38, ptr %11, align 4
%39 = load i32, ptr %8, align 4
%40 = add nsw i32 %39, 7
store i32 %40, ptr %12, align 4
%41 = load i32, ptr %9, align 4
%42 = srem i32 %41, 10
store i32 %42, ptr %13, align 4
%43 = load i32, ptr %10, align 4
%44 = srem i32 %43, 10
store i32 %44, ptr %14, align 4
%45 = load i32, ptr %11, align 4
%46 = srem i32 %45, 10
store i32 %46, ptr %15, align 4
%47 = load i32, ptr %12, align 4
%48 = srem i32 %47, 10
store i32 %48, ptr %16, align 4
%49 = load i32, ptr %15, align 4
%50 = load i32, ptr %16, align 4
%51 = load i32, ptr %13, align 4
%52 = load i32, ptr %14, align 4
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %49, i32 noundef %50, i32 noundef %51, i32 noundef %52)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp25pmbl76.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0A Created by: MCHD\0A\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [40 x i8] c"Enter the number that will be encrypt: \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [43 x i8] c"\0A\0A Encrypted number: %d %d %d %d\0A\0A\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
store i32 0, ptr %1, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%20 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %2)
%21 = load i32, ptr %2, align 4
%22 = sdiv i32 %21, 1000
store i32 %22, ptr %3, align 4
%23 = load i32, ptr %2, align 4
%24 = srem i32 %23, 1000
store i32 %24, ptr %6, align 4
%25 = load i32, ptr %6, align 4
%26 = sdiv i32 %25, 100
store i32 %26, ptr %4, align 4
%27 = load i32, ptr %6, align 4
%28 = srem i32 %27, 100
store i32 %28, ptr %7, align 4
%29 = load i32, ptr %7, align 4
%30 = sdiv i32 %29, 10
store i32 %30, ptr %5, align 4
%31 = load i32, ptr %7, align 4
%32 = srem i32 %31, 10
store i32 %32, ptr %8, align 4
%33 = load i32, ptr %3, align 4
%34 = add nsw i32 %33, 7
store i32 %34, ptr %9, align 4
%35 = load i32, ptr %4, align 4
%36 = add nsw i32 %35, 7
store i32 %36, ptr %10, align 4
%37 = load i32, ptr %5, align 4
%38 = add nsw i32 %37, 7
store i32 %38, ptr %11, align 4
%39 = load i32, ptr %8, align 4
%40 = add nsw i32 %39, 7
store i32 %40, ptr %12, align 4
%41 = load i32, ptr %9, align 4
%42 = srem i32 %41, 10
store i32 %42, ptr %13, align 4
%43 = load i32, ptr %10, align 4
%44 = srem i32 %43, 10
store i32 %44, ptr %14, align 4
%45 = load i32, ptr %11, align 4
%46 = srem i32 %45, 10
store i32 %46, ptr %15, align 4
%47 = load i32, ptr %12, align 4
%48 = srem i32 %47, 10
store i32 %48, ptr %16, align 4
%49 = load i32, ptr %15, align 4
%50 = load i32, ptr %16, align 4
%51 = load i32, ptr %13, align 4
%52 = load i32, ptr %14, align 4
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %49, i32 noundef %50, i32 noundef %51, i32 noundef %52)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdgely_j5.c'
source_filename = "/tmp/tmpdgely_j5.c"
target datalayout = "e-m:e-p270: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/tmpdgely_j5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_ath1ul8.c'
source_filename = "/tmp/tmp_ath1ul8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @reverse_word(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load ptr, ptr %4, align 8
%11 = icmp ne ptr %10, null
br label %12
12: ; preds = %9, %2
%13 = phi i1 [ false, %2 ], [ %11, %9 ]
%14 = zext i1 %13 to i32
%15 = call i32 @assert(i32 noundef %14)
%16 = load ptr, ptr %3, align 8
store ptr %16, ptr %5, align 8
%17 = load ptr, ptr %4, align 8
store ptr %17, ptr %6, align 8
br label %18
18: ; preds = %22, %12
%19 = load ptr, ptr %5, align 8
%20 = load ptr, ptr %6, align 8
%21 = icmp ult ptr %19, %20
br i1 %21, label %22, label %30
22: ; preds = %18
%23 = load ptr, ptr %5, align 8
%24 = load ptr, ptr %6, align 8
%25 = call i32 @swap(ptr noundef %23, ptr noundef %24)
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds i8, ptr %26, i32 1
store ptr %27, ptr %5, align 8
%28 = load ptr, ptr %6, align 8
%29 = getelementptr inbounds i8, ptr %28, i32 -1
store ptr %29, ptr %6, align 8
br label %18, !llvm.loop !6
30: ; preds = %18
ret void
}
declare i32 @assert(i32 noundef) #1
declare i32 @swap(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_ath1ul8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @reverse_word(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load ptr, ptr %4, align 8
%11 = icmp ne ptr %10, null
br label %12
12: ; preds = %9, %2
%13 = phi i1 [ false, %2 ], [ %11, %9 ]
%14 = zext i1 %13 to i32
%15 = call i32 @assert(i32 noundef %14)
%16 = load ptr, ptr %3, align 8
store ptr %16, ptr %5, align 8
%17 = load ptr, ptr %4, align 8
store ptr %17, ptr %6, align 8
%18 = load ptr, ptr %5, align 8
%19 = load ptr, ptr %6, align 8
%20 = icmp ult ptr %18, %19
br i1 %20, label %.lr.ph, label %32
.lr.ph: ; preds = %12
br label %21
21: ; preds = %.lr.ph, %21
%22 = load ptr, ptr %5, align 8
%23 = load ptr, ptr %6, align 8
%24 = call i32 @swap(ptr noundef %22, ptr noundef %23)
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds i8, ptr %25, i32 1
store ptr %26, ptr %5, align 8
%27 = load ptr, ptr %6, align 8
%28 = getelementptr inbounds i8, ptr %27, i32 -1
store ptr %28, ptr %6, align 8
%29 = load ptr, ptr %5, align 8
%30 = load ptr, ptr %6, align 8
%31 = icmp ult ptr %29, %30
br i1 %31, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %32
32: ; preds = %._crit_edge, %12
ret void
}
declare i32 @assert(i32 noundef) #1
declare i32 @swap(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpsrbg900t.c'
source_filename = "/tmp/tmpsrbg900t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %7, align 4
%8 = load i32, ptr %1, align 4
%9 = load i32, ptr %2, align 4
%10 = add nsw i32 %8, %9
%11 = load i32, ptr %3, align 4
%12 = icmp ne i32 %10, %11
br i1 %12, label %13, label %14
13: ; preds = %0
br label %73
14: ; preds = %0
store i32 0, ptr %4, align 4
br label %15
15: ; preds = %39, %14
%16 = load i32, ptr %4, align 4
%17 = load i32, ptr %6, align 4
%18 = sub nsw i32 %17, 1
%19 = icmp sle i32 %16, %18
br i1 %19, label %20, label %42
20: ; preds = %15
%21 = load i32, ptr %4, align 4
%22 = load i32, ptr %5, align 4
%23 = icmp eq i32 %21, %22
br i1 %23, label %24, label %29
24: ; preds = %20
%25 = load i32, ptr %1, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %1, align 4
%27 = load i32, ptr %2, align 4
%28 = add nsw i32 %27, -1
store i32 %28, ptr %2, align 4
br label %34
29: ; preds = %20
%30 = load i32, ptr %2, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %2, align 4
%32 = load i32, ptr %1, align 4
%33 = add nsw i32 %32, -1
store i32 %33, ptr %1, align 4
br label %34
34: ; preds = %29, %24
%35 = call i64 (...) @unknown1()
%36 = icmp ne i64 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %34
%38 = load i32, ptr %4, align 4
store i32 %38, ptr %7, align 4
br label %39
39: ; preds = %37, %34
%40 = load i32, ptr %4, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %4, align 4
br label %15, !llvm.loop !6
42: ; preds = %15
%43 = load i32, ptr %4, align 4
%44 = load i32, ptr %6, align 4
%45 = icmp slt i32 %43, %44
br i1 %45, label %46, label %47
46: ; preds = %42
br label %73
47: ; preds = %42
%48 = load i32, ptr %1, align 4
%49 = load i32, ptr %2, align 4
%50 = add nsw i32 %48, %49
%51 = load i32, ptr %3, align 4
%52 = sub nsw i32 %51, 1
%53 = icmp sle i32 %50, %52
br i1 %53, label %71, label %54
54: ; preds = %47
%55 = load i32, ptr %1, align 4
%56 = load i32, ptr %2, align 4
%57 = add nsw i32 %55, %56
%58 = load i32, ptr %3, align 4
%59 = add nsw i32 %58, 1
%60 = icmp sge i32 %57, %59
br i1 %60, label %71, label %61
61: ; preds = %54
%62 = load i32, ptr %6, align 4
%63 = icmp sge i32 %62, 1
br i1 %63, label %64, label %73
64: ; preds = %61
%65 = load i32, ptr %7, align 4
%66 = icmp sle i32 %65, -1
br i1 %66, label %71, label %67
67: ; preds = %64
%68 = load i32, ptr %7, align 4
%69 = load i32, ptr %6, align 4
%70 = icmp sge i32 %68, %69
br i1 %70, label %71, label %73
71: ; preds = %67, %64, %54, %47
br label %72
72: ; preds = %71
br label %73
73: ; preds = %13, %46, %72, %67, %61
ret void
}
declare i64 @unknown1(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpsrbg900t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %7, align 4
%8 = load i32, ptr %1, align 4
%9 = load i32, ptr %2, align 4
%10 = add nsw i32 %8, %9
%11 = load i32, ptr %3, align 4
%12 = icmp ne i32 %10, %11
br i1 %12, label %13, label %14
13: ; preds = %0
br label %76
14: ; preds = %0
store i32 0, ptr %4, align 4
%15 = load i32, ptr %4, align 4
%16 = load i32, ptr %6, align 4
%17 = sub nsw i32 %16, 1
%18 = icmp sle i32 %15, %17
br i1 %18, label %.lr.ph, label %45
.lr.ph: ; preds = %14
br label %19
19: ; preds = %.lr.ph, %38
%20 = load i32, ptr %4, align 4
%21 = load i32, ptr %5, align 4
%22 = icmp eq i32 %20, %21
br i1 %22, label %23, label %28
23: ; preds = %19
%24 = load i32, ptr %1, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %1, align 4
%26 = load i32, ptr %2, align 4
%27 = add nsw i32 %26, -1
store i32 %27, ptr %2, align 4
br label %33
28: ; preds = %19
%29 = load i32, ptr %2, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %2, align 4
%31 = load i32, ptr %1, align 4
%32 = add nsw i32 %31, -1
store i32 %32, ptr %1, align 4
br label %33
33: ; preds = %28, %23
%34 = call i64 (...) @unknown1()
%35 = icmp ne i64 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %33
%37 = load i32, ptr %4, align 4
store i32 %37, ptr %7, align 4
br label %38
38: ; preds = %36, %33
%39 = load i32, ptr %4, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %4, align 4
%41 = load i32, ptr %4, align 4
%42 = load i32, ptr %6, align 4
%43 = sub nsw i32 %42, 1
%44 = icmp sle i32 %41, %43
br i1 %44, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %38
br label %45
45: ; preds = %._crit_edge, %14
%46 = load i32, ptr %4, align 4
%47 = load i32, ptr %6, align 4
%48 = icmp slt i32 %46, %47
br i1 %48, label %49, label %50
49: ; preds = %45
br label %76
50: ; preds = %45
%51 = load i32, ptr %1, align 4
%52 = load i32, ptr %2, align 4
%53 = add nsw i32 %51, %52
%54 = load i32, ptr %3, align 4
%55 = sub nsw i32 %54, 1
%56 = icmp sle i32 %53, %55
br i1 %56, label %74, label %57
57: ; preds = %50
%58 = load i32, ptr %1, align 4
%59 = load i32, ptr %2, align 4
%60 = add nsw i32 %58, %59
%61 = load i32, ptr %3, align 4
%62 = add nsw i32 %61, 1
%63 = icmp sge i32 %60, %62
br i1 %63, label %74, label %64
64: ; preds = %57
%65 = load i32, ptr %6, align 4
%66 = icmp sge i32 %65, 1
br i1 %66, label %67, label %76
67: ; preds = %64
%68 = load i32, ptr %7, align 4
%69 = icmp sle i32 %68, -1
br i1 %69, label %74, label %70
70: ; preds = %67
%71 = load i32, ptr %7, align 4
%72 = load i32, ptr %6, align 4
%73 = icmp sge i32 %71, %72
br i1 %73, label %74, label %76
74: ; preds = %70, %67, %57, %50
br label %75
75: ; preds = %74
br label %76
76: ; preds = %75, %70, %64, %49, %13
ret void
}
declare i64 @unknown1(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp1finmhpl.c'
source_filename = "/tmp/tmp1finmhpl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"fastboot\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @flash_fastboot_kernel(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @flash_image(ptr noundef %5, i32 noundef %6, ptr noundef @.str)
ret i32 %7
}
declare i32 @flash_image(ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1finmhpl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"fastboot\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @flash_fastboot_kernel(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @flash_image(ptr noundef %5, i32 noundef %6, ptr noundef @.str)
ret i32 %7
}
declare i32 @flash_image(ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplirs0a63.c'
source_filename = "/tmp/tmplirs0a63.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strlonger(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i64 @strlen(ptr noundef %5)
%7 = load ptr, ptr %4, align 8
%8 = call i64 @strlen(ptr noundef %7)
%9 = sub nsw i64 %6, %8
%10 = trunc i64 %9 to i32
%11 = icmp sgt i32 %10, 0
%12 = zext i1 %11 to i32
ret i32 %12
}
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplirs0a63.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strlonger(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i64 @strlen(ptr noundef %5)
%7 = load ptr, ptr %4, align 8
%8 = call i64 @strlen(ptr noundef %7)
%9 = sub nsw i64 %6, %8
%10 = trunc i64 %9 to i32
%11 = icmp sgt i32 %10, 0
%12 = zext i1 %11 to i32
ret i32 %12
}
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"}
|
; ModuleID = '/tmp/tmpvb6js0bn.c'
source_filename = "/tmp/tmpvb6js0bn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @AI_memcpy(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i64, ptr %6, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 %8, i64 %9, i1 false)
ret ptr %7
}
; 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
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="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) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvb6js0bn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @AI_memcpy(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i64, ptr %6, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 %8, i64 %9, i1 false)
ret ptr %7
}
; 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
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="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) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpg0n5jtif.c'
source_filename = "/tmp/tmpg0n5jtif.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SPI_MODE_0 = 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/tmpg0n5jtif.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SPI_MODE_0 = 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/tmpxuvhomf3.c'
source_filename = "/tmp/tmpxuvhomf3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [6 x i8] c"%lld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [200004 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
br label %7
7: ; preds = %25, %0
%8 = load i32, ptr %3, align 4
%9 = add nsw i32 %8, -1
store i32 %9, ptr %3, align 4
%10 = icmp ne i32 %8, 0
br i1 %10, label %11, label %30
11: ; preds = %7
%12 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
store i32 0, ptr %5, align 4
br label %13
13: ; preds = %22, %11
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %25
17: ; preds = %13
%18 = load i32, ptr %5, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [200004 x i32], ptr %2, i64 0, i64 %19
%21 = call i32 @scanf(ptr noundef @.str, ptr noundef %20)
br label %22
22: ; preds = %17
%23 = load i32, ptr %5, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %5, align 4
br label %13, !llvm.loop !6
25: ; preds = %13
%26 = getelementptr inbounds [200004 x i32], ptr %2, i64 0, i64 0
%27 = load i32, ptr %4, align 4
%28 = call i32 @mergeSort(ptr noundef %26, i32 noundef %27)
%29 = call i32 @printf(ptr noundef @.str.1, i32 noundef %28)
br label %7, !llvm.loop !8
30: ; preds = %7
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @mergeSort(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxuvhomf3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [6 x i8] c"%lld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [200004 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%7 = load i32, ptr %3, align 4
%8 = add nsw i32 %7, -1
store i32 %8, ptr %3, align 4
%9 = icmp ne i32 %7, 0
br i1 %9, label %.lr.ph2, label %34
.lr.ph2: ; preds = %0
br label %10
10: ; preds = %.lr.ph2, %26
%11 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
store i32 0, ptr %5, align 4
%12 = load i32, ptr %5, align 4
%13 = load i32, ptr %4, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %.lr.ph, label %26
.lr.ph: ; preds = %10
br label %15
15: ; preds = %.lr.ph, %20
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [200004 x i32], ptr %2, i64 0, i64 %17
%19 = call i32 @scanf(ptr noundef @.str, ptr noundef %18)
br label %20
20: ; preds = %15
%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 %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %26
26: ; preds = %._crit_edge, %10
%27 = getelementptr inbounds [200004 x i32], ptr %2, i64 0, i64 0
%28 = load i32, ptr %4, align 4
%29 = call i32 @mergeSort(ptr noundef %27, i32 noundef %28)
%30 = call i32 @printf(ptr noundef @.str.1, i32 noundef %29)
%31 = load i32, ptr %3, align 4
%32 = add nsw i32 %31, -1
store i32 %32, ptr %3, align 4
%33 = icmp ne i32 %31, 0
br i1 %33, label %10, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %26
br label %34
34: ; preds = %._crit_edge3, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @mergeSort(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpsgw4q28h.c'
source_filename = "/tmp/tmpsgw4q28h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @benchmark() #0 {
%1 = call i32 @select(i32 noundef 10, i32 noundef 20)
ret void
}
declare i32 @select(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/tmpsgw4q28h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @benchmark() #0 {
%1 = call i32 @select(i32 noundef 10, i32 noundef 20)
ret void
}
declare i32 @select(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_yu0mafu.c'
source_filename = "/tmp/tmp_yu0mafu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stricmp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @strcasecmp(ptr noundef %5, ptr noundef %6)
ret i32 %7
}
declare i32 @strcasecmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_yu0mafu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stricmp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @strcasecmp(ptr noundef %5, ptr noundef %6)
ret i32 %7
}
declare i32 @strcasecmp(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/tmpq3_ey7ie.c'
source_filename = "/tmp/tmpq3_ey7ie.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"88/11=%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"83%11=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = call i32 @printf(ptr noundef @.str, i32 noundef 8)
%2 = call i32 @printf(ptr noundef @.str.1, i32 noundef 6)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq3_ey7ie.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"88/11=%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"83%11=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = call i32 @printf(ptr noundef @.str, i32 noundef 8)
%2 = call i32 @printf(ptr noundef @.str.1, i32 noundef 6)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpc6imbi2u.c'
source_filename = "/tmp/tmpc6imbi2u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"XOR example\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"alloc error: Fail\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"Make random data\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"Generate xor parity\0A\00", align 1
@.str.4 = private unnamed_addr constant [15 x i8] c"Check parity: \00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c"Pass\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c"Fail\00", align 1
@.str.8 = private unnamed_addr constant [18 x i8] c"Find corruption: \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 [17 x ptr], 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)
store i32 0, ptr %6, align 4
br label %13
13: ; preds = %26, %2
%14 = load i32, ptr %6, align 4
%15 = icmp slt i32 %14, 17
br i1 %15, label %16, label %29
16: ; preds = %13
%17 = call i64 @posix_memalign(ptr noundef %11, i32 noundef 32, i32 noundef 16384)
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 1, ptr %3, align 4
br label %81
21: ; preds = %16
%22 = load ptr, ptr %11, align 8
%23 = load i32, ptr %6, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [17 x ptr], ptr %10, i64 0, i64 %24
store ptr %22, ptr %25, align 8
br label %26
26: ; preds = %21
%27 = load i32, ptr %6, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %6, align 4
br label %13, !llvm.loop !6
29: ; preds = %13
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %6, align 4
br label %31
31: ; preds = %51, %29
%32 = load i32, ptr %6, align 4
%33 = icmp slt i32 %32, 17
br i1 %33, label %34, label %54
34: ; preds = %31
store i32 0, ptr %7, align 4
br label %35
35: ; preds = %47, %34
%36 = load i32, ptr %7, align 4
%37 = icmp slt i32 %36, 16384
br i1 %37, label %38, label %50
38: ; preds = %35
%39 = call signext i8 (...) @rand()
%40 = load i32, ptr %6, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [17 x ptr], ptr %10, i64 0, i64 %41
%43 = load ptr, ptr %42, align 8
%44 = load i32, ptr %7, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i8, ptr %43, i64 %45
store i8 %39, ptr %46, align 1
br label %47
47: ; preds = %38
%48 = load i32, ptr %7, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %7, align 4
br label %35, !llvm.loop !8
50: ; preds = %35
br label %51
51: ; preds = %50
%52 = load i32, ptr %6, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %6, align 4
br label %31, !llvm.loop !9
54: ; preds = %31
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%56 = getelementptr inbounds [17 x ptr], ptr %10, i64 0, i64 0
%57 = call i32 @xor_gen(i32 noundef 17, i32 noundef 16384, ptr noundef %56)
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%59 = getelementptr inbounds [17 x ptr], ptr %10, i64 0, i64 0
%60 = call i32 @xor_check(i32 noundef 17, i32 noundef 16384, ptr noundef %59)
store i32 %60, ptr %8, align 4
%61 = load i32, ptr %8, align 4
%62 = icmp eq i32 %61, 0
%63 = zext i1 %62 to i64
%64 = select i1 %62, ptr @.str.6, ptr @.str.7
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %64)
%66 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%67 = getelementptr inbounds [17 x ptr], ptr %10, i64 0, i64 8
%68 = load ptr, ptr %67, align 16
%69 = getelementptr inbounds i8, ptr %68, i64 8192
%70 = load i8, ptr %69, align 1
%71 = sext i8 %70 to i32
%72 = xor i32 %71, 1
%73 = trunc i32 %72 to i8
store i8 %73, ptr %69, align 1
%74 = getelementptr inbounds [17 x ptr], ptr %10, i64 0, i64 0
%75 = call i32 @xor_check(i32 noundef 17, i32 noundef 16384, ptr noundef %74)
store i32 %75, ptr %9, align 4
%76 = load i32, ptr %9, align 4
%77 = icmp ne i32 %76, 0
%78 = zext i1 %77 to i64
%79 = select i1 %77, ptr @.str.6, ptr @.str.7
%80 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %79)
store i32 0, ptr %3, align 4
br label %81
81: ; preds = %54, %19
%82 = load i32, ptr %3, align 4
ret i32 %82
}
declare i32 @printf(ptr noundef, ...) #1
declare i64 @posix_memalign(ptr noundef, i32 noundef, i32 noundef) #1
declare signext i8 @rand(...) #1
declare i32 @xor_gen(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @xor_check(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc6imbi2u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"XOR example\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"alloc error: Fail\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"Make random data\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"Generate xor parity\0A\00", align 1
@.str.4 = private unnamed_addr constant [15 x i8] c"Check parity: \00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c"Pass\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c"Fail\00", align 1
@.str.8 = private unnamed_addr constant [18 x i8] c"Find corruption: \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 [17 x ptr], 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)
store i32 0, ptr %6, align 4
%13 = load i32, ptr %6, align 4
%14 = icmp slt i32 %13, 17
br i1 %14, label %.lr.ph, label %30
.lr.ph: ; preds = %2
br label %15
15: ; preds = %.lr.ph, %25
%16 = call i64 @posix_memalign(ptr noundef %11, i32 noundef 32, i32 noundef 16384)
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 1, ptr %3, align 4
br label %84
20: ; preds = %15
%21 = load ptr, ptr %11, align 8
%22 = load i32, ptr %6, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [17 x ptr], ptr %10, i64 0, i64 %23
store ptr %21, ptr %24, align 8
br label %25
25: ; preds = %20
%26 = load i32, ptr %6, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %6, align 4
%28 = load i32, ptr %6, align 4
%29 = icmp slt i32 %28, 17
br i1 %29, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %30
30: ; preds = %._crit_edge, %2
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %6, align 4
%32 = load i32, ptr %6, align 4
%33 = icmp slt i32 %32, 17
br i1 %33, label %.lr.ph5, label %57
.lr.ph5: ; preds = %30
br label %34
34: ; preds = %.lr.ph5, %52
store i32 0, ptr %7, align 4
%35 = load i32, ptr %7, align 4
%36 = icmp slt i32 %35, 16384
br i1 %36, label %.lr.ph2, label %51
.lr.ph2: ; preds = %34
br label %37
37: ; preds = %.lr.ph2, %46
%38 = call signext i8 (...) @rand()
%39 = load i32, ptr %6, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [17 x ptr], ptr %10, i64 0, i64 %40
%42 = load ptr, ptr %41, align 8
%43 = load i32, ptr %7, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i8, ptr %42, i64 %44
store i8 %38, ptr %45, align 1
br label %46
46: ; preds = %37
%47 = load i32, ptr %7, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %7, align 4
%49 = load i32, ptr %7, align 4
%50 = icmp slt i32 %49, 16384
br i1 %50, label %37, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %46
br label %51
51: ; preds = %._crit_edge3, %34
br label %52
52: ; preds = %51
%53 = load i32, ptr %6, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %6, align 4
%55 = load i32, ptr %6, align 4
%56 = icmp slt i32 %55, 17
br i1 %56, label %34, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %52
br label %57
57: ; preds = %._crit_edge6, %30
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%59 = getelementptr inbounds [17 x ptr], ptr %10, i64 0, i64 0
%60 = call i32 @xor_gen(i32 noundef 17, i32 noundef 16384, ptr noundef %59)
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%62 = getelementptr inbounds [17 x ptr], ptr %10, i64 0, i64 0
%63 = call i32 @xor_check(i32 noundef 17, i32 noundef 16384, ptr noundef %62)
store i32 %63, ptr %8, align 4
%64 = load i32, ptr %8, align 4
%65 = icmp eq i32 %64, 0
%66 = zext i1 %65 to i64
%67 = select i1 %65, ptr @.str.6, ptr @.str.7
%68 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %67)
%69 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%70 = getelementptr inbounds [17 x ptr], ptr %10, i64 0, i64 8
%71 = load ptr, ptr %70, align 16
%72 = getelementptr inbounds i8, ptr %71, i64 8192
%73 = load i8, ptr %72, align 1
%74 = sext i8 %73 to i32
%75 = xor i32 %74, 1
%76 = trunc i32 %75 to i8
store i8 %76, ptr %72, align 1
%77 = getelementptr inbounds [17 x ptr], ptr %10, i64 0, i64 0
%78 = call i32 @xor_check(i32 noundef 17, i32 noundef 16384, ptr noundef %77)
store i32 %78, ptr %9, align 4
%79 = load i32, ptr %9, align 4
%80 = icmp ne i32 %79, 0
%81 = zext i1 %80 to i64
%82 = select i1 %80, ptr @.str.6, ptr @.str.7
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %82)
store i32 0, ptr %3, align 4
br label %84
84: ; preds = %57, %18
%85 = load i32, ptr %3, align 4
ret i32 %85
}
declare i32 @printf(ptr noundef, ...) #1
declare i64 @posix_memalign(ptr noundef, i32 noundef, i32 noundef) #1
declare signext i8 @rand(...) #1
declare i32 @xor_gen(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @xor_check(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpud1iu81u.c'
source_filename = "/tmp/tmpud1iu81u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"main()\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %2
2: ; preds = %0
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 (...) @fn()
br label %5
5: ; preds = %2
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @fn(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpud1iu81u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"main()\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %2
2: ; preds = %0
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 (...) @fn()
br label %5
5: ; preds = %2
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @fn(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpadyse_zs.c'
source_filename = "/tmp/tmpadyse_zs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rdp_bitmap_decompress(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store i32 %2, ptr %9, align 4
store ptr %3, ptr %10, align 8
store i32 %4, ptr %11, align 4
store i32 %5, ptr %12, align 4
%14 = load i32, ptr %12, align 4
switch i32 %14, label %36 [
i32 1, label %15
i32 2, label %22
i32 3, label %29
]
15: ; preds = %6
%16 = load ptr, ptr %7, align 8
%17 = load i32, ptr %8, align 4
%18 = load i32, ptr %9, align 4
%19 = load ptr, ptr %10, align 8
%20 = load i32, ptr %11, align 4
%21 = call i32 @bitmap_decompress1(ptr noundef %16, i32 noundef %17, i32 noundef %18, ptr noundef %19, i32 noundef %20)
store i32 %21, ptr %13, align 4
br label %37
22: ; preds = %6
%23 = load ptr, ptr %7, align 8
%24 = load i32, ptr %8, align 4
%25 = load i32, ptr %9, align 4
%26 = load ptr, ptr %10, align 8
%27 = load i32, ptr %11, align 4
%28 = call i32 @bitmap_decompress2(ptr noundef %23, i32 noundef %24, i32 noundef %25, ptr noundef %26, i32 noundef %27)
store i32 %28, ptr %13, align 4
br label %37
29: ; preds = %6
%30 = load ptr, ptr %7, align 8
%31 = load i32, ptr %8, align 4
%32 = load i32, ptr %9, align 4
%33 = load ptr, ptr %10, align 8
%34 = load i32, ptr %11, align 4
%35 = call i32 @bitmap_decompress3(ptr noundef %30, i32 noundef %31, i32 noundef %32, ptr noundef %33, i32 noundef %34)
store i32 %35, ptr %13, align 4
br label %37
36: ; preds = %6
store i32 0, ptr %13, align 4
br label %37
37: ; preds = %36, %29, %22, %15
%38 = load i32, ptr %13, align 4
ret i32 %38
}
declare i32 @bitmap_decompress1(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @bitmap_decompress2(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @bitmap_decompress3(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpadyse_zs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rdp_bitmap_decompress(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store i32 %2, ptr %9, align 4
store ptr %3, ptr %10, align 8
store i32 %4, ptr %11, align 4
store i32 %5, ptr %12, align 4
%14 = load i32, ptr %12, align 4
switch i32 %14, label %36 [
i32 1, label %15
i32 2, label %22
i32 3, label %29
]
15: ; preds = %6
%16 = load ptr, ptr %7, align 8
%17 = load i32, ptr %8, align 4
%18 = load i32, ptr %9, align 4
%19 = load ptr, ptr %10, align 8
%20 = load i32, ptr %11, align 4
%21 = call i32 @bitmap_decompress1(ptr noundef %16, i32 noundef %17, i32 noundef %18, ptr noundef %19, i32 noundef %20)
store i32 %21, ptr %13, align 4
br label %37
22: ; preds = %6
%23 = load ptr, ptr %7, align 8
%24 = load i32, ptr %8, align 4
%25 = load i32, ptr %9, align 4
%26 = load ptr, ptr %10, align 8
%27 = load i32, ptr %11, align 4
%28 = call i32 @bitmap_decompress2(ptr noundef %23, i32 noundef %24, i32 noundef %25, ptr noundef %26, i32 noundef %27)
store i32 %28, ptr %13, align 4
br label %37
29: ; preds = %6
%30 = load ptr, ptr %7, align 8
%31 = load i32, ptr %8, align 4
%32 = load i32, ptr %9, align 4
%33 = load ptr, ptr %10, align 8
%34 = load i32, ptr %11, align 4
%35 = call i32 @bitmap_decompress3(ptr noundef %30, i32 noundef %31, i32 noundef %32, ptr noundef %33, i32 noundef %34)
store i32 %35, ptr %13, align 4
br label %37
36: ; preds = %6
store i32 0, ptr %13, align 4
br label %37
37: ; preds = %36, %29, %22, %15
%38 = load i32, ptr %13, align 4
ret i32 %38
}
declare i32 @bitmap_decompress1(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @bitmap_decompress2(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @bitmap_decompress3(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzhc8kqrn.c'
source_filename = "/tmp/tmpzhc8kqrn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @measure_avg_call_time() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %3
3: ; preds = %12, %0
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 5
br i1 %5, label %6, label %15
6: ; preds = %3
%7 = call i64 (...) @single_call_time()
%8 = load i32, ptr %1, align 4
%9 = sext i32 %8 to i64
%10 = add nsw i64 %9, %7
%11 = trunc i64 %10 to i32
store i32 %11, ptr %1, align 4
br label %12
12: ; preds = %6
%13 = load i32, ptr %2, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %2, align 4
br label %3, !llvm.loop !6
15: ; preds = %3
%16 = load i32, ptr %1, align 4
%17 = sdiv i32 %16, 5
ret i32 %17
}
declare i64 @single_call_time(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpzhc8kqrn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @measure_avg_call_time() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp slt i32 %3, 5
br i1 %4, label %.lr.ph, label %16
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %11
%6 = call i64 (...) @single_call_time()
%7 = load i32, ptr %1, align 4
%8 = sext i32 %7 to i64
%9 = add nsw i64 %8, %6
%10 = trunc i64 %9 to i32
store i32 %10, ptr %1, align 4
br label %11
11: ; preds = %5
%12 = load i32, ptr %2, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %2, align 4
%14 = load i32, ptr %2, align 4
%15 = icmp slt i32 %14, 5
br i1 %15, label %5, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %11
br label %16
16: ; preds = %._crit_edge, %0
%17 = load i32, ptr %1, align 4
%18 = sdiv i32 %17, 5
ret i32 %18
}
declare i64 @single_call_time(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpameh4mlg.c'
source_filename = "/tmp/tmpameh4mlg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"cd \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @try_complete(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%7 = load ptr, ptr %4, align 8
store ptr %7, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %11
10: ; preds = %2
store ptr null, ptr %3, align 8
br label %59
11: ; preds = %2
br label %12
12: ; preds = %17, %11
%13 = load ptr, ptr %6, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp eq i32 32, %15
br i1 %16, label %17, label %20
17: ; preds = %12
%18 = load ptr, ptr %6, align 8
%19 = getelementptr inbounds i8, ptr %18, i32 1
store ptr %19, ptr %6, align 8
br label %12, !llvm.loop !6
20: ; preds = %12
%21 = load ptr, ptr %6, align 8
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 0, %23
br i1 %24, label %25, label %26
25: ; preds = %20
store ptr null, ptr %3, align 8
br label %59
26: ; preds = %20
%27 = load ptr, ptr %6, align 8
%28 = call ptr @strrchr(ptr noundef %27, i8 noundef signext 32)
store ptr %28, ptr %6, align 8
%29 = load ptr, ptr %6, align 8
%30 = icmp eq ptr %29, null
br i1 %30, label %31, label %47
31: ; preds = %26
%32 = load ptr, ptr %4, align 8
store ptr %32, ptr %6, align 8
%33 = load ptr, ptr %6, align 8
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = icmp ne i32 %35, 47
br i1 %36, label %37, label %46
37: ; preds = %31
%38 = load ptr, ptr %6, align 8
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = icmp ne i32 %40, 46
br i1 %41, label %42, label %46
42: ; preds = %37
%43 = load ptr, ptr %4, align 8
%44 = load ptr, ptr %5, align 8
%45 = call ptr @comand_complete(ptr noundef %43, ptr noundef %44)
store ptr %45, ptr %3, align 8
br label %59
46: ; preds = %37, %31
br label %47
47: ; preds = %46, %26
%48 = load ptr, ptr %6, align 8
%49 = call i32 @strncmp(ptr noundef @.str, ptr noundef %48, i32 noundef 3)
%50 = icmp ne i32 %49, 0
br i1 %50, label %55, label %51
51: ; preds = %47
%52 = load ptr, ptr %4, align 8
%53 = load ptr, ptr %5, align 8
%54 = call ptr @file_complete(ptr noundef %52, i32 noundef 4, ptr noundef %53)
store ptr %54, ptr %3, align 8
br label %59
55: ; preds = %47
%56 = load ptr, ptr %4, align 8
%57 = load ptr, ptr %5, align 8
%58 = call ptr @file_complete(ptr noundef %56, i32 noundef 0, ptr noundef %57)
store ptr %58, ptr %3, align 8
br label %59
59: ; preds = %55, %51, %42, %25, %10
%60 = load ptr, ptr %3, align 8
ret ptr %60
}
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare ptr @comand_complete(ptr noundef, ptr noundef) #1
declare i32 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @file_complete(ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpameh4mlg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"cd \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @try_complete(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%7 = load ptr, ptr %4, align 8
store ptr %7, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %11
10: ; preds = %2
store ptr null, ptr %3, align 8
br label %62
11: ; preds = %2
%12 = load ptr, ptr %6, align 8
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 32, %14
br i1 %15, label %.lr.ph, label %23
.lr.ph: ; preds = %11
br label %16
16: ; preds = %.lr.ph, %16
%17 = load ptr, ptr %6, align 8
%18 = getelementptr inbounds i8, ptr %17, i32 1
store ptr %18, ptr %6, align 8
%19 = load ptr, ptr %6, align 8
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp eq i32 32, %21
br i1 %22, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %23
23: ; preds = %._crit_edge, %11
%24 = load ptr, ptr %6, align 8
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp eq i32 0, %26
br i1 %27, label %28, label %29
28: ; preds = %23
store ptr null, ptr %3, align 8
br label %62
29: ; preds = %23
%30 = load ptr, ptr %6, align 8
%31 = call ptr @strrchr(ptr noundef %30, i8 noundef signext 32)
store ptr %31, ptr %6, align 8
%32 = load ptr, ptr %6, align 8
%33 = icmp eq ptr %32, null
br i1 %33, label %34, label %50
34: ; preds = %29
%35 = load ptr, ptr %4, align 8
store ptr %35, ptr %6, align 8
%36 = load ptr, ptr %6, align 8
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = icmp ne i32 %38, 47
br i1 %39, label %40, label %49
40: ; preds = %34
%41 = load ptr, ptr %6, align 8
%42 = load i8, ptr %41, align 1
%43 = sext i8 %42 to i32
%44 = icmp ne i32 %43, 46
br i1 %44, label %45, label %49
45: ; preds = %40
%46 = load ptr, ptr %4, align 8
%47 = load ptr, ptr %5, align 8
%48 = call ptr @comand_complete(ptr noundef %46, ptr noundef %47)
store ptr %48, ptr %3, align 8
br label %62
49: ; preds = %40, %34
br label %50
50: ; preds = %49, %29
%51 = load ptr, ptr %6, align 8
%52 = call i32 @strncmp(ptr noundef @.str, ptr noundef %51, i32 noundef 3)
%53 = icmp ne i32 %52, 0
br i1 %53, label %58, label %54
54: ; preds = %50
%55 = load ptr, ptr %4, align 8
%56 = load ptr, ptr %5, align 8
%57 = call ptr @file_complete(ptr noundef %55, i32 noundef 4, ptr noundef %56)
store ptr %57, ptr %3, align 8
br label %62
58: ; preds = %50
%59 = load ptr, ptr %4, align 8
%60 = load ptr, ptr %5, align 8
%61 = call ptr @file_complete(ptr noundef %59, i32 noundef 0, ptr noundef %60)
store ptr %61, ptr %3, align 8
br label %62
62: ; preds = %58, %54, %45, %28, %10
%63 = load ptr, ptr %3, align 8
ret ptr %63
}
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare ptr @comand_complete(ptr noundef, ptr noundef) #1
declare i32 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @file_complete(ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpsf4n0yc4.c'
source_filename = "/tmp/tmpsf4n0yc4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @simpletest(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %5, align 8
%11 = call i32 @strlen(ptr noundef %10)
%12 = load ptr, ptr %6, align 8
%13 = load ptr, ptr %6, align 8
%14 = call i32 @strlen(ptr noundef %13)
%15 = load ptr, ptr %7, align 8
%16 = load ptr, ptr %7, align 8
%17 = call i32 @strlen(ptr noundef %16)
%18 = load i32, ptr %8, align 4
%19 = call i32 @test_output(ptr noundef %9, i32 noundef %11, ptr noundef %12, i32 noundef %14, ptr noundef %15, i32 noundef %17, i32 noundef %18, i32 noundef 64)
ret void
}
declare i32 @test_output(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsf4n0yc4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @simpletest(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %5, align 8
%11 = call i32 @strlen(ptr noundef %10)
%12 = load ptr, ptr %6, align 8
%13 = load ptr, ptr %6, align 8
%14 = call i32 @strlen(ptr noundef %13)
%15 = load ptr, ptr %7, align 8
%16 = load ptr, ptr %7, align 8
%17 = call i32 @strlen(ptr noundef %16)
%18 = load i32, ptr %8, align 4
%19 = call i32 @test_output(ptr noundef %9, i32 noundef %11, ptr noundef %12, i32 noundef %14, ptr noundef %15, i32 noundef %17, i32 noundef %18, i32 noundef 64)
ret void
}
declare i32 @test_output(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyrtvhaui.c'
source_filename = "/tmp/tmpyrtvhaui.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Nokia5110_Clear() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %2
2: ; preds = %7, %0
%3 = load i32, ptr %1, align 4
%4 = icmp slt i32 %3, 504
br i1 %4, label %5, label %10
5: ; preds = %2
%6 = call i32 @lcddatawrite(i32 noundef 0)
br label %7
7: ; preds = %5
%8 = load i32, ptr %1, align 4
%9 = add nsw i32 %8, 1
store i32 %9, ptr %1, align 4
br label %2, !llvm.loop !6
10: ; preds = %2
%11 = call i32 @Nokia5110_SetCursor(i32 noundef 0, i32 noundef 0)
ret void
}
declare i32 @lcddatawrite(i32 noundef) #1
declare i32 @Nokia5110_SetCursor(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/tmpyrtvhaui.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Nokia5110_Clear() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = load i32, ptr %1, align 4
%3 = icmp slt i32 %2, 504
br i1 %3, label %.lr.ph, label %11
.lr.ph: ; preds = %0
br label %4
4: ; preds = %.lr.ph, %6
%5 = call i32 @lcddatawrite(i32 noundef 0)
br label %6
6: ; preds = %4
%7 = load i32, ptr %1, align 4
%8 = add nsw i32 %7, 1
store i32 %8, ptr %1, align 4
%9 = load i32, ptr %1, align 4
%10 = icmp slt i32 %9, 504
br i1 %10, label %4, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %6
br label %11
11: ; preds = %._crit_edge, %0
%12 = call i32 @Nokia5110_SetCursor(i32 noundef 0, i32 noundef 0)
ret void
}
declare i32 @lcddatawrite(i32 noundef) #1
declare i32 @Nokia5110_SetCursor(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/tmp8pemw_zu.c'
source_filename = "/tmp/tmp8pemw_zu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"a\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"aa\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"same\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"tobi\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"toby\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"math\00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c"meth\00", align 1
@.str.7 = private unnamed_addr constant [7 x i8] c"shovel\00", align 1
@.str.8 = private unnamed_addr constant [7 x i8] c"shower\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @hamming_dist(ptr noundef @.str, ptr noundef @.str.1)
%7 = icmp eq i32 %6, -1
%8 = zext i1 %7 to i32
%9 = call i32 @assert(i32 noundef %8)
%10 = call i32 @hamming_dist(ptr noundef @.str.2, ptr noundef @.str.2)
%11 = icmp eq i32 %10, 0
%12 = zext i1 %11 to i32
%13 = call i32 @assert(i32 noundef %12)
%14 = call i32 @hamming_dist(ptr noundef @.str.3, ptr noundef @.str.4)
%15 = icmp eq i32 %14, 1
%16 = zext i1 %15 to i32
%17 = call i32 @assert(i32 noundef %16)
%18 = call i32 @hamming_dist(ptr noundef @.str.5, ptr noundef @.str.6)
%19 = icmp eq i32 %18, 1
%20 = zext i1 %19 to i32
%21 = call i32 @assert(i32 noundef %20)
%22 = call i32 @hamming_dist(ptr noundef @.str.7, ptr noundef @.str.8)
%23 = icmp eq i32 %22, 2
%24 = zext i1 %23 to i32
%25 = call i32 @assert(i32 noundef %24)
ret i32 0
}
declare i32 @assert(i32 noundef) #1
declare i32 @hamming_dist(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/tmp8pemw_zu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"a\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"aa\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"same\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"tobi\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"toby\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"math\00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c"meth\00", align 1
@.str.7 = private unnamed_addr constant [7 x i8] c"shovel\00", align 1
@.str.8 = private unnamed_addr constant [7 x i8] c"shower\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @hamming_dist(ptr noundef @.str, ptr noundef @.str.1)
%7 = icmp eq i32 %6, -1
%8 = zext i1 %7 to i32
%9 = call i32 @assert(i32 noundef %8)
%10 = call i32 @hamming_dist(ptr noundef @.str.2, ptr noundef @.str.2)
%11 = icmp eq i32 %10, 0
%12 = zext i1 %11 to i32
%13 = call i32 @assert(i32 noundef %12)
%14 = call i32 @hamming_dist(ptr noundef @.str.3, ptr noundef @.str.4)
%15 = icmp eq i32 %14, 1
%16 = zext i1 %15 to i32
%17 = call i32 @assert(i32 noundef %16)
%18 = call i32 @hamming_dist(ptr noundef @.str.5, ptr noundef @.str.6)
%19 = icmp eq i32 %18, 1
%20 = zext i1 %19 to i32
%21 = call i32 @assert(i32 noundef %20)
%22 = call i32 @hamming_dist(ptr noundef @.str.7, ptr noundef @.str.8)
%23 = icmp eq i32 %22, 2
%24 = zext i1 %23 to i32
%25 = call i32 @assert(i32 noundef %24)
ret i32 0
}
declare i32 @assert(i32 noundef) #1
declare i32 @hamming_dist(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/tmpb6fcmwpn.c'
source_filename = "/tmp/tmpb6fcmwpn.c"
target datalayout = "e-m:e-p270: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/tmpb6fcmwpn.c"
target datalayout = "e-m:e-p270: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/tmpk8h9wk4r.c'
source_filename = "/tmp/tmpk8h9wk4r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @thread_syn_init(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @pthread_mutex_init(ptr noundef %7, ptr noundef null)
%9 = load ptr, ptr %5, align 8
%10 = call i32 @pthread_cond_init(ptr noundef %9, ptr noundef null)
%11 = load ptr, ptr %6, align 8
store i32 0, ptr %11, align 4
ret i32 0
}
declare i32 @pthread_mutex_init(ptr noundef, ptr noundef) #1
declare i32 @pthread_cond_init(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/tmpk8h9wk4r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @thread_syn_init(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @pthread_mutex_init(ptr noundef %7, ptr noundef null)
%9 = load ptr, ptr %5, align 8
%10 = call i32 @pthread_cond_init(ptr noundef %9, ptr noundef null)
%11 = load ptr, ptr %6, align 8
store i32 0, ptr %11, align 4
ret i32 0
}
declare i32 @pthread_mutex_init(ptr noundef, ptr noundef) #1
declare i32 @pthread_cond_init(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/tmpgk180k1u.c'
source_filename = "/tmp/tmpgk180k1u.c"
target datalayout = "e-m:e-p270: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/tmpgk180k1u.c"
target datalayout = "e-m:e-p270: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/tmprb2datgf.c'
source_filename = "/tmp/tmprb2datgf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [36 x i8] c"Parameter lambda is smaller than 0.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @expcdf(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
%6 = load double, ptr %5, align 8
%7 = fcmp olt double %6, 0.000000e+00
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 @error(ptr noundef @.str)
br label %10
10: ; preds = %8, %2
%11 = load double, ptr %4, align 8
%12 = fcmp olt double %11, 0.000000e+00
br i1 %12, label %13, label %14
13: ; preds = %10
store double 0.000000e+00, ptr %3, align 8
br label %21
14: ; preds = %10
%15 = load double, ptr %5, align 8
%16 = fneg double %15
%17 = load double, ptr %4, align 8
%18 = fmul double %16, %17
%19 = call double @exp(double noundef %18) #3
%20 = fsub double 1.000000e+00, %19
store double %20, ptr %3, align 8
br label %21
21: ; preds = %14, %13
%22 = load double, ptr %3, align 8
ret double %22
}
declare i32 @error(ptr noundef) #1
; Function Attrs: nounwind
declare double @exp(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/tmprb2datgf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [36 x i8] c"Parameter lambda is smaller than 0.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @expcdf(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
%6 = load double, ptr %5, align 8
%7 = fcmp olt double %6, 0.000000e+00
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 @error(ptr noundef @.str)
br label %10
10: ; preds = %8, %2
%11 = load double, ptr %4, align 8
%12 = fcmp olt double %11, 0.000000e+00
br i1 %12, label %13, label %14
13: ; preds = %10
store double 0.000000e+00, ptr %3, align 8
br label %21
14: ; preds = %10
%15 = load double, ptr %5, align 8
%16 = fneg double %15
%17 = load double, ptr %4, align 8
%18 = fmul double %16, %17
%19 = call double @exp(double noundef %18) #3
%20 = fsub double 1.000000e+00, %19
store double %20, ptr %3, align 8
br label %21
21: ; preds = %14, %13
%22 = load double, ptr %3, align 8
ret double %22
}
declare i32 @error(ptr noundef) #1
; Function Attrs: nounwind
declare double @exp(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/tmprunu6plp.c'
source_filename = "/tmp/tmprunu6plp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@RAND_MAX = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @rnd_double() #0 {
%1 = call i64 (...) @rand()
%2 = sitofp i64 %1 to double
%3 = load i64, ptr @RAND_MAX, align 8
%4 = sitofp i64 %3 to double
%5 = fdiv double %2, %4
ret double %5
}
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprunu6plp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@RAND_MAX = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @rnd_double() #0 {
%1 = call i64 (...) @rand()
%2 = sitofp i64 %1 to double
%3 = load i64, ptr @RAND_MAX, align 8
%4 = sitofp i64 %3 to double
%5 = fdiv double %2, %4
ret double %5
}
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"}
|
; ModuleID = '/tmp/tmp3zymtbpi.c'
source_filename = "/tmp/tmp3zymtbpi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @int_p2(ptr noundef %0, double noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca double, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store double %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
store double 0.000000e+00, ptr %9, align 8
store i32 0, ptr %12, align 4
br label %13
13: ; preds = %35, %4
%14 = load i32, ptr %12, align 4
%15 = load i32, ptr %8, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %38
17: ; preds = %13
%18 = load double, ptr %6, align 8
%19 = load i32, ptr %8, align 4
%20 = sitofp i32 %19 to double
%21 = fmul double 1.000000e+00, %20
%22 = fdiv double %18, %21
%23 = load i32, ptr %12, align 4
%24 = sitofp i32 %23 to double
%25 = fmul double %22, %24
store double %25, ptr %10, align 8
%26 = load ptr, ptr %5, align 8
%27 = load double, ptr %6, align 8
%28 = load i32, ptr %7, align 4
%29 = load double, ptr %10, align 8
%30 = call double @pr(ptr noundef %26, double noundef %27, i32 noundef %28, double noundef %29)
store double %30, ptr %11, align 8
%31 = load double, ptr %11, align 8
%32 = load double, ptr %11, align 8
%33 = load double, ptr %9, align 8
%34 = call double @llvm.fmuladd.f64(double %31, double %32, double %33)
store double %34, ptr %9, align 8
br label %35
35: ; preds = %17
%36 = load i32, ptr %12, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %12, align 4
br label %13, !llvm.loop !6
38: ; preds = %13
%39 = load double, ptr %9, align 8
%40 = load i32, ptr %8, align 4
%41 = sitofp i32 %40 to double
%42 = fmul double 1.000000e+00, %41
%43 = fdiv double %39, %42
%44 = load double, ptr %6, align 8
%45 = fmul double %43, %44
ret double %45
}
declare double @pr(ptr noundef, double noundef, i32 noundef, double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3zymtbpi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @int_p2(ptr noundef %0, double noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca double, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store double %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
store double 0.000000e+00, ptr %9, align 8
store i32 0, ptr %12, align 4
%13 = load i32, ptr %12, align 4
%14 = load i32, ptr %8, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph, label %40
.lr.ph: ; preds = %4
br label %16
16: ; preds = %.lr.ph, %34
%17 = load double, ptr %6, align 8
%18 = load i32, ptr %8, align 4
%19 = sitofp i32 %18 to double
%20 = fmul double 1.000000e+00, %19
%21 = fdiv double %17, %20
%22 = load i32, ptr %12, align 4
%23 = sitofp i32 %22 to double
%24 = fmul double %21, %23
store double %24, ptr %10, align 8
%25 = load ptr, ptr %5, align 8
%26 = load double, ptr %6, align 8
%27 = load i32, ptr %7, align 4
%28 = load double, ptr %10, align 8
%29 = call double @pr(ptr noundef %25, double noundef %26, i32 noundef %27, double noundef %28)
store double %29, ptr %11, align 8
%30 = load double, ptr %11, align 8
%31 = load double, ptr %11, align 8
%32 = load double, ptr %9, align 8
%33 = call double @llvm.fmuladd.f64(double %30, double %31, double %32)
store double %33, ptr %9, align 8
br label %34
34: ; preds = %16
%35 = load i32, ptr %12, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %12, align 4
%37 = load i32, ptr %12, align 4
%38 = load i32, ptr %8, align 4
%39 = icmp slt i32 %37, %38
br i1 %39, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %34
br label %40
40: ; preds = %._crit_edge, %4
%41 = load double, ptr %9, align 8
%42 = load i32, ptr %8, align 4
%43 = sitofp i32 %42 to double
%44 = fmul double 1.000000e+00, %43
%45 = fdiv double %41, %44
%46 = load double, ptr %6, align 8
%47 = fmul double %45, %46
ret double %47
}
declare double @pr(ptr noundef, double noundef, i32 noundef, double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmptcz17gvs.c'
source_filename = "/tmp/tmptcz17gvs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vec4_GetEilerOrientationTransform(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca float, align 4
%6 = alloca [4 x float], align 16
%7 = alloca [4 x float], align 16
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%8 = load ptr, ptr %4, align 8
%9 = getelementptr inbounds float, ptr %8, i64 2
%10 = load float, ptr %9, align 4
%11 = fpext float %10 to double
%12 = fdiv double %11, 2.000000e+00
%13 = fptrunc double %12 to float
store float %13, ptr %5, align 4
%14 = load ptr, ptr %3, align 8
%15 = getelementptr inbounds float, ptr %14, i64 0
store float 0.000000e+00, ptr %15, align 4
%16 = load ptr, ptr %3, align 8
%17 = getelementptr inbounds float, ptr %16, i64 1
store float 0.000000e+00, ptr %17, align 4
%18 = load float, ptr %5, align 4
%19 = call float @sinf(float noundef %18) #3
%20 = fneg float %19
%21 = load ptr, ptr %3, align 8
%22 = getelementptr inbounds float, ptr %21, i64 2
store float %20, ptr %22, align 4
%23 = load float, ptr %5, align 4
%24 = call float @cosf(float noundef %23) #3
%25 = load ptr, ptr %3, align 8
%26 = getelementptr inbounds float, ptr %25, i64 3
store float %24, ptr %26, align 4
%27 = load ptr, ptr %4, align 8
%28 = getelementptr inbounds float, ptr %27, i64 0
%29 = load float, ptr %28, align 4
%30 = fpext float %29 to double
%31 = fdiv double %30, 2.000000e+00
%32 = fptrunc double %31 to float
store float %32, ptr %5, align 4
%33 = load float, ptr %5, align 4
%34 = call float @sinf(float noundef %33) #3
%35 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 0
store float %34, ptr %35, align 16
%36 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 1
store float 0.000000e+00, ptr %36, align 4
%37 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 2
store float 0.000000e+00, ptr %37, align 8
%38 = load float, ptr %5, align 4
%39 = call float @cosf(float noundef %38) #3
%40 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 3
store float %39, ptr %40, align 4
%41 = load ptr, ptr %3, align 8
%42 = getelementptr inbounds float, ptr %41, i64 3
%43 = load float, ptr %42, align 4
%44 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 0
%45 = load float, ptr %44, align 16
%46 = load ptr, ptr %3, align 8
%47 = getelementptr inbounds float, ptr %46, i64 0
%48 = load float, ptr %47, align 4
%49 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 3
%50 = load float, ptr %49, align 4
%51 = fmul float %48, %50
%52 = call float @llvm.fmuladd.f32(float %43, float %45, float %51)
%53 = load ptr, ptr %3, align 8
%54 = getelementptr inbounds float, ptr %53, i64 1
%55 = load float, ptr %54, align 4
%56 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 2
%57 = load float, ptr %56, align 8
%58 = call float @llvm.fmuladd.f32(float %55, float %57, float %52)
%59 = load ptr, ptr %3, align 8
%60 = getelementptr inbounds float, ptr %59, i64 2
%61 = load float, ptr %60, align 4
%62 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 1
%63 = load float, ptr %62, align 4
%64 = fneg float %61
%65 = call float @llvm.fmuladd.f32(float %64, float %63, float %58)
%66 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 0
store float %65, ptr %66, align 16
%67 = load ptr, ptr %3, align 8
%68 = getelementptr inbounds float, ptr %67, i64 3
%69 = load float, ptr %68, align 4
%70 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 1
%71 = load float, ptr %70, align 4
%72 = load ptr, ptr %3, align 8
%73 = getelementptr inbounds float, ptr %72, i64 1
%74 = load float, ptr %73, align 4
%75 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 3
%76 = load float, ptr %75, align 4
%77 = fmul float %74, %76
%78 = call float @llvm.fmuladd.f32(float %69, float %71, float %77)
%79 = load ptr, ptr %3, align 8
%80 = getelementptr inbounds float, ptr %79, i64 2
%81 = load float, ptr %80, align 4
%82 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 0
%83 = load float, ptr %82, align 16
%84 = call float @llvm.fmuladd.f32(float %81, float %83, float %78)
%85 = load ptr, ptr %3, align 8
%86 = getelementptr inbounds float, ptr %85, i64 0
%87 = load float, ptr %86, align 4
%88 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 2
%89 = load float, ptr %88, align 8
%90 = fneg float %87
%91 = call float @llvm.fmuladd.f32(float %90, float %89, float %84)
%92 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 1
store float %91, ptr %92, align 4
%93 = load ptr, ptr %3, align 8
%94 = getelementptr inbounds float, ptr %93, i64 3
%95 = load float, ptr %94, align 4
%96 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 2
%97 = load float, ptr %96, align 8
%98 = load ptr, ptr %3, align 8
%99 = getelementptr inbounds float, ptr %98, i64 2
%100 = load float, ptr %99, align 4
%101 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 3
%102 = load float, ptr %101, align 4
%103 = fmul float %100, %102
%104 = call float @llvm.fmuladd.f32(float %95, float %97, float %103)
%105 = load ptr, ptr %3, align 8
%106 = getelementptr inbounds float, ptr %105, i64 0
%107 = load float, ptr %106, align 4
%108 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 1
%109 = load float, ptr %108, align 4
%110 = call float @llvm.fmuladd.f32(float %107, float %109, float %104)
%111 = load ptr, ptr %3, align 8
%112 = getelementptr inbounds float, ptr %111, i64 1
%113 = load float, ptr %112, align 4
%114 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 0
%115 = load float, ptr %114, align 16
%116 = fneg float %113
%117 = call float @llvm.fmuladd.f32(float %116, float %115, float %110)
%118 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 2
store float %117, ptr %118, align 8
%119 = load ptr, ptr %3, align 8
%120 = getelementptr inbounds float, ptr %119, i64 3
%121 = load float, ptr %120, align 4
%122 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 3
%123 = load float, ptr %122, align 4
%124 = load ptr, ptr %3, align 8
%125 = getelementptr inbounds float, ptr %124, i64 0
%126 = load float, ptr %125, align 4
%127 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 0
%128 = load float, ptr %127, align 16
%129 = fmul float %126, %128
%130 = fneg float %129
%131 = call float @llvm.fmuladd.f32(float %121, float %123, float %130)
%132 = load ptr, ptr %3, align 8
%133 = getelementptr inbounds float, ptr %132, i64 1
%134 = load float, ptr %133, align 4
%135 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 1
%136 = load float, ptr %135, align 4
%137 = fneg float %134
%138 = call float @llvm.fmuladd.f32(float %137, float %136, float %131)
%139 = load ptr, ptr %3, align 8
%140 = getelementptr inbounds float, ptr %139, i64 2
%141 = load float, ptr %140, align 4
%142 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 2
%143 = load float, ptr %142, align 8
%144 = fneg float %141
%145 = call float @llvm.fmuladd.f32(float %144, float %143, float %138)
%146 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 3
store float %145, ptr %146, align 4
%147 = load ptr, ptr %4, align 8
%148 = getelementptr inbounds float, ptr %147, i64 1
%149 = load float, ptr %148, align 4
%150 = fpext float %149 to double
%151 = fdiv double %150, 2.000000e+00
%152 = fptrunc double %151 to float
store float %152, ptr %5, align 4
%153 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 0
store float 0.000000e+00, ptr %153, align 16
%154 = load float, ptr %5, align 4
%155 = call float @sinf(float noundef %154) #3
%156 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 1
store float %155, ptr %156, align 4
%157 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 2
store float 0.000000e+00, ptr %157, align 8
%158 = load float, ptr %5, align 4
%159 = call float @cosf(float noundef %158) #3
%160 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 3
store float %159, ptr %160, align 4
%161 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 3
%162 = load float, ptr %161, align 4
%163 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 0
%164 = load float, ptr %163, align 16
%165 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 0
%166 = load float, ptr %165, align 16
%167 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 3
%168 = load float, ptr %167, align 4
%169 = fmul float %166, %168
%170 = call float @llvm.fmuladd.f32(float %162, float %164, float %169)
%171 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 1
%172 = load float, ptr %171, align 4
%173 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 2
%174 = load float, ptr %173, align 8
%175 = call float @llvm.fmuladd.f32(float %172, float %174, float %170)
%176 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 2
%177 = load float, ptr %176, align 8
%178 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 1
%179 = load float, ptr %178, align 4
%180 = fneg float %177
%181 = call float @llvm.fmuladd.f32(float %180, float %179, float %175)
%182 = load ptr, ptr %3, align 8
%183 = getelementptr inbounds float, ptr %182, i64 0
store float %181, ptr %183, align 4
%184 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 3
%185 = load float, ptr %184, align 4
%186 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 1
%187 = load float, ptr %186, align 4
%188 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 1
%189 = load float, ptr %188, align 4
%190 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 3
%191 = load float, ptr %190, align 4
%192 = fmul float %189, %191
%193 = call float @llvm.fmuladd.f32(float %185, float %187, float %192)
%194 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 2
%195 = load float, ptr %194, align 8
%196 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 0
%197 = load float, ptr %196, align 16
%198 = call float @llvm.fmuladd.f32(float %195, float %197, float %193)
%199 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 0
%200 = load float, ptr %199, align 16
%201 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 2
%202 = load float, ptr %201, align 8
%203 = fneg float %200
%204 = call float @llvm.fmuladd.f32(float %203, float %202, float %198)
%205 = load ptr, ptr %3, align 8
%206 = getelementptr inbounds float, ptr %205, i64 1
store float %204, ptr %206, align 4
%207 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 3
%208 = load float, ptr %207, align 4
%209 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 2
%210 = load float, ptr %209, align 8
%211 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 2
%212 = load float, ptr %211, align 8
%213 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 3
%214 = load float, ptr %213, align 4
%215 = fmul float %212, %214
%216 = call float @llvm.fmuladd.f32(float %208, float %210, float %215)
%217 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 0
%218 = load float, ptr %217, align 16
%219 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 1
%220 = load float, ptr %219, align 4
%221 = call float @llvm.fmuladd.f32(float %218, float %220, float %216)
%222 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 1
%223 = load float, ptr %222, align 4
%224 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 0
%225 = load float, ptr %224, align 16
%226 = fneg float %223
%227 = call float @llvm.fmuladd.f32(float %226, float %225, float %221)
%228 = load ptr, ptr %3, align 8
%229 = getelementptr inbounds float, ptr %228, i64 2
store float %227, ptr %229, align 4
%230 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 3
%231 = load float, ptr %230, align 4
%232 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 3
%233 = load float, ptr %232, align 4
%234 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 0
%235 = load float, ptr %234, align 16
%236 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 0
%237 = load float, ptr %236, align 16
%238 = fmul float %235, %237
%239 = fneg float %238
%240 = call float @llvm.fmuladd.f32(float %231, float %233, float %239)
%241 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 1
%242 = load float, ptr %241, align 4
%243 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 1
%244 = load float, ptr %243, align 4
%245 = fneg float %242
%246 = call float @llvm.fmuladd.f32(float %245, float %244, float %240)
%247 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 2
%248 = load float, ptr %247, align 8
%249 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 2
%250 = load float, ptr %249, align 8
%251 = fneg float %248
%252 = call float @llvm.fmuladd.f32(float %251, float %250, float %246)
%253 = load ptr, ptr %3, align 8
%254 = getelementptr inbounds float, ptr %253, i64 3
store float %252, ptr %254, align 4
ret void
}
; Function Attrs: nounwind
declare float @sinf(float noundef) #1
; Function Attrs: nounwind
declare float @cosf(float noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptcz17gvs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vec4_GetEilerOrientationTransform(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca float, align 4
%6 = alloca [4 x float], align 16
%7 = alloca [4 x float], align 16
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%8 = load ptr, ptr %4, align 8
%9 = getelementptr inbounds float, ptr %8, i64 2
%10 = load float, ptr %9, align 4
%11 = fpext float %10 to double
%12 = fdiv double %11, 2.000000e+00
%13 = fptrunc double %12 to float
store float %13, ptr %5, align 4
%14 = load ptr, ptr %3, align 8
%15 = getelementptr inbounds float, ptr %14, i64 0
store float 0.000000e+00, ptr %15, align 4
%16 = load ptr, ptr %3, align 8
%17 = getelementptr inbounds float, ptr %16, i64 1
store float 0.000000e+00, ptr %17, align 4
%18 = load float, ptr %5, align 4
%19 = call float @sinf(float noundef %18) #3
%20 = fneg float %19
%21 = load ptr, ptr %3, align 8
%22 = getelementptr inbounds float, ptr %21, i64 2
store float %20, ptr %22, align 4
%23 = load float, ptr %5, align 4
%24 = call float @cosf(float noundef %23) #3
%25 = load ptr, ptr %3, align 8
%26 = getelementptr inbounds float, ptr %25, i64 3
store float %24, ptr %26, align 4
%27 = load ptr, ptr %4, align 8
%28 = getelementptr inbounds float, ptr %27, i64 0
%29 = load float, ptr %28, align 4
%30 = fpext float %29 to double
%31 = fdiv double %30, 2.000000e+00
%32 = fptrunc double %31 to float
store float %32, ptr %5, align 4
%33 = load float, ptr %5, align 4
%34 = call float @sinf(float noundef %33) #3
%35 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 0
store float %34, ptr %35, align 16
%36 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 1
store float 0.000000e+00, ptr %36, align 4
%37 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 2
store float 0.000000e+00, ptr %37, align 8
%38 = load float, ptr %5, align 4
%39 = call float @cosf(float noundef %38) #3
%40 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 3
store float %39, ptr %40, align 4
%41 = load ptr, ptr %3, align 8
%42 = getelementptr inbounds float, ptr %41, i64 3
%43 = load float, ptr %42, align 4
%44 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 0
%45 = load float, ptr %44, align 16
%46 = load ptr, ptr %3, align 8
%47 = getelementptr inbounds float, ptr %46, i64 0
%48 = load float, ptr %47, align 4
%49 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 3
%50 = load float, ptr %49, align 4
%51 = fmul float %48, %50
%52 = call float @llvm.fmuladd.f32(float %43, float %45, float %51)
%53 = load ptr, ptr %3, align 8
%54 = getelementptr inbounds float, ptr %53, i64 1
%55 = load float, ptr %54, align 4
%56 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 2
%57 = load float, ptr %56, align 8
%58 = call float @llvm.fmuladd.f32(float %55, float %57, float %52)
%59 = load ptr, ptr %3, align 8
%60 = getelementptr inbounds float, ptr %59, i64 2
%61 = load float, ptr %60, align 4
%62 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 1
%63 = load float, ptr %62, align 4
%64 = fneg float %61
%65 = call float @llvm.fmuladd.f32(float %64, float %63, float %58)
%66 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 0
store float %65, ptr %66, align 16
%67 = load ptr, ptr %3, align 8
%68 = getelementptr inbounds float, ptr %67, i64 3
%69 = load float, ptr %68, align 4
%70 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 1
%71 = load float, ptr %70, align 4
%72 = load ptr, ptr %3, align 8
%73 = getelementptr inbounds float, ptr %72, i64 1
%74 = load float, ptr %73, align 4
%75 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 3
%76 = load float, ptr %75, align 4
%77 = fmul float %74, %76
%78 = call float @llvm.fmuladd.f32(float %69, float %71, float %77)
%79 = load ptr, ptr %3, align 8
%80 = getelementptr inbounds float, ptr %79, i64 2
%81 = load float, ptr %80, align 4
%82 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 0
%83 = load float, ptr %82, align 16
%84 = call float @llvm.fmuladd.f32(float %81, float %83, float %78)
%85 = load ptr, ptr %3, align 8
%86 = getelementptr inbounds float, ptr %85, i64 0
%87 = load float, ptr %86, align 4
%88 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 2
%89 = load float, ptr %88, align 8
%90 = fneg float %87
%91 = call float @llvm.fmuladd.f32(float %90, float %89, float %84)
%92 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 1
store float %91, ptr %92, align 4
%93 = load ptr, ptr %3, align 8
%94 = getelementptr inbounds float, ptr %93, i64 3
%95 = load float, ptr %94, align 4
%96 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 2
%97 = load float, ptr %96, align 8
%98 = load ptr, ptr %3, align 8
%99 = getelementptr inbounds float, ptr %98, i64 2
%100 = load float, ptr %99, align 4
%101 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 3
%102 = load float, ptr %101, align 4
%103 = fmul float %100, %102
%104 = call float @llvm.fmuladd.f32(float %95, float %97, float %103)
%105 = load ptr, ptr %3, align 8
%106 = getelementptr inbounds float, ptr %105, i64 0
%107 = load float, ptr %106, align 4
%108 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 1
%109 = load float, ptr %108, align 4
%110 = call float @llvm.fmuladd.f32(float %107, float %109, float %104)
%111 = load ptr, ptr %3, align 8
%112 = getelementptr inbounds float, ptr %111, i64 1
%113 = load float, ptr %112, align 4
%114 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 0
%115 = load float, ptr %114, align 16
%116 = fneg float %113
%117 = call float @llvm.fmuladd.f32(float %116, float %115, float %110)
%118 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 2
store float %117, ptr %118, align 8
%119 = load ptr, ptr %3, align 8
%120 = getelementptr inbounds float, ptr %119, i64 3
%121 = load float, ptr %120, align 4
%122 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 3
%123 = load float, ptr %122, align 4
%124 = load ptr, ptr %3, align 8
%125 = getelementptr inbounds float, ptr %124, i64 0
%126 = load float, ptr %125, align 4
%127 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 0
%128 = load float, ptr %127, align 16
%129 = fmul float %126, %128
%130 = fneg float %129
%131 = call float @llvm.fmuladd.f32(float %121, float %123, float %130)
%132 = load ptr, ptr %3, align 8
%133 = getelementptr inbounds float, ptr %132, i64 1
%134 = load float, ptr %133, align 4
%135 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 1
%136 = load float, ptr %135, align 4
%137 = fneg float %134
%138 = call float @llvm.fmuladd.f32(float %137, float %136, float %131)
%139 = load ptr, ptr %3, align 8
%140 = getelementptr inbounds float, ptr %139, i64 2
%141 = load float, ptr %140, align 4
%142 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 2
%143 = load float, ptr %142, align 8
%144 = fneg float %141
%145 = call float @llvm.fmuladd.f32(float %144, float %143, float %138)
%146 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 3
store float %145, ptr %146, align 4
%147 = load ptr, ptr %4, align 8
%148 = getelementptr inbounds float, ptr %147, i64 1
%149 = load float, ptr %148, align 4
%150 = fpext float %149 to double
%151 = fdiv double %150, 2.000000e+00
%152 = fptrunc double %151 to float
store float %152, ptr %5, align 4
%153 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 0
store float 0.000000e+00, ptr %153, align 16
%154 = load float, ptr %5, align 4
%155 = call float @sinf(float noundef %154) #3
%156 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 1
store float %155, ptr %156, align 4
%157 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 2
store float 0.000000e+00, ptr %157, align 8
%158 = load float, ptr %5, align 4
%159 = call float @cosf(float noundef %158) #3
%160 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 3
store float %159, ptr %160, align 4
%161 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 3
%162 = load float, ptr %161, align 4
%163 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 0
%164 = load float, ptr %163, align 16
%165 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 0
%166 = load float, ptr %165, align 16
%167 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 3
%168 = load float, ptr %167, align 4
%169 = fmul float %166, %168
%170 = call float @llvm.fmuladd.f32(float %162, float %164, float %169)
%171 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 1
%172 = load float, ptr %171, align 4
%173 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 2
%174 = load float, ptr %173, align 8
%175 = call float @llvm.fmuladd.f32(float %172, float %174, float %170)
%176 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 2
%177 = load float, ptr %176, align 8
%178 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 1
%179 = load float, ptr %178, align 4
%180 = fneg float %177
%181 = call float @llvm.fmuladd.f32(float %180, float %179, float %175)
%182 = load ptr, ptr %3, align 8
%183 = getelementptr inbounds float, ptr %182, i64 0
store float %181, ptr %183, align 4
%184 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 3
%185 = load float, ptr %184, align 4
%186 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 1
%187 = load float, ptr %186, align 4
%188 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 1
%189 = load float, ptr %188, align 4
%190 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 3
%191 = load float, ptr %190, align 4
%192 = fmul float %189, %191
%193 = call float @llvm.fmuladd.f32(float %185, float %187, float %192)
%194 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 2
%195 = load float, ptr %194, align 8
%196 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 0
%197 = load float, ptr %196, align 16
%198 = call float @llvm.fmuladd.f32(float %195, float %197, float %193)
%199 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 0
%200 = load float, ptr %199, align 16
%201 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 2
%202 = load float, ptr %201, align 8
%203 = fneg float %200
%204 = call float @llvm.fmuladd.f32(float %203, float %202, float %198)
%205 = load ptr, ptr %3, align 8
%206 = getelementptr inbounds float, ptr %205, i64 1
store float %204, ptr %206, align 4
%207 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 3
%208 = load float, ptr %207, align 4
%209 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 2
%210 = load float, ptr %209, align 8
%211 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 2
%212 = load float, ptr %211, align 8
%213 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 3
%214 = load float, ptr %213, align 4
%215 = fmul float %212, %214
%216 = call float @llvm.fmuladd.f32(float %208, float %210, float %215)
%217 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 0
%218 = load float, ptr %217, align 16
%219 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 1
%220 = load float, ptr %219, align 4
%221 = call float @llvm.fmuladd.f32(float %218, float %220, float %216)
%222 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 1
%223 = load float, ptr %222, align 4
%224 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 0
%225 = load float, ptr %224, align 16
%226 = fneg float %223
%227 = call float @llvm.fmuladd.f32(float %226, float %225, float %221)
%228 = load ptr, ptr %3, align 8
%229 = getelementptr inbounds float, ptr %228, i64 2
store float %227, ptr %229, align 4
%230 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 3
%231 = load float, ptr %230, align 4
%232 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 3
%233 = load float, ptr %232, align 4
%234 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 0
%235 = load float, ptr %234, align 16
%236 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 0
%237 = load float, ptr %236, align 16
%238 = fmul float %235, %237
%239 = fneg float %238
%240 = call float @llvm.fmuladd.f32(float %231, float %233, float %239)
%241 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 1
%242 = load float, ptr %241, align 4
%243 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 1
%244 = load float, ptr %243, align 4
%245 = fneg float %242
%246 = call float @llvm.fmuladd.f32(float %245, float %244, float %240)
%247 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 2
%248 = load float, ptr %247, align 8
%249 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 2
%250 = load float, ptr %249, align 8
%251 = fneg float %248
%252 = call float @llvm.fmuladd.f32(float %251, float %250, float %246)
%253 = load ptr, ptr %3, align 8
%254 = getelementptr inbounds float, ptr %253, i64 3
store float %252, ptr %254, align 4
ret void
}
; Function Attrs: nounwind
declare float @sinf(float noundef) #1
; Function Attrs: nounwind
declare float @cosf(float noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmtnq9hab.c'
source_filename = "/tmp/tmpmtnq9hab.c"
target datalayout = "e-m:e-p270: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/tmpmtnq9hab.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9_kjpdw4.c'
source_filename = "/tmp/tmp9_kjpdw4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getClosestSymbolAfter(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @get_closest_symbol(i32 noundef %7, ptr noundef %8, ptr noundef %9, i32 noundef 0)
ret i32 %10
}
declare i32 @get_closest_symbol(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9_kjpdw4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getClosestSymbolAfter(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @get_closest_symbol(i32 noundef %7, ptr noundef %8, ptr noundef %9, i32 noundef 0)
ret i32 %10
}
declare i32 @get_closest_symbol(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpv3qe5fh2.c'
source_filename = "/tmp/tmpv3qe5fh2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"aa\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"bb\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"cc\00", align 1
@__const.main.exe = private unnamed_addr constant [3 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2], align 16
@.str.3 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@__const.main.argv = private unnamed_addr constant [2 x ptr] [ptr @.str.3, ptr null], align 16
@.str.4 = private unnamed_addr constant [6 x i8] c"hello\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [3 x ptr], align 16
%3 = alloca [2 x ptr], align 16
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.exe, i64 24, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main.argv, i64 16, i1 false)
store i32 0, ptr %4, align 4
br label %5
5: ; preds = %25, %0
%6 = load i32, ptr %4, align 4
%7 = icmp slt i32 %6, 3
br i1 %7, label %8, label %28
8: ; preds = %5
%9 = call i64 (...) @vfork()
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %24
11: ; preds = %8
%12 = load i32, ptr %4, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [3 x ptr], ptr %2, i64 0, i64 %13
%15 = load ptr, ptr %14, align 8
%16 = getelementptr inbounds [2 x ptr], ptr %3, i64 0, i64 0
store ptr %15, ptr %16, align 16
%17 = load i32, ptr %4, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [3 x ptr], ptr %2, i64 0, i64 %18
%20 = load ptr, ptr %19, align 8
%21 = getelementptr inbounds [2 x ptr], ptr %3, i64 0, i64 0
%22 = call i32 @execv(ptr noundef %20, ptr noundef %21)
%23 = call i32 @_exit(i32 noundef 1) #4
unreachable
24: ; preds = %8
br label %25
25: ; preds = %24
%26 = load i32, ptr %4, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %4, align 4
br label %5, !llvm.loop !6
28: ; preds = %5
%29 = call i32 @puts(ptr noundef @.str.4)
%30 = load i32, ptr %1, align 4
ret i32 %30
}
; 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 i64 @vfork(...) #2
declare i32 @execv(ptr noundef, ptr noundef) #2
; Function Attrs: noreturn
declare i32 @_exit(i32 noundef) #3
declare i32 @puts(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" }
attributes #3 = { 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 #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv3qe5fh2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"aa\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"bb\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"cc\00", align 1
@__const.main.exe = private unnamed_addr constant [3 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2], align 16
@.str.3 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@__const.main.argv = private unnamed_addr constant [2 x ptr] [ptr @.str.3, ptr null], align 16
@.str.4 = private unnamed_addr constant [6 x i8] c"hello\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [3 x ptr], align 16
%3 = alloca [2 x ptr], align 16
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.exe, i64 24, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main.argv, i64 16, i1 false)
store i32 0, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = icmp slt i32 %5, 3
br i1 %6, label %.lr.ph, label %29
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %24
%8 = call i64 (...) @vfork()
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %23
10: ; preds = %7
%11 = load i32, ptr %4, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [3 x ptr], ptr %2, i64 0, i64 %12
%14 = load ptr, ptr %13, align 8
%15 = getelementptr inbounds [2 x ptr], ptr %3, i64 0, i64 0
store ptr %14, ptr %15, align 16
%16 = load i32, ptr %4, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [3 x ptr], ptr %2, i64 0, i64 %17
%19 = load ptr, ptr %18, align 8
%20 = getelementptr inbounds [2 x ptr], ptr %3, i64 0, i64 0
%21 = call i32 @execv(ptr noundef %19, ptr noundef %20)
%22 = call i32 @_exit(i32 noundef 1) #4
unreachable
23: ; preds = %7
br label %24
24: ; preds = %23
%25 = load i32, ptr %4, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %4, align 4
%27 = load i32, ptr %4, align 4
%28 = icmp slt i32 %27, 3
br i1 %28, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %29
29: ; preds = %._crit_edge, %0
%30 = call i32 @puts(ptr noundef @.str.4)
%31 = load i32, ptr %1, align 4
ret i32 %31
}
; 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 i64 @vfork(...) #2
declare i32 @execv(ptr noundef, ptr noundef) #2
; Function Attrs: noreturn
declare i32 @_exit(i32 noundef) #3
declare i32 @puts(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" }
attributes #3 = { 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 #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpmp7ziux9.c'
source_filename = "/tmp/tmpmp7ziux9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memcpy(ptr noalias noundef %0, ptr noalias noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%10 = load ptr, ptr %4, align 8
store ptr %10, ptr %7, align 8
%11 = load ptr, ptr %5, align 8
store ptr %11, ptr %8, align 8
store i64 0, ptr %9, align 8
br label %12
12: ; preds = %24, %3
%13 = load i64, ptr %9, align 8
%14 = load i64, ptr %6, align 8
%15 = icmp ult i64 %13, %14
br i1 %15, label %16, label %27
16: ; preds = %12
%17 = load ptr, ptr %8, align 8
%18 = load i64, ptr %9, align 8
%19 = getelementptr inbounds i8, ptr %17, i64 %18
%20 = load i8, ptr %19, align 1
%21 = load ptr, ptr %7, align 8
%22 = load i64, ptr %9, align 8
%23 = getelementptr inbounds i8, ptr %21, i64 %22
store i8 %20, ptr %23, align 1
br label %24
24: ; preds = %16
%25 = load i64, ptr %9, align 8
%26 = add i64 %25, 1
store i64 %26, ptr %9, align 8
br label %12, !llvm.loop !6
27: ; preds = %12
%28 = load ptr, ptr %4, align 8
ret ptr %28
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpmp7ziux9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memcpy(ptr noalias noundef %0, ptr noalias noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%10 = load ptr, ptr %4, align 8
store ptr %10, ptr %7, align 8
%11 = load ptr, ptr %5, align 8
store ptr %11, ptr %8, align 8
store i64 0, ptr %9, align 8
%12 = load i64, ptr %9, align 8
%13 = load i64, ptr %6, align 8
%14 = icmp ult i64 %12, %13
br i1 %14, label %.lr.ph, label %29
.lr.ph: ; preds = %3
br label %15
15: ; preds = %.lr.ph, %23
%16 = load ptr, ptr %8, align 8
%17 = load i64, ptr %9, align 8
%18 = getelementptr inbounds i8, ptr %16, i64 %17
%19 = load i8, ptr %18, align 1
%20 = load ptr, ptr %7, align 8
%21 = load i64, ptr %9, align 8
%22 = getelementptr inbounds i8, ptr %20, i64 %21
store i8 %19, ptr %22, align 1
br label %23
23: ; preds = %15
%24 = load i64, ptr %9, align 8
%25 = add i64 %24, 1
store i64 %25, ptr %9, align 8
%26 = load i64, ptr %9, align 8
%27 = load i64, ptr %6, align 8
%28 = icmp ult i64 %26, %27
br i1 %28, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %29
29: ; preds = %._crit_edge, %3
%30 = load ptr, ptr %4, align 8
ret ptr %30
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpnrg78vf3.c'
source_filename = "/tmp/tmpnrg78vf3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"# c::%s:len=%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"smskrsqrt\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"ok %d benchmark finished\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = call i32 @time(ptr noundef null)
%9 = call i32 @srand(i32 noundef %8)
%10 = call i32 (...) @print_version()
store i32 0, ptr %3, align 4
store i32 1, ptr %6, align 4
br label %11
11: ; preds = %41, %0
%12 = load i32, ptr %6, align 4
%13 = icmp sle i32 %12, 6
br i1 %13, label %14, label %44
14: ; preds = %11
%15 = load i32, ptr %6, align 4
%16 = call i32 @pow(i32 noundef 10, i32 noundef %15)
store i32 %16, ptr %5, align 4
%17 = load i32, ptr %6, align 4
%18 = sub nsw i32 %17, 1
%19 = call i32 @pow(i32 noundef 10, i32 noundef %18)
%20 = sdiv i32 10000000, %19
store i32 %20, ptr %4, align 4
store i32 0, ptr %7, align 4
br label %21
21: ; preds = %37, %14
%22 = load i32, ptr %7, align 4
%23 = icmp slt i32 %22, 3
br i1 %23, label %24, label %40
24: ; preds = %21
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %3, align 4
%27 = load i32, ptr %5, align 4
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef %27)
%29 = load i32, ptr %4, align 4
%30 = load i32, ptr %5, align 4
%31 = call double @benchmark(i32 noundef %29, i32 noundef %30)
store double %31, ptr %2, align 8
%32 = load i32, ptr %4, align 4
%33 = load double, ptr %2, align 8
%34 = call i32 @print_results(i32 noundef %32, double noundef %33)
%35 = load i32, ptr %3, align 4
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %35)
br label %37
37: ; preds = %24
%38 = load i32, ptr %7, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %7, align 4
br label %21, !llvm.loop !6
40: ; preds = %21
br label %41
41: ; preds = %40
%42 = load i32, ptr %6, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %6, align 4
br label %11, !llvm.loop !8
44: ; preds = %11
%45 = load i32, ptr %3, align 4
%46 = load i32, ptr %3, align 4
%47 = call i32 @print_summary(i32 noundef %45, i32 noundef %46)
%48 = load i32, ptr %1, align 4
ret i32 %48
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @print_version(...) #1
declare i32 @pow(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @benchmark(i32 noundef, i32 noundef) #1
declare i32 @print_results(i32 noundef, double noundef) #1
declare i32 @print_summary(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/tmpnrg78vf3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"# c::%s:len=%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"smskrsqrt\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"ok %d benchmark finished\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = call i32 @time(ptr noundef null)
%9 = call i32 @srand(i32 noundef %8)
%10 = call i32 (...) @print_version()
store i32 0, ptr %3, align 4
store i32 1, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp sle i32 %11, 6
br i1 %12, label %.lr.ph2, label %46
.lr.ph2: ; preds = %0
br label %13
13: ; preds = %.lr.ph2, %41
%14 = load i32, ptr %6, align 4
%15 = call i32 @pow(i32 noundef 10, i32 noundef %14)
store i32 %15, ptr %5, align 4
%16 = load i32, ptr %6, align 4
%17 = sub nsw i32 %16, 1
%18 = call i32 @pow(i32 noundef 10, i32 noundef %17)
%19 = sdiv i32 10000000, %18
store i32 %19, ptr %4, align 4
store i32 0, ptr %7, align 4
%20 = load i32, ptr %7, align 4
%21 = icmp slt i32 %20, 3
br i1 %21, label %.lr.ph, label %40
.lr.ph: ; preds = %13
br label %22
22: ; preds = %.lr.ph, %35
%23 = load i32, ptr %3, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %3, align 4
%25 = load i32, ptr %5, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef %25)
%27 = load i32, ptr %4, align 4
%28 = load i32, ptr %5, align 4
%29 = call double @benchmark(i32 noundef %27, i32 noundef %28)
store double %29, ptr %2, align 8
%30 = load i32, ptr %4, align 4
%31 = load double, ptr %2, align 8
%32 = call i32 @print_results(i32 noundef %30, double noundef %31)
%33 = load i32, ptr %3, align 4
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %33)
br label %35
35: ; preds = %22
%36 = load i32, ptr %7, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %7, align 4
%38 = load i32, ptr %7, align 4
%39 = icmp slt i32 %38, 3
br i1 %39, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %35
br label %40
40: ; preds = %._crit_edge, %13
br label %41
41: ; preds = %40
%42 = load i32, ptr %6, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %6, align 4
%44 = load i32, ptr %6, align 4
%45 = icmp sle i32 %44, 6
br i1 %45, label %13, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %41
br label %46
46: ; preds = %._crit_edge3, %0
%47 = load i32, ptr %3, align 4
%48 = load i32, ptr %3, align 4
%49 = call i32 @print_summary(i32 noundef %47, i32 noundef %48)
%50 = load i32, ptr %1, align 4
ret i32 %50
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @print_version(...) #1
declare i32 @pow(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @benchmark(i32 noundef, i32 noundef) #1
declare i32 @print_results(i32 noundef, double noundef) #1
declare i32 @print_summary(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/tmpl96_vf68.c'
source_filename = "/tmp/tmpl96_vf68.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"Enter operation code: \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c" %c\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"Illegal code\0A\00", align 1
@.str.3 = 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 i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
br label %7
7: ; preds = %29, %2
%8 = call i32 @printf(ptr noundef @.str)
%9 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %6)
br label %10
10: ; preds = %14, %7
%11 = call signext i8 (...) @getchar()
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %12, 10
br i1 %13, label %14, label %15
14: ; preds = %10
br label %10, !llvm.loop !6
15: ; preds = %10
%16 = load i8, ptr %6, align 1
%17 = sext i8 %16 to i32
switch i32 %17, label %27 [
i32 105, label %18
i32 115, label %20
i32 117, label %22
i32 112, label %24
i32 113, label %26
]
18: ; preds = %15
%19 = call i32 (...) @insert()
br label %29
20: ; preds = %15
%21 = call i32 (...) @search()
br label %29
22: ; preds = %15
%23 = call i32 (...) @update()
br label %29
24: ; preds = %15
%25 = call i32 (...) @print()
br label %29
26: ; preds = %15
ret i32 0
27: ; preds = %15
%28 = call i32 @printf(ptr noundef @.str.2)
br label %29
29: ; preds = %27, %24, %22, %20, %18
%30 = call i32 @printf(ptr noundef @.str.3)
br label %7
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare signext i8 @getchar(...) #1
declare i32 @insert(...) #1
declare i32 @search(...) #1
declare i32 @update(...) #1
declare i32 @print(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpl96_vf68.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"Enter operation code: \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c" %c\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"Illegal code\0A\00", align 1
@.str.3 = 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 i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
br label %7
7: ; preds = %28, %2
%8 = call i32 @printf(ptr noundef @.str)
%9 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %6)
br label %10
10: ; preds = %10, %7
%11 = call signext i8 (...) @getchar()
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %12, 10
br i1 %13, label %10, label %14, !llvm.loop !6
14: ; preds = %10
%15 = load i8, ptr %6, align 1
%16 = sext i8 %15 to i32
switch i32 %16, label %26 [
i32 105, label %17
i32 115, label %19
i32 117, label %21
i32 112, label %23
i32 113, label %25
]
17: ; preds = %14
%18 = call i32 (...) @insert()
br label %28
19: ; preds = %14
%20 = call i32 (...) @search()
br label %28
21: ; preds = %14
%22 = call i32 (...) @update()
br label %28
23: ; preds = %14
%24 = call i32 (...) @print()
br label %28
25: ; preds = %14
ret i32 0
26: ; preds = %14
%27 = call i32 @printf(ptr noundef @.str.2)
br label %28
28: ; preds = %26, %23, %21, %19, %17
%29 = call i32 @printf(ptr noundef @.str.3)
br label %7
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare signext i8 @getchar(...) #1
declare i32 @insert(...) #1
declare i32 @search(...) #1
declare i32 @update(...) #1
declare i32 @print(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp8w0j1q4w.c'
source_filename = "/tmp/tmp8w0j1q4w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"\09 ___\0A\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"\09/ __|_ _ __ __ ___ ______\0A\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"\09\\__ \\ || / _/ _/ -_|_-<_-<\0A\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"\09|___/\\_,_\\__\\__\\___/__/__/\0A\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"\09\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @test_azap_extAddrToString()
%7 = call i32 (...) @test_stringToAzap_extAddr()
%8 = call i32 (...) @test_azap_byteArrayToString()
%9 = call i32 (...) @test_stringToAzap_byteArray()
%10 = call i32 (...) @test_azap_uint8ArrayToString()
%11 = call i32 (...) @test_azap_uint16ArrayToString()
%12 = call i32 (...) @test_isExtAddrNull()
%13 = call i32 @printf(ptr noundef @.str)
%14 = call i32 @printf(ptr noundef @.str.1)
%15 = call i32 @printf(ptr noundef @.str.2)
%16 = call i32 @printf(ptr noundef @.str.3)
%17 = call i32 @printf(ptr noundef @.str.4)
ret i32 0
}
declare i32 @test_azap_extAddrToString(...) #1
declare i32 @test_stringToAzap_extAddr(...) #1
declare i32 @test_azap_byteArrayToString(...) #1
declare i32 @test_stringToAzap_byteArray(...) #1
declare i32 @test_azap_uint8ArrayToString(...) #1
declare i32 @test_azap_uint16ArrayToString(...) #1
declare i32 @test_isExtAddrNull(...) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8w0j1q4w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"\09 ___\0A\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"\09/ __|_ _ __ __ ___ ______\0A\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"\09\\__ \\ || / _/ _/ -_|_-<_-<\0A\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"\09|___/\\_,_\\__\\__\\___/__/__/\0A\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"\09\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @test_azap_extAddrToString()
%7 = call i32 (...) @test_stringToAzap_extAddr()
%8 = call i32 (...) @test_azap_byteArrayToString()
%9 = call i32 (...) @test_stringToAzap_byteArray()
%10 = call i32 (...) @test_azap_uint8ArrayToString()
%11 = call i32 (...) @test_azap_uint16ArrayToString()
%12 = call i32 (...) @test_isExtAddrNull()
%13 = call i32 @printf(ptr noundef @.str)
%14 = call i32 @printf(ptr noundef @.str.1)
%15 = call i32 @printf(ptr noundef @.str.2)
%16 = call i32 @printf(ptr noundef @.str.3)
%17 = call i32 @printf(ptr noundef @.str.4)
ret i32 0
}
declare i32 @test_azap_extAddrToString(...) #1
declare i32 @test_stringToAzap_extAddr(...) #1
declare i32 @test_azap_byteArrayToString(...) #1
declare i32 @test_stringToAzap_byteArray(...) #1
declare i32 @test_azap_uint8ArrayToString(...) #1
declare i32 @test_azap_uint16ArrayToString(...) #1
declare i32 @test_isExtAddrNull(...) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbiuv5elq.c'
source_filename = "/tmp/tmpbiuv5elq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hw_get_backlight() #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/tmpbiuv5elq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hw_get_backlight() #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/tmpav39v7jm.c'
source_filename = "/tmp/tmpav39v7jm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@EOF = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.2 = 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 i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [9999 x i8], align 16
store i32 0, ptr %1, align 4
br label %7
7: ; preds = %55, %0
%8 = call i64 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
%9 = load i64, ptr @EOF, align 8
%10 = icmp ne i64 %8, %9
br i1 %10, label %11, label %56
11: ; preds = %7
store i32 1, ptr %4, align 4
br label %12
12: ; preds = %52, %11
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr %2, align 4
%15 = icmp sle i32 %13, %14
br i1 %15, label %16, label %55
16: ; preds = %12
store i32 0, ptr %5, align 4
store i32 0, ptr %3, align 4
br label %17
17: ; preds = %46, %16
%18 = load i32, ptr %3, align 4
%19 = icmp slt i32 %18, 9999
br i1 %19, label %20, label %49
20: ; preds = %17
%21 = load i32, ptr %3, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [9999 x i8], ptr %6, i64 0, i64 %22
%24 = call i64 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %23)
%25 = load i32, ptr %3, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [9999 x i8], ptr %6, i64 0, i64 %26
%28 = load i8, ptr %27, align 1
%29 = call i64 @isdigit(i8 noundef signext %28)
%30 = icmp ne i64 %29, 0
br i1 %30, label %31, label %34
31: ; preds = %20
%32 = load i32, ptr %5, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %5, align 4
br label %34
34: ; preds = %31, %20
%35 = load i32, ptr %3, align 4
%36 = icmp sgt i32 %35, 0
br i1 %36, label %37, label %45
37: ; preds = %34
%38 = load i32, ptr %3, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [9999 x i8], ptr %6, i64 0, i64 %39
%41 = load i8, ptr %40, align 1
%42 = sext i8 %41 to i32
%43 = icmp eq i32 %42, 10
br i1 %43, label %44, label %45
44: ; preds = %37
br label %49
45: ; preds = %37, %34
br label %46
46: ; preds = %45
%47 = load i32, ptr %3, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %3, align 4
br label %17, !llvm.loop !6
49: ; preds = %44, %17
%50 = load i32, ptr %5, align 4
%51 = call i32 @printf(ptr noundef @.str.2, i32 noundef %50)
br label %52
52: ; preds = %49
%53 = load i32, ptr %4, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %4, align 4
br label %12, !llvm.loop !8
55: ; preds = %12
br label %7, !llvm.loop !9
56: ; preds = %7
ret i32 0
}
declare i64 @scanf(ptr noundef, ...) #1
declare i64 @isdigit(i8 noundef signext) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpav39v7jm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@EOF = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.2 = 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 i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [9999 x i8], align 16
store i32 0, ptr %1, align 4
%7 = call i64 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
%8 = load i64, ptr @EOF, align 8
%9 = icmp ne i64 %7, %8
br i1 %9, label %.lr.ph3, label %61
.lr.ph3: ; preds = %0
br label %10
10: ; preds = %.lr.ph3, %57
store i32 1, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp sle i32 %11, %12
br i1 %13, label %.lr.ph1, label %57
.lr.ph1: ; preds = %10
br label %14
14: ; preds = %.lr.ph1, %51
store i32 0, ptr %5, align 4
store i32 0, ptr %3, align 4
%15 = load i32, ptr %3, align 4
%16 = icmp slt i32 %15, 9999
br i1 %16, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %14
br label %17
17: ; preds = %.lr.ph, %43
%18 = load i32, ptr %3, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [9999 x i8], ptr %6, i64 0, i64 %19
%21 = call i64 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %20)
%22 = load i32, ptr %3, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [9999 x i8], ptr %6, i64 0, i64 %23
%25 = load i8, ptr %24, align 1
%26 = call i64 @isdigit(i8 noundef signext %25)
%27 = icmp ne i64 %26, 0
br i1 %27, label %28, label %31
28: ; preds = %17
%29 = load i32, ptr %5, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %5, align 4
br label %31
31: ; preds = %28, %17
%32 = load i32, ptr %3, align 4
%33 = icmp sgt i32 %32, 0
br i1 %33, label %34, label %42
34: ; preds = %31
%35 = load i32, ptr %3, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [9999 x i8], ptr %6, i64 0, i64 %36
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %39, 10
br i1 %40, label %41, label %42
41: ; preds = %34
br label %48
42: ; preds = %34, %31
br label %43
43: ; preds = %42
%44 = load i32, ptr %3, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %3, align 4
%46 = load i32, ptr %3, align 4
%47 = icmp slt i32 %46, 9999
br i1 %47, label %17, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %43
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %14
br label %48
48: ; preds = %.loopexit, %41
%49 = load i32, ptr %5, align 4
%50 = call i32 @printf(ptr noundef @.str.2, i32 noundef %49)
br label %51
51: ; preds = %48
%52 = load i32, ptr %4, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %4, align 4
%54 = load i32, ptr %4, align 4
%55 = load i32, ptr %2, align 4
%56 = icmp sle i32 %54, %55
br i1 %56, label %14, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %51
br label %57
57: ; preds = %._crit_edge, %10
%58 = call i64 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
%59 = load i64, ptr @EOF, align 8
%60 = icmp ne i64 %58, %59
br i1 %60, label %10, label %._crit_edge4, !llvm.loop !9
._crit_edge4: ; preds = %57
br label %61
61: ; preds = %._crit_edge4, %0
ret i32 0
}
declare i64 @scanf(ptr noundef, ...) #1
declare i64 @isdigit(i8 noundef signext) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpbjyo3rbx.c'
source_filename = "/tmp/tmpbjyo3rbx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Q_irand(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @irand(i32 noundef %5, i32 noundef %6)
ret i32 %7
}
declare i32 @irand(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/tmpbjyo3rbx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Q_irand(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @irand(i32 noundef %5, i32 noundef %6)
ret i32 %7
}
declare i32 @irand(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/tmpc33vjoo3.c'
source_filename = "/tmp/tmpc33vjoo3.c"
target datalayout = "e-m:e-p270: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/tmpc33vjoo3.c"
target datalayout = "e-m:e-p270: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/tmpnl4az3pg.c'
source_filename = "/tmp/tmpnl4az3pg.c"
target datalayout = "e-m:e-p270: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/tmpnl4az3pg.c"
target datalayout = "e-m:e-p270: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/tmpek7albim.c'
source_filename = "/tmp/tmpek7albim.c"
target datalayout = "e-m:e-p270: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/tmpek7albim.c"
target datalayout = "e-m:e-p270: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/tmp9uc0my2p.c'
source_filename = "/tmp/tmp9uc0my2p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"no options\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [25 x i8] c"unmap processing.. %s.. \00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"ok\0A\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"fail\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 eq i32 %8, 1
br i1 %9, label %10, label %14
10: ; preds = %2
%11 = load i32, ptr @stderr, align 4
%12 = call i32 @fputs(ptr noundef @.str, i32 noundef %11)
%13 = call i32 @exit(i32 noundef 1) #3
unreachable
14: ; preds = %2
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 1, ptr %6, align 4
br label %15
15: ; preds = %39, %14
%16 = load i32, ptr %6, align 4
%17 = load i32, ptr %4, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %42
19: ; preds = %15
%20 = load ptr, ptr %5, align 8
%21 = load i32, ptr %6, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds ptr, ptr %20, i64 %22
%24 = load ptr, ptr %23, align 8
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %24)
%26 = load ptr, ptr %5, align 8
%27 = load i32, ptr %6, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds ptr, ptr %26, i64 %28
%30 = load ptr, ptr %29, align 8
%31 = call i64 @unmap_log_all(ptr noundef %30)
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %35
33: ; preds = %19
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %37
35: ; preds = %19
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %37
37: ; preds = %35, %33
%38 = phi i32 [ %34, %33 ], [ %36, %35 ]
br label %39
39: ; preds = %37
%40 = load i32, ptr %6, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %6, align 4
br label %15, !llvm.loop !6
42: ; preds = %15
%43 = load i32, ptr %3, align 4
ret i32 %43
}
declare i32 @fputs(ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @printf(ptr noundef, ...) #1
declare i64 @unmap_log_all(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmp9uc0my2p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"no options\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [25 x i8] c"unmap processing.. %s.. \00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"ok\0A\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"fail\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 eq i32 %8, 1
br i1 %9, label %10, label %14
10: ; preds = %2
%11 = load i32, ptr @stderr, align 4
%12 = call i32 @fputs(ptr noundef @.str, i32 noundef %11)
%13 = call i32 @exit(i32 noundef 1) #3
unreachable
14: ; preds = %2
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 1, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %.lr.ph, label %44
.lr.ph: ; preds = %14
br label %18
18: ; preds = %.lr.ph, %38
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %6, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds ptr, ptr %19, i64 %21
%23 = load ptr, ptr %22, align 8
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %23)
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %6, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds ptr, ptr %25, i64 %27
%29 = load ptr, ptr %28, align 8
%30 = call i64 @unmap_log_all(ptr noundef %29)
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %18
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %36
34: ; preds = %18
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %36
36: ; preds = %34, %32
%37 = phi i32 [ %33, %32 ], [ %35, %34 ]
br label %38
38: ; preds = %36
%39 = load i32, ptr %6, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %6, align 4
%41 = load i32, ptr %6, align 4
%42 = load i32, ptr %4, align 4
%43 = icmp slt i32 %41, %42
br i1 %43, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %38
br label %44
44: ; preds = %._crit_edge, %14
%45 = load i32, ptr %3, align 4
ret i32 %45
}
declare i32 @fputs(ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @printf(ptr noundef, ...) #1
declare i64 @unmap_log_all(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmp69q93dtx.c'
source_filename = "/tmp/tmp69q93dtx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @B(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 @s(i32 noundef 233, i32 noundef %3)
ret i32 %4
}
declare i32 @s(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/tmp69q93dtx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @B(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 @s(i32 noundef 233, i32 noundef %3)
ret i32 %4
}
declare i32 @s(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/tmpsqdxytzy.c'
source_filename = "/tmp/tmpsqdxytzy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @I2STxDataPutNonBlocking(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store i64 %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%6 = load i64, ptr %4, align 8
%7 = icmp eq i64 %6, 1074085888
%8 = zext i1 %7 to i32
%9 = call i32 @DEBUG_ASSERT(i32 noundef %8)
%10 = load i64, ptr %4, align 8
%11 = add i64 %10, 24
%12 = inttoptr i64 %11 to ptr
%13 = load volatile i64, ptr %12, align 8
%14 = icmp ult i64 %13, 16
br i1 %14, label %15, label %20
15: ; preds = %2
%16 = load i64, ptr %5, align 8
%17 = load i64, ptr %4, align 8
%18 = add i64 %17, 0
%19 = inttoptr i64 %18 to ptr
store volatile i64 %16, ptr %19, align 8
store i64 1, ptr %3, align 8
br label %21
20: ; preds = %2
store i64 0, ptr %3, align 8
br label %21
21: ; preds = %20, %15
%22 = load i64, ptr %3, align 8
ret i64 %22
}
declare i32 @DEBUG_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/tmpsqdxytzy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @I2STxDataPutNonBlocking(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store i64 %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%6 = load i64, ptr %4, align 8
%7 = icmp eq i64 %6, 1074085888
%8 = zext i1 %7 to i32
%9 = call i32 @DEBUG_ASSERT(i32 noundef %8)
%10 = load i64, ptr %4, align 8
%11 = add i64 %10, 24
%12 = inttoptr i64 %11 to ptr
%13 = load volatile i64, ptr %12, align 8
%14 = icmp ult i64 %13, 16
br i1 %14, label %15, label %20
15: ; preds = %2
%16 = load i64, ptr %5, align 8
%17 = load i64, ptr %4, align 8
%18 = add i64 %17, 0
%19 = inttoptr i64 %18 to ptr
store volatile i64 %16, ptr %19, align 8
store i64 1, ptr %3, align 8
br label %21
20: ; preds = %2
store i64 0, ptr %3, align 8
br label %21
21: ; preds = %20, %15
%22 = load i64, ptr %3, align 8
ret i64 %22
}
declare i32 @DEBUG_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/tmp8lna8ob5.c'
source_filename = "/tmp/tmp8lna8ob5.c"
target datalayout = "e-m:e-p270: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/tmp8lna8ob5.c"
target datalayout = "e-m:e-p270: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/tmpg3htrfpc.c'
source_filename = "/tmp/tmpg3htrfpc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.addrinfo = type { i32, i32, i32, i32, i32 }
@AF_UNSPEC = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [17 x i8] c"getaddrinfo: %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"socket\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"connect\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @connect_to(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca %struct.addrinfo, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
call void @llvm.memset.p0.i64(ptr align 4 %7, i8 0, i64 20, i1 false)
store ptr null, ptr %8, align 8
store i32 0, ptr %9, align 4
store i32 -1, ptr %10, align 4
%11 = load i32, ptr @AF_UNSPEC, align 4
%12 = getelementptr inbounds %struct.addrinfo, ptr %7, i32 0, i32 3
store i32 %11, ptr %12, align 4
%13 = load i32, ptr @SOCK_STREAM, align 4
%14 = getelementptr inbounds %struct.addrinfo, ptr %7, i32 0, i32 2
store i32 %13, ptr %14, align 4
%15 = call ptr @alloca(i32 noundef 6)
store ptr %15, ptr %8, align 8
%16 = load ptr, ptr %8, align 8
%17 = load i32, ptr %5, align 4
%18 = call i32 @snprintf(ptr noundef %16, i32 noundef 6, ptr noundef @.str, i32 noundef %17)
%19 = load ptr, ptr %4, align 8
%20 = load ptr, ptr %8, align 8
%21 = call i32 @getaddrinfo(ptr noundef %19, ptr noundef %20, ptr noundef %7, ptr noundef %6)
store i32 %21, ptr %9, align 4
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %28
23: ; preds = %2
%24 = load i32, ptr @stderr, align 4
%25 = load i32, ptr %9, align 4
%26 = call ptr @gai_strerror(i32 noundef %25)
%27 = call i32 @fprintf(i32 noundef %24, ptr noundef @.str.1, ptr noundef %26)
store i32 -1, ptr %3, align 4
br label %59
28: ; preds = %2
%29 = load ptr, ptr %6, align 8
%30 = getelementptr inbounds %struct.addrinfo, ptr %29, i32 0, i32 3
%31 = load i32, ptr %30, align 4
%32 = load ptr, ptr %6, align 8
%33 = getelementptr inbounds %struct.addrinfo, ptr %32, i32 0, i32 2
%34 = load i32, ptr %33, align 4
%35 = call i32 @socket(i32 noundef %31, i32 noundef %34, i32 noundef 0)
store i32 %35, ptr %10, align 4
%36 = icmp slt i32 %35, 0
br i1 %36, label %37, label %41
37: ; preds = %28
%38 = call i32 @perror(ptr noundef @.str.2)
%39 = load ptr, ptr %6, align 8
%40 = call i32 @freeaddrinfo(ptr noundef %39)
store i32 -1, ptr %3, align 4
br label %59
41: ; preds = %28
%42 = load i32, ptr %10, align 4
%43 = load ptr, ptr %6, align 8
%44 = getelementptr inbounds %struct.addrinfo, ptr %43, i32 0, i32 1
%45 = load i32, ptr %44, align 4
%46 = load ptr, ptr %6, align 8
%47 = getelementptr inbounds %struct.addrinfo, ptr %46, i32 0, i32 0
%48 = load i32, ptr %47, align 4
%49 = call i64 @connect(i32 noundef %42, i32 noundef %45, i32 noundef %48)
%50 = icmp slt i64 %49, 0
br i1 %50, label %51, label %55
51: ; preds = %41
%52 = call i32 @perror(ptr noundef @.str.3)
%53 = load ptr, ptr %6, align 8
%54 = call i32 @freeaddrinfo(ptr noundef %53)
store i32 -1, ptr %3, align 4
br label %59
55: ; preds = %41
%56 = load ptr, ptr %6, align 8
%57 = call i32 @freeaddrinfo(ptr noundef %56)
%58 = load i32, ptr %10, align 4
store i32 %58, ptr %3, align 4
br label %59
59: ; preds = %55, %51, %37, %23
%60 = load i32, ptr %3, align 4
ret i32 %60
}
; 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 @alloca(i32 noundef) #2
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #2
declare ptr @gai_strerror(i32 noundef) #2
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #2
declare i32 @perror(ptr noundef) #2
declare i32 @freeaddrinfo(ptr noundef) #2
declare i64 @connect(i32 noundef, i32 noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree 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/tmpg3htrfpc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.addrinfo = type { i32, i32, i32, i32, i32 }
@AF_UNSPEC = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [17 x i8] c"getaddrinfo: %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"socket\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"connect\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @connect_to(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca %struct.addrinfo, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
call void @llvm.memset.p0.i64(ptr align 4 %7, i8 0, i64 20, i1 false)
store ptr null, ptr %8, align 8
store i32 0, ptr %9, align 4
store i32 -1, ptr %10, align 4
%11 = load i32, ptr @AF_UNSPEC, align 4
%12 = getelementptr inbounds %struct.addrinfo, ptr %7, i32 0, i32 3
store i32 %11, ptr %12, align 4
%13 = load i32, ptr @SOCK_STREAM, align 4
%14 = getelementptr inbounds %struct.addrinfo, ptr %7, i32 0, i32 2
store i32 %13, ptr %14, align 4
%15 = call ptr @alloca(i32 noundef 6)
store ptr %15, ptr %8, align 8
%16 = load ptr, ptr %8, align 8
%17 = load i32, ptr %5, align 4
%18 = call i32 @snprintf(ptr noundef %16, i32 noundef 6, ptr noundef @.str, i32 noundef %17)
%19 = load ptr, ptr %4, align 8
%20 = load ptr, ptr %8, align 8
%21 = call i32 @getaddrinfo(ptr noundef %19, ptr noundef %20, ptr noundef %7, ptr noundef %6)
store i32 %21, ptr %9, align 4
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %28
23: ; preds = %2
%24 = load i32, ptr @stderr, align 4
%25 = load i32, ptr %9, align 4
%26 = call ptr @gai_strerror(i32 noundef %25)
%27 = call i32 @fprintf(i32 noundef %24, ptr noundef @.str.1, ptr noundef %26)
store i32 -1, ptr %3, align 4
br label %59
28: ; preds = %2
%29 = load ptr, ptr %6, align 8
%30 = getelementptr inbounds %struct.addrinfo, ptr %29, i32 0, i32 3
%31 = load i32, ptr %30, align 4
%32 = load ptr, ptr %6, align 8
%33 = getelementptr inbounds %struct.addrinfo, ptr %32, i32 0, i32 2
%34 = load i32, ptr %33, align 4
%35 = call i32 @socket(i32 noundef %31, i32 noundef %34, i32 noundef 0)
store i32 %35, ptr %10, align 4
%36 = icmp slt i32 %35, 0
br i1 %36, label %37, label %41
37: ; preds = %28
%38 = call i32 @perror(ptr noundef @.str.2)
%39 = load ptr, ptr %6, align 8
%40 = call i32 @freeaddrinfo(ptr noundef %39)
store i32 -1, ptr %3, align 4
br label %59
41: ; preds = %28
%42 = load i32, ptr %10, align 4
%43 = load ptr, ptr %6, align 8
%44 = getelementptr inbounds %struct.addrinfo, ptr %43, i32 0, i32 1
%45 = load i32, ptr %44, align 4
%46 = load ptr, ptr %6, align 8
%47 = getelementptr inbounds %struct.addrinfo, ptr %46, i32 0, i32 0
%48 = load i32, ptr %47, align 4
%49 = call i64 @connect(i32 noundef %42, i32 noundef %45, i32 noundef %48)
%50 = icmp slt i64 %49, 0
br i1 %50, label %51, label %55
51: ; preds = %41
%52 = call i32 @perror(ptr noundef @.str.3)
%53 = load ptr, ptr %6, align 8
%54 = call i32 @freeaddrinfo(ptr noundef %53)
store i32 -1, ptr %3, align 4
br label %59
55: ; preds = %41
%56 = load ptr, ptr %6, align 8
%57 = call i32 @freeaddrinfo(ptr noundef %56)
%58 = load i32, ptr %10, align 4
store i32 %58, ptr %3, align 4
br label %59
59: ; preds = %55, %51, %37, %23
%60 = load i32, ptr %3, align 4
ret i32 %60
}
; 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 @alloca(i32 noundef) #2
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #2
declare ptr @gai_strerror(i32 noundef) #2
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #2
declare i32 @perror(ptr noundef) #2
declare i32 @freeaddrinfo(ptr noundef) #2
declare i64 @connect(i32 noundef, i32 noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree 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/tmpvdw7849y.c'
source_filename = "/tmp/tmpvdw7849y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @Function2Int64(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %3, align 8
%6 = load i64, ptr %4, align 8
%7 = add nsw i64 %5, %6
ret i64 %7
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvdw7849y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @Function2Int64(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %3, align 8
%6 = load i64, ptr %4, align 8
%7 = add nsw i64 %5, %6
ret i64 %7
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpo2tm0qxi.c'
source_filename = "/tmp/tmpo2tm0qxi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_OK = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [24 x i8] c"Installing the kext...\0A\00", align 1
@.str.1 = private unnamed_addr constant [105 x i8] c"if [ -d \22/System/Library/Extensions/%s\22 ]; then sudo mv \22/System/Library/Extensions/%s\22 ~/Desktop/%s; fi\00", align 1
@.str.2 = private unnamed_addr constant [48 x i8] c"sudo cp -R \22%s\22 \22/System/Library/Extensions/%s\22\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"Installing kext failed!\00", align 1
@.str.4 = private unnamed_addr constant [32 x i8] c"Inaccessible or invalid source.\00", align 1
@.str.5 = private unnamed_addr constant [22 x i8] c"Removing the kext...\0A\00", align 1
@.str.6 = private unnamed_addr constant [24 x i8] c"sudo mv \22%s\22 ~/Desktop/\00", align 1
@.str.7 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.8 = private unnamed_addr constant [23 x i8] c"Fixing permissions...\0A\00", align 1
@.str.9 = private unnamed_addr constant [55 x i8] c"sudo chown -R root:wheel /System/Library/Extensions/%s\00", align 1
@.str.10 = private unnamed_addr constant [54 x i8] c"sudo chown -R root:wheel /System/Library/Extensions/*\00", align 1
@.str.11 = private unnamed_addr constant [26 x i8] c"Fixing permission failed!\00", align 1
@.str.12 = private unnamed_addr constant [21 x i8] c"Rebuilding Cache...\0A\00", align 1
@.str.13 = private unnamed_addr constant [58 x i8] c"sudo touch /S*/L*/Extensions && sudo kextcache -Boot -U /\00", align 1
@.str.14 = private unnamed_addr constant [32 x i8] c"Rebuilding Kernel Cache failed!\00", align 1
@.str.15 = private unnamed_addr constant [7 x i8] c"Done.\0A\00", align 1
@.str.16 = private unnamed_addr constant [21 x i8] c"Invalid Argument(s).\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @kext_admin(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [300 x i8], align 16
%7 = alloca [100 x i8], align 16
%8 = alloca i32, align 4
%9 = alloca i64, align 8
%10 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr %4, align 4
switch i32 %11, label %144 [
i32 41, label %12
i32 42, label %100
i32 43, label %116
i32 44, label %136
]
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = load i32, ptr @F_OK, align 4
%15 = call i32 @access(ptr noundef %13, i32 noundef %14)
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %97
17: ; preds = %12
store i32 0, ptr %8, align 4
%18 = load ptr, ptr %5, align 8
%19 = call i32 @strlen(ptr noundef %18)
%20 = sub nsw i32 %19, 1
%21 = sext i32 %20 to i64
store i64 %21, ptr %9, align 8
%22 = call i32 @printf(ptr noundef @.str)
%23 = load ptr, ptr %5, align 8
%24 = load i64, ptr %9, align 8
%25 = getelementptr inbounds i8, ptr %23, i64 %24
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 47
br i1 %28, label %29, label %35
29: ; preds = %17
%30 = load ptr, ptr %5, align 8
%31 = load i64, ptr %9, align 8
%32 = getelementptr inbounds i8, ptr %30, i64 %31
store i8 0, ptr %32, align 1
%33 = load i64, ptr %9, align 8
%34 = add nsw i64 %33, -1
store i64 %34, ptr %9, align 8
br label %35
35: ; preds = %29, %17
br label %36
36: ; preds = %50, %35
%37 = load i64, ptr %9, align 8
%38 = icmp sge i64 %37, 0
br i1 %38, label %39, label %53
39: ; preds = %36
%40 = load ptr, ptr %5, align 8
%41 = load i64, ptr %9, align 8
%42 = getelementptr inbounds i8, ptr %40, i64 %41
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %44, 47
br i1 %45, label %46, label %47
46: ; preds = %39
br label %53
47: ; preds = %39
%48 = load i32, ptr %8, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %8, align 4
br label %50
50: ; preds = %47
%51 = load i64, ptr %9, align 8
%52 = add nsw i64 %51, -1
store i64 %52, ptr %9, align 8
br label %36, !llvm.loop !6
53: ; preds = %46, %36
%54 = load i64, ptr %9, align 8
%55 = add nsw i64 %54, 1
store i64 %55, ptr %9, align 8
store i32 0, ptr %10, align 4
br label %56
56: ; preds = %71, %53
%57 = load i32, ptr %10, align 4
%58 = load i32, ptr %8, align 4
%59 = icmp slt i32 %57, %58
br i1 %59, label %60, label %74
60: ; preds = %56
%61 = load ptr, ptr %5, align 8
%62 = load i64, ptr %9, align 8
%63 = load i32, ptr %10, align 4
%64 = sext i32 %63 to i64
%65 = add nsw i64 %62, %64
%66 = getelementptr inbounds i8, ptr %61, i64 %65
%67 = load i8, ptr %66, align 1
%68 = load i32, ptr %10, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 %69
store i8 %67, ptr %70, align 1
br label %71
71: ; preds = %60
%72 = load i32, ptr %10, align 4
%73 = add nsw i32 %72, 1
store i32 %73, ptr %10, align 4
br label %56, !llvm.loop !8
74: ; preds = %56
%75 = load i32, ptr %10, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 %76
store i8 0, ptr %77, align 1
%78 = getelementptr inbounds [300 x i8], ptr %6, i64 0, i64 0
%79 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 0
%80 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 0
%81 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 0
%82 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %78, ptr noundef @.str.1, ptr noundef %79, ptr noundef %80, ptr noundef %81)
%83 = getelementptr inbounds [300 x i8], ptr %6, i64 0, i64 0
%84 = call i32 @system(ptr noundef %83)
%85 = getelementptr inbounds [300 x i8], ptr %6, i64 0, i64 0
%86 = load ptr, ptr %5, align 8
%87 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 0
%88 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %85, ptr noundef @.str.2, ptr noundef %86, ptr noundef %87)
%89 = getelementptr inbounds [300 x i8], ptr %6, i64 0, i64 0
%90 = call i32 @system(ptr noundef %89)
%91 = icmp ne i32 %90, 0
br i1 %91, label %92, label %94
92: ; preds = %74
%93 = call i32 @show_error(ptr noundef @.str.3)
store i32 %93, ptr %3, align 4
br label %148
94: ; preds = %74
%95 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 0
%96 = call i32 @kext_admin(i32 noundef 43, ptr noundef %95)
br label %99
97: ; preds = %12
%98 = call i32 @show_error(ptr noundef @.str.4)
store i32 %98, ptr %3, align 4
br label %148
99: ; preds = %94
br label %146
100: ; preds = %2
%101 = load ptr, ptr %5, align 8
%102 = load i32, ptr @F_OK, align 4
%103 = call i32 @access(ptr noundef %101, i32 noundef %102)
%104 = icmp eq i32 %103, 0
br i1 %104, label %105, label %113
105: ; preds = %100
%106 = call i32 @printf(ptr noundef @.str.5)
%107 = getelementptr inbounds [300 x i8], ptr %6, i64 0, i64 0
%108 = load ptr, ptr %5, align 8
%109 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %107, ptr noundef @.str.6, ptr noundef %108)
%110 = getelementptr inbounds [300 x i8], ptr %6, i64 0, i64 0
%111 = call i32 @system(ptr noundef %110)
%112 = call i32 @kext_admin(i32 noundef 44, ptr noundef @.str.7)
br label %115
113: ; preds = %100
%114 = call i32 @show_error(ptr noundef @.str.4)
store i32 %114, ptr %3, align 4
br label %148
115: ; preds = %105
br label %146
116: ; preds = %2
%117 = call i32 @printf(ptr noundef @.str.8)
%118 = load ptr, ptr %5, align 8
%119 = call i32 @strcmp(ptr noundef %118, ptr noundef @.str.7)
%120 = icmp ne i32 %119, 0
br i1 %120, label %121, label %125
121: ; preds = %116
%122 = getelementptr inbounds [300 x i8], ptr %6, i64 0, i64 0
%123 = load ptr, ptr %5, align 8
%124 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %122, ptr noundef @.str.9, ptr noundef %123)
br label %128
125: ; preds = %116
%126 = getelementptr inbounds [300 x i8], ptr %6, i64 0, i64 0
%127 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %126, ptr noundef @.str.10)
br label %128
128: ; preds = %125, %121
%129 = getelementptr inbounds [300 x i8], ptr %6, i64 0, i64 0
%130 = call i32 @system(ptr noundef %129)
%131 = icmp ne i32 %130, 0
br i1 %131, label %132, label %134
132: ; preds = %128
%133 = call i32 @show_error(ptr noundef @.str.11)
store i32 %133, ptr %3, align 4
br label %148
134: ; preds = %128
%135 = call i32 @kext_admin(i32 noundef 44, ptr noundef @.str.7)
br label %146
136: ; preds = %2
%137 = call i32 @printf(ptr noundef @.str.12)
%138 = call i32 @system(ptr noundef @.str.13)
%139 = icmp ne i32 %138, 0
br i1 %139, label %140, label %142
140: ; preds = %136
%141 = call i32 @show_error(ptr noundef @.str.14)
store i32 %141, ptr %3, align 4
br label %148
142: ; preds = %136
%143 = call i32 @printf(ptr noundef @.str.15)
br label %146
144: ; preds = %2
%145 = call i32 @show_error(ptr noundef @.str.16)
store i32 %145, ptr %3, align 4
br label %148
146: ; preds = %142, %134, %115, %99
%147 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %147, ptr %3, align 4
br label %148
148: ; preds = %146, %144, %140, %132, %113, %97, %92
%149 = load i32, ptr %3, align 4
ret i32 %149
}
declare i32 @access(ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #1
declare i32 @system(ptr noundef) #1
declare i32 @show_error(ptr noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo2tm0qxi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_OK = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [24 x i8] c"Installing the kext...\0A\00", align 1
@.str.1 = private unnamed_addr constant [105 x i8] c"if [ -d \22/System/Library/Extensions/%s\22 ]; then sudo mv \22/System/Library/Extensions/%s\22 ~/Desktop/%s; fi\00", align 1
@.str.2 = private unnamed_addr constant [48 x i8] c"sudo cp -R \22%s\22 \22/System/Library/Extensions/%s\22\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"Installing kext failed!\00", align 1
@.str.4 = private unnamed_addr constant [32 x i8] c"Inaccessible or invalid source.\00", align 1
@.str.5 = private unnamed_addr constant [22 x i8] c"Removing the kext...\0A\00", align 1
@.str.6 = private unnamed_addr constant [24 x i8] c"sudo mv \22%s\22 ~/Desktop/\00", align 1
@.str.7 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.8 = private unnamed_addr constant [23 x i8] c"Fixing permissions...\0A\00", align 1
@.str.9 = private unnamed_addr constant [55 x i8] c"sudo chown -R root:wheel /System/Library/Extensions/%s\00", align 1
@.str.10 = private unnamed_addr constant [54 x i8] c"sudo chown -R root:wheel /System/Library/Extensions/*\00", align 1
@.str.11 = private unnamed_addr constant [26 x i8] c"Fixing permission failed!\00", align 1
@.str.12 = private unnamed_addr constant [21 x i8] c"Rebuilding Cache...\0A\00", align 1
@.str.13 = private unnamed_addr constant [58 x i8] c"sudo touch /S*/L*/Extensions && sudo kextcache -Boot -U /\00", align 1
@.str.14 = private unnamed_addr constant [32 x i8] c"Rebuilding Kernel Cache failed!\00", align 1
@.str.15 = private unnamed_addr constant [7 x i8] c"Done.\0A\00", align 1
@.str.16 = private unnamed_addr constant [21 x i8] c"Invalid Argument(s).\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @kext_admin(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [300 x i8], align 16
%7 = alloca [100 x i8], align 16
%8 = alloca i32, align 4
%9 = alloca i64, align 8
%10 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr %4, align 4
switch i32 %11, label %147 [
i32 41, label %12
i32 42, label %103
i32 43, label %119
i32 44, label %139
]
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = load i32, ptr @F_OK, align 4
%15 = call i32 @access(ptr noundef %13, i32 noundef %14)
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %100
17: ; preds = %12
store i32 0, ptr %8, align 4
%18 = load ptr, ptr %5, align 8
%19 = call i32 @strlen(ptr noundef %18)
%20 = sub nsw i32 %19, 1
%21 = sext i32 %20 to i64
store i64 %21, ptr %9, align 8
%22 = call i32 @printf(ptr noundef @.str)
%23 = load ptr, ptr %5, align 8
%24 = load i64, ptr %9, align 8
%25 = getelementptr inbounds i8, ptr %23, i64 %24
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 47
br i1 %28, label %29, label %35
29: ; preds = %17
%30 = load ptr, ptr %5, align 8
%31 = load i64, ptr %9, align 8
%32 = getelementptr inbounds i8, ptr %30, i64 %31
store i8 0, ptr %32, align 1
%33 = load i64, ptr %9, align 8
%34 = add nsw i64 %33, -1
store i64 %34, ptr %9, align 8
br label %35
35: ; preds = %29, %17
%36 = load i64, ptr %9, align 8
%37 = icmp sge i64 %36, 0
br i1 %37, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %35
br label %38
38: ; preds = %.lr.ph, %49
%39 = load ptr, ptr %5, align 8
%40 = load i64, ptr %9, align 8
%41 = getelementptr inbounds i8, ptr %39, i64 %40
%42 = load i8, ptr %41, align 1
%43 = sext i8 %42 to i32
%44 = icmp eq i32 %43, 47
br i1 %44, label %45, label %46
45: ; preds = %38
br label %54
46: ; preds = %38
%47 = load i32, ptr %8, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %8, align 4
br label %49
49: ; preds = %46
%50 = load i64, ptr %9, align 8
%51 = add nsw i64 %50, -1
store i64 %51, ptr %9, align 8
%52 = load i64, ptr %9, align 8
%53 = icmp sge i64 %52, 0
br i1 %53, label %38, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %49
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %35
br label %54
54: ; preds = %.loopexit, %45
%55 = load i64, ptr %9, align 8
%56 = add nsw i64 %55, 1
store i64 %56, ptr %9, align 8
store i32 0, ptr %10, align 4
%57 = load i32, ptr %10, align 4
%58 = load i32, ptr %8, align 4
%59 = icmp slt i32 %57, %58
br i1 %59, label %.lr.ph1, label %77
.lr.ph1: ; preds = %54
br label %60
60: ; preds = %.lr.ph1, %71
%61 = load ptr, ptr %5, align 8
%62 = load i64, ptr %9, align 8
%63 = load i32, ptr %10, align 4
%64 = sext i32 %63 to i64
%65 = add nsw i64 %62, %64
%66 = getelementptr inbounds i8, ptr %61, i64 %65
%67 = load i8, ptr %66, align 1
%68 = load i32, ptr %10, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 %69
store i8 %67, ptr %70, align 1
br label %71
71: ; preds = %60
%72 = load i32, ptr %10, align 4
%73 = add nsw i32 %72, 1
store i32 %73, ptr %10, align 4
%74 = load i32, ptr %10, align 4
%75 = load i32, ptr %8, align 4
%76 = icmp slt i32 %74, %75
br i1 %76, label %60, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %71
br label %77
77: ; preds = %._crit_edge, %54
%78 = load i32, ptr %10, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 %79
store i8 0, ptr %80, align 1
%81 = getelementptr inbounds [300 x i8], ptr %6, i64 0, i64 0
%82 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 0
%83 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 0
%84 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 0
%85 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %81, ptr noundef @.str.1, ptr noundef %82, ptr noundef %83, ptr noundef %84)
%86 = getelementptr inbounds [300 x i8], ptr %6, i64 0, i64 0
%87 = call i32 @system(ptr noundef %86)
%88 = getelementptr inbounds [300 x i8], ptr %6, i64 0, i64 0
%89 = load ptr, ptr %5, align 8
%90 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 0
%91 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %88, ptr noundef @.str.2, ptr noundef %89, ptr noundef %90)
%92 = getelementptr inbounds [300 x i8], ptr %6, i64 0, i64 0
%93 = call i32 @system(ptr noundef %92)
%94 = icmp ne i32 %93, 0
br i1 %94, label %95, label %97
95: ; preds = %77
%96 = call i32 @show_error(ptr noundef @.str.3)
store i32 %96, ptr %3, align 4
br label %151
97: ; preds = %77
%98 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 0
%99 = call i32 @kext_admin(i32 noundef 43, ptr noundef %98)
br label %102
100: ; preds = %12
%101 = call i32 @show_error(ptr noundef @.str.4)
store i32 %101, ptr %3, align 4
br label %151
102: ; preds = %97
br label %149
103: ; preds = %2
%104 = load ptr, ptr %5, align 8
%105 = load i32, ptr @F_OK, align 4
%106 = call i32 @access(ptr noundef %104, i32 noundef %105)
%107 = icmp eq i32 %106, 0
br i1 %107, label %108, label %116
108: ; preds = %103
%109 = call i32 @printf(ptr noundef @.str.5)
%110 = getelementptr inbounds [300 x i8], ptr %6, i64 0, i64 0
%111 = load ptr, ptr %5, align 8
%112 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %110, ptr noundef @.str.6, ptr noundef %111)
%113 = getelementptr inbounds [300 x i8], ptr %6, i64 0, i64 0
%114 = call i32 @system(ptr noundef %113)
%115 = call i32 @kext_admin(i32 noundef 44, ptr noundef @.str.7)
br label %118
116: ; preds = %103
%117 = call i32 @show_error(ptr noundef @.str.4)
store i32 %117, ptr %3, align 4
br label %151
118: ; preds = %108
br label %149
119: ; preds = %2
%120 = call i32 @printf(ptr noundef @.str.8)
%121 = load ptr, ptr %5, align 8
%122 = call i32 @strcmp(ptr noundef %121, ptr noundef @.str.7)
%123 = icmp ne i32 %122, 0
br i1 %123, label %124, label %128
124: ; preds = %119
%125 = getelementptr inbounds [300 x i8], ptr %6, i64 0, i64 0
%126 = load ptr, ptr %5, align 8
%127 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %125, ptr noundef @.str.9, ptr noundef %126)
br label %131
128: ; preds = %119
%129 = getelementptr inbounds [300 x i8], ptr %6, i64 0, i64 0
%130 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %129, ptr noundef @.str.10)
br label %131
131: ; preds = %128, %124
%132 = getelementptr inbounds [300 x i8], ptr %6, i64 0, i64 0
%133 = call i32 @system(ptr noundef %132)
%134 = icmp ne i32 %133, 0
br i1 %134, label %135, label %137
135: ; preds = %131
%136 = call i32 @show_error(ptr noundef @.str.11)
store i32 %136, ptr %3, align 4
br label %151
137: ; preds = %131
%138 = call i32 @kext_admin(i32 noundef 44, ptr noundef @.str.7)
br label %149
139: ; preds = %2
%140 = call i32 @printf(ptr noundef @.str.12)
%141 = call i32 @system(ptr noundef @.str.13)
%142 = icmp ne i32 %141, 0
br i1 %142, label %143, label %145
143: ; preds = %139
%144 = call i32 @show_error(ptr noundef @.str.14)
store i32 %144, ptr %3, align 4
br label %151
145: ; preds = %139
%146 = call i32 @printf(ptr noundef @.str.15)
br label %149
147: ; preds = %2
%148 = call i32 @show_error(ptr noundef @.str.16)
store i32 %148, ptr %3, align 4
br label %151
149: ; preds = %145, %137, %118, %102
%150 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %150, ptr %3, align 4
br label %151
151: ; preds = %149, %147, %143, %135, %116, %100, %95
%152 = load i32, ptr %3, align 4
ret i32 %152
}
declare i32 @access(ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #1
declare i32 @system(ptr noundef) #1
declare i32 @show_error(ptr noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp7gatga_s.c'
source_filename = "/tmp/tmp7gatga_s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @add_command_list_brcommand(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [500 x i8], align 16
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%7 = getelementptr inbounds [500 x i8], ptr %3, i64 0, i64 0
%8 = load ptr, ptr %2, align 8
%9 = call i32 @strcpy(ptr noundef %7, ptr noundef %8)
%10 = getelementptr inbounds [500 x i8], ptr %3, i64 0, i64 0
store ptr %10, ptr %5, align 8
br label %11
11: ; preds = %37, %1
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds i8, ptr %12, i64 1
%14 = call ptr @strchr(ptr noundef %13, i8 noundef signext 45)
store ptr %14, ptr %4, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %16, label %41
16: ; preds = %11
%17 = load ptr, ptr %4, align 8
%18 = getelementptr inbounds [500 x i8], ptr %3, i64 0, i64 0
%19 = getelementptr inbounds i8, ptr %18, i64 1
%20 = icmp ugt ptr %17, %19
br i1 %20, label %21, label %37
21: ; preds = %16
%22 = load ptr, ptr %4, align 8
%23 = getelementptr inbounds i8, ptr %22, i64 -1
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %25, 32
br i1 %26, label %33, label %27
27: ; preds = %21
%28 = load ptr, ptr %4, align 8
%29 = getelementptr inbounds i8, ptr %28, i64 -1
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 9
br i1 %32, label %33, label %36
33: ; preds = %27, %21
%34 = load ptr, ptr %4, align 8
%35 = getelementptr inbounds i8, ptr %34, i64 -1
store i8 0, ptr %35, align 1
br label %36
36: ; preds = %33, %27
br label %37
37: ; preds = %36, %16
%38 = load ptr, ptr %5, align 8
%39 = call i32 @add_command_list_brcommand_sub(ptr noundef %38)
%40 = load ptr, ptr %4, align 8
store ptr %40, ptr %5, align 8
br label %11, !llvm.loop !6
41: ; preds = %11
%42 = load ptr, ptr %5, align 8
%43 = call i32 @add_command_list_brcommand_sub(ptr noundef %42)
%44 = load i32, ptr %6, align 4
ret i32 %44
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @add_command_list_brcommand_sub(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp7gatga_s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @add_command_list_brcommand(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [500 x i8], align 16
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%7 = getelementptr inbounds [500 x i8], ptr %3, i64 0, i64 0
%8 = load ptr, ptr %2, align 8
%9 = call i32 @strcpy(ptr noundef %7, ptr noundef %8)
%10 = getelementptr inbounds [500 x i8], ptr %3, i64 0, i64 0
store ptr %10, ptr %5, align 8
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 1
%13 = call ptr @strchr(ptr noundef %12, i8 noundef signext 45)
store ptr %13, ptr %4, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %.lr.ph, label %44
.lr.ph: ; preds = %1
br label %15
15: ; preds = %.lr.ph, %36
%16 = load ptr, ptr %4, align 8
%17 = getelementptr inbounds [500 x i8], ptr %3, i64 0, i64 0
%18 = getelementptr inbounds i8, ptr %17, i64 1
%19 = icmp ugt ptr %16, %18
br i1 %19, label %20, label %36
20: ; preds = %15
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 -1
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 32
br i1 %25, label %32, label %26
26: ; preds = %20
%27 = load ptr, ptr %4, align 8
%28 = getelementptr inbounds i8, ptr %27, i64 -1
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 9
br i1 %31, label %32, label %35
32: ; preds = %26, %20
%33 = load ptr, ptr %4, align 8
%34 = getelementptr inbounds i8, ptr %33, i64 -1
store i8 0, ptr %34, align 1
br label %35
35: ; preds = %32, %26
br label %36
36: ; preds = %35, %15
%37 = load ptr, ptr %5, align 8
%38 = call i32 @add_command_list_brcommand_sub(ptr noundef %37)
%39 = load ptr, ptr %4, align 8
store ptr %39, ptr %5, align 8
%40 = load ptr, ptr %5, align 8
%41 = getelementptr inbounds i8, ptr %40, i64 1
%42 = call ptr @strchr(ptr noundef %41, i8 noundef signext 45)
store ptr %42, ptr %4, align 8
%43 = icmp ne ptr %42, null
br i1 %43, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %36
br label %44
44: ; preds = %._crit_edge, %1
%45 = load ptr, ptr %5, align 8
%46 = call i32 @add_command_list_brcommand_sub(ptr noundef %45)
%47 = load i32, ptr %6, align 4
ret i32 %47
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @add_command_list_brcommand_sub(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpujr53tqk.c'
source_filename = "/tmp/tmpujr53tqk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Number of twin prime pairs less than %d is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test(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 = call i32 @countTwinPrimes(i32 noundef %4)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %3, align 4
%8 = call i32 @printf(ptr noundef @.str, i32 noundef %6, i32 noundef %7)
ret void
}
declare i32 @countTwinPrimes(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpujr53tqk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Number of twin prime pairs less than %d is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test(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 = call i32 @countTwinPrimes(i32 noundef %4)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %3, align 4
%8 = call i32 @printf(ptr noundef @.str, i32 noundef %6, i32 noundef %7)
ret void
}
declare i32 @countTwinPrimes(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpj33vj3qa.c'
source_filename = "/tmp/tmpj33vj3qa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_SET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @gpioReadValue(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr @SEEK_SET, align 4
%11 = call i64 @lseek(i32 noundef %9, i32 noundef 0, i32 noundef %10)
%12 = icmp slt i64 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %3
store i32 0, ptr %4, align 4
br label %44
14: ; preds = %3
%15 = load i32, ptr %5, align 4
%16 = load ptr, ptr %6, align 8
%17 = load i32, ptr %7, align 4
%18 = call i32 @read(i32 noundef %15, ptr noundef %16, i32 noundef %17)
store i32 %18, ptr %8, align 4
%19 = load i32, ptr %8, align 4
%20 = icmp sgt i32 %19, 1
br i1 %20, label %21, label %42
21: ; preds = %14
%22 = load ptr, ptr %6, align 8
%23 = load i32, ptr %8, align 4
%24 = sub nsw i32 %23, 1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %22, i64 %25
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp eq i32 %28, 10
br i1 %29, label %30, label %36
30: ; preds = %21
%31 = load ptr, ptr %6, align 8
%32 = load i32, ptr %8, align 4
%33 = sub nsw i32 %32, 1
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %31, i64 %34
store i8 0, ptr %35, align 1
br label %41
36: ; preds = %21
%37 = load ptr, ptr %6, align 8
%38 = load i32, ptr %8, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8, ptr %37, i64 %39
store i8 0, ptr %40, align 1
br label %41
41: ; preds = %36, %30
br label %42
42: ; preds = %41, %14
%43 = load i32, ptr %8, align 4
store i32 %43, ptr %4, align 4
br label %44
44: ; preds = %42, %13
%45 = load i32, ptr %4, align 4
ret i32 %45
}
declare i64 @lseek(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj33vj3qa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_SET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @gpioReadValue(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr @SEEK_SET, align 4
%11 = call i64 @lseek(i32 noundef %9, i32 noundef 0, i32 noundef %10)
%12 = icmp slt i64 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %3
store i32 0, ptr %4, align 4
br label %44
14: ; preds = %3
%15 = load i32, ptr %5, align 4
%16 = load ptr, ptr %6, align 8
%17 = load i32, ptr %7, align 4
%18 = call i32 @read(i32 noundef %15, ptr noundef %16, i32 noundef %17)
store i32 %18, ptr %8, align 4
%19 = load i32, ptr %8, align 4
%20 = icmp sgt i32 %19, 1
br i1 %20, label %21, label %42
21: ; preds = %14
%22 = load ptr, ptr %6, align 8
%23 = load i32, ptr %8, align 4
%24 = sub nsw i32 %23, 1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %22, i64 %25
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp eq i32 %28, 10
br i1 %29, label %30, label %36
30: ; preds = %21
%31 = load ptr, ptr %6, align 8
%32 = load i32, ptr %8, align 4
%33 = sub nsw i32 %32, 1
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %31, i64 %34
store i8 0, ptr %35, align 1
br label %41
36: ; preds = %21
%37 = load ptr, ptr %6, align 8
%38 = load i32, ptr %8, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8, ptr %37, i64 %39
store i8 0, ptr %40, align 1
br label %41
41: ; preds = %36, %30
br label %42
42: ; preds = %41, %14
%43 = load i32, ptr %8, align 4
store i32 %43, ptr %4, align 4
br label %44
44: ; preds = %42, %13
%45 = load i32, ptr %4, align 4
ret i32 %45
}
declare i64 @lseek(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2fjclcx2.c'
source_filename = "/tmp/tmp2fjclcx2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [39 x i8] c"Number of arguments from the user: %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"* Argument nr %d is '%s'\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
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 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %7)
store i32 0, ptr %6, align 4
br label %9
9: ; preds = %21, %2
%10 = load i32, ptr %6, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %24
13: ; preds = %9
%14 = load i32, ptr %6, align 4
%15 = load ptr, ptr %5, align 8
%16 = load i32, ptr %6, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds ptr, ptr %15, i64 %17
%19 = load ptr, ptr %18, align 8
%20 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %14, ptr noundef %19)
br label %21
21: ; preds = %13
%22 = load i32, ptr %6, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %6, align 4
br label %9, !llvm.loop !6
24: ; preds = %9
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2fjclcx2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [39 x i8] c"Number of arguments from the user: %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"* Argument nr %d is '%s'\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
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 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %7)
store i32 0, ptr %6, align 4
%9 = load i32, ptr %6, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph, label %26
.lr.ph: ; preds = %2
br label %12
12: ; preds = %.lr.ph, %20
%13 = load i32, ptr %6, align 4
%14 = load ptr, ptr %5, align 8
%15 = load i32, ptr %6, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds ptr, ptr %14, i64 %16
%18 = load ptr, ptr %17, align 8
%19 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %13, ptr noundef %18)
br label %20
20: ; preds = %12
%21 = load i32, ptr %6, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %6, align 4
%23 = load i32, ptr %6, align 4
%24 = load i32, ptr %4, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %26
26: ; preds = %._crit_edge, %2
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpyoosfku_.c'
source_filename = "/tmp/tmpyoosfku_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Cyc_Tcutil_is_strict_arithmetic_type(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @Cyc_Tcutil_is_any_int_type(ptr noundef %5)
store i32 %6, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, 0
br i1 %8, label %10, label %9
9: ; preds = %1
br label %11
10: ; preds = %1
store i32 1, ptr %3, align 4
br label %14
11: ; preds = %9
%12 = load ptr, ptr %2, align 8
%13 = call i32 @Cyc_Tcutil_is_any_float_type(ptr noundef %12)
store i32 %13, ptr %3, align 4
br label %14
14: ; preds = %11, %10
%15 = load i32, ptr %3, align 4
ret i32 %15
}
declare i32 @Cyc_Tcutil_is_any_int_type(ptr noundef) #1
declare i32 @Cyc_Tcutil_is_any_float_type(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyoosfku_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Cyc_Tcutil_is_strict_arithmetic_type(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @Cyc_Tcutil_is_any_int_type(ptr noundef %5)
store i32 %6, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, 0
br i1 %8, label %10, label %9
9: ; preds = %1
br label %11
10: ; preds = %1
store i32 1, ptr %3, align 4
br label %14
11: ; preds = %9
%12 = load ptr, ptr %2, align 8
%13 = call i32 @Cyc_Tcutil_is_any_float_type(ptr noundef %12)
store i32 %13, ptr %3, align 4
br label %14
14: ; preds = %11, %10
%15 = load i32, ptr %3, align 4
ret i32 %15
}
declare i32 @Cyc_Tcutil_is_any_int_type(ptr noundef) #1
declare i32 @Cyc_Tcutil_is_any_float_type(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbywxfwij.c'
source_filename = "/tmp/tmpbywxfwij.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gb_float33_mul(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca [3 x [3 x float]], align 16
%10 = alloca [3 x [3 x float]], align 16
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%11 = load ptr, ptr %5, align 8
%12 = load ptr, ptr %4, align 8
%13 = icmp eq ptr %11, %12
br i1 %13, label %14, label %19
14: ; preds = %3
%15 = getelementptr inbounds [3 x [3 x float]], ptr %9, i64 0, i64 0
%16 = load ptr, ptr %5, align 8
%17 = call i32 @gb__memcpy_4byte(ptr noundef %15, ptr noundef %16, i32 noundef 36)
%18 = getelementptr inbounds [3 x [3 x float]], ptr %9, i64 0, i64 0
store ptr %18, ptr %5, align 8
br label %19
19: ; preds = %14, %3
%20 = load ptr, ptr %6, align 8
%21 = load ptr, ptr %4, align 8
%22 = icmp eq ptr %20, %21
br i1 %22, label %23, label %28
23: ; preds = %19
%24 = getelementptr inbounds [3 x [3 x float]], ptr %10, i64 0, i64 0
%25 = load ptr, ptr %6, align 8
%26 = call i32 @gb__memcpy_4byte(ptr noundef %24, ptr noundef %25, i32 noundef 36)
%27 = getelementptr inbounds [3 x [3 x float]], ptr %10, i64 0, i64 0
store ptr %27, ptr %6, align 8
br label %28
28: ; preds = %23, %19
store i32 0, ptr %8, align 4
br label %29
29: ; preds = %87, %28
%30 = load i32, ptr %8, align 4
%31 = icmp slt i32 %30, 3
br i1 %31, label %32, label %90
32: ; preds = %29
store i32 0, ptr %7, align 4
br label %33
33: ; preds = %83, %32
%34 = load i32, ptr %7, align 4
%35 = icmp slt i32 %34, 3
br i1 %35, label %36, label %86
36: ; preds = %33
%37 = load ptr, ptr %5, align 8
%38 = getelementptr inbounds [3 x float], ptr %37, i64 0
%39 = load i32, ptr %7, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [3 x float], ptr %38, i64 0, i64 %40
%42 = load float, ptr %41, align 4
%43 = load ptr, ptr %6, align 8
%44 = load i32, ptr %8, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [3 x float], ptr %43, i64 %45
%47 = getelementptr inbounds [3 x float], ptr %46, i64 0, i64 0
%48 = load float, ptr %47, align 4
%49 = load ptr, ptr %5, align 8
%50 = getelementptr inbounds [3 x float], ptr %49, i64 1
%51 = load i32, ptr %7, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [3 x float], ptr %50, i64 0, i64 %52
%54 = load float, ptr %53, align 4
%55 = load ptr, ptr %6, align 8
%56 = load i32, ptr %8, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [3 x float], ptr %55, i64 %57
%59 = getelementptr inbounds [3 x float], ptr %58, i64 0, i64 1
%60 = load float, ptr %59, align 4
%61 = fmul float %54, %60
%62 = call float @llvm.fmuladd.f32(float %42, float %48, float %61)
%63 = load ptr, ptr %5, align 8
%64 = getelementptr inbounds [3 x float], ptr %63, i64 2
%65 = load i32, ptr %7, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [3 x float], ptr %64, i64 0, i64 %66
%68 = load float, ptr %67, align 4
%69 = load ptr, ptr %6, align 8
%70 = load i32, ptr %8, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [3 x float], ptr %69, i64 %71
%73 = getelementptr inbounds [3 x float], ptr %72, i64 0, i64 2
%74 = load float, ptr %73, align 4
%75 = call float @llvm.fmuladd.f32(float %68, float %74, float %62)
%76 = load ptr, ptr %4, align 8
%77 = load i32, ptr %8, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [3 x float], ptr %76, i64 %78
%80 = load i32, ptr %7, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [3 x float], ptr %79, i64 0, i64 %81
store float %75, ptr %82, align 4
br label %83
83: ; preds = %36
%84 = load i32, ptr %7, align 4
%85 = add nsw i32 %84, 1
store i32 %85, ptr %7, align 4
br label %33, !llvm.loop !6
86: ; preds = %33
br label %87
87: ; preds = %86
%88 = load i32, ptr %8, align 4
%89 = add nsw i32 %88, 1
store i32 %89, ptr %8, align 4
br label %29, !llvm.loop !8
90: ; preds = %29
ret void
}
declare i32 @gb__memcpy_4byte(ptr noundef, ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbywxfwij.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gb_float33_mul(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca [3 x [3 x float]], align 16
%10 = alloca [3 x [3 x float]], align 16
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%11 = load ptr, ptr %5, align 8
%12 = load ptr, ptr %4, align 8
%13 = icmp eq ptr %11, %12
br i1 %13, label %14, label %19
14: ; preds = %3
%15 = getelementptr inbounds [3 x [3 x float]], ptr %9, i64 0, i64 0
%16 = load ptr, ptr %5, align 8
%17 = call i32 @gb__memcpy_4byte(ptr noundef %15, ptr noundef %16, i32 noundef 36)
%18 = getelementptr inbounds [3 x [3 x float]], ptr %9, i64 0, i64 0
store ptr %18, ptr %5, align 8
br label %19
19: ; preds = %14, %3
%20 = load ptr, ptr %6, align 8
%21 = load ptr, ptr %4, align 8
%22 = icmp eq ptr %20, %21
br i1 %22, label %23, label %28
23: ; preds = %19
%24 = getelementptr inbounds [3 x [3 x float]], ptr %10, i64 0, i64 0
%25 = load ptr, ptr %6, align 8
%26 = call i32 @gb__memcpy_4byte(ptr noundef %24, ptr noundef %25, i32 noundef 36)
%27 = getelementptr inbounds [3 x [3 x float]], ptr %10, i64 0, i64 0
store ptr %27, ptr %6, align 8
br label %28
28: ; preds = %23, %19
store i32 0, ptr %8, align 4
%29 = load i32, ptr %8, align 4
%30 = icmp slt i32 %29, 3
br i1 %30, label %.lr.ph2, label %92
.lr.ph2: ; preds = %28
br label %31
31: ; preds = %.lr.ph2, %87
store i32 0, ptr %7, align 4
%32 = load i32, ptr %7, align 4
%33 = icmp slt i32 %32, 3
br i1 %33, label %.lr.ph, label %86
.lr.ph: ; preds = %31
br label %34
34: ; preds = %.lr.ph, %81
%35 = load ptr, ptr %5, align 8
%36 = getelementptr inbounds [3 x float], ptr %35, i64 0
%37 = load i32, ptr %7, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [3 x float], ptr %36, i64 0, i64 %38
%40 = load float, ptr %39, align 4
%41 = load ptr, ptr %6, align 8
%42 = load i32, ptr %8, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [3 x float], ptr %41, i64 %43
%45 = getelementptr inbounds [3 x float], ptr %44, i64 0, i64 0
%46 = load float, ptr %45, align 4
%47 = load ptr, ptr %5, align 8
%48 = getelementptr inbounds [3 x float], ptr %47, i64 1
%49 = load i32, ptr %7, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [3 x float], ptr %48, i64 0, i64 %50
%52 = load float, ptr %51, align 4
%53 = load ptr, ptr %6, align 8
%54 = load i32, ptr %8, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [3 x float], ptr %53, i64 %55
%57 = getelementptr inbounds [3 x float], ptr %56, i64 0, i64 1
%58 = load float, ptr %57, align 4
%59 = fmul float %52, %58
%60 = call float @llvm.fmuladd.f32(float %40, float %46, float %59)
%61 = load ptr, ptr %5, align 8
%62 = getelementptr inbounds [3 x float], ptr %61, i64 2
%63 = load i32, ptr %7, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [3 x float], ptr %62, i64 0, i64 %64
%66 = load float, ptr %65, align 4
%67 = load ptr, ptr %6, align 8
%68 = load i32, ptr %8, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [3 x float], ptr %67, i64 %69
%71 = getelementptr inbounds [3 x float], ptr %70, i64 0, i64 2
%72 = load float, ptr %71, align 4
%73 = call float @llvm.fmuladd.f32(float %66, float %72, float %60)
%74 = load ptr, ptr %4, align 8
%75 = load i32, ptr %8, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [3 x float], ptr %74, i64 %76
%78 = load i32, ptr %7, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [3 x float], ptr %77, i64 0, i64 %79
store float %73, ptr %80, align 4
br label %81
81: ; preds = %34
%82 = load i32, ptr %7, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %7, align 4
%84 = load i32, ptr %7, align 4
%85 = icmp slt i32 %84, 3
br i1 %85, label %34, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %81
br label %86
86: ; preds = %._crit_edge, %31
br label %87
87: ; preds = %86
%88 = load i32, ptr %8, align 4
%89 = add nsw i32 %88, 1
store i32 %89, ptr %8, align 4
%90 = load i32, ptr %8, align 4
%91 = icmp slt i32 %90, 3
br i1 %91, label %31, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %87
br label %92
92: ; preds = %._crit_edge3, %28
ret void
}
declare i32 @gb__memcpy_4byte(ptr noundef, ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp8ufp71xg.c'
source_filename = "/tmp/tmp8ufp71xg.c"
target datalayout = "e-m:e-p270: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/tmp8ufp71xg.c"
target datalayout = "e-m:e-p270: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/tmpiftjmokw.c'
source_filename = "/tmp/tmpiftjmokw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_Z7swhypotff(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
store float %0, ptr %3, align 4
store float %1, ptr %4, align 4
%5 = load float, ptr %3, align 4
%6 = load float, ptr %4, align 4
%7 = call float @hypotf(float noundef %5, float noundef %6) #2
ret float %7
}
; Function Attrs: nounwind
declare float @hypotf(float 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 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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/tmpiftjmokw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_Z7swhypotff(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
store float %0, ptr %3, align 4
store float %1, ptr %4, align 4
%5 = load float, ptr %3, align 4
%6 = load float, ptr %4, align 4
%7 = call float @hypotf(float noundef %5, float noundef %6) #2
ret float %7
}
; Function Attrs: nounwind
declare float @hypotf(float 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 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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/tmpqi5vz37y.c'
source_filename = "/tmp/tmpqi5vz37y.c"
target datalayout = "e-m:e-p270: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/tmpqi5vz37y.c"
target datalayout = "e-m:e-p270: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/tmp7y823lmf.c'
source_filename = "/tmp/tmp7y823lmf.c"
target datalayout = "e-m:e-p270: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.termios = type { i32 }
@CBAUD = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @cfgetospeed(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 %struct.termios, ptr %3, i32 0, i32 0
%5 = load i32, ptr %4, align 4
%6 = load i32, ptr @CBAUD, align 4
%7 = and i32 %5, %6
ret i32 %7
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7y823lmf.c"
target datalayout = "e-m:e-p270: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.termios = type { i32 }
@CBAUD = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @cfgetospeed(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 %struct.termios, ptr %3, i32 0, i32 0
%5 = load i32, ptr %4, align 4
%6 = load i32, ptr @CBAUD, align 4
%7 = and i32 %5, %6
ret i32 %7
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpl__dxc6p.c'
source_filename = "/tmp/tmpl__dxc6p.c"
target datalayout = "e-m:e-p270: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/tmpl__dxc6p.c"
target datalayout = "e-m:e-p270: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/tmpospy_kn1.c'
source_filename = "/tmp/tmpospy_kn1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"logsystestNOsubsystems\00", align 1
@LOG_DAEMON = dso_local global i32 0, align 4
@llvm.global_ctors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @logsys_system_init, ptr null }]
; Function Attrs: noinline nounwind sspstrong uwtable
define internal void @logsys_system_init() #0 {
%1 = alloca ptr, align 8
%2 = call i32 @logsys_config_mode_set(i32 noundef 262)
%3 = call i32 @logsys_config_file_set(ptr noundef %1, ptr noundef null)
%4 = load i32, ptr @LOG_DAEMON, align 4
%5 = call i32 @logsys_config_facility_set(ptr noundef @.str, i32 noundef %4)
%6 = call i32 (...) @_logsys_wthread_create()
ret void
}
declare i32 @logsys_config_mode_set(i32 noundef) #1
declare i32 @logsys_config_file_set(ptr noundef, ptr noundef) #1
declare i32 @logsys_config_facility_set(ptr noundef, i32 noundef) #1
declare i32 @_logsys_wthread_create(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpospy_kn1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"logsystestNOsubsystems\00", align 1
@LOG_DAEMON = dso_local global i32 0, align 4
@llvm.global_ctors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @logsys_system_init, ptr null }]
; Function Attrs: noinline nounwind sspstrong uwtable
define internal void @logsys_system_init() #0 {
%1 = alloca ptr, align 8
%2 = call i32 @logsys_config_mode_set(i32 noundef 262)
%3 = call i32 @logsys_config_file_set(ptr noundef %1, ptr noundef null)
%4 = load i32, ptr @LOG_DAEMON, align 4
%5 = call i32 @logsys_config_facility_set(ptr noundef @.str, i32 noundef %4)
%6 = call i32 (...) @_logsys_wthread_create()
ret void
}
declare i32 @logsys_config_mode_set(i32 noundef) #1
declare i32 @logsys_config_file_set(ptr noundef, ptr noundef) #1
declare i32 @logsys_config_facility_set(ptr noundef, i32 noundef) #1
declare i32 @_logsys_wthread_create(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprzqxpqek.c'
source_filename = "/tmp/tmprzqxpqek.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ResetISR() #0 {
%1 = load volatile i32, ptr inttoptr (i64 3758157192 to ptr), align 4
%2 = and i32 %1, -15728641
%3 = or i32 %2, 3145728
%4 = or i32 %3, 12582912
store volatile i32 %4, ptr inttoptr (i64 3758157192 to ptr), align 4
%5 = call i32 (...) @__iar_program_start()
ret void
}
declare i32 @__iar_program_start(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprzqxpqek.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ResetISR() #0 {
%1 = load volatile i32, ptr inttoptr (i64 3758157192 to ptr), align 4
%2 = and i32 %1, -15728641
%3 = or i32 %2, 3145728
%4 = or i32 %3, 12582912
store volatile i32 %4, ptr inttoptr (i64 3758157192 to ptr), align 4
%5 = call i32 (...) @__iar_program_start()
ret void
}
declare i32 @__iar_program_start(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp11qrqv88.c'
source_filename = "/tmp/tmp11qrqv88.c"
target datalayout = "e-m:e-p270: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/tmp11qrqv88.c"
target datalayout = "e-m:e-p270: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/tmplkyr2n94.c'
source_filename = "/tmp/tmplkyr2n94.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ball\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"lamp\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"pause\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
%2 = call i32 @compStr(ptr noundef @.str, ptr noundef @.str.1)
store i32 %2, ptr %1, align 4
%3 = load i32, ptr %1, align 4
%4 = call i32 @printf(ptr noundef @.str.2, i32 noundef %3)
%5 = load i32, ptr %1, align 4
%6 = icmp eq i32 %5, 3
%7 = zext i1 %6 to i32
%8 = call i32 @assert(i32 noundef %7)
%9 = call i32 @system(ptr noundef @.str.3)
ret void
}
declare i32 @compStr(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @assert(i32 noundef) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplkyr2n94.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ball\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"lamp\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"pause\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
%2 = call i32 @compStr(ptr noundef @.str, ptr noundef @.str.1)
store i32 %2, ptr %1, align 4
%3 = load i32, ptr %1, align 4
%4 = call i32 @printf(ptr noundef @.str.2, i32 noundef %3)
%5 = load i32, ptr %1, align 4
%6 = icmp eq i32 %5, 3
%7 = zext i1 %6 to i32
%8 = call i32 @assert(i32 noundef %7)
%9 = call i32 @system(ptr noundef @.str.3)
ret void
}
declare i32 @compStr(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @assert(i32 noundef) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqyk1fbl2.c'
source_filename = "/tmp/tmpqyk1fbl2.c"
target datalayout = "e-m:e-p270: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/tmpqyk1fbl2.c"
target datalayout = "e-m:e-p270: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/tmpz1nl9wty.c'
source_filename = "/tmp/tmpz1nl9wty.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\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 ptr, align 8
%6 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i32 1, ptr %4, align 4
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%8 = load i32, ptr %2, align 4
%9 = zext i32 %8 to i64
%10 = call ptr @llvm.stacksave()
store ptr %10, ptr %5, align 8
%11 = alloca i32, i64 %9, align 16
store i64 %9, ptr %6, align 8
%12 = load i32, ptr %2, align 4
store i32 %12, ptr %3, align 4
br label %13
13: ; preds = %21, %0
%14 = load i32, ptr %3, align 4
%15 = icmp sgt i32 %14, 0
br i1 %15, label %16, label %24
16: ; preds = %13
%17 = load i32, ptr %3, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i32, ptr %11, i64 %18
%20 = call i32 @scanf(ptr noundef @.str, ptr noundef %19)
br label %21
21: ; preds = %16
%22 = load i32, ptr %3, align 4
%23 = add nsw i32 %22, -1
store i32 %23, ptr %3, align 4
br label %13, !llvm.loop !6
24: ; preds = %13
store i32 1, ptr %3, align 4
br label %25
25: ; preds = %35, %24
%26 = load i32, ptr %3, align 4
%27 = load i32, ptr %2, align 4
%28 = icmp sle i32 %26, %27
br i1 %28, label %29, label %38
29: ; preds = %25
%30 = load i32, ptr %3, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i32, ptr %11, i64 %31
%33 = load i32, ptr %32, align 4
%34 = call i32 @printf(ptr noundef @.str.1, i32 noundef %33)
br label %35
35: ; preds = %29
%36 = load i32, ptr %3, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %3, align 4
br label %25, !llvm.loop !8
38: ; preds = %25
store i32 0, ptr %1, align 4
%39 = load ptr, ptr %5, align 8
call void @llvm.stackrestore(ptr %39)
%40 = load i32, ptr %1, align 4
ret i32 %40
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @printf(ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz1nl9wty.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\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 ptr, align 8
%6 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i32 1, ptr %4, align 4
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%8 = load i32, ptr %2, align 4
%9 = zext i32 %8 to i64
%10 = call ptr @llvm.stacksave()
store ptr %10, ptr %5, align 8
%11 = alloca i32, i64 %9, align 16
store i64 %9, ptr %6, align 8
%12 = load i32, ptr %2, align 4
store i32 %12, ptr %3, align 4
%13 = load i32, ptr %3, align 4
%14 = icmp sgt i32 %13, 0
br i1 %14, label %.lr.ph, label %25
.lr.ph: ; preds = %0
br label %15
15: ; preds = %.lr.ph, %20
%16 = load i32, ptr %3, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i32, ptr %11, i64 %17
%19 = call i32 @scanf(ptr noundef @.str, ptr noundef %18)
br label %20
20: ; preds = %15
%21 = load i32, ptr %3, align 4
%22 = add nsw i32 %21, -1
store i32 %22, ptr %3, align 4
%23 = load i32, ptr %3, align 4
%24 = icmp sgt i32 %23, 0
br i1 %24, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %25
25: ; preds = %._crit_edge, %0
store i32 1, ptr %3, align 4
%26 = load i32, ptr %3, align 4
%27 = load i32, ptr %2, align 4
%28 = icmp sle i32 %26, %27
br i1 %28, label %.lr.ph2, label %41
.lr.ph2: ; preds = %25
br label %29
29: ; preds = %.lr.ph2, %35
%30 = load i32, ptr %3, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i32, ptr %11, i64 %31
%33 = load i32, ptr %32, align 4
%34 = call i32 @printf(ptr noundef @.str.1, i32 noundef %33)
br label %35
35: ; preds = %29
%36 = load i32, ptr %3, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %3, align 4
%38 = load i32, ptr %3, align 4
%39 = load i32, ptr %2, align 4
%40 = icmp sle i32 %38, %39
br i1 %40, label %29, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %35
br label %41
41: ; preds = %._crit_edge3, %25
store i32 0, ptr %1, align 4
%42 = load ptr, ptr %5, align 8
call void @llvm.stackrestore(ptr %42)
%43 = load i32, ptr %1, align 4
ret i32 %43
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @printf(ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmphzmpz3yr.c'
source_filename = "/tmp/tmphzmpz3yr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i64 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [42 x i8] c"Usage: %s <pathname> <vmlinux_load_addr>\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [5 x i8] c"stat\00", align 1
@errno = dso_local global i64 0, align 8
@.str.2 = private unnamed_addr constant [5 x i8] c"%llx\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"sscanf\00", align 1
@.str.4 = private unnamed_addr constant [24 x i8] c"No matching characters\0A\00", align 1
@.str.5 = private unnamed_addr constant [8 x i8] c"0x%llx\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca %struct.stat, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load i32, ptr %4, align 4
%11 = icmp ne i32 %10, 3
br i1 %11, label %12, label %19
12: ; preds = %2
%13 = load i32, ptr @stderr, align 4
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 0
%16 = load ptr, ptr %15, align 8
%17 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %13, ptr noundef @.str, ptr noundef %16)
%18 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %18, ptr %3, align 4
br label %58
19: ; preds = %2
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
%23 = call i32 @stat(ptr noundef %22, ptr noundef %9)
%24 = icmp eq i32 %23, -1
br i1 %24, label %25, label %28
25: ; preds = %19
%26 = call i32 @perror(ptr noundef @.str.1)
%27 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %27, ptr %3, align 4
br label %58
28: ; preds = %19
store i64 0, ptr @errno, align 8
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds ptr, ptr %29, i64 2
%31 = load ptr, ptr %30, align 8
%32 = call i32 @sscanf(ptr noundef %31, ptr noundef @.str.2, ptr noundef %7)
%33 = icmp ne i32 %32, 1
br i1 %33, label %34, label %44
34: ; preds = %28
%35 = load i64, ptr @errno, align 8
%36 = icmp ne i64 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %34
%38 = call i32 @perror(ptr noundef @.str.3)
br label %42
39: ; preds = %34
%40 = load i32, ptr @stderr, align 4
%41 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %40, ptr noundef @.str.4)
br label %42
42: ; preds = %39, %37
%43 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %43, ptr %3, align 4
br label %58
44: ; preds = %28
%45 = getelementptr inbounds %struct.stat, ptr %9, i32 0, i32 0
%46 = load i64, ptr %45, align 8
store i64 %46, ptr %6, align 8
%47 = load i64, ptr %7, align 8
%48 = load i64, ptr %6, align 8
%49 = add i64 %47, %48
store i64 %49, ptr %8, align 8
%50 = load i64, ptr %6, align 8
%51 = urem i64 %50, 16
%52 = sub i64 16, %51
%53 = load i64, ptr %8, align 8
%54 = add i64 %53, %52
store i64 %54, ptr %8, align 8
%55 = load i64, ptr %8, align 8
%56 = call i32 @printf(ptr noundef @.str.5, i64 noundef %55)
%57 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %57, ptr %3, align 4
br label %58
58: ; preds = %44, %42, %25, %12
%59 = load i32, ptr %3, align 4
ret i32 %59
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @stat(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphzmpz3yr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i64 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [42 x i8] c"Usage: %s <pathname> <vmlinux_load_addr>\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [5 x i8] c"stat\00", align 1
@errno = dso_local global i64 0, align 8
@.str.2 = private unnamed_addr constant [5 x i8] c"%llx\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"sscanf\00", align 1
@.str.4 = private unnamed_addr constant [24 x i8] c"No matching characters\0A\00", align 1
@.str.5 = private unnamed_addr constant [8 x i8] c"0x%llx\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca %struct.stat, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load i32, ptr %4, align 4
%11 = icmp ne i32 %10, 3
br i1 %11, label %12, label %19
12: ; preds = %2
%13 = load i32, ptr @stderr, align 4
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 0
%16 = load ptr, ptr %15, align 8
%17 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %13, ptr noundef @.str, ptr noundef %16)
%18 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %18, ptr %3, align 4
br label %58
19: ; preds = %2
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
%23 = call i32 @stat(ptr noundef %22, ptr noundef %9)
%24 = icmp eq i32 %23, -1
br i1 %24, label %25, label %28
25: ; preds = %19
%26 = call i32 @perror(ptr noundef @.str.1)
%27 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %27, ptr %3, align 4
br label %58
28: ; preds = %19
store i64 0, ptr @errno, align 8
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds ptr, ptr %29, i64 2
%31 = load ptr, ptr %30, align 8
%32 = call i32 @sscanf(ptr noundef %31, ptr noundef @.str.2, ptr noundef %7)
%33 = icmp ne i32 %32, 1
br i1 %33, label %34, label %44
34: ; preds = %28
%35 = load i64, ptr @errno, align 8
%36 = icmp ne i64 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %34
%38 = call i32 @perror(ptr noundef @.str.3)
br label %42
39: ; preds = %34
%40 = load i32, ptr @stderr, align 4
%41 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %40, ptr noundef @.str.4)
br label %42
42: ; preds = %39, %37
%43 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %43, ptr %3, align 4
br label %58
44: ; preds = %28
%45 = getelementptr inbounds %struct.stat, ptr %9, i32 0, i32 0
%46 = load i64, ptr %45, align 8
store i64 %46, ptr %6, align 8
%47 = load i64, ptr %7, align 8
%48 = load i64, ptr %6, align 8
%49 = add i64 %47, %48
store i64 %49, ptr %8, align 8
%50 = load i64, ptr %6, align 8
%51 = urem i64 %50, 16
%52 = sub i64 16, %51
%53 = load i64, ptr %8, align 8
%54 = add i64 %53, %52
store i64 %54, ptr %8, align 8
%55 = load i64, ptr %8, align 8
%56 = call i32 @printf(ptr noundef @.str.5, i64 noundef %55)
%57 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %57, ptr %3, align 4
br label %58
58: ; preds = %44, %42, %25, %12
%59 = load i32, ptr %3, align 4
ret i32 %59
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @stat(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp75apd2r0.c'
source_filename = "/tmp/tmp75apd2r0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"circus\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"#circus\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"INVITE circus #circus\0D\0A\00", align 1
@.str.3 = private unnamed_addr constant [59 x i8] c"test_irc_invite: msg should be 'INVITE circus #circus\\r\\n'\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_irc_invite() #0 {
%1 = alloca [513 x i8], align 16
%2 = call i32 @irc_invite(ptr noundef @.str, ptr noundef @.str.1)
%3 = getelementptr inbounds [513 x i8], ptr %1, i64 0, i64 0
%4 = call i32 @read_mock(ptr noundef %3)
br label %5
5: ; preds = %0
%6 = getelementptr inbounds [513 x i8], ptr %1, i64 0, i64 0
%7 = call i64 @strcmp(ptr noundef %6, ptr noundef @.str.2)
%8 = icmp eq i64 %7, 0
br i1 %8, label %11, label %9
9: ; preds = %5
%10 = call i32 @mu_fail(ptr noundef @.str.3)
br label %12
11: ; preds = %5
br label %12
12: ; preds = %9, %11
ret void
}
declare i32 @irc_invite(ptr noundef, ptr noundef) #1
declare i32 @read_mock(ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @mu_fail(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp75apd2r0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"circus\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"#circus\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"INVITE circus #circus\0D\0A\00", align 1
@.str.3 = private unnamed_addr constant [59 x i8] c"test_irc_invite: msg should be 'INVITE circus #circus\\r\\n'\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_irc_invite() #0 {
%1 = alloca [513 x i8], align 16
%2 = call i32 @irc_invite(ptr noundef @.str, ptr noundef @.str.1)
%3 = getelementptr inbounds [513 x i8], ptr %1, i64 0, i64 0
%4 = call i32 @read_mock(ptr noundef %3)
br label %5
5: ; preds = %0
%6 = getelementptr inbounds [513 x i8], ptr %1, i64 0, i64 0
%7 = call i64 @strcmp(ptr noundef %6, ptr noundef @.str.2)
%8 = icmp eq i64 %7, 0
br i1 %8, label %11, label %9
9: ; preds = %5
%10 = call i32 @mu_fail(ptr noundef @.str.3)
br label %12
11: ; preds = %5
br label %12
12: ; preds = %11, %9
ret void
}
declare i32 @irc_invite(ptr noundef, ptr noundef) #1
declare i32 @read_mock(ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @mu_fail(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2evx5u7f.c'
source_filename = "/tmp/tmp2evx5u7f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"writeInt.test\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"w+\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store ptr null, ptr %2, align 8
store i32 0, ptr %3, align 4
%4 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = icmp eq ptr null, %5
br i1 %6, label %7, label %8
7: ; preds = %0
store i32 -1, ptr %1, align 4
br label %13
8: ; preds = %0
store i32 3, ptr %3, align 4
%9 = load ptr, ptr %2, align 8
%10 = call i32 @fwrite(ptr noundef %3, i32 noundef 4, i32 noundef 1, ptr noundef %9)
%11 = load ptr, ptr %2, align 8
%12 = call i32 @fclose(ptr noundef %11)
store i32 0, ptr %1, align 4
br label %13
13: ; preds = %8, %7
%14 = load i32, ptr %1, align 4
ret i32 %14
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2evx5u7f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"writeInt.test\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"w+\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store ptr null, ptr %2, align 8
store i32 0, ptr %3, align 4
%4 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = icmp eq ptr null, %5
br i1 %6, label %7, label %8
7: ; preds = %0
store i32 -1, ptr %1, align 4
br label %13
8: ; preds = %0
store i32 3, ptr %3, align 4
%9 = load ptr, ptr %2, align 8
%10 = call i32 @fwrite(ptr noundef %3, i32 noundef 4, i32 noundef 1, ptr noundef %9)
%11 = load ptr, ptr %2, align 8
%12 = call i32 @fclose(ptr noundef %11)
store i32 0, ptr %1, align 4
br label %13
13: ; preds = %8, %7
%14 = load i32, ptr %1, align 4
ret i32 %14
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpypw032lk.c'
source_filename = "/tmp/tmpypw032lk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\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 ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%9 = load i32, ptr %2, align 4
%10 = zext i32 %9 to i64
%11 = call ptr @llvm.stacksave()
store ptr %11, ptr %5, align 8
%12 = alloca i32, i64 %10, align 16
store i64 %10, ptr %6, align 8
store i32 0, ptr %7, align 4
br label %13
13: ; preds = %43, %0
%14 = load i32, ptr %2, align 4
%15 = add nsw i32 %14, -1
store i32 %15, ptr %2, align 4
%16 = icmp sgt i32 %14, 0
br i1 %16, label %17, label %50
17: ; preds = %13
store i32 1, ptr %4, align 4
%18 = load i32, ptr %7, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %12, i64 %19
%21 = call i32 @scanf(ptr noundef @.str, ptr noundef %20)
store i32 1, ptr %3, align 4
br label %22
22: ; preds = %40, %17
%23 = load i32, ptr %3, align 4
%24 = load i32, ptr %7, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, ptr %12, i64 %25
%27 = load i32, ptr %26, align 4
%28 = icmp sle i32 %23, %27
br i1 %28, label %29, label %43
29: ; preds = %22
%30 = load i32, ptr %3, align 4
%31 = srem i32 %30, 2
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %36
33: ; preds = %29
%34 = load i32, ptr %4, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %4, align 4
br label %39
36: ; preds = %29
%37 = load i32, ptr %4, align 4
%38 = mul nsw i32 %37, 2
store i32 %38, ptr %4, align 4
br label %39
39: ; preds = %36, %33
br label %40
40: ; preds = %39
%41 = load i32, ptr %3, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %3, align 4
br label %22, !llvm.loop !6
43: ; preds = %22
%44 = load i32, ptr %4, align 4
%45 = load i32, ptr %7, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i32, ptr %12, i64 %46
store i32 %44, ptr %47, align 4
%48 = load i32, ptr %7, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %7, align 4
br label %13, !llvm.loop !8
50: ; preds = %13
store i32 0, ptr %2, align 4
br label %51
51: ; preds = %61, %50
%52 = load i32, ptr %2, align 4
%53 = load i32, ptr %7, align 4
%54 = icmp slt i32 %52, %53
br i1 %54, label %55, label %64
55: ; preds = %51
%56 = load i32, ptr %2, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i32, ptr %12, i64 %57
%59 = load i32, ptr %58, align 4
%60 = call i32 @printf(ptr noundef @.str.1, i32 noundef %59)
br label %61
61: ; preds = %55
%62 = load i32, ptr %2, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %2, align 4
br label %51, !llvm.loop !9
64: ; preds = %51
store i32 0, ptr %1, align 4
%65 = load ptr, ptr %5, align 8
call void @llvm.stackrestore(ptr %65)
%66 = load i32, ptr %1, align 4
ret i32 %66
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @printf(ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpypw032lk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\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 ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%9 = load i32, ptr %2, align 4
%10 = zext i32 %9 to i64
%11 = call ptr @llvm.stacksave()
store ptr %11, ptr %5, align 8
%12 = alloca i32, i64 %10, align 16
store i64 %10, ptr %6, align 8
store i32 0, ptr %7, align 4
%13 = load i32, ptr %2, align 4
%14 = add nsw i32 %13, -1
store i32 %14, ptr %2, align 4
%15 = icmp sgt i32 %13, 0
br i1 %15, label %.lr.ph2, label %57
.lr.ph2: ; preds = %0
br label %16
16: ; preds = %.lr.ph2, %47
store i32 1, ptr %4, align 4
%17 = load i32, ptr %7, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i32, ptr %12, i64 %18
%20 = call i32 @scanf(ptr noundef @.str, ptr noundef %19)
store i32 1, ptr %3, align 4
%21 = load i32, ptr %3, align 4
%22 = load i32, ptr %7, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i32, ptr %12, i64 %23
%25 = load i32, ptr %24, align 4
%26 = icmp sle i32 %21, %25
br i1 %26, label %.lr.ph, label %47
.lr.ph: ; preds = %16
br label %27
27: ; preds = %.lr.ph, %38
%28 = load i32, ptr %3, align 4
%29 = srem i32 %28, 2
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %34
31: ; preds = %27
%32 = load i32, ptr %4, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %4, align 4
br label %37
34: ; preds = %27
%35 = load i32, ptr %4, align 4
%36 = mul nsw i32 %35, 2
store i32 %36, ptr %4, align 4
br label %37
37: ; preds = %34, %31
br label %38
38: ; preds = %37
%39 = load i32, ptr %3, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %3, align 4
%41 = load i32, ptr %3, align 4
%42 = load i32, ptr %7, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %12, i64 %43
%45 = load i32, ptr %44, align 4
%46 = icmp sle i32 %41, %45
br i1 %46, label %27, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %38
br label %47
47: ; preds = %._crit_edge, %16
%48 = load i32, ptr %4, align 4
%49 = load i32, ptr %7, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i32, ptr %12, i64 %50
store i32 %48, ptr %51, align 4
%52 = load i32, ptr %7, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %7, align 4
%54 = load i32, ptr %2, align 4
%55 = add nsw i32 %54, -1
store i32 %55, ptr %2, align 4
%56 = icmp sgt i32 %54, 0
br i1 %56, label %16, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %47
br label %57
57: ; preds = %._crit_edge3, %0
store i32 0, ptr %2, align 4
%58 = load i32, ptr %2, align 4
%59 = load i32, ptr %7, align 4
%60 = icmp slt i32 %58, %59
br i1 %60, label %.lr.ph5, label %73
.lr.ph5: ; preds = %57
br label %61
61: ; preds = %.lr.ph5, %67
%62 = load i32, ptr %2, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i32, ptr %12, i64 %63
%65 = load i32, ptr %64, align 4
%66 = call i32 @printf(ptr noundef @.str.1, i32 noundef %65)
br label %67
67: ; preds = %61
%68 = load i32, ptr %2, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %2, align 4
%70 = load i32, ptr %2, align 4
%71 = load i32, ptr %7, align 4
%72 = icmp slt i32 %70, %71
br i1 %72, label %61, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %67
br label %73
73: ; preds = %._crit_edge6, %57
store i32 0, ptr %1, align 4
%74 = load ptr, ptr %5, align 8
call void @llvm.stackrestore(ptr %74)
%75 = load i32, ptr %1, align 4
ret i32 %75
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @printf(ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp0i_qk93a.c'
source_filename = "/tmp/tmp0i_qk93a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rise_set(i64 noundef %0, double noundef %1, double noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, double noundef %11, double noundef %12, double noundef %13) #0 {
%15 = alloca i64, align 8
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca i32, align 4
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = alloca ptr, align 8
%22 = alloca ptr, align 8
%23 = alloca ptr, align 8
%24 = alloca ptr, align 8
%25 = alloca ptr, align 8
%26 = alloca double, align 8
%27 = alloca double, align 8
%28 = alloca double, align 8
%29 = alloca double, align 8
%30 = alloca double, align 8
%31 = alloca double, align 8
%32 = alloca double, align 8
%33 = alloca double, align 8
%34 = alloca double, align 8
%35 = alloca double, align 8
%36 = alloca double, align 8
%37 = alloca double, align 8
%38 = alloca i32, align 4
%39 = alloca i32, align 4
%40 = alloca i64, align 8
%41 = alloca i64, align 8
%42 = alloca i64, align 8
store i64 %0, ptr %15, align 8
store double %1, ptr %16, align 8
store double %2, ptr %17, align 8
store i32 %3, ptr %18, align 4
store ptr %4, ptr %19, align 8
store ptr %5, ptr %20, align 8
store ptr %6, ptr %21, align 8
store ptr %7, ptr %22, align 8
store ptr %8, ptr %23, align 8
store ptr %9, ptr %24, align 8
store ptr %10, ptr %25, align 8
store double %11, ptr %26, align 8
store double %12, ptr %27, align 8
store double %13, ptr %28, align 8
%43 = load double, ptr %28, align 8
%44 = call double @sin(double noundef %43) #4
%45 = load double, ptr %17, align 8
%46 = call double @sin(double noundef %45) #4
%47 = load double, ptr %27, align 8
%48 = call double @sin(double noundef %47) #4
%49 = fneg double %46
%50 = call double @llvm.fmuladd.f64(double %49, double %48, double %44)
%51 = load double, ptr %17, align 8
%52 = call double @cos(double noundef %51) #4
%53 = load double, ptr %27, align 8
%54 = call double @cos(double noundef %53) #4
%55 = fmul double %52, %54
%56 = fdiv double %50, %55
store double %56, ptr %30, align 8
%57 = load double, ptr %30, align 8
%58 = fcmp olt double %57, -1.000000e+00
br i1 %58, label %59, label %61
59: ; preds = %14
%60 = load ptr, ptr %25, align 8
store i32 1, ptr %60, align 4
store double 0.000000e+00, ptr %29, align 8
br label %71
61: ; preds = %14
%62 = load double, ptr %30, align 8
%63 = fcmp ogt double %62, 1.000000e+00
br i1 %63, label %64, label %66
64: ; preds = %61
%65 = load ptr, ptr %25, align 8
store i32 -1, ptr %65, align 4
store double 0.000000e+00, ptr %29, align 8
br label %70
66: ; preds = %61
%67 = load ptr, ptr %25, align 8
store i32 0, ptr %67, align 4
%68 = load double, ptr %30, align 8
%69 = call double @acos(double noundef %68) #4
store double %69, ptr %29, align 8
br label %70
70: ; preds = %66, %64
br label %71
71: ; preds = %70, %59
%72 = load double, ptr %16, align 8
%73 = load double, ptr %29, align 8
%74 = fsub double %72, %73
%75 = fadd double %74, 0x401921FB54442D18
%76 = call i32 @modpi2(double noundef %75)
%77 = sitofp i32 %76 to double
store double %77, ptr %32, align 8
%78 = load double, ptr %16, align 8
%79 = load double, ptr %29, align 8
%80 = fadd double %78, %79
%81 = call i32 @modpi2(double noundef %80)
%82 = sitofp i32 %81 to double
store double %82, ptr %33, align 8
%83 = load double, ptr %32, align 8
%84 = load double, ptr %33, align 8
%85 = fcmp ogt double %83, %84
%86 = zext i1 %85 to i32
store i32 %86, ptr %39, align 4
%87 = load i64, ptr %15, align 8
%88 = call double @timetoJ2000(i64 noundef %87)
store double %88, ptr %34, align 8
%89 = load double, ptr %34, align 8
%90 = call double @SiderealTime(double noundef %89)
%91 = load double, ptr %26, align 8
%92 = fsub double %90, %91
%93 = fadd double %92, 0x401921FB54442D18
%94 = call i32 @modpi2(double noundef %93)
%95 = sitofp i32 %94 to double
store double %95, ptr %31, align 8
%96 = load i32, ptr %39, align 4
%97 = icmp ne i32 %96, 0
br i1 %97, label %98, label %109
98: ; preds = %71
%99 = load double, ptr %31, align 8
%100 = load double, ptr %32, align 8
%101 = fcmp ogt double %99, %100
br i1 %101, label %106, label %102
102: ; preds = %98
%103 = load double, ptr %31, align 8
%104 = load double, ptr %33, align 8
%105 = fcmp olt double %103, %104
br label %106
106: ; preds = %102, %98
%107 = phi i1 [ true, %98 ], [ %105, %102 ]
%108 = zext i1 %107 to i32
store i32 %108, ptr %38, align 4
br label %120
109: ; preds = %71
%110 = load double, ptr %31, align 8
%111 = load double, ptr %32, align 8
%112 = fcmp ogt double %110, %111
br i1 %112, label %113, label %117
113: ; preds = %109
%114 = load double, ptr %31, align 8
%115 = load double, ptr %33, align 8
%116 = fcmp olt double %114, %115
br label %117
117: ; preds = %113, %109
%118 = phi i1 [ false, %109 ], [ %116, %113 ]
%119 = zext i1 %118 to i32
store i32 %119, ptr %38, align 4
br label %120
120: ; preds = %117, %106
%121 = load double, ptr %33, align 8
%122 = load double, ptr %31, align 8
%123 = fsub double %121, %122
%124 = fadd double %123, 0x401921FB54442D18
%125 = call i32 @modpi2(double noundef %124)
%126 = sitofp i32 %125 to double
%127 = load double, ptr %34, align 8
%128 = call double @llvm.fmuladd.f64(double 0x3ED239F96C0A2153, double %126, double %127)
store double %128, ptr %37, align 8
%129 = load double, ptr %37, align 8
%130 = load double, ptr %29, align 8
%131 = call double @llvm.fmuladd.f64(double 0xBED239F96C0A2153, double %130, double %129)
store double %131, ptr %36, align 8
%132 = load double, ptr %37, align 8
%133 = load double, ptr %29, align 8
%134 = call double @llvm.fmuladd.f64(double 0xBEE239F96C0A2153, double %133, double %132)
store double %134, ptr %35, align 8
%135 = load double, ptr %32, align 8
%136 = load ptr, ptr %22, align 8
store double %135, ptr %136, align 8
%137 = load double, ptr %31, align 8
%138 = load ptr, ptr %23, align 8
store double %137, ptr %138, align 8
%139 = load double, ptr %33, align 8
%140 = load ptr, ptr %24, align 8
store double %139, ptr %140, align 8
%141 = load double, ptr %35, align 8
%142 = call i64 @J2000totime(double noundef %141)
%143 = load ptr, ptr %19, align 8
store i64 %142, ptr %143, align 8
%144 = load double, ptr %36, align 8
%145 = call i64 @J2000totime(double noundef %144)
%146 = load ptr, ptr %20, align 8
store i64 %145, ptr %146, align 8
%147 = load double, ptr %37, align 8
%148 = call i64 @J2000totime(double noundef %147)
%149 = load ptr, ptr %21, align 8
store i64 %148, ptr %149, align 8
%150 = load ptr, ptr %19, align 8
%151 = load i64, ptr %150, align 8
%152 = load ptr, ptr %20, align 8
%153 = load i64, ptr %152, align 8
%154 = sub nsw i64 %151, %153
store i64 %154, ptr %40, align 8
%155 = load ptr, ptr %21, align 8
%156 = load i64, ptr %155, align 8
%157 = load ptr, ptr %20, align 8
%158 = load i64, ptr %157, align 8
%159 = sub nsw i64 %156, %158
store i64 %159, ptr %41, align 8
%160 = load i32, ptr %38, align 4
ret i32 %160
}
; Function Attrs: nounwind
declare double @sin(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
; Function Attrs: nounwind
declare double @cos(double noundef) #1
; Function Attrs: nounwind
declare double @acos(double noundef) #1
declare i32 @modpi2(double noundef) #3
declare double @timetoJ2000(i64 noundef) #3
declare double @SiderealTime(double noundef) #3
declare i64 @J2000totime(double noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { "frame-pointer"="all" "no-trapping-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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0i_qk93a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rise_set(i64 noundef %0, double noundef %1, double noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, double noundef %11, double noundef %12, double noundef %13) #0 {
%15 = alloca i64, align 8
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca i32, align 4
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = alloca ptr, align 8
%22 = alloca ptr, align 8
%23 = alloca ptr, align 8
%24 = alloca ptr, align 8
%25 = alloca ptr, align 8
%26 = alloca double, align 8
%27 = alloca double, align 8
%28 = alloca double, align 8
%29 = alloca double, align 8
%30 = alloca double, align 8
%31 = alloca double, align 8
%32 = alloca double, align 8
%33 = alloca double, align 8
%34 = alloca double, align 8
%35 = alloca double, align 8
%36 = alloca double, align 8
%37 = alloca double, align 8
%38 = alloca i32, align 4
%39 = alloca i32, align 4
%40 = alloca i64, align 8
%41 = alloca i64, align 8
%42 = alloca i64, align 8
store i64 %0, ptr %15, align 8
store double %1, ptr %16, align 8
store double %2, ptr %17, align 8
store i32 %3, ptr %18, align 4
store ptr %4, ptr %19, align 8
store ptr %5, ptr %20, align 8
store ptr %6, ptr %21, align 8
store ptr %7, ptr %22, align 8
store ptr %8, ptr %23, align 8
store ptr %9, ptr %24, align 8
store ptr %10, ptr %25, align 8
store double %11, ptr %26, align 8
store double %12, ptr %27, align 8
store double %13, ptr %28, align 8
%43 = load double, ptr %28, align 8
%44 = call double @sin(double noundef %43) #4
%45 = load double, ptr %17, align 8
%46 = call double @sin(double noundef %45) #4
%47 = load double, ptr %27, align 8
%48 = call double @sin(double noundef %47) #4
%49 = fneg double %46
%50 = call double @llvm.fmuladd.f64(double %49, double %48, double %44)
%51 = load double, ptr %17, align 8
%52 = call double @cos(double noundef %51) #4
%53 = load double, ptr %27, align 8
%54 = call double @cos(double noundef %53) #4
%55 = fmul double %52, %54
%56 = fdiv double %50, %55
store double %56, ptr %30, align 8
%57 = load double, ptr %30, align 8
%58 = fcmp olt double %57, -1.000000e+00
br i1 %58, label %59, label %61
59: ; preds = %14
%60 = load ptr, ptr %25, align 8
store i32 1, ptr %60, align 4
store double 0.000000e+00, ptr %29, align 8
br label %71
61: ; preds = %14
%62 = load double, ptr %30, align 8
%63 = fcmp ogt double %62, 1.000000e+00
br i1 %63, label %64, label %66
64: ; preds = %61
%65 = load ptr, ptr %25, align 8
store i32 -1, ptr %65, align 4
store double 0.000000e+00, ptr %29, align 8
br label %70
66: ; preds = %61
%67 = load ptr, ptr %25, align 8
store i32 0, ptr %67, align 4
%68 = load double, ptr %30, align 8
%69 = call double @acos(double noundef %68) #4
store double %69, ptr %29, align 8
br label %70
70: ; preds = %66, %64
br label %71
71: ; preds = %70, %59
%72 = load double, ptr %16, align 8
%73 = load double, ptr %29, align 8
%74 = fsub double %72, %73
%75 = fadd double %74, 0x401921FB54442D18
%76 = call i32 @modpi2(double noundef %75)
%77 = sitofp i32 %76 to double
store double %77, ptr %32, align 8
%78 = load double, ptr %16, align 8
%79 = load double, ptr %29, align 8
%80 = fadd double %78, %79
%81 = call i32 @modpi2(double noundef %80)
%82 = sitofp i32 %81 to double
store double %82, ptr %33, align 8
%83 = load double, ptr %32, align 8
%84 = load double, ptr %33, align 8
%85 = fcmp ogt double %83, %84
%86 = zext i1 %85 to i32
store i32 %86, ptr %39, align 4
%87 = load i64, ptr %15, align 8
%88 = call double @timetoJ2000(i64 noundef %87)
store double %88, ptr %34, align 8
%89 = load double, ptr %34, align 8
%90 = call double @SiderealTime(double noundef %89)
%91 = load double, ptr %26, align 8
%92 = fsub double %90, %91
%93 = fadd double %92, 0x401921FB54442D18
%94 = call i32 @modpi2(double noundef %93)
%95 = sitofp i32 %94 to double
store double %95, ptr %31, align 8
%96 = load i32, ptr %39, align 4
%97 = icmp ne i32 %96, 0
br i1 %97, label %98, label %109
98: ; preds = %71
%99 = load double, ptr %31, align 8
%100 = load double, ptr %32, align 8
%101 = fcmp ogt double %99, %100
br i1 %101, label %106, label %102
102: ; preds = %98
%103 = load double, ptr %31, align 8
%104 = load double, ptr %33, align 8
%105 = fcmp olt double %103, %104
br label %106
106: ; preds = %102, %98
%107 = phi i1 [ true, %98 ], [ %105, %102 ]
%108 = zext i1 %107 to i32
store i32 %108, ptr %38, align 4
br label %120
109: ; preds = %71
%110 = load double, ptr %31, align 8
%111 = load double, ptr %32, align 8
%112 = fcmp ogt double %110, %111
br i1 %112, label %113, label %117
113: ; preds = %109
%114 = load double, ptr %31, align 8
%115 = load double, ptr %33, align 8
%116 = fcmp olt double %114, %115
br label %117
117: ; preds = %113, %109
%118 = phi i1 [ false, %109 ], [ %116, %113 ]
%119 = zext i1 %118 to i32
store i32 %119, ptr %38, align 4
br label %120
120: ; preds = %117, %106
%121 = load double, ptr %33, align 8
%122 = load double, ptr %31, align 8
%123 = fsub double %121, %122
%124 = fadd double %123, 0x401921FB54442D18
%125 = call i32 @modpi2(double noundef %124)
%126 = sitofp i32 %125 to double
%127 = load double, ptr %34, align 8
%128 = call double @llvm.fmuladd.f64(double 0x3ED239F96C0A2153, double %126, double %127)
store double %128, ptr %37, align 8
%129 = load double, ptr %37, align 8
%130 = load double, ptr %29, align 8
%131 = call double @llvm.fmuladd.f64(double 0xBED239F96C0A2153, double %130, double %129)
store double %131, ptr %36, align 8
%132 = load double, ptr %37, align 8
%133 = load double, ptr %29, align 8
%134 = call double @llvm.fmuladd.f64(double 0xBEE239F96C0A2153, double %133, double %132)
store double %134, ptr %35, align 8
%135 = load double, ptr %32, align 8
%136 = load ptr, ptr %22, align 8
store double %135, ptr %136, align 8
%137 = load double, ptr %31, align 8
%138 = load ptr, ptr %23, align 8
store double %137, ptr %138, align 8
%139 = load double, ptr %33, align 8
%140 = load ptr, ptr %24, align 8
store double %139, ptr %140, align 8
%141 = load double, ptr %35, align 8
%142 = call i64 @J2000totime(double noundef %141)
%143 = load ptr, ptr %19, align 8
store i64 %142, ptr %143, align 8
%144 = load double, ptr %36, align 8
%145 = call i64 @J2000totime(double noundef %144)
%146 = load ptr, ptr %20, align 8
store i64 %145, ptr %146, align 8
%147 = load double, ptr %37, align 8
%148 = call i64 @J2000totime(double noundef %147)
%149 = load ptr, ptr %21, align 8
store i64 %148, ptr %149, align 8
%150 = load ptr, ptr %19, align 8
%151 = load i64, ptr %150, align 8
%152 = load ptr, ptr %20, align 8
%153 = load i64, ptr %152, align 8
%154 = sub nsw i64 %151, %153
store i64 %154, ptr %40, align 8
%155 = load ptr, ptr %21, align 8
%156 = load i64, ptr %155, align 8
%157 = load ptr, ptr %20, align 8
%158 = load i64, ptr %157, align 8
%159 = sub nsw i64 %156, %158
store i64 %159, ptr %41, align 8
%160 = load i32, ptr %38, align 4
ret i32 %160
}
; Function Attrs: nounwind
declare double @sin(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
; Function Attrs: nounwind
declare double @cos(double noundef) #1
; Function Attrs: nounwind
declare double @acos(double noundef) #1
declare i32 @modpi2(double noundef) #3
declare double @timetoJ2000(i64 noundef) #3
declare double @SiderealTime(double noundef) #3
declare i64 @J2000totime(double noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { "frame-pointer"="all" "no-trapping-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"}
|
; ModuleID = '/tmp/tmpy3z4ksju.c'
source_filename = "/tmp/tmpy3z4ksju.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"tmp_XXXXXX\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"temp file create failed!\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"> \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [20 x i8] c"unknown character!\0A\00", align 1
@.str.4 = private unnamed_addr constant [59 x i8] c"mipsel-linux-objdump -D -m mips -b binary %s | sed '1, 7d'\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 [1000 x i8], align 16
%10 = alloca [20 x i8], align 16
%11 = alloca [300 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
br label %12
12: ; preds = %2, %49
%13 = getelementptr inbounds [20 x i8], ptr %10, i64 0, i64 0
%14 = call i32 @strcpy(ptr noundef %13, ptr noundef @.str)
%15 = getelementptr inbounds [20 x i8], ptr %10, i64 0, i64 0
%16 = call i32 @mkstemp(ptr noundef %15)
store i32 %16, ptr %6, align 4
%17 = icmp eq i32 %16, -1
br i1 %17, label %18, label %21
18: ; preds = %12
%19 = call i32 @perror(ptr noundef @.str.1)
%20 = call i32 @exit(i32 noundef 1) #3
unreachable
21: ; preds = %12
%22 = call i32 @printf(ptr noundef @.str.2)
%23 = getelementptr inbounds [1000 x i8], ptr %9, i64 0, i64 0
%24 = load i32, ptr @stdin, align 4
%25 = call i32 @fgets(ptr noundef %23, i32 noundef 1000, i32 noundef %24)
store i32 0, ptr %7, align 4
br label %26
26: ; preds = %45, %21
%27 = load i32, ptr %7, align 4
%28 = getelementptr inbounds [1000 x i8], ptr %9, i64 0, i64 0
%29 = call i32 @strlen(ptr noundef %28)
%30 = sub nsw i32 %29, 1
%31 = icmp slt i32 %27, %30
br i1 %31, label %32, label %48
32: ; preds = %26
%33 = getelementptr inbounds [1000 x i8], ptr %9, i64 0, i64 0
%34 = load i32, ptr %7, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
%37 = call i32 @getByte(ptr noundef %36)
store i32 %37, ptr %8, align 4
%38 = load i32, ptr %8, align 4
%39 = icmp eq i32 %38, -1
br i1 %39, label %40, label %42
40: ; preds = %32
%41 = call i32 @printf(ptr noundef @.str.3)
br label %49
42: ; preds = %32
%43 = load i32, ptr %6, align 4
%44 = call i32 @write(i32 noundef %43, ptr noundef %8, i32 noundef 1)
br label %45
45: ; preds = %42
%46 = load i32, ptr %7, align 4
%47 = add nsw i32 %46, 2
store i32 %47, ptr %7, align 4
br label %26, !llvm.loop !6
48: ; preds = %26
br label %49
49: ; preds = %48, %40
%50 = getelementptr inbounds [300 x i8], ptr %11, i64 0, i64 0
%51 = getelementptr inbounds [20 x i8], ptr %10, i64 0, i64 0
%52 = call i32 @sprintf(ptr noundef %50, ptr noundef @.str.4, ptr noundef %51)
%53 = getelementptr inbounds [300 x i8], ptr %11, i64 0, i64 0
%54 = call i32 @system(ptr noundef %53)
%55 = load i32, ptr %6, align 4
%56 = call i32 @close(i32 noundef %55)
%57 = getelementptr inbounds [20 x i8], ptr %10, i64 0, i64 0
%58 = call i32 @unlink(ptr noundef %57)
br label %12
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @mkstemp(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @printf(ptr noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @getByte(ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @system(ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @unlink(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpy3z4ksju.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"tmp_XXXXXX\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"temp file create failed!\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"> \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [20 x i8] c"unknown character!\0A\00", align 1
@.str.4 = private unnamed_addr constant [59 x i8] c"mipsel-linux-objdump -D -m mips -b binary %s | sed '1, 7d'\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 [1000 x i8], align 16
%10 = alloca [20 x i8], align 16
%11 = alloca [300 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%12 = getelementptr inbounds [20 x i8], ptr %10, i64 0, i64 0
%13 = call i32 @strcpy(ptr noundef %12, ptr noundef @.str)
%14 = getelementptr inbounds [20 x i8], ptr %10, i64 0, i64 0
%15 = call i32 @mkstemp(ptr noundef %14)
store i32 %15, ptr %6, align 4
%16 = icmp eq i32 %15, -1
br i1 %16, label %17, label %.lr.ph2
.lr.ph2: ; preds = %2
br label %20
._crit_edge3: ; preds = %51
br label %17
17: ; preds = %._crit_edge3, %2
%18 = call i32 @perror(ptr noundef @.str.1)
%19 = call i32 @exit(i32 noundef 1) #3
unreachable
20: ; preds = %.lr.ph2, %51
%21 = call i32 @printf(ptr noundef @.str.2)
%22 = getelementptr inbounds [1000 x i8], ptr %9, i64 0, i64 0
%23 = load i32, ptr @stdin, align 4
%24 = call i32 @fgets(ptr noundef %22, i32 noundef 1000, i32 noundef %23)
store i32 0, ptr %7, align 4
%25 = load i32, ptr %7, align 4
%26 = getelementptr inbounds [1000 x i8], ptr %9, i64 0, i64 0
%27 = call i32 @strlen(ptr noundef %26)
%28 = sub nsw i32 %27, 1
%29 = icmp slt i32 %25, %28
br i1 %29, label %.lr.ph, label %50
.lr.ph: ; preds = %20
br label %30
30: ; preds = %.lr.ph, %43
%31 = getelementptr inbounds [1000 x i8], ptr %9, i64 0, i64 0
%32 = load i32, ptr %7, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8, ptr %31, i64 %33
%35 = call i32 @getByte(ptr noundef %34)
store i32 %35, ptr %8, align 4
%36 = load i32, ptr %8, align 4
%37 = icmp eq i32 %36, -1
br i1 %37, label %38, label %40
38: ; preds = %30
%39 = call i32 @printf(ptr noundef @.str.3)
br label %51
40: ; preds = %30
%41 = load i32, ptr %6, align 4
%42 = call i32 @write(i32 noundef %41, ptr noundef %8, i32 noundef 1)
br label %43
43: ; preds = %40
%44 = load i32, ptr %7, align 4
%45 = add nsw i32 %44, 2
store i32 %45, ptr %7, align 4
%46 = load i32, ptr %7, align 4
%47 = call i32 @strlen(ptr noundef %26)
%48 = sub nsw i32 %47, 1
%49 = icmp slt i32 %46, %48
br i1 %49, label %30, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %43
br label %50
50: ; preds = %._crit_edge, %20
br label %51
51: ; preds = %50, %38
%52 = getelementptr inbounds [300 x i8], ptr %11, i64 0, i64 0
%53 = getelementptr inbounds [20 x i8], ptr %10, i64 0, i64 0
%54 = call i32 @sprintf(ptr noundef %52, ptr noundef @.str.4, ptr noundef %53)
%55 = getelementptr inbounds [300 x i8], ptr %11, i64 0, i64 0
%56 = call i32 @system(ptr noundef %55)
%57 = load i32, ptr %6, align 4
%58 = call i32 @close(i32 noundef %57)
%59 = getelementptr inbounds [20 x i8], ptr %10, i64 0, i64 0
%60 = call i32 @unlink(ptr noundef %59)
%61 = call i32 @strcpy(ptr noundef %12, ptr noundef @.str)
%62 = call i32 @mkstemp(ptr noundef %14)
store i32 %62, ptr %6, align 4
%63 = icmp eq i32 %62, -1
br i1 %63, label %._crit_edge3, label %20
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @mkstemp(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @printf(ptr noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @getByte(ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @system(ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @unlink(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.