llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmp897tmuqd.c'
source_filename = "/tmp/tmp897tmuqd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@TCSANOW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @termios_tcsnow() #0 {
%1 = load i32, ptr @TCSANOW, align 4
ret i32 %1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp897tmuqd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@TCSANOW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @termios_tcsnow() #0 {
%1 = load i32, ptr @TCSANOW, align 4
ret i32 %1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjjpj1nwj.c'
source_filename = "/tmp/tmpjjpj1nwj.c"
target datalayout = "e-m:e-p270: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/tmpjjpj1nwj.c"
target datalayout = "e-m:e-p270: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/tmph_z6nxgh.c'
source_filename = "/tmp/tmph_z6nxgh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Please specify a file name\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"rt\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"main\00", align 1
@EOF = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [13 x i8] c"[LINES]\0A%d\0A\0A\00", align 1
@.str.4 = private unnamed_addr constant [18 x i8] c"[CHARACTERS]\0A%d\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr %4, align 4
%12 = icmp ne i32 %11, 2
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = call i32 @puts(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %62
15: ; preds = %2
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 1
%18 = load ptr, ptr %17, align 8
%19 = call ptr @fopen(ptr noundef %18, ptr noundef @.str.1)
store ptr %19, ptr %6, align 8
%20 = load ptr, ptr %6, align 8
%21 = icmp eq ptr %20, null
br i1 %21, label %22, label %24
22: ; preds = %15
%23 = call i32 @perror(ptr noundef @.str.2)
store i32 2, ptr %3, align 4
br label %62
24: ; preds = %15
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 1, ptr %10, align 4
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 1
%27 = load ptr, ptr %26, align 8
%28 = call i32 @puts(ptr noundef %27)
br label %29
29: ; preds = %48, %24
%30 = load ptr, ptr %6, align 8
%31 = call i32 @fgetc(ptr noundef %30)
store i32 %31, ptr %9, align 4
%32 = load i32, ptr @EOF, align 4
%33 = icmp ne i32 %31, %32
br i1 %33, label %34, label %49
34: ; preds = %29
%35 = load i32, ptr %9, align 4
%36 = icmp eq i32 %35, 10
br i1 %36, label %37, label %40
37: ; preds = %34
%38 = load i32, ptr %7, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %7, align 4
store i32 1, ptr %10, align 4
br label %41
40: ; preds = %34
store i32 0, ptr %10, align 4
br label %41
41: ; preds = %40, %37
%42 = load i32, ptr %9, align 4
%43 = call i32 @isspace(i32 noundef %42) #3
%44 = icmp ne i32 %43, 0
br i1 %44, label %48, label %45
45: ; preds = %41
%46 = load i32, ptr %8, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %8, align 4
br label %48
48: ; preds = %45, %41
br label %29, !llvm.loop !6
49: ; preds = %29
%50 = load i32, ptr %10, align 4
%51 = icmp ne i32 %50, 1
br i1 %51, label %52, label %55
52: ; preds = %49
%53 = load i32, ptr %7, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %7, align 4
br label %55
55: ; preds = %52, %49
%56 = load i32, ptr %7, align 4
%57 = call i32 @printf(ptr noundef @.str.3, i32 noundef %56)
%58 = load i32, ptr %8, align 4
%59 = call i32 @printf(ptr noundef @.str.4, i32 noundef %58)
%60 = load ptr, ptr %6, align 8
%61 = call i32 @fclose(ptr noundef %60)
store i32 0, ptr %3, align 4
br label %62
62: ; preds = %55, %22, %13
%63 = load i32, ptr %3, align 4
ret i32 %63
}
declare i32 @puts(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @fgetc(ptr noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @isspace(i32 noundef) #2
declare i32 @printf(ptr noundef, i32 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 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmph_z6nxgh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Please specify a file name\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"rt\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"main\00", align 1
@EOF = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [13 x i8] c"[LINES]\0A%d\0A\0A\00", align 1
@.str.4 = private unnamed_addr constant [18 x i8] c"[CHARACTERS]\0A%d\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr %4, align 4
%12 = icmp ne i32 %11, 2
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = call i32 @puts(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %65
15: ; preds = %2
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 1
%18 = load ptr, ptr %17, align 8
%19 = call ptr @fopen(ptr noundef %18, ptr noundef @.str.1)
store ptr %19, ptr %6, align 8
%20 = load ptr, ptr %6, align 8
%21 = icmp eq ptr %20, null
br i1 %21, label %22, label %24
22: ; preds = %15
%23 = call i32 @perror(ptr noundef @.str.2)
store i32 2, ptr %3, align 4
br label %65
24: ; preds = %15
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 1, ptr %10, align 4
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 1
%27 = load ptr, ptr %26, align 8
%28 = call i32 @puts(ptr noundef %27)
%29 = load ptr, ptr %6, align 8
%30 = call i32 @fgetc(ptr noundef %29)
store i32 %30, ptr %9, align 4
%31 = load i32, ptr @EOF, align 4
%32 = icmp ne i32 %30, %31
br i1 %32, label %.lr.ph, label %52
.lr.ph: ; preds = %24
br label %33
33: ; preds = %.lr.ph, %47
%34 = load i32, ptr %9, align 4
%35 = icmp eq i32 %34, 10
br i1 %35, label %36, label %39
36: ; preds = %33
%37 = load i32, ptr %7, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %7, align 4
store i32 1, ptr %10, align 4
br label %40
39: ; preds = %33
store i32 0, ptr %10, align 4
br label %40
40: ; preds = %39, %36
%41 = load i32, ptr %9, align 4
%42 = call i32 @isspace(i32 noundef %41) #3
%43 = icmp ne i32 %42, 0
br i1 %43, label %47, label %44
44: ; preds = %40
%45 = load i32, ptr %8, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %8, align 4
br label %47
47: ; preds = %44, %40
%48 = load ptr, ptr %6, align 8
%49 = call i32 @fgetc(ptr noundef %48)
store i32 %49, ptr %9, align 4
%50 = load i32, ptr @EOF, align 4
%51 = icmp ne i32 %49, %50
br i1 %51, label %33, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %47
br label %52
52: ; preds = %._crit_edge, %24
%53 = load i32, ptr %10, align 4
%54 = icmp ne i32 %53, 1
br i1 %54, label %55, label %58
55: ; preds = %52
%56 = load i32, ptr %7, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %7, align 4
br label %58
58: ; preds = %55, %52
%59 = load i32, ptr %7, align 4
%60 = call i32 @printf(ptr noundef @.str.3, i32 noundef %59)
%61 = load i32, ptr %8, align 4
%62 = call i32 @printf(ptr noundef @.str.4, i32 noundef %61)
%63 = load ptr, ptr %6, align 8
%64 = call i32 @fclose(ptr noundef %63)
store i32 0, ptr %3, align 4
br label %65
65: ; preds = %58, %22, %13
%66 = load i32, ptr %3, align 4
ret i32 %66
}
declare i32 @puts(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @fgetc(ptr noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @isspace(i32 noundef) #2
declare i32 @printf(ptr noundef, i32 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 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpi3ced9cq.c'
source_filename = "/tmp/tmpi3ced9cq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"File type: \00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"No file type\0A\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"Relocatable file\0A\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"Executable file\0A\00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"Shared object file\0A\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"Core file\0A\00", align 1
@.str.6 = private unnamed_addr constant [11 x i8] c"not found\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @parse_type(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = load i32, ptr %2, align 4
switch i32 %4, label %15 [
i32 129, label %5
i32 128, label %7
i32 130, label %9
i32 131, label %11
i32 132, label %13
]
5: ; preds = %1
%6 = call i32 @printf(ptr noundef @.str.1)
br label %17
7: ; preds = %1
%8 = call i32 @printf(ptr noundef @.str.2)
br label %17
9: ; preds = %1
%10 = call i32 @printf(ptr noundef @.str.3)
br label %17
11: ; preds = %1
%12 = call i32 @printf(ptr noundef @.str.4)
br label %17
13: ; preds = %1
%14 = call i32 @printf(ptr noundef @.str.5)
br label %17
15: ; preds = %1
%16 = call i32 @printf(ptr noundef @.str.6)
br label %17
17: ; preds = %15, %13, %11, %9, %7, %5
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/tmpi3ced9cq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"File type: \00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"No file type\0A\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"Relocatable file\0A\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"Executable file\0A\00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"Shared object file\0A\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"Core file\0A\00", align 1
@.str.6 = private unnamed_addr constant [11 x i8] c"not found\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @parse_type(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = load i32, ptr %2, align 4
switch i32 %4, label %15 [
i32 129, label %5
i32 128, label %7
i32 130, label %9
i32 131, label %11
i32 132, label %13
]
5: ; preds = %1
%6 = call i32 @printf(ptr noundef @.str.1)
br label %17
7: ; preds = %1
%8 = call i32 @printf(ptr noundef @.str.2)
br label %17
9: ; preds = %1
%10 = call i32 @printf(ptr noundef @.str.3)
br label %17
11: ; preds = %1
%12 = call i32 @printf(ptr noundef @.str.4)
br label %17
13: ; preds = %1
%14 = call i32 @printf(ptr noundef @.str.5)
br label %17
15: ; preds = %1
%16 = call i32 @printf(ptr noundef @.str.6)
br label %17
17: ; preds = %15, %13, %11, %9, %7, %5
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/tmpebwtilzh.c'
source_filename = "/tmp/tmpebwtilzh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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/mychar0\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [21 x i8] c"Error Opening File: \00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"Got Select\0A\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"Value read is %c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i8, align 1
store i32 0, ptr %1, align 4
%7 = load i32, ptr @O_RDWR, align 4
%8 = call i32 @open(ptr noundef @.str, i32 noundef %7)
store i32 %8, ptr %2, align 4
%9 = icmp eq i32 %8, -1
br i1 %9, label %10, label %12
10: ; preds = %0
%11 = call i32 @perror(ptr noundef @.str.1)
store i32 -1, ptr %1, align 4
br label %40
12: ; preds = %0
%13 = call i32 @FD_ZERO(ptr noundef %3)
%14 = load i32, ptr %2, align 4
%15 = call i32 @FD_SET(i32 noundef %14, ptr noundef %3)
%16 = load i32, ptr %3, align 4
store i32 %16, ptr %4, align 4
%17 = load i32, ptr %2, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %5, align 4
br label %19
19: ; preds = %37, %12
%20 = load i32, ptr %5, align 4
%21 = call i64 @select(i32 noundef %20, ptr noundef %4, ptr noundef null, ptr noundef null, ptr noundef null)
%22 = icmp sgt i64 %21, 0
br i1 %22, label %23, label %39
23: ; preds = %19
%24 = load i32, ptr %2, align 4
%25 = call i64 @FD_ISSET(i32 noundef %24, ptr noundef %4)
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %37
27: ; preds = %23
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%29 = load i32, ptr %2, align 4
%30 = call i64 @read(i32 noundef %29, ptr noundef %6, i32 noundef 1)
%31 = icmp sgt i64 %30, 0
br i1 %31, label %32, label %36
32: ; preds = %27
%33 = load i8, ptr %6, align 1
%34 = sext i8 %33 to i32
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %34)
br label %36
36: ; preds = %32, %27
br label %37
37: ; preds = %36, %23
%38 = load i32, ptr %3, align 4
store i32 %38, ptr %4, align 4
br label %19, !llvm.loop !6
39: ; preds = %19
store i32 0, ptr %1, align 4
br label %40
40: ; preds = %39, %10
%41 = load i32, ptr %1, align 4
ret i32 %41
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @FD_ZERO(ptr noundef) #1
declare i32 @FD_SET(i32 noundef, ptr noundef) #1
declare i64 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @FD_ISSET(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpebwtilzh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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/mychar0\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [21 x i8] c"Error Opening File: \00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"Got Select\0A\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"Value read is %c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i8, align 1
store i32 0, ptr %1, align 4
%7 = load i32, ptr @O_RDWR, align 4
%8 = call i32 @open(ptr noundef @.str, i32 noundef %7)
store i32 %8, ptr %2, align 4
%9 = icmp eq i32 %8, -1
br i1 %9, label %10, label %12
10: ; preds = %0
%11 = call i32 @perror(ptr noundef @.str.1)
store i32 -1, ptr %1, align 4
br label %42
12: ; preds = %0
%13 = call i32 @FD_ZERO(ptr noundef %3)
%14 = load i32, ptr %2, align 4
%15 = call i32 @FD_SET(i32 noundef %14, ptr noundef %3)
%16 = load i32, ptr %3, align 4
store i32 %16, ptr %4, align 4
%17 = load i32, ptr %2, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %5, align 4
%19 = load i32, ptr %5, align 4
%20 = call i64 @select(i32 noundef %19, ptr noundef %4, ptr noundef null, ptr noundef null, ptr noundef null)
%21 = icmp sgt i64 %20, 0
br i1 %21, label %.lr.ph, label %41
.lr.ph: ; preds = %12
br label %22
22: ; preds = %.lr.ph, %36
%23 = load i32, ptr %2, align 4
%24 = call i64 @FD_ISSET(i32 noundef %23, ptr noundef %4)
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %36
26: ; preds = %22
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%28 = load i32, ptr %2, align 4
%29 = call i64 @read(i32 noundef %28, ptr noundef %6, i32 noundef 1)
%30 = icmp sgt i64 %29, 0
br i1 %30, label %31, label %35
31: ; preds = %26
%32 = load i8, ptr %6, align 1
%33 = sext i8 %32 to i32
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %33)
br label %35
35: ; preds = %31, %26
br label %36
36: ; preds = %35, %22
%37 = load i32, ptr %3, align 4
store i32 %37, ptr %4, align 4
%38 = load i32, ptr %5, align 4
%39 = call i64 @select(i32 noundef %38, ptr noundef %4, ptr noundef null, ptr noundef null, ptr noundef null)
%40 = icmp sgt i64 %39, 0
br i1 %40, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %36
br label %41
41: ; preds = %._crit_edge, %12
store i32 0, ptr %1, align 4
br label %42
42: ; preds = %41, %10
%43 = load i32, ptr %1, align 4
ret i32 %43
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @FD_ZERO(ptr noundef) #1
declare i32 @FD_SET(i32 noundef, ptr noundef) #1
declare i64 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @FD_ISSET(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp3ympzy2y.c'
source_filename = "/tmp/tmp3ympzy2y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_flockfile_debug_stub(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = call i32 @_flockfile(ptr noundef %7)
ret void
}
declare i32 @_flockfile(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3ympzy2y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_flockfile_debug_stub(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = call i32 @_flockfile(ptr noundef %7)
ret void
}
declare i32 @_flockfile(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqw_mlu55.c'
source_filename = "/tmp/tmpqw_mlu55.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bar(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
store i64 %0, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = inttoptr i64 %4 to ptr
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
store i32 1, ptr %6, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqw_mlu55.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bar(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
store i64 %0, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = inttoptr i64 %4 to ptr
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
store i32 1, ptr %6, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpj6medos5.c'
source_filename = "/tmp/tmpj6medos5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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/ttyACM0\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"stop\0D\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"slist 0 0\0D\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"slist 1 1\0D\00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c"slist 2 2\0D\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"slist 3 3\0D\00", align 1
@.str.6 = private unnamed_addr constant [15 x i8] c"slist 4 65535\0D\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c"bin\0D\00", align 1
@.str.8 = private unnamed_addr constant [7 x i8] c"start\0D\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @initDataQSerial() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [128 x i8], align 16
%6 = call i32 @serialOpen(ptr noundef @.str, i32 noundef 4800)
store i32 %6, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp eq i32 %7, -1
br i1 %8, label %9, label %10
9: ; preds = %0
store i32 -1, ptr %1, align 4
br label %40
10: ; preds = %0
%11 = load i32, ptr %4, align 4
%12 = call i32 @write(i32 noundef %11, ptr noundef @.str.1, i32 noundef 5)
%13 = call i32 @usleep(i32 noundef 10000)
%14 = load i32, ptr %4, align 4
%15 = call i32 @serialFlush(i32 noundef %14)
%16 = load i32, ptr %4, align 4
%17 = call i32 @write(i32 noundef %16, ptr noundef @.str.2, i32 noundef 10)
%18 = call i32 @usleep(i32 noundef 20000)
%19 = load i32, ptr %4, align 4
%20 = call i32 @write(i32 noundef %19, ptr noundef @.str.3, i32 noundef 10)
%21 = call i32 @usleep(i32 noundef 20000)
%22 = load i32, ptr %4, align 4
%23 = call i32 @write(i32 noundef %22, ptr noundef @.str.4, i32 noundef 10)
%24 = call i32 @usleep(i32 noundef 20000)
%25 = load i32, ptr %4, align 4
%26 = call i32 @write(i32 noundef %25, ptr noundef @.str.5, i32 noundef 10)
%27 = call i32 @usleep(i32 noundef 20000)
%28 = load i32, ptr %4, align 4
%29 = call i32 @write(i32 noundef %28, ptr noundef @.str.6, i32 noundef 14)
%30 = call i32 @usleep(i32 noundef 28000)
%31 = load i32, ptr %4, align 4
%32 = call i32 @write(i32 noundef %31, ptr noundef @.str.7, i32 noundef 4)
%33 = call i32 @usleep(i32 noundef 8000)
%34 = load i32, ptr %4, align 4
%35 = call i32 @write(i32 noundef %34, ptr noundef @.str.8, i32 noundef 6)
%36 = call i32 @usleep(i32 noundef 12000)
%37 = load i32, ptr %4, align 4
%38 = call i32 @serialFlush(i32 noundef %37)
%39 = load i32, ptr %4, align 4
store i32 %39, ptr %1, align 4
br label %40
40: ; preds = %10, %9
%41 = load i32, ptr %1, align 4
ret i32 %41
}
declare i32 @serialOpen(ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @usleep(i32 noundef) #1
declare i32 @serialFlush(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/tmpj6medos5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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/ttyACM0\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"stop\0D\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"slist 0 0\0D\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"slist 1 1\0D\00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c"slist 2 2\0D\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"slist 3 3\0D\00", align 1
@.str.6 = private unnamed_addr constant [15 x i8] c"slist 4 65535\0D\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c"bin\0D\00", align 1
@.str.8 = private unnamed_addr constant [7 x i8] c"start\0D\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @initDataQSerial() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [128 x i8], align 16
%6 = call i32 @serialOpen(ptr noundef @.str, i32 noundef 4800)
store i32 %6, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp eq i32 %7, -1
br i1 %8, label %9, label %10
9: ; preds = %0
store i32 -1, ptr %1, align 4
br label %40
10: ; preds = %0
%11 = load i32, ptr %4, align 4
%12 = call i32 @write(i32 noundef %11, ptr noundef @.str.1, i32 noundef 5)
%13 = call i32 @usleep(i32 noundef 10000)
%14 = load i32, ptr %4, align 4
%15 = call i32 @serialFlush(i32 noundef %14)
%16 = load i32, ptr %4, align 4
%17 = call i32 @write(i32 noundef %16, ptr noundef @.str.2, i32 noundef 10)
%18 = call i32 @usleep(i32 noundef 20000)
%19 = load i32, ptr %4, align 4
%20 = call i32 @write(i32 noundef %19, ptr noundef @.str.3, i32 noundef 10)
%21 = call i32 @usleep(i32 noundef 20000)
%22 = load i32, ptr %4, align 4
%23 = call i32 @write(i32 noundef %22, ptr noundef @.str.4, i32 noundef 10)
%24 = call i32 @usleep(i32 noundef 20000)
%25 = load i32, ptr %4, align 4
%26 = call i32 @write(i32 noundef %25, ptr noundef @.str.5, i32 noundef 10)
%27 = call i32 @usleep(i32 noundef 20000)
%28 = load i32, ptr %4, align 4
%29 = call i32 @write(i32 noundef %28, ptr noundef @.str.6, i32 noundef 14)
%30 = call i32 @usleep(i32 noundef 28000)
%31 = load i32, ptr %4, align 4
%32 = call i32 @write(i32 noundef %31, ptr noundef @.str.7, i32 noundef 4)
%33 = call i32 @usleep(i32 noundef 8000)
%34 = load i32, ptr %4, align 4
%35 = call i32 @write(i32 noundef %34, ptr noundef @.str.8, i32 noundef 6)
%36 = call i32 @usleep(i32 noundef 12000)
%37 = load i32, ptr %4, align 4
%38 = call i32 @serialFlush(i32 noundef %37)
%39 = load i32, ptr %4, align 4
store i32 %39, ptr %1, align 4
br label %40
40: ; preds = %10, %9
%41 = load i32, ptr %1, align 4
ret i32 %41
}
declare i32 @serialOpen(ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @usleep(i32 noundef) #1
declare i32 @serialFlush(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/tmpakhgud63.c'
source_filename = "/tmp/tmpakhgud63.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Ciao Mondo!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpakhgud63.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Ciao Mondo!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmoqx8fac.c'
source_filename = "/tmp/tmpmoqx8fac.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"A.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"B.txt\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.4 = private unnamed_addr constant [36 x i8] c"\0AErro na abertura do arquivo A!!!\0A\0A\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"pause\00", align 1
@.str.6 = private unnamed_addr constant [36 x i8] c"\0AErro na abertura do arquivo B!!!\0A\0A\00", align 1
@.str.7 = private unnamed_addr constant [36 x i8] c"\09Texto presente no arquivo A.txt:\0A\0A\00", align 1
@.str.8 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.9 = private unnamed_addr constant [41 x i8] c"\0A\0A\09Texto copiado para o arquivo B.txt:\0A\0A\00", align 1
@.str.10 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
store i32 0, ptr %1, align 4
%5 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %5, ptr %2, align 8
%6 = call ptr @fopen(ptr noundef @.str.2, ptr noundef @.str.3)
store ptr %6, ptr %3, align 8
%7 = load ptr, ptr %2, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %12, label %9
9: ; preds = %0
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%11 = call i32 @system(ptr noundef @.str.5)
store i32 0, ptr %1, align 4
br label %54
12: ; preds = %0
%13 = load ptr, ptr %3, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %18, label %15
15: ; preds = %12
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%17 = call i32 @system(ptr noundef @.str.5)
store i32 0, ptr %1, align 4
br label %54
18: ; preds = %12
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %20
20: ; preds = %25, %18
%21 = load ptr, ptr %2, align 8
%22 = call i32 @feof(ptr noundef %21)
%23 = icmp ne i32 %22, 0
%24 = xor i1 %23, true
br i1 %24, label %25, label %31
25: ; preds = %20
%26 = load ptr, ptr %2, align 8
%27 = call signext i8 @fgetc(ptr noundef %26)
store i8 %27, ptr %4, align 1
%28 = load i8, ptr %4, align 1
%29 = sext i8 %28 to i32
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %29)
br label %20, !llvm.loop !6
31: ; preds = %20
%32 = load ptr, ptr %2, align 8
%33 = load ptr, ptr %3, align 8
%34 = call i32 @copiar(ptr noundef %32, ptr noundef %33)
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %36
36: ; preds = %41, %31
%37 = load ptr, ptr %3, align 8
%38 = call i32 @feof(ptr noundef %37)
%39 = icmp ne i32 %38, 0
%40 = xor i1 %39, true
br i1 %40, label %41, label %47
41: ; preds = %36
%42 = load ptr, ptr %3, align 8
%43 = call signext i8 @fgetc(ptr noundef %42)
store i8 %43, ptr %4, align 1
%44 = load i8, ptr %4, align 1
%45 = sext i8 %44 to i32
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %45)
br label %36, !llvm.loop !8
47: ; preds = %36
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%49 = load ptr, ptr %2, align 8
%50 = call i32 @fclose(ptr noundef %49)
%51 = load ptr, ptr %3, align 8
%52 = call i32 @fclose(ptr noundef %51)
%53 = call i32 @system(ptr noundef @.str.5)
store i32 0, ptr %1, align 4
br label %54
54: ; preds = %47, %15, %9
%55 = load i32, ptr %1, align 4
ret i32 %55
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @system(ptr noundef) #1
declare i32 @feof(ptr noundef) #1
declare signext i8 @fgetc(ptr noundef) #1
declare i32 @copiar(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmoqx8fac.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"A.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"B.txt\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.4 = private unnamed_addr constant [36 x i8] c"\0AErro na abertura do arquivo A!!!\0A\0A\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"pause\00", align 1
@.str.6 = private unnamed_addr constant [36 x i8] c"\0AErro na abertura do arquivo B!!!\0A\0A\00", align 1
@.str.7 = private unnamed_addr constant [36 x i8] c"\09Texto presente no arquivo A.txt:\0A\0A\00", align 1
@.str.8 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.9 = private unnamed_addr constant [41 x i8] c"\0A\0A\09Texto copiado para o arquivo B.txt:\0A\0A\00", align 1
@.str.10 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
store i32 0, ptr %1, align 4
%5 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %5, ptr %2, align 8
%6 = call ptr @fopen(ptr noundef @.str.2, ptr noundef @.str.3)
store ptr %6, ptr %3, align 8
%7 = load ptr, ptr %2, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %12, label %9
9: ; preds = %0
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%11 = call i32 @system(ptr noundef @.str.5)
store i32 0, ptr %1, align 4
br label %60
12: ; preds = %0
%13 = load ptr, ptr %3, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %18, label %15
15: ; preds = %12
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%17 = call i32 @system(ptr noundef @.str.5)
store i32 0, ptr %1, align 4
br label %60
18: ; preds = %12
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%20 = load ptr, ptr %2, align 8
%21 = call i32 @feof(ptr noundef %20)
%22 = icmp ne i32 %21, 0
%23 = xor i1 %22, true
br i1 %23, label %.lr.ph, label %34
.lr.ph: ; preds = %18
br label %24
24: ; preds = %.lr.ph, %24
%25 = load ptr, ptr %2, align 8
%26 = call signext i8 @fgetc(ptr noundef %25)
store i8 %26, ptr %4, align 1
%27 = load i8, ptr %4, align 1
%28 = sext i8 %27 to i32
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %28)
%30 = load ptr, ptr %2, align 8
%31 = call i32 @feof(ptr noundef %30)
%32 = icmp ne i32 %31, 0
%33 = xor i1 %32, true
br i1 %33, label %24, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %34
34: ; preds = %._crit_edge, %18
%35 = load ptr, ptr %2, align 8
%36 = load ptr, ptr %3, align 8
%37 = call i32 @copiar(ptr noundef %35, ptr noundef %36)
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%39 = load ptr, ptr %3, align 8
%40 = call i32 @feof(ptr noundef %39)
%41 = icmp ne i32 %40, 0
%42 = xor i1 %41, true
br i1 %42, label %.lr.ph2, label %53
.lr.ph2: ; preds = %34
br label %43
43: ; preds = %.lr.ph2, %43
%44 = load ptr, ptr %3, align 8
%45 = call signext i8 @fgetc(ptr noundef %44)
store i8 %45, ptr %4, align 1
%46 = load i8, ptr %4, align 1
%47 = sext i8 %46 to i32
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %47)
%49 = load ptr, ptr %3, align 8
%50 = call i32 @feof(ptr noundef %49)
%51 = icmp ne i32 %50, 0
%52 = xor i1 %51, true
br i1 %52, label %43, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %43
br label %53
53: ; preds = %._crit_edge3, %34
%54 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%55 = load ptr, ptr %2, align 8
%56 = call i32 @fclose(ptr noundef %55)
%57 = load ptr, ptr %3, align 8
%58 = call i32 @fclose(ptr noundef %57)
%59 = call i32 @system(ptr noundef @.str.5)
store i32 0, ptr %1, align 4
br label %60
60: ; preds = %53, %15, %9
%61 = load i32, ptr %1, align 4
ret i32 %61
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @system(ptr noundef) #1
declare i32 @feof(ptr noundef) #1
declare signext i8 @fgetc(ptr noundef) #1
declare i32 @copiar(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpn76rhkaz.c'
source_filename = "/tmp/tmpn76rhkaz.c"
target datalayout = "e-m:e-p270: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/tmpn76rhkaz.c"
target datalayout = "e-m:e-p270: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/tmpc3z0765y.c'
source_filename = "/tmp/tmpc3z0765y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i8 0, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 1, ptr %3, align 4
br label %6
6: ; preds = %73, %0
%7 = call signext i8 (...) @getchar()
store i8 %7, ptr %2, align 1
%8 = sext i8 %7 to i32
%9 = load i8, ptr @EOF, align 1
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %8, %10
br i1 %11, label %12, label %76
12: ; preds = %6
%13 = load i8, ptr %2, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 32
br i1 %15, label %16, label %27
16: ; preds = %12
%17 = load i32, ptr %3, align 4
%18 = srem i32 %17, 4
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %16
%21 = load i32, ptr %5, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %5, align 4
br label %26
23: ; preds = %16
store i32 0, ptr %5, align 4
%24 = load i32, ptr %4, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %4, align 4
br label %26
26: ; preds = %23, %20
br label %72
27: ; preds = %12
br label %28
28: ; preds = %33, %27
%29 = load i32, ptr %4, align 4
%30 = icmp sgt i32 %29, 0
br i1 %30, label %31, label %36
31: ; preds = %28
%32 = call i32 @putchar(i8 noundef signext 9)
br label %33
33: ; preds = %31
%34 = load i32, ptr %4, align 4
%35 = add nsw i32 %34, -1
store i32 %35, ptr %4, align 4
br label %28, !llvm.loop !6
36: ; preds = %28
%37 = load i8, ptr %2, align 1
%38 = sext i8 %37 to i32
%39 = icmp eq i32 %38, 9
br i1 %39, label %40, label %41
40: ; preds = %36
store i32 0, ptr %5, align 4
br label %51
41: ; preds = %36
br label %42
42: ; preds = %47, %41
%43 = load i32, ptr %5, align 4
%44 = icmp sgt i32 %43, 0
br i1 %44, label %45, label %50
45: ; preds = %42
%46 = call i32 @putchar(i8 noundef signext 32)
br label %47
47: ; preds = %45
%48 = load i32, ptr %5, align 4
%49 = add nsw i32 %48, -1
store i32 %49, ptr %5, align 4
br label %42, !llvm.loop !8
50: ; preds = %42
br label %51
51: ; preds = %50, %40
%52 = load i8, ptr %2, align 1
%53 = call i32 @putchar(i8 noundef signext %52)
%54 = load i8, ptr %2, align 1
%55 = sext i8 %54 to i32
%56 = icmp eq i32 %55, 10
br i1 %56, label %57, label %58
57: ; preds = %51
store i32 0, ptr %3, align 4
br label %71
58: ; preds = %51
%59 = load i8, ptr %2, align 1
%60 = sext i8 %59 to i32
%61 = icmp eq i32 %60, 9
br i1 %61, label %62, label %70
62: ; preds = %58
%63 = load i32, ptr %3, align 4
%64 = load i32, ptr %3, align 4
%65 = sub nsw i32 %64, 1
%66 = srem i32 %65, 4
%67 = sub nsw i32 4, %66
%68 = add nsw i32 %63, %67
%69 = sub nsw i32 %68, 1
store i32 %69, ptr %3, align 4
br label %70
70: ; preds = %62, %58
br label %71
71: ; preds = %70, %57
br label %72
72: ; preds = %71, %26
br label %73
73: ; preds = %72
%74 = load i32, ptr %3, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %3, align 4
br label %6, !llvm.loop !9
76: ; preds = %6
ret i32 0
}
declare signext i8 @getchar(...) #1
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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc3z0765y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i8 0, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 1, ptr %3, align 4
%6 = call signext i8 (...) @getchar()
store i8 %6, ptr %2, align 1
%7 = sext i8 %6 to i32
%8 = load i8, ptr @EOF, align 1
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %7, %9
br i1 %10, label %.lr.ph5, label %82
.lr.ph5: ; preds = %0
br label %11
11: ; preds = %.lr.ph5, %74
%12 = load i8, ptr %2, align 1
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %13, 32
br i1 %14, label %15, label %26
15: ; preds = %11
%16 = load i32, ptr %3, align 4
%17 = srem i32 %16, 4
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %15
%20 = load i32, ptr %5, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %5, align 4
br label %25
22: ; preds = %15
store i32 0, ptr %5, align 4
%23 = load i32, ptr %4, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %4, align 4
br label %25
25: ; preds = %22, %19
br label %73
26: ; preds = %11
%27 = load i32, ptr %4, align 4
%28 = icmp sgt i32 %27, 0
br i1 %28, label %.lr.ph, label %36
.lr.ph: ; preds = %26
br label %29
29: ; preds = %.lr.ph, %31
%30 = call i32 @putchar(i8 noundef signext 9)
br label %31
31: ; preds = %29
%32 = load i32, ptr %4, align 4
%33 = add nsw i32 %32, -1
store i32 %33, ptr %4, align 4
%34 = load i32, ptr %4, align 4
%35 = icmp sgt i32 %34, 0
br i1 %35, label %29, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %31
br label %36
36: ; preds = %._crit_edge, %26
%37 = load i8, ptr %2, align 1
%38 = sext i8 %37 to i32
%39 = icmp eq i32 %38, 9
br i1 %39, label %40, label %41
40: ; preds = %36
store i32 0, ptr %5, align 4
br label %52
41: ; preds = %36
%42 = load i32, ptr %5, align 4
%43 = icmp sgt i32 %42, 0
br i1 %43, label %.lr.ph2, label %51
.lr.ph2: ; preds = %41
br label %44
44: ; preds = %.lr.ph2, %46
%45 = call i32 @putchar(i8 noundef signext 32)
br label %46
46: ; preds = %44
%47 = load i32, ptr %5, align 4
%48 = add nsw i32 %47, -1
store i32 %48, ptr %5, align 4
%49 = load i32, ptr %5, align 4
%50 = icmp sgt i32 %49, 0
br i1 %50, label %44, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %46
br label %51
51: ; preds = %._crit_edge3, %41
br label %52
52: ; preds = %51, %40
%53 = load i8, ptr %2, align 1
%54 = call i32 @putchar(i8 noundef signext %53)
%55 = load i8, ptr %2, align 1
%56 = sext i8 %55 to i32
%57 = icmp eq i32 %56, 10
br i1 %57, label %58, label %59
58: ; preds = %52
store i32 0, ptr %3, align 4
br label %72
59: ; preds = %52
%60 = load i8, ptr %2, align 1
%61 = sext i8 %60 to i32
%62 = icmp eq i32 %61, 9
br i1 %62, label %63, label %71
63: ; preds = %59
%64 = load i32, ptr %3, align 4
%65 = load i32, ptr %3, align 4
%66 = sub nsw i32 %65, 1
%67 = srem i32 %66, 4
%68 = sub nsw i32 4, %67
%69 = add nsw i32 %64, %68
%70 = sub nsw i32 %69, 1
store i32 %70, ptr %3, align 4
br label %71
71: ; preds = %63, %59
br label %72
72: ; preds = %71, %58
br label %73
73: ; preds = %72, %25
br label %74
74: ; preds = %73
%75 = load i32, ptr %3, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %3, align 4
%77 = call signext i8 (...) @getchar()
store i8 %77, ptr %2, align 1
%78 = sext i8 %77 to i32
%79 = load i8, ptr @EOF, align 1
%80 = sext i8 %79 to i32
%81 = icmp ne i32 %78, %80
br i1 %81, label %11, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %74
br label %82
82: ; preds = %._crit_edge6, %0
ret i32 0
}
declare signext i8 @getchar(...) #1
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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpo4zhfxoj.c'
source_filename = "/tmp/tmpo4zhfxoj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PROT_READ = dso_local global i32 0, align 4
@PROT_WRITE = dso_local global i32 0, align 4
@MAP_PRIVATE = dso_local global i32 0, align 4
@MAP_ANONYMOUS = dso_local global i32 0, align 4
@MAP_LOCKED = dso_local global i32 0, align 4
@MAP_FAILED = dso_local global ptr null, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sigusr_handler(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%5 = call i32 (...) @getpagesize()
%6 = mul nsw i32 %5, 2
store i32 %6, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr @PROT_READ, align 4
%9 = load i32, ptr @PROT_WRITE, align 4
%10 = or i32 %8, %9
%11 = load i32, ptr @MAP_PRIVATE, align 4
%12 = load i32, ptr @MAP_ANONYMOUS, align 4
%13 = or i32 %11, %12
%14 = load i32, ptr @MAP_LOCKED, align 4
%15 = or i32 %13, %14
%16 = call ptr @mmap(ptr noundef null, i32 noundef %7, i32 noundef %10, i32 noundef %15, i32 noundef 0, i32 noundef 0)
store ptr %16, ptr %3, align 8
%17 = load ptr, ptr %3, align 8
%18 = load ptr, ptr @MAP_FAILED, align 8
%19 = icmp eq ptr %17, %18
br i1 %19, label %20, label %22
20: ; preds = %1
%21 = call i32 @exit(i32 noundef 1) #3
unreachable
22: ; preds = %1
ret void
}
declare i32 @getpagesize(...) #1
declare ptr @mmap(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo4zhfxoj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PROT_READ = dso_local global i32 0, align 4
@PROT_WRITE = dso_local global i32 0, align 4
@MAP_PRIVATE = dso_local global i32 0, align 4
@MAP_ANONYMOUS = dso_local global i32 0, align 4
@MAP_LOCKED = dso_local global i32 0, align 4
@MAP_FAILED = dso_local global ptr null, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sigusr_handler(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%5 = call i32 (...) @getpagesize()
%6 = mul nsw i32 %5, 2
store i32 %6, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr @PROT_READ, align 4
%9 = load i32, ptr @PROT_WRITE, align 4
%10 = or i32 %8, %9
%11 = load i32, ptr @MAP_PRIVATE, align 4
%12 = load i32, ptr @MAP_ANONYMOUS, align 4
%13 = or i32 %11, %12
%14 = load i32, ptr @MAP_LOCKED, align 4
%15 = or i32 %13, %14
%16 = call ptr @mmap(ptr noundef null, i32 noundef %7, i32 noundef %10, i32 noundef %15, i32 noundef 0, i32 noundef 0)
store ptr %16, ptr %3, align 8
%17 = load ptr, ptr %3, align 8
%18 = load ptr, ptr @MAP_FAILED, align 8
%19 = icmp eq ptr %17, %18
br i1 %19, label %20, label %22
20: ; preds = %1
%21 = call i32 @exit(i32 noundef 1) #3
unreachable
22: ; preds = %1
ret void
}
declare i32 @getpagesize(...) #1
declare ptr @mmap(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpojklve_j.c'
source_filename = "/tmp/tmpojklve_j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @curs_down(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
%6 = load ptr, ptr %4, align 8
%7 = call i32 @sum(ptr noundef %6)
store i32 %7, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = icmp sle i32 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %2
store i32 1, ptr %5, align 4
br label %11
11: ; preds = %10, %2
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %5, align 4
%14 = call i32 @move_cursor(ptr noundef %12, i32 noundef %13, i32 noundef 0)
ret void
}
declare i32 @sum(ptr noundef) #1
declare i32 @move_cursor(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpojklve_j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @curs_down(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
%6 = load ptr, ptr %4, align 8
%7 = call i32 @sum(ptr noundef %6)
store i32 %7, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = icmp sle i32 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %2
store i32 1, ptr %5, align 4
br label %11
11: ; preds = %10, %2
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %5, align 4
%14 = call i32 @move_cursor(ptr noundef %12, i32 noundef %13, i32 noundef 0)
ret void
}
declare i32 @sum(ptr noundef) #1
declare i32 @move_cursor(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4zoge95e.c'
source_filename = "/tmp/tmp4zoge95e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%d %d %d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %4, align 4
%10 = srem i32 %8, %9
%11 = sub nsw i32 %7, %10
store i32 %11, ptr %5, align 4
%12 = load i32, ptr %5, align 4
%13 = load i32, ptr %2, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %19
15: ; preds = %0
%16 = load i32, ptr %4, align 4
%17 = load i32, ptr %5, align 4
%18 = add nsw i32 %17, %16
store i32 %18, ptr %5, align 4
br label %19
19: ; preds = %15, %0
br label %20
20: ; preds = %27, %19
%21 = load i32, ptr %5, align 4
%22 = load i32, ptr %3, align 4
%23 = icmp sle i32 %21, %22
br i1 %23, label %24, label %31
24: ; preds = %20
%25 = load i32, ptr %5, align 4
%26 = call i32 @printf(ptr noundef @.str.1, i32 noundef %25)
br label %27
27: ; preds = %24
%28 = load i32, ptr %4, align 4
%29 = load i32, ptr %5, align 4
%30 = add nsw i32 %29, %28
store i32 %30, ptr %5, align 4
br label %20, !llvm.loop !6
31: ; preds = %20
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4zoge95e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%d %d %d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %4, align 4
%10 = srem i32 %8, %9
%11 = sub nsw i32 %7, %10
store i32 %11, ptr %5, align 4
%12 = load i32, ptr %5, align 4
%13 = load i32, ptr %2, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %19
15: ; preds = %0
%16 = load i32, ptr %4, align 4
%17 = load i32, ptr %5, align 4
%18 = add nsw i32 %17, %16
store i32 %18, ptr %5, align 4
br label %19
19: ; preds = %15, %0
%20 = load i32, ptr %5, align 4
%21 = load i32, ptr %3, align 4
%22 = icmp sle i32 %20, %21
br i1 %22, label %.lr.ph, label %33
.lr.ph: ; preds = %19
br label %23
23: ; preds = %.lr.ph, %26
%24 = load i32, ptr %5, align 4
%25 = call i32 @printf(ptr noundef @.str.1, i32 noundef %24)
br label %26
26: ; preds = %23
%27 = load i32, ptr %4, align 4
%28 = load i32, ptr %5, align 4
%29 = add nsw i32 %28, %27
store i32 %29, ptr %5, align 4
%30 = load i32, ptr %5, align 4
%31 = load i32, ptr %3, align 4
%32 = icmp sle i32 %30, %31
br i1 %32, label %23, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %33
33: ; preds = %._crit_edge, %19
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpqr_fnv4w.c'
source_filename = "/tmp/tmpqr_fnv4w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @j_graphiclabel(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = load ptr, ptr %4, align 8
%7 = call i32 @japi_graphiclabel(i32 noundef %5, ptr noundef %6)
ret i32 %7
}
declare i32 @japi_graphiclabel(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/tmpqr_fnv4w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @j_graphiclabel(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = load ptr, ptr %4, align 8
%7 = call i32 @japi_graphiclabel(i32 noundef %5, ptr noundef %6)
ret i32 %7
}
declare i32 @japi_graphiclabel(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/tmp56iibqcj.c'
source_filename = "/tmp/tmp56iibqcj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [51 x i8] c"Assertion '%s' failed, at file %s:%d, function %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @__assert_fail(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %6, align 8
%11 = load i32, ptr %7, align 4
%12 = load ptr, ptr %8, align 8
%13 = call i32 @printf(ptr noundef @.str, ptr noundef %9, ptr noundef %10, i32 noundef %11, ptr noundef %12)
br label %14
14: ; preds = %14, %4
br label %14
}
declare i32 @printf(ptr noundef, ptr 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/tmp56iibqcj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [51 x i8] c"Assertion '%s' failed, at file %s:%d, function %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @__assert_fail(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %6, align 8
%11 = load i32, ptr %7, align 4
%12 = load ptr, ptr %8, align 8
%13 = call i32 @printf(ptr noundef @.str, ptr noundef %9, ptr noundef %10, i32 noundef %11, ptr noundef %12)
br label %14
14: ; preds = %14, %4
br label %14
}
declare i32 @printf(ptr noundef, ptr 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/tmp2edyvxv_.c'
source_filename = "/tmp/tmp2edyvxv_.c"
target datalayout = "e-m:e-p270: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/tmp2edyvxv_.c"
target datalayout = "e-m:e-p270: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/tmp9qjxdba_.c'
source_filename = "/tmp/tmp9qjxdba_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c" %s\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"%1.2f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [10000 x i8], align 16
%6 = alloca float, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
%7 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %4)
store i32 0, ptr %3, align 4
br label %8
8: ; preds = %22, %0
%9 = load i32, ptr %3, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %25
12: ; preds = %8
%13 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %5)
%14 = getelementptr inbounds [10000 x i8], ptr %5, i64 0, i64 0
%15 = call i32 @strlen(ptr noundef %14)
store i32 %15, ptr %2, align 4
%16 = load i32, ptr %2, align 4
%17 = sitofp i32 %16 to double
%18 = fmul double %17, 1.000000e-02
%19 = fptrunc double %18 to float
store float %19, ptr %6, align 4
%20 = load float, ptr %6, align 4
%21 = call i32 @printf(ptr noundef @.str.2, float noundef %20)
br label %22
22: ; preds = %12
%23 = load i32, ptr %3, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %3, align 4
br label %8, !llvm.loop !6
25: ; preds = %8
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9qjxdba_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c" %s\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"%1.2f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [10000 x i8], align 16
%6 = alloca float, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
%7 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %4)
store i32 0, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %27
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %21
%12 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %5)
%13 = getelementptr inbounds [10000 x i8], ptr %5, i64 0, i64 0
%14 = call i32 @strlen(ptr noundef %13)
store i32 %14, ptr %2, align 4
%15 = load i32, ptr %2, align 4
%16 = sitofp i32 %15 to double
%17 = fmul double %16, 1.000000e-02
%18 = fptrunc double %17 to float
store float %18, ptr %6, align 4
%19 = load float, ptr %6, align 4
%20 = call i32 @printf(ptr noundef @.str.2, float noundef %19)
br label %21
21: ; preds = %11
%22 = load i32, ptr %3, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %3, align 4
%24 = load i32, ptr %3, align 4
%25 = load i32, ptr %4, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %27
27: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpz68dhud2.c'
source_filename = "/tmp/tmpz68dhud2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @gcharminus(i8 noundef signext %0, i8 noundef signext %1) #0 {
%3 = alloca i8, align 1
%4 = alloca i8, align 1
store i8 %0, ptr %3, align 1
store i8 %1, ptr %4, align 1
%5 = load i8, ptr %4, align 1
%6 = sext i8 %5 to i32
%7 = load i8, ptr %3, align 1
%8 = sext i8 %7 to i32
%9 = sub nsw i32 %8, %6
%10 = trunc i32 %9 to i8
store i8 %10, ptr %3, align 1
%11 = load i8, ptr %3, align 1
%12 = icmp ne i8 %11, 0
br i1 %12, label %15, label %13
13: ; preds = %2
%14 = call i32 @foo(ptr noundef null)
br label %15
15: ; preds = %13, %2
%16 = load i8, ptr %3, align 1
ret i8 %16
}
declare i32 @foo(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz68dhud2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @gcharminus(i8 noundef signext %0, i8 noundef signext %1) #0 {
%3 = alloca i8, align 1
%4 = alloca i8, align 1
store i8 %0, ptr %3, align 1
store i8 %1, ptr %4, align 1
%5 = load i8, ptr %4, align 1
%6 = sext i8 %5 to i32
%7 = load i8, ptr %3, align 1
%8 = sext i8 %7 to i32
%9 = sub nsw i32 %8, %6
%10 = trunc i32 %9 to i8
store i8 %10, ptr %3, align 1
%11 = load i8, ptr %3, align 1
%12 = icmp ne i8 %11, 0
br i1 %12, label %15, label %13
13: ; preds = %2
%14 = call i32 @foo(ptr noundef null)
br label %15
15: ; preds = %13, %2
%16 = load i8, ptr %3, align 1
ret i8 %16
}
declare i32 @foo(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8eppm_84.c'
source_filename = "/tmp/tmp8eppm_84.c"
target datalayout = "e-m:e-p270: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/tmp8eppm_84.c"
target datalayout = "e-m:e-p270: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/tmp0tov2rtt.c'
source_filename = "/tmp/tmp0tov2rtt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%s/%s.so\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"/fat-dragon/lib/resh\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"%s: command too long.\00", align 1
@RTLD_NOW = dso_local global i32 0, align 4
@RTLD_LOCAL = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [26 x i8] c"%s: command not found: %s\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"main\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @run_command(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca [128 x i8], align 16
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
%14 = load ptr, ptr %5, align 8
%15 = call ptr @strrchr(ptr noundef %14, i8 noundef signext 47)
store ptr %15, ptr %8, align 8
%16 = load ptr, ptr %8, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %18, label %21
18: ; preds = %3
%19 = load ptr, ptr %8, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 1
store ptr %20, ptr %5, align 8
br label %21
21: ; preds = %18, %3
%22 = getelementptr inbounds [128 x i8], ptr %9, i64 0, i64 0
%23 = load ptr, ptr %5, align 8
%24 = call i32 @snprintf(ptr noundef %22, i32 noundef 128, ptr noundef @.str, ptr noundef @.str.1, ptr noundef %23)
%25 = sext i32 %24 to i64
%26 = icmp ugt i64 %25, 128
br i1 %26, label %27, label %30
27: ; preds = %21
%28 = load ptr, ptr %5, align 8
%29 = call i32 (ptr, ptr, ...) @warnx(ptr noundef @.str.2, ptr noundef %28)
store i32 -1, ptr %4, align 4
br label %66
30: ; preds = %21
%31 = getelementptr inbounds [128 x i8], ptr %9, i64 0, i64 0
%32 = load i32, ptr @RTLD_NOW, align 4
%33 = load i32, ptr @RTLD_LOCAL, align 4
%34 = or i32 %32, %33
%35 = call ptr @dlopen(ptr noundef %31, i32 noundef %34)
store ptr %35, ptr %10, align 8
%36 = load ptr, ptr %10, align 8
%37 = icmp eq ptr %36, null
br i1 %37, label %38, label %42
38: ; preds = %30
%39 = load ptr, ptr %5, align 8
%40 = call i32 (...) @dlerror()
%41 = call i32 (ptr, ptr, ...) @warnx(ptr noundef @.str.3, ptr noundef %39, i32 noundef %40)
store i32 -1, ptr %4, align 4
br label %66
42: ; preds = %30
%43 = load ptr, ptr %10, align 8
%44 = call ptr @dlsym(ptr noundef %43, ptr noundef @.str.4)
store ptr %44, ptr %11, align 8
%45 = load ptr, ptr %11, align 8
%46 = icmp eq ptr %45, null
br i1 %46, label %47, label %52
47: ; preds = %42
%48 = call i32 (...) @dlerror()
%49 = call i32 @perror(i32 noundef %48)
%50 = load ptr, ptr %10, align 8
%51 = call i64 @dlclose(ptr noundef %50)
store i32 -1, ptr %4, align 4
br label %66
52: ; preds = %42
%53 = load ptr, ptr %11, align 8
store ptr %53, ptr %12, align 8
%54 = load ptr, ptr %12, align 8
%55 = load i32, ptr %6, align 4
%56 = load ptr, ptr %7, align 8
%57 = call i32 %54(i32 noundef %55, ptr noundef %56)
store i32 %57, ptr %13, align 4
%58 = load ptr, ptr %10, align 8
%59 = call i64 @dlclose(ptr noundef %58)
%60 = icmp ne i64 %59, 0
br i1 %60, label %61, label %64
61: ; preds = %52
%62 = call i32 (...) @dlerror()
%63 = call i32 @perror(i32 noundef %62)
br label %64
64: ; preds = %61, %52
%65 = load i32, ptr %13, align 4
store i32 %65, ptr %4, align 4
br label %66
66: ; preds = %64, %47, %38, %27
%67 = load i32, ptr %4, align 4
ret i32 %67
}
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @warnx(ptr noundef, ptr noundef, ...) #1
declare ptr @dlopen(ptr noundef, i32 noundef) #1
declare i32 @dlerror(...) #1
declare ptr @dlsym(ptr noundef, ptr noundef) #1
declare i32 @perror(i32 noundef) #1
declare i64 @dlclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0tov2rtt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%s/%s.so\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"/fat-dragon/lib/resh\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"%s: command too long.\00", align 1
@RTLD_NOW = dso_local global i32 0, align 4
@RTLD_LOCAL = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [26 x i8] c"%s: command not found: %s\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"main\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @run_command(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca [128 x i8], align 16
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
%14 = load ptr, ptr %5, align 8
%15 = call ptr @strrchr(ptr noundef %14, i8 noundef signext 47)
store ptr %15, ptr %8, align 8
%16 = load ptr, ptr %8, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %18, label %21
18: ; preds = %3
%19 = load ptr, ptr %8, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 1
store ptr %20, ptr %5, align 8
br label %21
21: ; preds = %18, %3
%22 = getelementptr inbounds [128 x i8], ptr %9, i64 0, i64 0
%23 = load ptr, ptr %5, align 8
%24 = call i32 @snprintf(ptr noundef %22, i32 noundef 128, ptr noundef @.str, ptr noundef @.str.1, ptr noundef %23)
%25 = sext i32 %24 to i64
%26 = icmp ugt i64 %25, 128
br i1 %26, label %27, label %30
27: ; preds = %21
%28 = load ptr, ptr %5, align 8
%29 = call i32 (ptr, ptr, ...) @warnx(ptr noundef @.str.2, ptr noundef %28)
store i32 -1, ptr %4, align 4
br label %66
30: ; preds = %21
%31 = getelementptr inbounds [128 x i8], ptr %9, i64 0, i64 0
%32 = load i32, ptr @RTLD_NOW, align 4
%33 = load i32, ptr @RTLD_LOCAL, align 4
%34 = or i32 %32, %33
%35 = call ptr @dlopen(ptr noundef %31, i32 noundef %34)
store ptr %35, ptr %10, align 8
%36 = load ptr, ptr %10, align 8
%37 = icmp eq ptr %36, null
br i1 %37, label %38, label %42
38: ; preds = %30
%39 = load ptr, ptr %5, align 8
%40 = call i32 (...) @dlerror()
%41 = call i32 (ptr, ptr, ...) @warnx(ptr noundef @.str.3, ptr noundef %39, i32 noundef %40)
store i32 -1, ptr %4, align 4
br label %66
42: ; preds = %30
%43 = load ptr, ptr %10, align 8
%44 = call ptr @dlsym(ptr noundef %43, ptr noundef @.str.4)
store ptr %44, ptr %11, align 8
%45 = load ptr, ptr %11, align 8
%46 = icmp eq ptr %45, null
br i1 %46, label %47, label %52
47: ; preds = %42
%48 = call i32 (...) @dlerror()
%49 = call i32 @perror(i32 noundef %48)
%50 = load ptr, ptr %10, align 8
%51 = call i64 @dlclose(ptr noundef %50)
store i32 -1, ptr %4, align 4
br label %66
52: ; preds = %42
%53 = load ptr, ptr %11, align 8
store ptr %53, ptr %12, align 8
%54 = load ptr, ptr %12, align 8
%55 = load i32, ptr %6, align 4
%56 = load ptr, ptr %7, align 8
%57 = call i32 %54(i32 noundef %55, ptr noundef %56)
store i32 %57, ptr %13, align 4
%58 = load ptr, ptr %10, align 8
%59 = call i64 @dlclose(ptr noundef %58)
%60 = icmp ne i64 %59, 0
br i1 %60, label %61, label %64
61: ; preds = %52
%62 = call i32 (...) @dlerror()
%63 = call i32 @perror(i32 noundef %62)
br label %64
64: ; preds = %61, %52
%65 = load i32, ptr %13, align 4
store i32 %65, ptr %4, align 4
br label %66
66: ; preds = %64, %47, %38, %27
%67 = load i32, ptr %4, align 4
ret i32 %67
}
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @warnx(ptr noundef, ptr noundef, ...) #1
declare ptr @dlopen(ptr noundef, i32 noundef) #1
declare i32 @dlerror(...) #1
declare ptr @dlsym(ptr noundef, ptr noundef) #1
declare i32 @perror(i32 noundef) #1
declare i64 @dlclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpaja_5z1z.c'
source_filename = "/tmp/tmpaja_5z1z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"\0A \1B[32m\E2\9C\93 \1B[90mok\1B[0m\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @test_string_to_bytes()
%3 = call i32 (...) @test_bytes_to_string()
%4 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @test_string_to_bytes(...) #1
declare i32 @test_bytes_to_string(...) #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/tmpaja_5z1z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"\0A \1B[32m\E2\9C\93 \1B[90mok\1B[0m\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @test_string_to_bytes()
%3 = call i32 (...) @test_bytes_to_string()
%4 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @test_string_to_bytes(...) #1
declare i32 @test_bytes_to_string(...) #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/tmpuv04twlm.c'
source_filename = "/tmp/tmpuv04twlm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @cpucycles_x86cpuinfo_persecond() #0 {
%1 = call i64 (...) @osfreq()
ret i64 %1
}
declare i64 @osfreq(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuv04twlm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @cpucycles_x86cpuinfo_persecond() #0 {
%1 = call i64 (...) @osfreq()
ret i64 %1
}
declare i64 @osfreq(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0dls2u9v.c'
source_filename = "/tmp/tmp0dls2u9v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @trixCopyToPrefix(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
%6 = load ptr, ptr %3, align 8
%7 = call i32 @strlen(ptr noundef %6)
store i32 %7, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = icmp sge i32 %8, 5
br i1 %9, label %10, label %14
10: ; preds = %2
%11 = load ptr, ptr %4, align 8
%12 = load ptr, ptr %3, align 8
%13 = call i32 @memcpy(ptr noundef %11, ptr noundef %12, i32 noundef 5)
br label %21
14: ; preds = %2
%15 = load ptr, ptr %4, align 8
%16 = call i32 @memset(ptr noundef %15, i8 noundef signext 32, i32 noundef 5)
%17 = load ptr, ptr %4, align 8
%18 = load ptr, ptr %3, align 8
%19 = load i32, ptr %5, align 4
%20 = call i32 @memcpy(ptr noundef %17, ptr noundef %18, i32 noundef %19)
br label %21
21: ; preds = %14, %10
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i8 noundef signext, 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/tmp0dls2u9v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @trixCopyToPrefix(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
%6 = load ptr, ptr %3, align 8
%7 = call i32 @strlen(ptr noundef %6)
store i32 %7, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = icmp sge i32 %8, 5
br i1 %9, label %10, label %14
10: ; preds = %2
%11 = load ptr, ptr %4, align 8
%12 = load ptr, ptr %3, align 8
%13 = call i32 @memcpy(ptr noundef %11, ptr noundef %12, i32 noundef 5)
br label %21
14: ; preds = %2
%15 = load ptr, ptr %4, align 8
%16 = call i32 @memset(ptr noundef %15, i8 noundef signext 32, i32 noundef 5)
%17 = load ptr, ptr %4, align 8
%18 = load ptr, ptr %3, align 8
%19 = load i32, ptr %5, align 4
%20 = call i32 @memcpy(ptr noundef %17, ptr noundef %18, i32 noundef %19)
br label %21
21: ; preds = %14, %10
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i8 noundef signext, 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/tmpe1ntz55u.c'
source_filename = "/tmp/tmpe1ntz55u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_scalb(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%5 = load double, ptr %3, align 8
%6 = load double, ptr %4, align 8
%7 = call i64 @scalb(double noundef %5, double noundef %6)
%8 = load double, ptr %3, align 8
%9 = load double, ptr %4, align 8
%10 = call i64 @scalb(double noundef %8, double noundef %9)
%11 = icmp ne i64 %7, %10
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 (...) @link_failure_scalb()
br label %14
14: ; preds = %12, %2
ret void
}
declare i64 @scalb(double noundef, double noundef) #1
declare i32 @link_failure_scalb(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe1ntz55u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_scalb(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%5 = load double, ptr %3, align 8
%6 = load double, ptr %4, align 8
%7 = call i64 @scalb(double noundef %5, double noundef %6)
%8 = load double, ptr %3, align 8
%9 = load double, ptr %4, align 8
%10 = call i64 @scalb(double noundef %8, double noundef %9)
%11 = icmp ne i64 %7, %10
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 (...) @link_failure_scalb()
br label %14
14: ; preds = %12, %2
ret void
}
declare i64 @scalb(double noundef, double noundef) #1
declare i32 @link_failure_scalb(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5xzeliss.c'
source_filename = "/tmp/tmp5xzeliss.c"
target datalayout = "e-m:e-p270: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/tmp5xzeliss.c"
target datalayout = "e-m:e-p270: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/tmp2uvygewk.c'
source_filename = "/tmp/tmp2uvygewk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Usage: %s <command> <dirs to watch>\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printhelp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @fprintf(ptr noundef %5, ptr noundef @.str, ptr noundef %6)
ret void
}
declare i32 @fprintf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2uvygewk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Usage: %s <command> <dirs to watch>\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printhelp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @fprintf(ptr noundef %5, ptr noundef @.str, ptr noundef %6)
ret void
}
declare i32 @fprintf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp289jmmlm.c'
source_filename = "/tmp/tmp289jmmlm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"x = %d, y = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 3, ptr %5, align 4
store i32 4, ptr %6, align 4
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %6, align 4
%9 = call i32 @times2(i32 noundef %7, i32 noundef %8)
%10 = load i32, ptr %5, align 4
%11 = load i32, ptr %6, align 4
%12 = call i32 @printf(ptr noundef @.str, i32 noundef %10, i32 noundef %11)
ret i32 0
}
declare i32 @times2(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp289jmmlm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"x = %d, y = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 3, ptr %5, align 4
store i32 4, ptr %6, align 4
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %6, align 4
%9 = call i32 @times2(i32 noundef %7, i32 noundef %8)
%10 = load i32, ptr %5, align 4
%11 = load i32, ptr %6, align 4
%12 = call i32 @printf(ptr noundef @.str, i32 noundef %10, i32 noundef %11)
ret i32 0
}
declare i32 @times2(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbvfaembp.c'
source_filename = "/tmp/tmpbvfaembp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strlen(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 = %10, %1
%5 = load ptr, ptr %2, align 8
%6 = getelementptr inbounds i8, ptr %5, i32 1
store ptr %6, ptr %2, align 8
%7 = load i8, ptr %5, align 1
%8 = sext i8 %7 to i32
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %4
%11 = load i32, ptr %3, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %3, align 4
br label %4, !llvm.loop !6
13: ; preds = %4
%14 = load i32, ptr %3, align 4
ret i32 %14
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpbvfaembp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strlen(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 ptr, ptr %2, align 8
%5 = getelementptr inbounds i8, ptr %4, i32 1
store ptr %5, ptr %2, align 8
%6 = load i8, ptr %4, align 1
%7 = sext i8 %6 to i32
%8 = icmp ne i32 %7, 0
br i1 %8, label %.lr.ph, label %17
.lr.ph: ; preds = %1
br label %9
9: ; preds = %.lr.ph, %9
%10 = load i32, ptr %3, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %3, align 4
%12 = load ptr, ptr %2, align 8
%13 = getelementptr inbounds i8, ptr %12, i32 1
store ptr %13, ptr %2, align 8
%14 = load i8, ptr %12, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 0
br i1 %16, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %9
br label %17
17: ; preds = %._crit_edge, %1
%18 = load i32, ptr %3, align 4
ret i32 %18
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpha72gnve.c'
source_filename = "/tmp/tmpha72gnve.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@get_pid_file.pid_file = internal global [2048 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [14 x i8] c"%s/pid-wakeup\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @get_pid_file() #0 {
%1 = load i8, ptr @get_pid_file.pid_file, align 16
%2 = icmp ne i8 %1, 0
br i1 %2, label %6, label %3
3: ; preds = %0
%4 = call ptr (...) @get_tmp_dir()
%5 = call i32 @snprintf(ptr noundef @get_pid_file.pid_file, i32 noundef 2048, ptr noundef @.str, ptr noundef %4)
br label %6
6: ; preds = %3, %0
ret ptr @get_pid_file.pid_file
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @get_tmp_dir(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpha72gnve.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@get_pid_file.pid_file = internal global [2048 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [14 x i8] c"%s/pid-wakeup\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @get_pid_file() #0 {
%1 = load i8, ptr @get_pid_file.pid_file, align 16
%2 = icmp ne i8 %1, 0
br i1 %2, label %6, label %3
3: ; preds = %0
%4 = call ptr (...) @get_tmp_dir()
%5 = call i32 @snprintf(ptr noundef @get_pid_file.pid_file, i32 noundef 2048, ptr noundef @.str, ptr noundef %4)
br label %6
6: ; preds = %3, %0
ret ptr @get_pid_file.pid_file
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @get_tmp_dir(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqhrcrmtr.c'
source_filename = "/tmp/tmpqhrcrmtr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [55 x i8] c"print string one byte by one byte in host environment\0A\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"use 2 hexadecimal numbers\0A\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"&a[0] = %p\0A\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"&a[1] = %p\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [3 x i32], align 4
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 3, ptr %7, align 4
%10 = getelementptr inbounds [3 x i32], ptr %6, i64 0, i64 0
store i32 305419896, ptr %10, align 4
%11 = getelementptr inbounds [3 x i32], ptr %6, i64 0, i64 1
store i32 -1867788817, ptr %11, align 4
%12 = getelementptr inbounds [3 x i32], ptr %6, i64 0, i64 0
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %12)
%14 = getelementptr inbounds [3 x i32], ptr %6, i64 0, i64 1
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %14)
%16 = load i32, ptr %7, align 4
%17 = sext i32 %16 to i64
%18 = mul i64 %17, 4
%19 = trunc i64 %18 to i32
%20 = call i32 @p_uchar(ptr noundef %6, i32 noundef %19, i32 noundef 1)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @p_uchar(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqhrcrmtr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [55 x i8] c"print string one byte by one byte in host environment\0A\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"use 2 hexadecimal numbers\0A\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"&a[0] = %p\0A\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"&a[1] = %p\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [3 x i32], align 4
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 3, ptr %7, align 4
%10 = getelementptr inbounds [3 x i32], ptr %6, i64 0, i64 0
store i32 305419896, ptr %10, align 4
%11 = getelementptr inbounds [3 x i32], ptr %6, i64 0, i64 1
store i32 -1867788817, ptr %11, align 4
%12 = getelementptr inbounds [3 x i32], ptr %6, i64 0, i64 0
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %12)
%14 = getelementptr inbounds [3 x i32], ptr %6, i64 0, i64 1
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %14)
%16 = load i32, ptr %7, align 4
%17 = sext i32 %16 to i64
%18 = mul i64 %17, 4
%19 = trunc i64 %18 to i32
%20 = call i32 @p_uchar(ptr noundef %6, i32 noundef %19, i32 noundef 1)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @p_uchar(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpld6ggu1b.c'
source_filename = "/tmp/tmpld6ggu1b.c"
target datalayout = "e-m:e-p270: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.aiocb = type { i32, ptr, i32, i32 }
@_SC_ASYNCHRONOUS_IO = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [25 x i8] c"/tmp/pts_aio_read_11_2%d\00", align 1
@O_CREAT = dso_local global i32 0, align 4
@O_RDWR = dso_local global i32 0, align 4
@O_EXCL = dso_local global i32 0, align 4
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [37 x i8] c"aio_read/11-2.c Error at open(): %s\0A\00", align 1
@errno = dso_local global i64 0, align 8
@.str.2 = private unnamed_addr constant [45 x i8] c"aio_read/11-2.c bad aio_read return value()\0A\00", align 1
@EINVAL = dso_local global i64 0, align 8
@.str.3 = private unnamed_addr constant [40 x i8] c"aio_read/11-2.c errno is not EINVAL %s\0A\00", align 1
@.str.4 = private unnamed_addr constant [13 x i8] c"Test PASSED\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [256 x i8], align 16
%3 = alloca [111 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca %struct.aiocb, align 8
store i32 0, ptr %1, align 4
%6 = load i32, ptr @_SC_ASYNCHRONOUS_IO, align 4
%7 = call i64 @sysconf(i32 noundef %6)
%8 = icmp slt i64 %7, 200112
br i1 %8, label %9, label %10
9: ; preds = %0
store i32 4, ptr %1, align 4
br label %61
10: ; preds = %0
%11 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%12 = call i32 (...) @getpid()
%13 = call i32 @snprintf(ptr noundef %11, i32 noundef 256, ptr noundef @.str, i32 noundef %12)
%14 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%15 = call i32 @unlink(ptr noundef %14)
%16 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%17 = load i32, ptr @O_CREAT, align 4
%18 = load i32, ptr @O_RDWR, align 4
%19 = or i32 %17, %18
%20 = load i32, ptr @O_EXCL, align 4
%21 = or i32 %19, %20
%22 = load i32, ptr @S_IRUSR, align 4
%23 = load i32, ptr @S_IWUSR, align 4
%24 = or i32 %22, %23
%25 = call i32 @open(ptr noundef %16, i32 noundef %21, i32 noundef %24)
store i32 %25, ptr %4, align 4
%26 = load i32, ptr %4, align 4
%27 = icmp eq i32 %26, -1
br i1 %27, label %28, label %33
28: ; preds = %10
%29 = load i64, ptr @errno, align 8
%30 = call ptr @strerror(i64 noundef %29)
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %30)
%32 = call i32 @exit(i32 noundef 2) #3
unreachable
33: ; preds = %10
%34 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%35 = call i32 @unlink(ptr noundef %34)
%36 = call i32 @memset(ptr noundef %5, i32 noundef 0, i32 noundef 24)
%37 = load i32, ptr %4, align 4
%38 = getelementptr inbounds %struct.aiocb, ptr %5, i32 0, i32 0
store i32 %37, ptr %38, align 8
%39 = getelementptr inbounds [111 x i8], ptr %3, i64 0, i64 0
%40 = getelementptr inbounds %struct.aiocb, ptr %5, i32 0, i32 1
store ptr %39, ptr %40, align 8
%41 = getelementptr inbounds %struct.aiocb, ptr %5, i32 0, i32 2
store i32 -1, ptr %41, align 8
%42 = getelementptr inbounds %struct.aiocb, ptr %5, i32 0, i32 3
store i32 111, ptr %42, align 4
%43 = call i32 @aio_read(ptr noundef %5)
%44 = icmp ne i32 %43, -1
br i1 %44, label %45, label %48
45: ; preds = %33
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%47 = call i32 @exit(i32 noundef 1) #3
unreachable
48: ; preds = %33
%49 = load i64, ptr @errno, align 8
%50 = load i64, ptr @EINVAL, align 8
%51 = icmp ne i64 %49, %50
br i1 %51, label %52, label %57
52: ; preds = %48
%53 = load i64, ptr @errno, align 8
%54 = call ptr @strerror(i64 noundef %53)
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %54)
%56 = call i32 @exit(i32 noundef 1) #3
unreachable
57: ; preds = %48
%58 = load i32, ptr %4, align 4
%59 = call i32 @close(i32 noundef %58)
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %1, align 4
br label %61
61: ; preds = %57, %9
%62 = load i32, ptr %1, align 4
ret i32 %62
}
declare i64 @sysconf(i32 noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @getpid(...) #1
declare i32 @unlink(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @strerror(i64 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @aio_read(ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpld6ggu1b.c"
target datalayout = "e-m:e-p270: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.aiocb = type { i32, ptr, i32, i32 }
@_SC_ASYNCHRONOUS_IO = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [25 x i8] c"/tmp/pts_aio_read_11_2%d\00", align 1
@O_CREAT = dso_local global i32 0, align 4
@O_RDWR = dso_local global i32 0, align 4
@O_EXCL = dso_local global i32 0, align 4
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [37 x i8] c"aio_read/11-2.c Error at open(): %s\0A\00", align 1
@errno = dso_local global i64 0, align 8
@.str.2 = private unnamed_addr constant [45 x i8] c"aio_read/11-2.c bad aio_read return value()\0A\00", align 1
@EINVAL = dso_local global i64 0, align 8
@.str.3 = private unnamed_addr constant [40 x i8] c"aio_read/11-2.c errno is not EINVAL %s\0A\00", align 1
@.str.4 = private unnamed_addr constant [13 x i8] c"Test PASSED\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [256 x i8], align 16
%3 = alloca [111 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca %struct.aiocb, align 8
store i32 0, ptr %1, align 4
%6 = load i32, ptr @_SC_ASYNCHRONOUS_IO, align 4
%7 = call i64 @sysconf(i32 noundef %6)
%8 = icmp slt i64 %7, 200112
br i1 %8, label %9, label %10
9: ; preds = %0
store i32 4, ptr %1, align 4
br label %61
10: ; preds = %0
%11 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%12 = call i32 (...) @getpid()
%13 = call i32 @snprintf(ptr noundef %11, i32 noundef 256, ptr noundef @.str, i32 noundef %12)
%14 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%15 = call i32 @unlink(ptr noundef %14)
%16 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%17 = load i32, ptr @O_CREAT, align 4
%18 = load i32, ptr @O_RDWR, align 4
%19 = or i32 %17, %18
%20 = load i32, ptr @O_EXCL, align 4
%21 = or i32 %19, %20
%22 = load i32, ptr @S_IRUSR, align 4
%23 = load i32, ptr @S_IWUSR, align 4
%24 = or i32 %22, %23
%25 = call i32 @open(ptr noundef %16, i32 noundef %21, i32 noundef %24)
store i32 %25, ptr %4, align 4
%26 = load i32, ptr %4, align 4
%27 = icmp eq i32 %26, -1
br i1 %27, label %28, label %33
28: ; preds = %10
%29 = load i64, ptr @errno, align 8
%30 = call ptr @strerror(i64 noundef %29)
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %30)
%32 = call i32 @exit(i32 noundef 2) #3
unreachable
33: ; preds = %10
%34 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%35 = call i32 @unlink(ptr noundef %34)
%36 = call i32 @memset(ptr noundef %5, i32 noundef 0, i32 noundef 24)
%37 = load i32, ptr %4, align 4
%38 = getelementptr inbounds %struct.aiocb, ptr %5, i32 0, i32 0
store i32 %37, ptr %38, align 8
%39 = getelementptr inbounds [111 x i8], ptr %3, i64 0, i64 0
%40 = getelementptr inbounds %struct.aiocb, ptr %5, i32 0, i32 1
store ptr %39, ptr %40, align 8
%41 = getelementptr inbounds %struct.aiocb, ptr %5, i32 0, i32 2
store i32 -1, ptr %41, align 8
%42 = getelementptr inbounds %struct.aiocb, ptr %5, i32 0, i32 3
store i32 111, ptr %42, align 4
%43 = call i32 @aio_read(ptr noundef %5)
%44 = icmp ne i32 %43, -1
br i1 %44, label %45, label %48
45: ; preds = %33
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%47 = call i32 @exit(i32 noundef 1) #3
unreachable
48: ; preds = %33
%49 = load i64, ptr @errno, align 8
%50 = load i64, ptr @EINVAL, align 8
%51 = icmp ne i64 %49, %50
br i1 %51, label %52, label %57
52: ; preds = %48
%53 = load i64, ptr @errno, align 8
%54 = call ptr @strerror(i64 noundef %53)
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %54)
%56 = call i32 @exit(i32 noundef 1) #3
unreachable
57: ; preds = %48
%58 = load i32, ptr %4, align 4
%59 = call i32 @close(i32 noundef %58)
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %1, align 4
br label %61
61: ; preds = %57, %9
%62 = load i32, ptr %1, align 4
ret i32 %62
}
declare i64 @sysconf(i32 noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @getpid(...) #1
declare i32 @unlink(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @strerror(i64 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @aio_read(ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpbsldzv_q.c'
source_filename = "/tmp/tmpbsldzv_q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_2__ = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_XSetWindowAttributes_backing_planes(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds %struct.TYPE_2__, ptr %6, i32 0, i32 0
store i64 %5, ptr %7, align 8
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbsldzv_q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_2__ = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_XSetWindowAttributes_backing_planes(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds %struct.TYPE_2__, ptr %6, i32 0, i32 0
store i64 %5, ptr %7, align 8
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpv88lx5qz.c'
source_filename = "/tmp/tmpv88lx5qz.c"
target datalayout = "e-m:e-p270: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, i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pselect_(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, i32 noundef %6) #0 {
%8 = alloca i32, align 4
%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 ptr, align 8
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca %struct.timespec, align 4
%23 = alloca i32, align 4
store i32 %0, ptr %9, align 4
store ptr %1, ptr %10, align 8
store i32 %2, ptr %11, align 4
store ptr %3, ptr %12, align 8
store i32 %4, ptr %13, align 4
store ptr %5, ptr %14, align 8
store i32 %6, ptr %15, align 4
store i32 -1, ptr %17, align 4
%24 = call i32 @FD_ZERO(ptr noundef %19)
store i32 0, ptr %16, align 4
br label %25
25: ; preds = %50, %7
%26 = load i32, ptr %16, align 4
%27 = load i32, ptr %9, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %29, label %53
29: ; preds = %25
%30 = load ptr, ptr %10, align 8
%31 = load i32, ptr %16, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i32, ptr %30, i64 %32
%34 = load i32, ptr %33, align 4
%35 = call i32 @FD_SET(i32 noundef %34, ptr noundef %19)
%36 = load ptr, ptr %10, align 8
%37 = load i32, ptr %16, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i32, ptr %36, i64 %38
%40 = load i32, ptr %39, align 4
%41 = load i32, ptr %17, align 4
%42 = icmp sgt i32 %40, %41
br i1 %42, label %43, label %49
43: ; preds = %29
%44 = load ptr, ptr %10, align 8
%45 = load i32, ptr %16, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i32, ptr %44, i64 %46
%48 = load i32, ptr %47, align 4
store i32 %48, ptr %17, align 4
br label %49
49: ; preds = %43, %29
br label %50
50: ; preds = %49
%51 = load i32, ptr %16, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %16, align 4
br label %25, !llvm.loop !6
53: ; preds = %25
%54 = call i32 @FD_ZERO(ptr noundef %20)
store i32 0, ptr %16, align 4
br label %55
55: ; preds = %80, %53
%56 = load i32, ptr %16, align 4
%57 = load i32, ptr %11, align 4
%58 = icmp slt i32 %56, %57
br i1 %58, label %59, label %83
59: ; preds = %55
%60 = load ptr, ptr %12, align 8
%61 = load i32, ptr %16, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i32, ptr %60, i64 %62
%64 = load i32, ptr %63, align 4
%65 = call i32 @FD_SET(i32 noundef %64, ptr noundef %20)
%66 = load ptr, ptr %12, align 8
%67 = load i32, ptr %16, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i32, ptr %66, i64 %68
%70 = load i32, ptr %69, align 4
%71 = load i32, ptr %17, align 4
%72 = icmp sgt i32 %70, %71
br i1 %72, label %73, label %79
73: ; preds = %59
%74 = load ptr, ptr %12, align 8
%75 = load i32, ptr %16, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i32, ptr %74, i64 %76
%78 = load i32, ptr %77, align 4
store i32 %78, ptr %17, align 4
br label %79
79: ; preds = %73, %59
br label %80
80: ; preds = %79
%81 = load i32, ptr %16, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %16, align 4
br label %55, !llvm.loop !8
83: ; preds = %55
%84 = call i32 @FD_ZERO(ptr noundef %21)
store i32 0, ptr %16, align 4
br label %85
85: ; preds = %110, %83
%86 = load i32, ptr %16, align 4
%87 = load i32, ptr %13, align 4
%88 = icmp slt i32 %86, %87
br i1 %88, label %89, label %113
89: ; preds = %85
%90 = load ptr, ptr %14, align 8
%91 = load i32, ptr %16, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i32, ptr %90, i64 %92
%94 = load i32, ptr %93, align 4
%95 = call i32 @FD_SET(i32 noundef %94, ptr noundef %21)
%96 = load ptr, ptr %14, align 8
%97 = load i32, ptr %16, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds i32, ptr %96, i64 %98
%100 = load i32, ptr %99, align 4
%101 = load i32, ptr %17, align 4
%102 = icmp sgt i32 %100, %101
br i1 %102, label %103, label %109
103: ; preds = %89
%104 = load ptr, ptr %14, align 8
%105 = load i32, ptr %16, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds i32, ptr %104, i64 %106
%108 = load i32, ptr %107, align 4
store i32 %108, ptr %17, align 4
br label %109
109: ; preds = %103, %89
br label %110
110: ; preds = %109
%111 = load i32, ptr %16, align 4
%112 = add nsw i32 %111, 1
store i32 %112, ptr %16, align 4
br label %85, !llvm.loop !9
113: ; preds = %85
%114 = load i32, ptr %15, align 4
%115 = sdiv i32 %114, 1000
%116 = getelementptr inbounds %struct.timespec, ptr %22, i32 0, i32 0
store i32 %115, ptr %116, align 4
%117 = load i32, ptr %15, align 4
%118 = srem i32 %117, 1000
%119 = mul nsw i32 %118, 1000000
%120 = getelementptr inbounds %struct.timespec, ptr %22, i32 0, i32 1
store i32 %119, ptr %120, align 4
%121 = call i32 @sigfillset(ptr noundef %23)
%122 = load i32, ptr %17, align 4
%123 = add nsw i32 %122, 1
%124 = call i32 @pselect(i32 noundef %123, ptr noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %23)
store i32 %124, ptr %18, align 4
%125 = load i32, ptr %18, align 4
%126 = icmp eq i32 %125, -1
br i1 %126, label %127, label %129
127: ; preds = %113
%128 = load i32, ptr %18, align 4
store i32 %128, ptr %8, align 4
br label %197
129: ; preds = %113
store i32 0, ptr %16, align 4
br label %130
130: ; preds = %148, %129
%131 = load i32, ptr %16, align 4
%132 = load i32, ptr %9, align 4
%133 = icmp slt i32 %131, %132
br i1 %133, label %134, label %151
134: ; preds = %130
%135 = load ptr, ptr %10, align 8
%136 = load i32, ptr %16, align 4
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds i32, ptr %135, i64 %137
%139 = load i32, ptr %138, align 4
%140 = call i32 @FD_ISSET(i32 noundef %139, ptr noundef %19)
%141 = icmp ne i32 %140, 0
br i1 %141, label %147, label %142
142: ; preds = %134
%143 = load ptr, ptr %10, align 8
%144 = load i32, ptr %16, align 4
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds i32, ptr %143, i64 %145
store i32 0, ptr %146, align 4
br label %147
147: ; preds = %142, %134
br label %148
148: ; preds = %147
%149 = load i32, ptr %16, align 4
%150 = add nsw i32 %149, 1
store i32 %150, ptr %16, align 4
br label %130, !llvm.loop !10
151: ; preds = %130
store i32 0, ptr %16, align 4
br label %152
152: ; preds = %170, %151
%153 = load i32, ptr %16, align 4
%154 = load i32, ptr %11, align 4
%155 = icmp slt i32 %153, %154
br i1 %155, label %156, label %173
156: ; preds = %152
%157 = load ptr, ptr %12, align 8
%158 = load i32, ptr %16, align 4
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds i32, ptr %157, i64 %159
%161 = load i32, ptr %160, align 4
%162 = call i32 @FD_ISSET(i32 noundef %161, ptr noundef %20)
%163 = icmp ne i32 %162, 0
br i1 %163, label %169, label %164
164: ; preds = %156
%165 = load ptr, ptr %12, align 8
%166 = load i32, ptr %16, align 4
%167 = sext i32 %166 to i64
%168 = getelementptr inbounds i32, ptr %165, i64 %167
store i32 0, ptr %168, align 4
br label %169
169: ; preds = %164, %156
br label %170
170: ; preds = %169
%171 = load i32, ptr %16, align 4
%172 = add nsw i32 %171, 1
store i32 %172, ptr %16, align 4
br label %152, !llvm.loop !11
173: ; preds = %152
store i32 0, ptr %16, align 4
br label %174
174: ; preds = %192, %173
%175 = load i32, ptr %16, align 4
%176 = load i32, ptr %13, align 4
%177 = icmp slt i32 %175, %176
br i1 %177, label %178, label %195
178: ; preds = %174
%179 = load ptr, ptr %14, align 8
%180 = load i32, ptr %16, align 4
%181 = sext i32 %180 to i64
%182 = getelementptr inbounds i32, ptr %179, i64 %181
%183 = load i32, ptr %182, align 4
%184 = call i32 @FD_ISSET(i32 noundef %183, ptr noundef %21)
%185 = icmp ne i32 %184, 0
br i1 %185, label %191, label %186
186: ; preds = %178
%187 = load ptr, ptr %14, align 8
%188 = load i32, ptr %16, align 4
%189 = sext i32 %188 to i64
%190 = getelementptr inbounds i32, ptr %187, i64 %189
store i32 0, ptr %190, align 4
br label %191
191: ; preds = %186, %178
br label %192
192: ; preds = %191
%193 = load i32, ptr %16, align 4
%194 = add nsw i32 %193, 1
store i32 %194, ptr %16, align 4
br label %174, !llvm.loop !12
195: ; preds = %174
%196 = load i32, ptr %18, align 4
store i32 %196, ptr %8, align 4
br label %197
197: ; preds = %195, %127
%198 = load i32, ptr %8, align 4
ret i32 %198
}
declare i32 @FD_ZERO(ptr noundef) #1
declare i32 @FD_SET(i32 noundef, ptr noundef) #1
declare i32 @sigfillset(ptr noundef) #1
declare i32 @pselect(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @FD_ISSET(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv88lx5qz.c"
target datalayout = "e-m:e-p270: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, i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pselect_(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, i32 noundef %6) #0 {
%8 = alloca i32, align 4
%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 ptr, align 8
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca %struct.timespec, align 4
%23 = alloca i32, align 4
store i32 %0, ptr %9, align 4
store ptr %1, ptr %10, align 8
store i32 %2, ptr %11, align 4
store ptr %3, ptr %12, align 8
store i32 %4, ptr %13, align 4
store ptr %5, ptr %14, align 8
store i32 %6, ptr %15, align 4
store i32 -1, ptr %17, align 4
%24 = call i32 @FD_ZERO(ptr noundef %19)
store i32 0, ptr %16, align 4
%25 = load i32, ptr %16, align 4
%26 = load i32, ptr %9, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %.lr.ph, label %55
.lr.ph: ; preds = %7
br label %28
28: ; preds = %.lr.ph, %49
%29 = load ptr, ptr %10, align 8
%30 = load i32, ptr %16, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i32, ptr %29, i64 %31
%33 = load i32, ptr %32, align 4
%34 = call i32 @FD_SET(i32 noundef %33, ptr noundef %19)
%35 = load ptr, ptr %10, align 8
%36 = load i32, ptr %16, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i32, ptr %35, i64 %37
%39 = load i32, ptr %38, align 4
%40 = load i32, ptr %17, align 4
%41 = icmp sgt i32 %39, %40
br i1 %41, label %42, label %48
42: ; preds = %28
%43 = load ptr, ptr %10, align 8
%44 = load i32, ptr %16, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i32, ptr %43, i64 %45
%47 = load i32, ptr %46, align 4
store i32 %47, ptr %17, align 4
br label %48
48: ; preds = %42, %28
br label %49
49: ; preds = %48
%50 = load i32, ptr %16, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %16, align 4
%52 = load i32, ptr %16, align 4
%53 = load i32, ptr %9, align 4
%54 = icmp slt i32 %52, %53
br i1 %54, label %28, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %49
br label %55
55: ; preds = %._crit_edge, %7
%56 = call i32 @FD_ZERO(ptr noundef %20)
store i32 0, ptr %16, align 4
%57 = load i32, ptr %16, align 4
%58 = load i32, ptr %11, align 4
%59 = icmp slt i32 %57, %58
br i1 %59, label %.lr.ph2, label %87
.lr.ph2: ; preds = %55
br label %60
60: ; preds = %.lr.ph2, %81
%61 = load ptr, ptr %12, align 8
%62 = load i32, ptr %16, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i32, ptr %61, i64 %63
%65 = load i32, ptr %64, align 4
%66 = call i32 @FD_SET(i32 noundef %65, ptr noundef %20)
%67 = load ptr, ptr %12, align 8
%68 = load i32, ptr %16, 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 i32, ptr %17, align 4
%73 = icmp sgt i32 %71, %72
br i1 %73, label %74, label %80
74: ; preds = %60
%75 = load ptr, ptr %12, align 8
%76 = load i32, ptr %16, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i32, ptr %75, i64 %77
%79 = load i32, ptr %78, align 4
store i32 %79, ptr %17, align 4
br label %80
80: ; preds = %74, %60
br label %81
81: ; preds = %80
%82 = load i32, ptr %16, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %16, align 4
%84 = load i32, ptr %16, align 4
%85 = load i32, ptr %11, align 4
%86 = icmp slt i32 %84, %85
br i1 %86, label %60, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %81
br label %87
87: ; preds = %._crit_edge3, %55
%88 = call i32 @FD_ZERO(ptr noundef %21)
store i32 0, ptr %16, align 4
%89 = load i32, ptr %16, align 4
%90 = load i32, ptr %13, align 4
%91 = icmp slt i32 %89, %90
br i1 %91, label %.lr.ph5, label %119
.lr.ph5: ; preds = %87
br label %92
92: ; preds = %.lr.ph5, %113
%93 = load ptr, ptr %14, align 8
%94 = load i32, ptr %16, align 4
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds i32, ptr %93, i64 %95
%97 = load i32, ptr %96, align 4
%98 = call i32 @FD_SET(i32 noundef %97, ptr noundef %21)
%99 = load ptr, ptr %14, align 8
%100 = load i32, ptr %16, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds i32, ptr %99, i64 %101
%103 = load i32, ptr %102, align 4
%104 = load i32, ptr %17, align 4
%105 = icmp sgt i32 %103, %104
br i1 %105, label %106, label %112
106: ; preds = %92
%107 = load ptr, ptr %14, align 8
%108 = load i32, ptr %16, align 4
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds i32, ptr %107, i64 %109
%111 = load i32, ptr %110, align 4
store i32 %111, ptr %17, align 4
br label %112
112: ; preds = %106, %92
br label %113
113: ; preds = %112
%114 = load i32, ptr %16, align 4
%115 = add nsw i32 %114, 1
store i32 %115, ptr %16, align 4
%116 = load i32, ptr %16, align 4
%117 = load i32, ptr %13, align 4
%118 = icmp slt i32 %116, %117
br i1 %118, label %92, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %113
br label %119
119: ; preds = %._crit_edge6, %87
%120 = load i32, ptr %15, align 4
%121 = sdiv i32 %120, 1000
%122 = getelementptr inbounds %struct.timespec, ptr %22, i32 0, i32 0
store i32 %121, ptr %122, align 4
%123 = load i32, ptr %15, align 4
%124 = srem i32 %123, 1000
%125 = mul nsw i32 %124, 1000000
%126 = getelementptr inbounds %struct.timespec, ptr %22, i32 0, i32 1
store i32 %125, ptr %126, align 4
%127 = call i32 @sigfillset(ptr noundef %23)
%128 = load i32, ptr %17, align 4
%129 = add nsw i32 %128, 1
%130 = call i32 @pselect(i32 noundef %129, ptr noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %23)
store i32 %130, ptr %18, align 4
%131 = load i32, ptr %18, align 4
%132 = icmp eq i32 %131, -1
br i1 %132, label %133, label %135
133: ; preds = %119
%134 = load i32, ptr %18, align 4
store i32 %134, ptr %8, align 4
br label %209
135: ; preds = %119
store i32 0, ptr %16, align 4
%136 = load i32, ptr %16, align 4
%137 = load i32, ptr %9, align 4
%138 = icmp slt i32 %136, %137
br i1 %138, label %.lr.ph8, label %159
.lr.ph8: ; preds = %135
br label %139
139: ; preds = %.lr.ph8, %153
%140 = load ptr, ptr %10, align 8
%141 = load i32, ptr %16, align 4
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds i32, ptr %140, i64 %142
%144 = load i32, ptr %143, align 4
%145 = call i32 @FD_ISSET(i32 noundef %144, ptr noundef %19)
%146 = icmp ne i32 %145, 0
br i1 %146, label %152, label %147
147: ; preds = %139
%148 = load ptr, ptr %10, align 8
%149 = load i32, ptr %16, align 4
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds i32, ptr %148, i64 %150
store i32 0, ptr %151, align 4
br label %152
152: ; preds = %147, %139
br label %153
153: ; preds = %152
%154 = load i32, ptr %16, align 4
%155 = add nsw i32 %154, 1
store i32 %155, ptr %16, align 4
%156 = load i32, ptr %16, align 4
%157 = load i32, ptr %9, align 4
%158 = icmp slt i32 %156, %157
br i1 %158, label %139, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %153
br label %159
159: ; preds = %._crit_edge9, %135
store i32 0, ptr %16, align 4
%160 = load i32, ptr %16, align 4
%161 = load i32, ptr %11, align 4
%162 = icmp slt i32 %160, %161
br i1 %162, label %.lr.ph11, label %183
.lr.ph11: ; preds = %159
br label %163
163: ; preds = %.lr.ph11, %177
%164 = load ptr, ptr %12, align 8
%165 = load i32, ptr %16, align 4
%166 = sext i32 %165 to i64
%167 = getelementptr inbounds i32, ptr %164, i64 %166
%168 = load i32, ptr %167, align 4
%169 = call i32 @FD_ISSET(i32 noundef %168, ptr noundef %20)
%170 = icmp ne i32 %169, 0
br i1 %170, label %176, label %171
171: ; preds = %163
%172 = load ptr, ptr %12, align 8
%173 = load i32, ptr %16, align 4
%174 = sext i32 %173 to i64
%175 = getelementptr inbounds i32, ptr %172, i64 %174
store i32 0, ptr %175, align 4
br label %176
176: ; preds = %171, %163
br label %177
177: ; preds = %176
%178 = load i32, ptr %16, align 4
%179 = add nsw i32 %178, 1
store i32 %179, ptr %16, align 4
%180 = load i32, ptr %16, align 4
%181 = load i32, ptr %11, align 4
%182 = icmp slt i32 %180, %181
br i1 %182, label %163, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %177
br label %183
183: ; preds = %._crit_edge12, %159
store i32 0, ptr %16, align 4
%184 = load i32, ptr %16, align 4
%185 = load i32, ptr %13, align 4
%186 = icmp slt i32 %184, %185
br i1 %186, label %.lr.ph14, label %207
.lr.ph14: ; preds = %183
br label %187
187: ; preds = %.lr.ph14, %201
%188 = load ptr, ptr %14, align 8
%189 = load i32, ptr %16, align 4
%190 = sext i32 %189 to i64
%191 = getelementptr inbounds i32, ptr %188, i64 %190
%192 = load i32, ptr %191, align 4
%193 = call i32 @FD_ISSET(i32 noundef %192, ptr noundef %21)
%194 = icmp ne i32 %193, 0
br i1 %194, label %200, label %195
195: ; preds = %187
%196 = load ptr, ptr %14, align 8
%197 = load i32, ptr %16, align 4
%198 = sext i32 %197 to i64
%199 = getelementptr inbounds i32, ptr %196, i64 %198
store i32 0, ptr %199, align 4
br label %200
200: ; preds = %195, %187
br label %201
201: ; preds = %200
%202 = load i32, ptr %16, align 4
%203 = add nsw i32 %202, 1
store i32 %203, ptr %16, align 4
%204 = load i32, ptr %16, align 4
%205 = load i32, ptr %13, align 4
%206 = icmp slt i32 %204, %205
br i1 %206, label %187, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %201
br label %207
207: ; preds = %._crit_edge15, %183
%208 = load i32, ptr %18, align 4
store i32 %208, ptr %8, align 4
br label %209
209: ; preds = %207, %133
%210 = load i32, ptr %8, align 4
ret i32 %210
}
declare i32 @FD_ZERO(ptr noundef) #1
declare i32 @FD_SET(i32 noundef, ptr noundef) #1
declare i32 @sigfillset(ptr noundef) #1
declare i32 @pselect(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @FD_ISSET(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
|
; ModuleID = '/tmp/tmp5fltc6hb.c'
source_filename = "/tmp/tmp5fltc6hb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter item number: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Enter unit price: \00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.4 = private unnamed_addr constant [35 x i8] c"Enter purchase date (mm/dd/yyyy): \00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"%d/%d/%d\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.7 = private unnamed_addr constant [22 x i8] c"Item\09\09Unit\09\09Purchase\0A\00", align 1
@.str.8 = private unnamed_addr constant [15 x i8] c"\09\09Price\09\09Date\0A\00", align 1
@.str.9 = private unnamed_addr constant [26 x i8] c"%d\09\09$%4.2f\09\09%.2d/%.2d/%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %3)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%10 = call i32 (ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %2)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%12 = call i32 (ptr, ...) @scanf(ptr noundef @.str.5, ptr noundef %4, ptr noundef %5, ptr noundef %6)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%16 = load i32, ptr %3, align 4
%17 = load float, ptr %2, align 4
%18 = fpext float %17 to double
%19 = load i32, ptr %4, align 4
%20 = load i32, ptr %5, align 4
%21 = load i32, ptr %6, align 4
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %16, double noundef %18, i32 noundef %19, i32 noundef %20, i32 noundef %21)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5fltc6hb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter item number: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Enter unit price: \00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.4 = private unnamed_addr constant [35 x i8] c"Enter purchase date (mm/dd/yyyy): \00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"%d/%d/%d\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.7 = private unnamed_addr constant [22 x i8] c"Item\09\09Unit\09\09Purchase\0A\00", align 1
@.str.8 = private unnamed_addr constant [15 x i8] c"\09\09Price\09\09Date\0A\00", align 1
@.str.9 = private unnamed_addr constant [26 x i8] c"%d\09\09$%4.2f\09\09%.2d/%.2d/%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %3)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%10 = call i32 (ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %2)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%12 = call i32 (ptr, ...) @scanf(ptr noundef @.str.5, ptr noundef %4, ptr noundef %5, ptr noundef %6)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%16 = load i32, ptr %3, align 4
%17 = load float, ptr %2, align 4
%18 = fpext float %17 to double
%19 = load i32, ptr %4, align 4
%20 = load i32, ptr %5, align 4
%21 = load i32, ptr %6, align 4
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %16, double noundef %18, i32 noundef %19, i32 noundef %20, i32 noundef %21)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprpviulfr.c'
source_filename = "/tmp/tmprpviulfr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.buf = private unnamed_addr constant [1026 x i8] c"syslog: \00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", align 16
@.str = private unnamed_addr constant [37 x i8] c"Usage: slogd socket-name [log-file]\0A\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@O_APPEND = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [20 x i8] c"Cannot open %s: %m\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 [1026 x i8], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main.buf, i64 1026, i1 false)
%11 = getelementptr inbounds [1026 x i8], ptr %6, i64 0, i64 0
%12 = call i32 @strlen(ptr noundef %11)
store i32 %12, ptr %7, align 4
store i32 1, ptr %10, align 4
%13 = load i32, ptr %4, align 4
%14 = icmp slt i32 %13, 2
br i1 %14, label %18, label %15
15: ; preds = %2
%16 = load i32, ptr %4, align 4
%17 = icmp sgt i32 %16, 3
br i1 %17, label %18, label %20
18: ; preds = %15, %2
%19 = call i32 (ptr, ...) @die(ptr noundef @.str)
br label %20
20: ; preds = %18, %15
%21 = load i32, ptr %4, align 4
%22 = icmp sgt i32 %21, 2
br i1 %22, label %23, label %40
23: ; preds = %20
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 2
%26 = load ptr, ptr %25, align 8
%27 = load i32, ptr @O_WRONLY, align 4
%28 = load i32, ptr @O_CREAT, align 4
%29 = or i32 %27, %28
%30 = load i32, ptr @O_APPEND, align 4
%31 = or i32 %29, %30
%32 = call i32 @open(ptr noundef %26, i32 noundef %31, i32 noundef 420)
store i32 %32, ptr %10, align 4
%33 = icmp slt i32 %32, 0
br i1 %33, label %34, label %39
34: ; preds = %23
%35 = load ptr, ptr %5, align 8
%36 = getelementptr inbounds ptr, ptr %35, i64 2
%37 = load ptr, ptr %36, align 8
%38 = call i32 (ptr, ...) @die(ptr noundef @.str.1, ptr noundef %37)
br label %39
39: ; preds = %34, %23
br label %40
40: ; preds = %39, %20
%41 = load ptr, ptr %5, align 8
%42 = getelementptr inbounds ptr, ptr %41, i64 1
%43 = load ptr, ptr %42, align 8
%44 = call i32 @opensocket(ptr noundef %43)
store i32 %44, ptr %9, align 4
br label %45
45: ; preds = %55, %40
%46 = load i32, ptr %9, align 4
%47 = getelementptr inbounds [1026 x i8], ptr %6, i64 0, i64 0
%48 = load i32, ptr %7, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8, ptr %47, i64 %49
%51 = load i32, ptr %7, align 4
%52 = sub nsw i32 1024, %51
%53 = call i32 @recv(i32 noundef %46, ptr noundef %50, i32 noundef %52, i32 noundef 0)
store i32 %53, ptr %8, align 4
%54 = icmp sgt i32 %53, 0
br i1 %54, label %55, label %68
55: ; preds = %45
%56 = load i32, ptr %7, align 4
%57 = load i32, ptr %8, align 4
%58 = add nsw i32 %56, %57
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [1026 x i8], ptr %6, i64 0, i64 %59
store i8 10, ptr %60, align 1
%61 = load i32, ptr %10, align 4
%62 = getelementptr inbounds [1026 x i8], ptr %6, i64 0, i64 0
%63 = load i32, ptr %7, align 4
%64 = load i32, ptr %8, align 4
%65 = add nsw i32 %63, %64
%66 = add nsw i32 %65, 1
%67 = call i32 @write(i32 noundef %61, ptr noundef %62, i32 noundef %66)
br label %45, !llvm.loop !6
68: ; preds = %45
%69 = load i32, ptr %9, align 4
%70 = call i32 @close(i32 noundef %69)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @strlen(ptr noundef) #2
declare i32 @die(ptr noundef, ...) #2
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @opensocket(ptr noundef) #2
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @close(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprpviulfr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.buf = private unnamed_addr constant [1026 x i8] c"syslog: \00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", align 16
@.str = private unnamed_addr constant [37 x i8] c"Usage: slogd socket-name [log-file]\0A\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@O_APPEND = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [20 x i8] c"Cannot open %s: %m\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 [1026 x i8], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main.buf, i64 1026, i1 false)
%11 = getelementptr inbounds [1026 x i8], ptr %6, i64 0, i64 0
%12 = call i32 @strlen(ptr noundef %11)
store i32 %12, ptr %7, align 4
store i32 1, ptr %10, align 4
%13 = load i32, ptr %4, align 4
%14 = icmp slt i32 %13, 2
br i1 %14, label %18, label %15
15: ; preds = %2
%16 = load i32, ptr %4, align 4
%17 = icmp sgt i32 %16, 3
br i1 %17, label %18, label %20
18: ; preds = %15, %2
%19 = call i32 (ptr, ...) @die(ptr noundef @.str)
br label %20
20: ; preds = %18, %15
%21 = load i32, ptr %4, align 4
%22 = icmp sgt i32 %21, 2
br i1 %22, label %23, label %40
23: ; preds = %20
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 2
%26 = load ptr, ptr %25, align 8
%27 = load i32, ptr @O_WRONLY, align 4
%28 = load i32, ptr @O_CREAT, align 4
%29 = or i32 %27, %28
%30 = load i32, ptr @O_APPEND, align 4
%31 = or i32 %29, %30
%32 = call i32 @open(ptr noundef %26, i32 noundef %31, i32 noundef 420)
store i32 %32, ptr %10, align 4
%33 = icmp slt i32 %32, 0
br i1 %33, label %34, label %39
34: ; preds = %23
%35 = load ptr, ptr %5, align 8
%36 = getelementptr inbounds ptr, ptr %35, i64 2
%37 = load ptr, ptr %36, align 8
%38 = call i32 (ptr, ...) @die(ptr noundef @.str.1, ptr noundef %37)
br label %39
39: ; preds = %34, %23
br label %40
40: ; preds = %39, %20
%41 = load ptr, ptr %5, align 8
%42 = getelementptr inbounds ptr, ptr %41, i64 1
%43 = load ptr, ptr %42, align 8
%44 = call i32 @opensocket(ptr noundef %43)
store i32 %44, ptr %9, align 4
%45 = load i32, ptr %9, align 4
%46 = getelementptr inbounds [1026 x i8], ptr %6, i64 0, i64 0
%47 = load i32, ptr %7, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i8, ptr %46, i64 %48
%50 = load i32, ptr %7, align 4
%51 = sub nsw i32 1024, %50
%52 = call i32 @recv(i32 noundef %45, ptr noundef %49, i32 noundef %51, i32 noundef 0)
store i32 %52, ptr %8, align 4
%53 = icmp sgt i32 %52, 0
br i1 %53, label %.lr.ph, label %75
.lr.ph: ; preds = %40
br label %54
54: ; preds = %.lr.ph, %54
%55 = load i32, ptr %7, align 4
%56 = load i32, ptr %8, align 4
%57 = add nsw i32 %55, %56
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [1026 x i8], ptr %6, i64 0, i64 %58
store i8 10, ptr %59, align 1
%60 = load i32, ptr %10, align 4
%61 = getelementptr inbounds [1026 x i8], ptr %6, i64 0, i64 0
%62 = load i32, ptr %7, align 4
%63 = load i32, ptr %8, align 4
%64 = add nsw i32 %62, %63
%65 = add nsw i32 %64, 1
%66 = call i32 @write(i32 noundef %60, ptr noundef %61, i32 noundef %65)
%67 = load i32, ptr %9, align 4
%68 = load i32, ptr %7, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i8, ptr %46, i64 %69
%71 = load i32, ptr %7, align 4
%72 = sub nsw i32 1024, %71
%73 = call i32 @recv(i32 noundef %67, ptr noundef %70, i32 noundef %72, i32 noundef 0)
store i32 %73, ptr %8, align 4
%74 = icmp sgt i32 %73, 0
br i1 %74, label %54, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %54
br label %75
75: ; preds = %._crit_edge, %40
%76 = load i32, ptr %9, align 4
%77 = call i32 @close(i32 noundef %76)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @strlen(ptr noundef) #2
declare i32 @die(ptr noundef, ...) #2
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @opensocket(ptr noundef) #2
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @close(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp2qhbowab.c'
source_filename = "/tmp/tmp2qhbowab.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @less(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @assert_in_range_2(i32 noundef %5, i32 noundef %6)
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp sle i32 %8, %9
br i1 %10, label %11, label %12
11: ; preds = %2
br label %22
12: ; preds = %2
%13 = load i32, ptr %3, align 4
%14 = load i32, ptr %4, align 4
%15 = sub nsw i32 %13, %14
%16 = call i32 @assert_in_wide_range(i32 noundef %15)
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr %3, align 4
%19 = icmp slt i32 %17, %18
%20 = zext i1 %19 to i32
%21 = call i32 @clang_analyzer_eval(i32 noundef %20)
br label %22
22: ; preds = %12, %11
ret void
}
declare i32 @assert_in_range_2(i32 noundef, i32 noundef) #1
declare i32 @assert_in_wide_range(i32 noundef) #1
declare i32 @clang_analyzer_eval(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/tmp2qhbowab.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @less(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @assert_in_range_2(i32 noundef %5, i32 noundef %6)
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp sle i32 %8, %9
br i1 %10, label %11, label %12
11: ; preds = %2
br label %22
12: ; preds = %2
%13 = load i32, ptr %3, align 4
%14 = load i32, ptr %4, align 4
%15 = sub nsw i32 %13, %14
%16 = call i32 @assert_in_wide_range(i32 noundef %15)
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr %3, align 4
%19 = icmp slt i32 %17, %18
%20 = zext i1 %19 to i32
%21 = call i32 @clang_analyzer_eval(i32 noundef %20)
br label %22
22: ; preds = %12, %11
ret void
}
declare i32 @assert_in_range_2(i32 noundef, i32 noundef) #1
declare i32 @assert_in_wide_range(i32 noundef) #1
declare i32 @clang_analyzer_eval(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/tmptqugj_qc.c'
source_filename = "/tmp/tmptqugj_qc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"{Flags:%X Type:\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"}\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @U_PMF_PATHPOINTTYPE_print(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%8 = load ptr, ptr %3, align 8
%9 = load ptr, ptr %4, align 8
%10 = call i32 @U_PMF_PATHPOINTTYPE_get(ptr noundef %8, ptr noundef %5, ptr noundef %6, ptr noundef %9)
store i32 %10, ptr %7, align 4
%11 = load i32, ptr %7, align 4
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %19
13: ; preds = %2
%14 = load i32, ptr %5, align 4
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %14)
%16 = load i32, ptr %6, align 4
%17 = call i32 @U_PMF_PATHPOINTTYPE_ENUM_print(i32 noundef %16)
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %19
19: ; preds = %13, %2
%20 = load i32, ptr %7, align 4
ret i32 %20
}
declare i32 @U_PMF_PATHPOINTTYPE_get(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @U_PMF_PATHPOINTTYPE_ENUM_print(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/tmptqugj_qc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"{Flags:%X Type:\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"}\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @U_PMF_PATHPOINTTYPE_print(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%8 = load ptr, ptr %3, align 8
%9 = load ptr, ptr %4, align 8
%10 = call i32 @U_PMF_PATHPOINTTYPE_get(ptr noundef %8, ptr noundef %5, ptr noundef %6, ptr noundef %9)
store i32 %10, ptr %7, align 4
%11 = load i32, ptr %7, align 4
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %19
13: ; preds = %2
%14 = load i32, ptr %5, align 4
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %14)
%16 = load i32, ptr %6, align 4
%17 = call i32 @U_PMF_PATHPOINTTYPE_ENUM_print(i32 noundef %16)
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %19
19: ; preds = %13, %2
%20 = load i32, ptr %7, align 4
ret i32 %20
}
declare i32 @U_PMF_PATHPOINTTYPE_get(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @U_PMF_PATHPOINTTYPE_ENUM_print(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/tmpko6ytk9s.c'
source_filename = "/tmp/tmpko6ytk9s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [30 x i8] c"Usage: %s template suffixlen\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"mkstemps\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp ne i32 %9, 3
br i1 %10, label %11, label %18
11: ; preds = %2
%12 = load i32, ptr @stderr, align 4
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 0
%15 = load ptr, ptr %14, align 8
%16 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str, ptr noundef %15)
%17 = call i32 @exit(i32 noundef 2) #3
unreachable
18: ; preds = %2
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 1
%21 = load ptr, ptr %20, align 8
store ptr %21, ptr %6, align 8
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 2
%24 = load ptr, ptr %23, align 8
%25 = call i32 @atoi(ptr noundef %24)
store i32 %25, ptr %7, align 4
%26 = load ptr, ptr %6, align 8
%27 = load i32, ptr %7, align 4
%28 = call i32 @mkstemps(ptr noundef %26, i32 noundef %27)
store i32 %28, ptr %8, align 4
%29 = icmp eq i32 %28, -1
br i1 %29, label %34, label %30
30: ; preds = %18
%31 = load ptr, ptr %6, align 8
%32 = load i8, ptr %31, align 1
%33 = icmp ne i8 %32, 0
br i1 %33, label %37, label %34
34: ; preds = %30, %18
%35 = call i32 @perror(ptr noundef @.str.1)
%36 = call i32 @exit(i32 noundef 1) #3
unreachable
37: ; preds = %30
%38 = load ptr, ptr %6, align 8
%39 = call i32 @printf(ptr noundef @.str.2, ptr noundef %38)
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @atoi(ptr noundef) #1
declare i32 @mkstemps(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpko6ytk9s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [30 x i8] c"Usage: %s template suffixlen\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"mkstemps\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp ne i32 %9, 3
br i1 %10, label %11, label %18
11: ; preds = %2
%12 = load i32, ptr @stderr, align 4
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 0
%15 = load ptr, ptr %14, align 8
%16 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str, ptr noundef %15)
%17 = call i32 @exit(i32 noundef 2) #3
unreachable
18: ; preds = %2
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 1
%21 = load ptr, ptr %20, align 8
store ptr %21, ptr %6, align 8
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 2
%24 = load ptr, ptr %23, align 8
%25 = call i32 @atoi(ptr noundef %24)
store i32 %25, ptr %7, align 4
%26 = load ptr, ptr %6, align 8
%27 = load i32, ptr %7, align 4
%28 = call i32 @mkstemps(ptr noundef %26, i32 noundef %27)
store i32 %28, ptr %8, align 4
%29 = icmp eq i32 %28, -1
br i1 %29, label %34, label %30
30: ; preds = %18
%31 = load ptr, ptr %6, align 8
%32 = load i8, ptr %31, align 1
%33 = icmp ne i8 %32, 0
br i1 %33, label %37, label %34
34: ; preds = %30, %18
%35 = call i32 @perror(ptr noundef @.str.1)
%36 = call i32 @exit(i32 noundef 1) #3
unreachable
37: ; preds = %30
%38 = load ptr, ptr %6, align 8
%39 = call i32 @printf(ptr noundef @.str.2, ptr noundef %38)
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @atoi(ptr noundef) #1
declare i32 @mkstemps(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmp0a0xxmtt.c'
source_filename = "/tmp/tmp0a0xxmtt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca double, align 8
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
br label %6
6: ; preds = %34, %0
%7 = load i32, ptr %2, align 4
%8 = icmp sle i32 %7, 9
br i1 %8, label %9, label %37
9: ; preds = %6
store i32 0, ptr %3, align 4
br label %10
10: ; preds = %30, %9
%11 = load i32, ptr %3, align 4
%12 = icmp sle i32 %11, 9
br i1 %12, label %13, label %33
13: ; preds = %10
%14 = load i32, ptr %2, align 4
%15 = mul nsw i32 %14, 1100
%16 = load i32, ptr %3, align 4
%17 = mul nsw i32 %16, 11
%18 = add nsw i32 %15, %17
store i32 %18, ptr %4, align 4
%19 = load i32, ptr %4, align 4
%20 = call double @sqrt(i32 noundef %19)
store double %20, ptr %5, align 8
%21 = load double, ptr %5, align 8
%22 = fadd double %21, 5.000000e-01
%23 = call double @llvm.floor.f64(double %22)
%24 = load double, ptr %5, align 8
%25 = fcmp oeq double %23, %24
br i1 %25, label %26, label %29
26: ; preds = %13
%27 = load i32, ptr %4, align 4
%28 = call i32 @printf(ptr noundef @.str, i32 noundef %27)
br label %29
29: ; preds = %26, %13
br label %30
30: ; preds = %29
%31 = load i32, ptr %3, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %3, align 4
br label %10, !llvm.loop !6
33: ; preds = %10
br label %34
34: ; preds = %33
%35 = load i32, ptr %2, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %2, align 4
br label %6, !llvm.loop !8
37: ; preds = %6
ret i32 0
}
declare double @sqrt(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.floor.f64(double) #2
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" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0a0xxmtt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca double, align 8
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp sle i32 %6, 9
br i1 %7, label %.lr.ph2, label %39
.lr.ph2: ; preds = %0
br label %8
8: ; preds = %.lr.ph2, %34
store i32 0, ptr %3, align 4
%9 = load i32, ptr %3, align 4
%10 = icmp sle i32 %9, 9
br i1 %10, label %.lr.ph, label %33
.lr.ph: ; preds = %8
br label %11
11: ; preds = %.lr.ph, %28
%12 = load i32, ptr %2, align 4
%13 = mul nsw i32 %12, 1100
%14 = load i32, ptr %3, align 4
%15 = mul nsw i32 %14, 11
%16 = add nsw i32 %13, %15
store i32 %16, ptr %4, align 4
%17 = load i32, ptr %4, align 4
%18 = call double @sqrt(i32 noundef %17)
store double %18, ptr %5, align 8
%19 = load double, ptr %5, align 8
%20 = fadd double %19, 5.000000e-01
%21 = call double @llvm.floor.f64(double %20)
%22 = load double, ptr %5, align 8
%23 = fcmp oeq double %21, %22
br i1 %23, label %24, label %27
24: ; preds = %11
%25 = load i32, ptr %4, align 4
%26 = call i32 @printf(ptr noundef @.str, i32 noundef %25)
br label %27
27: ; preds = %24, %11
br label %28
28: ; preds = %27
%29 = load i32, ptr %3, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %3, align 4
%31 = load i32, ptr %3, align 4
%32 = icmp sle i32 %31, 9
br i1 %32, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %33
33: ; preds = %._crit_edge, %8
br label %34
34: ; preds = %33
%35 = load i32, ptr %2, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %2, align 4
%37 = load i32, ptr %2, align 4
%38 = icmp sle i32 %37, 9
br i1 %38, label %8, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %34
br label %39
39: ; preds = %._crit_edge3, %0
ret i32 0
}
declare double @sqrt(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.floor.f64(double) #2
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" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpjgj5zqgl.c'
source_filename = "/tmp/tmpjgj5zqgl.c"
target datalayout = "e-m:e-p270: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/tmpjgj5zqgl.c"
target datalayout = "e-m:e-p270: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/tmp9kfvzk8q.c'
source_filename = "/tmp/tmp9kfvzk8q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"N %*d W + %lf\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [19 x i8] c"[-] Response: \0A%s\0A\00", align 1
@.str.2 = private unnamed_addr constant [45 x i8] c"[-] Unable to extract power from response. \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @extract_power_from_mw100_response(ptr noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca double, align 8
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
br label %6
6: ; preds = %30, %1
%7 = load ptr, ptr %3, align 8
%8 = load i32, ptr %4, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds i8, ptr %7, i64 %9
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %33
14: ; preds = %6
%15 = load ptr, ptr %3, align 8
%16 = load i32, ptr %4, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %15, i64 %17
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 78
br i1 %21, label %22, label %29
22: ; preds = %14
%23 = load ptr, ptr %3, align 8
%24 = load i32, ptr %4, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %23, i64 %25
%27 = call i32 @sscanf(ptr noundef %26, ptr noundef @.str, ptr noundef %5)
%28 = load double, ptr %5, align 8
store double %28, ptr %2, align 8
br label %39
29: ; preds = %14
br label %30
30: ; preds = %29
%31 = load i32, ptr %4, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %4, align 4
br label %6, !llvm.loop !6
33: ; preds = %6
%34 = load i32, ptr @stderr, align 4
%35 = load ptr, ptr %3, align 8
%36 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %34, ptr noundef @.str.1, ptr noundef %35)
%37 = load i32, ptr @stderr, align 4
%38 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %37, ptr noundef @.str.2)
store double -1.000000e+00, ptr %2, align 8
br label %39
39: ; preds = %33, %22
%40 = load double, ptr %2, align 8
ret double %40
}
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9kfvzk8q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"N %*d W + %lf\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [19 x i8] c"[-] Response: \0A%s\0A\00", align 1
@.str.2 = private unnamed_addr constant [45 x i8] c"[-] Unable to extract power from response. \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @extract_power_from_mw100_response(ptr noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca double, align 8
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = load i32, ptr %4, align 4
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds i8, ptr %6, i64 %8
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %11, 0
br i1 %12, label %.lr.ph, label %39
.lr.ph: ; preds = %1
br label %13
13: ; preds = %.lr.ph, %29
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %4, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 78
br i1 %20, label %21, label %28
21: ; preds = %13
%22 = load ptr, ptr %3, align 8
%23 = load i32, ptr %4, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8, ptr %22, i64 %24
%26 = call i32 @sscanf(ptr noundef %25, ptr noundef @.str, ptr noundef %5)
%27 = load double, ptr %5, align 8
store double %27, ptr %2, align 8
br label %45
28: ; preds = %13
br label %29
29: ; preds = %28
%30 = load i32, ptr %4, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %4, align 4
%32 = load ptr, ptr %3, align 8
%33 = load i32, ptr %4, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %32, i64 %34
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp ne i32 %37, 0
br i1 %38, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %39
39: ; preds = %._crit_edge, %1
%40 = load i32, ptr @stderr, align 4
%41 = load ptr, ptr %3, align 8
%42 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %40, ptr noundef @.str.1, ptr noundef %41)
%43 = load i32, ptr @stderr, align 4
%44 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %43, ptr noundef @.str.2)
store double -1.000000e+00, ptr %2, align 8
br label %45
45: ; preds = %39, %21
%46 = load double, ptr %2, align 8
ret double %46
}
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpvzj2tbri.c'
source_filename = "/tmp/tmpvzj2tbri.c"
target datalayout = "e-m:e-p270: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/tmpvzj2tbri.c"
target datalayout = "e-m:e-p270: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/tmphh8bc3e0.c'
source_filename = "/tmp/tmphh8bc3e0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.str = private unnamed_addr constant [8 x i8] c"testing\00", align 1
@__const.main._str = private unnamed_addr constant [15 x i8] c"zzzzzzzzzzzer\00\00", align 1
@.str = private unnamed_addr constant [44 x i8] c"There`s no symbols from '%s' in string '%s'\00", align 1
@.str.1 = private unnamed_addr constant [74 x i8] c"The first occurrence of symbols from '%s' in string '%s' is in %d symbol\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 [8 x i8], align 1
%4 = alloca [15 x i8], align 1
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.str, i64 8, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %4, ptr align 1 @__const.main._str, i64 15, i1 false)
%5 = getelementptr inbounds [8 x i8], ptr %3, i64 0, i64 0
%6 = getelementptr inbounds [15 x i8], ptr %4, i64 0, i64 0
%7 = call i32 @any(ptr noundef %5, ptr noundef %6)
store i32 %7, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp eq i32 %8, -1
br i1 %9, label %10, label %14
10: ; preds = %0
%11 = getelementptr inbounds [15 x i8], ptr %4, i64 0, i64 0
%12 = getelementptr inbounds [8 x i8], ptr %3, i64 0, i64 0
%13 = call i32 (ptr, ptr, ptr, ...) @printf(ptr noundef @.str, ptr noundef %11, ptr noundef %12)
br label %19
14: ; preds = %0
%15 = getelementptr inbounds [15 x i8], ptr %4, i64 0, i64 0
%16 = getelementptr inbounds [8 x i8], ptr %3, i64 0, i64 0
%17 = load i32, ptr %2, align 4
%18 = call i32 (ptr, ptr, ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %15, ptr noundef %16, i32 noundef %17)
br label %19
19: ; preds = %14, %10
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @any(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: 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/tmphh8bc3e0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.str = private unnamed_addr constant [8 x i8] c"testing\00", align 1
@__const.main._str = private unnamed_addr constant [15 x i8] c"zzzzzzzzzzzer\00\00", align 1
@.str = private unnamed_addr constant [44 x i8] c"There`s no symbols from '%s' in string '%s'\00", align 1
@.str.1 = private unnamed_addr constant [74 x i8] c"The first occurrence of symbols from '%s' in string '%s' is in %d symbol\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 [8 x i8], align 1
%4 = alloca [15 x i8], align 1
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.str, i64 8, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %4, ptr align 1 @__const.main._str, i64 15, i1 false)
%5 = getelementptr inbounds [8 x i8], ptr %3, i64 0, i64 0
%6 = getelementptr inbounds [15 x i8], ptr %4, i64 0, i64 0
%7 = call i32 @any(ptr noundef %5, ptr noundef %6)
store i32 %7, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp eq i32 %8, -1
br i1 %9, label %10, label %14
10: ; preds = %0
%11 = getelementptr inbounds [15 x i8], ptr %4, i64 0, i64 0
%12 = getelementptr inbounds [8 x i8], ptr %3, i64 0, i64 0
%13 = call i32 (ptr, ptr, ptr, ...) @printf(ptr noundef @.str, ptr noundef %11, ptr noundef %12)
br label %19
14: ; preds = %0
%15 = getelementptr inbounds [15 x i8], ptr %4, i64 0, i64 0
%16 = getelementptr inbounds [8 x i8], ptr %3, i64 0, i64 0
%17 = load i32, ptr %2, align 4
%18 = call i32 (ptr, ptr, ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %15, ptr noundef %16, i32 noundef %17)
br label %19
19: ; preds = %14, %10
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @any(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: 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/tmphqlbc3u5.c'
source_filename = "/tmp/tmphqlbc3u5.c"
target datalayout = "e-m:e-p270: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/tmphqlbc3u5.c"
target datalayout = "e-m:e-p270: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/tmpud5wa_dj.c'
source_filename = "/tmp/tmpud5wa_dj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%f%f\00", align 1
@.str.1 = private unnamed_addr constant [61 x i8] c"The area of (%6.4f,%6.4f), (%6.4f,0) and (0,%6.4f) is %6.4f.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
store i32 0, ptr %1, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%6 = load float, ptr %2, align 4
%7 = load float, ptr %3, align 4
%8 = fmul float %6, %7
%9 = fdiv float %8, 2.000000e+00
store float %9, ptr %4, align 4
%10 = load float, ptr %4, align 4
%11 = fcmp oge float %10, 0.000000e+00
br i1 %11, label %12, label %19
12: ; preds = %0
%13 = load float, ptr %2, align 4
%14 = load float, ptr %3, align 4
%15 = load float, ptr %2, align 4
%16 = load float, ptr %3, align 4
%17 = load float, ptr %4, align 4
%18 = call i32 @printf(ptr noundef @.str.1, float noundef %13, float noundef %14, float noundef %15, float noundef %16, float noundef %17)
br label %29
19: ; preds = %0
%20 = load float, ptr %2, align 4
%21 = load float, ptr %3, align 4
%22 = load float, ptr %2, align 4
%23 = load float, ptr %3, align 4
%24 = load float, ptr %4, align 4
%25 = load float, ptr %4, align 4
%26 = fneg float %25
%27 = call float @llvm.fmuladd.f32(float %26, float 2.000000e+00, float %24)
%28 = call i32 @printf(ptr noundef @.str.1, float noundef %20, float noundef %21, float noundef %22, float noundef %23, float noundef %27)
br label %29
29: ; preds = %19, %12
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, float noundef, float noundef, float noundef, float noundef, float noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpud5wa_dj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%f%f\00", align 1
@.str.1 = private unnamed_addr constant [61 x i8] c"The area of (%6.4f,%6.4f), (%6.4f,0) and (0,%6.4f) is %6.4f.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
store i32 0, ptr %1, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%6 = load float, ptr %2, align 4
%7 = load float, ptr %3, align 4
%8 = fmul float %6, %7
%9 = fdiv float %8, 2.000000e+00
store float %9, ptr %4, align 4
%10 = load float, ptr %4, align 4
%11 = fcmp oge float %10, 0.000000e+00
br i1 %11, label %12, label %19
12: ; preds = %0
%13 = load float, ptr %2, align 4
%14 = load float, ptr %3, align 4
%15 = load float, ptr %2, align 4
%16 = load float, ptr %3, align 4
%17 = load float, ptr %4, align 4
%18 = call i32 @printf(ptr noundef @.str.1, float noundef %13, float noundef %14, float noundef %15, float noundef %16, float noundef %17)
br label %29
19: ; preds = %0
%20 = load float, ptr %2, align 4
%21 = load float, ptr %3, align 4
%22 = load float, ptr %2, align 4
%23 = load float, ptr %3, align 4
%24 = load float, ptr %4, align 4
%25 = load float, ptr %4, align 4
%26 = fneg float %25
%27 = call float @llvm.fmuladd.f32(float %26, float 2.000000e+00, float %24)
%28 = call i32 @printf(ptr noundef @.str.1, float noundef %20, float noundef %21, float noundef %22, float noundef %23, float noundef %27)
br label %29
29: ; preds = %19, %12
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, float noundef, float noundef, float noundef, float noundef, float noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpilu4ycw4.c'
source_filename = "/tmp/tmpilu4ycw4.c"
target datalayout = "e-m:e-p270: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/tmpilu4ycw4.c"
target datalayout = "e-m:e-p270: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/tmpqkcw9zso.c'
source_filename = "/tmp/tmpqkcw9zso.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @in2cm(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 = icmp slt i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = load i32, ptr %3, align 4
store i32 %7, ptr %2, align 4
br label %14
8: ; preds = %1
%9 = load i32, ptr %3, align 4
%10 = sitofp i32 %9 to double
%11 = fmul double %10, 2.540000e+00
%12 = fptosi double %11 to i32
%13 = call i32 @round(i32 noundef %12)
store i32 %13, ptr %2, align 4
br label %14
14: ; preds = %8, %6
%15 = load i32, ptr %2, align 4
ret i32 %15
}
declare i32 @round(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/tmpqkcw9zso.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @in2cm(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 = icmp slt i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = load i32, ptr %3, align 4
store i32 %7, ptr %2, align 4
br label %14
8: ; preds = %1
%9 = load i32, ptr %3, align 4
%10 = sitofp i32 %9 to double
%11 = fmul double %10, 2.540000e+00
%12 = fptosi double %11 to i32
%13 = call i32 @round(i32 noundef %12)
store i32 %13, ptr %2, align 4
br label %14
14: ; preds = %8, %6
%15 = load i32, ptr %2, align 4
ret i32 %15
}
declare i32 @round(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/tmpi0vmb_g3.c'
source_filename = "/tmp/tmpi0vmb_g3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.addrinfo = type { i32, ptr, i32, ptr, ptr, i32 }
@.str = private unnamed_addr constant [24 x i8] c"usage: ruptime hostname\00", align 1
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [8 x i8] c"ruptime\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"getaddrinfo error: %s\00", align 1
@errno = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [20 x i8] c"can't connect to %s\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 %struct.addrinfo, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr %4, align 4
%12 = icmp ne i32 %11, 2
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = call i32 (ptr, ...) @err_quit(ptr noundef @.str)
br label %15
15: ; preds = %13, %2
%16 = call i32 @memset(ptr noundef %8, i32 noundef 0, i32 noundef 48)
%17 = load i32, ptr @SOCK_STREAM, align 4
%18 = getelementptr inbounds %struct.addrinfo, ptr %8, i32 0, i32 5
store i32 %17, ptr %18, align 8
%19 = getelementptr inbounds %struct.addrinfo, ptr %8, i32 0, i32 4
store ptr null, ptr %19, align 8
%20 = getelementptr inbounds %struct.addrinfo, ptr %8, i32 0, i32 1
store ptr null, ptr %20, align 8
%21 = getelementptr inbounds %struct.addrinfo, ptr %8, i32 0, i32 3
store ptr null, ptr %21, align 8
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call i32 @getaddrinfo(ptr noundef %24, ptr noundef @.str.1, ptr noundef %8, ptr noundef %6)
store i32 %25, ptr %10, align 4
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %31
27: ; preds = %15
%28 = load i32, ptr %10, align 4
%29 = call i32 @gai_strerror(i32 noundef %28)
%30 = call i32 (ptr, ...) @err_quit(ptr noundef @.str.2, i32 noundef %29)
br label %31
31: ; preds = %27, %15
%32 = load ptr, ptr %6, align 8
store ptr %32, ptr %7, align 8
br label %33
33: ; preds = %56, %31
%34 = load ptr, ptr %7, align 8
%35 = icmp ne ptr %34, null
br i1 %35, label %36, label %60
36: ; preds = %33
%37 = load ptr, ptr %7, align 8
%38 = getelementptr inbounds %struct.addrinfo, ptr %37, i32 0, i32 2
%39 = load i32, ptr %38, align 8
%40 = load i32, ptr @SOCK_STREAM, align 4
%41 = load ptr, ptr %7, align 8
%42 = getelementptr inbounds %struct.addrinfo, ptr %41, i32 0, i32 1
%43 = load ptr, ptr %42, align 8
%44 = load ptr, ptr %7, align 8
%45 = getelementptr inbounds %struct.addrinfo, ptr %44, i32 0, i32 0
%46 = load i32, ptr %45, align 8
%47 = call i32 @connect_retry(i32 noundef %39, i32 noundef %40, i32 noundef 0, ptr noundef %43, i32 noundef %46)
store i32 %47, ptr %9, align 4
%48 = icmp slt i32 %47, 0
br i1 %48, label %49, label %51
49: ; preds = %36
%50 = load i32, ptr @errno, align 4
store i32 %50, ptr %10, align 4
br label %55
51: ; preds = %36
%52 = load i32, ptr %9, align 4
%53 = call i32 @print_uptime(i32 noundef %52)
%54 = call i32 @exit(i32 noundef 0) #3
unreachable
55: ; preds = %49
br label %56
56: ; preds = %55
%57 = load ptr, ptr %7, align 8
%58 = getelementptr inbounds %struct.addrinfo, ptr %57, i32 0, i32 3
%59 = load ptr, ptr %58, align 8
store ptr %59, ptr %7, align 8
br label %33, !llvm.loop !6
60: ; preds = %33
%61 = load i32, ptr %10, align 4
%62 = load ptr, ptr %5, align 8
%63 = getelementptr inbounds ptr, ptr %62, i64 1
%64 = load ptr, ptr %63, align 8
%65 = call i32 @err_exit(i32 noundef %61, ptr noundef @.str.3, ptr noundef %64)
%66 = load i32, ptr %3, align 4
ret i32 %66
}
declare i32 @err_quit(ptr noundef, ...) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @gai_strerror(i32 noundef) #1
declare i32 @connect_retry(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @print_uptime(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @err_exit(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" }
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/tmpi0vmb_g3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.addrinfo = type { i32, ptr, i32, ptr, ptr, i32 }
@.str = private unnamed_addr constant [24 x i8] c"usage: ruptime hostname\00", align 1
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [8 x i8] c"ruptime\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"getaddrinfo error: %s\00", align 1
@errno = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [20 x i8] c"can't connect to %s\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 %struct.addrinfo, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr %4, align 4
%12 = icmp ne i32 %11, 2
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = call i32 (ptr, ...) @err_quit(ptr noundef @.str)
br label %15
15: ; preds = %13, %2
%16 = call i32 @memset(ptr noundef %8, i32 noundef 0, i32 noundef 48)
%17 = load i32, ptr @SOCK_STREAM, align 4
%18 = getelementptr inbounds %struct.addrinfo, ptr %8, i32 0, i32 5
store i32 %17, ptr %18, align 8
%19 = getelementptr inbounds %struct.addrinfo, ptr %8, i32 0, i32 4
store ptr null, ptr %19, align 8
%20 = getelementptr inbounds %struct.addrinfo, ptr %8, i32 0, i32 1
store ptr null, ptr %20, align 8
%21 = getelementptr inbounds %struct.addrinfo, ptr %8, i32 0, i32 3
store ptr null, ptr %21, align 8
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call i32 @getaddrinfo(ptr noundef %24, ptr noundef @.str.1, ptr noundef %8, ptr noundef %6)
store i32 %25, ptr %10, align 4
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %31
27: ; preds = %15
%28 = load i32, ptr %10, align 4
%29 = call i32 @gai_strerror(i32 noundef %28)
%30 = call i32 (ptr, ...) @err_quit(ptr noundef @.str.2, i32 noundef %29)
br label %31
31: ; preds = %27, %15
%32 = load ptr, ptr %6, align 8
store ptr %32, ptr %7, align 8
%33 = load ptr, ptr %7, align 8
%34 = icmp ne ptr %33, null
br i1 %34, label %.lr.ph, label %61
.lr.ph: ; preds = %31
br label %35
35: ; preds = %.lr.ph, %55
%36 = load ptr, ptr %7, align 8
%37 = getelementptr inbounds %struct.addrinfo, ptr %36, i32 0, i32 2
%38 = load i32, ptr %37, align 8
%39 = load i32, ptr @SOCK_STREAM, align 4
%40 = load ptr, ptr %7, align 8
%41 = getelementptr inbounds %struct.addrinfo, ptr %40, i32 0, i32 1
%42 = load ptr, ptr %41, align 8
%43 = load ptr, ptr %7, align 8
%44 = getelementptr inbounds %struct.addrinfo, ptr %43, i32 0, i32 0
%45 = load i32, ptr %44, align 8
%46 = call i32 @connect_retry(i32 noundef %38, i32 noundef %39, i32 noundef 0, ptr noundef %42, i32 noundef %45)
store i32 %46, ptr %9, align 4
%47 = icmp slt i32 %46, 0
br i1 %47, label %48, label %50
48: ; preds = %35
%49 = load i32, ptr @errno, align 4
store i32 %49, ptr %10, align 4
br label %54
50: ; preds = %35
%51 = load i32, ptr %9, align 4
%52 = call i32 @print_uptime(i32 noundef %51)
%53 = call i32 @exit(i32 noundef 0) #3
unreachable
54: ; preds = %48
br label %55
55: ; preds = %54
%56 = load ptr, ptr %7, align 8
%57 = getelementptr inbounds %struct.addrinfo, ptr %56, i32 0, i32 3
%58 = load ptr, ptr %57, align 8
store ptr %58, ptr %7, align 8
%59 = load ptr, ptr %7, align 8
%60 = icmp ne ptr %59, null
br i1 %60, label %35, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %55
br label %61
61: ; preds = %._crit_edge, %31
%62 = load i32, ptr %10, align 4
%63 = load ptr, ptr %5, align 8
%64 = getelementptr inbounds ptr, ptr %63, i64 1
%65 = load ptr, ptr %64, align 8
%66 = call i32 @err_exit(i32 noundef %62, ptr noundef @.str.3, ptr noundef %65)
%67 = load i32, ptr %3, align 4
ret i32 %67
}
declare i32 @err_quit(ptr noundef, ...) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @gai_strerror(i32 noundef) #1
declare i32 @connect_retry(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @print_uptime(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @err_exit(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" }
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/tmp0608vizn.c'
source_filename = "/tmp/tmp0608vizn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"PATH\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c":\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @exec_binary_from_path(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i64, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store i64 0, ptr %13, align 8
%14 = load ptr, ptr %6, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %20, label %16
16: ; preds = %4
%17 = load ptr, ptr %7, align 8
%18 = call i32 @env_dup_var(ptr noundef %17, ptr noundef @.str)
%19 = call ptr @ft_mdsplit(i32 noundef %18, ptr noundef @.str.1)
store ptr %19, ptr %10, align 8
br label %23
20: ; preds = %4
%21 = load ptr, ptr %6, align 8
%22 = call ptr @ft_split(ptr noundef %21, ptr noundef @.str.1)
store ptr %22, ptr %10, align 8
br label %23
23: ; preds = %20, %16
br label %24
24: ; preds = %56, %23
%25 = load ptr, ptr %10, align 8
%26 = icmp ne ptr %25, null
br i1 %26, label %27, label %33
27: ; preds = %24
%28 = load ptr, ptr %10, align 8
%29 = load i64, ptr %13, align 8
%30 = getelementptr inbounds ptr, ptr %28, i64 %29
%31 = load ptr, ptr %30, align 8
%32 = icmp ne ptr %31, null
br label %33
33: ; preds = %27, %24
%34 = phi i1 [ false, %24 ], [ %32, %27 ]
br i1 %34, label %35, label %57
35: ; preds = %33
%36 = load ptr, ptr %10, align 8
%37 = load i64, ptr %13, align 8
%38 = add i64 %37, 1
store i64 %38, ptr %13, align 8
%39 = getelementptr inbounds ptr, ptr %36, i64 %37
%40 = load ptr, ptr %39, align 8
%41 = load ptr, ptr %8, align 8
%42 = getelementptr inbounds ptr, ptr %41, i64 0
%43 = load ptr, ptr %42, align 8
%44 = call ptr @find_bin(ptr noundef %40, ptr noundef %43)
store ptr %44, ptr %11, align 8
%45 = icmp ne ptr %44, null
br i1 %45, label %46, label %56
46: ; preds = %35
%47 = load ptr, ptr %11, align 8
%48 = load ptr, ptr %8, align 8
%49 = load ptr, ptr %7, align 8
%50 = call i32 @execute(ptr noundef %47, ptr noundef %48, ptr noundef %49)
store i32 %50, ptr %12, align 4
%51 = load ptr, ptr %11, align 8
%52 = call i32 @free(ptr noundef %51)
%53 = load ptr, ptr %10, align 8
%54 = call i32 @env_destroy(ptr noundef %53)
%55 = load i32, ptr %12, align 4
store i32 %55, ptr %5, align 4
br label %65
56: ; preds = %35
br label %24, !llvm.loop !6
57: ; preds = %33
%58 = load ptr, ptr %10, align 8
%59 = call i32 @env_destroy(ptr noundef %58)
%60 = load ptr, ptr %6, align 8
%61 = load ptr, ptr %7, align 8
%62 = load ptr, ptr %8, align 8
%63 = load ptr, ptr %9, align 8
%64 = call i32 @test_direct_path(ptr noundef %60, ptr noundef %61, ptr noundef %62, ptr noundef %63)
store i32 %64, ptr %5, align 4
br label %65
65: ; preds = %57, %46
%66 = load i32, ptr %5, align 4
ret i32 %66
}
declare ptr @ft_mdsplit(i32 noundef, ptr noundef) #1
declare i32 @env_dup_var(ptr noundef, ptr noundef) #1
declare ptr @ft_split(ptr noundef, ptr noundef) #1
declare ptr @find_bin(ptr noundef, ptr noundef) #1
declare i32 @execute(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @env_destroy(ptr noundef) #1
declare i32 @test_direct_path(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0608vizn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"PATH\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c":\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @exec_binary_from_path(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i64, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store i64 0, ptr %13, align 8
%14 = load ptr, ptr %6, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %20, label %16
16: ; preds = %4
%17 = load ptr, ptr %7, align 8
%18 = call i32 @env_dup_var(ptr noundef %17, ptr noundef @.str)
%19 = call ptr @ft_mdsplit(i32 noundef %18, ptr noundef @.str.1)
store ptr %19, ptr %10, align 8
br label %23
20: ; preds = %4
%21 = load ptr, ptr %6, align 8
%22 = call ptr @ft_split(ptr noundef %21, ptr noundef @.str.1)
store ptr %22, ptr %10, align 8
br label %23
23: ; preds = %20, %16
br label %24
24: ; preds = %35, %23
%25 = load ptr, ptr %10, align 8
%26 = icmp ne ptr %25, null
br i1 %26, label %27, label %33
27: ; preds = %24
%28 = load ptr, ptr %10, align 8
%29 = load i64, ptr %13, align 8
%30 = getelementptr inbounds ptr, ptr %28, i64 %29
%31 = load ptr, ptr %30, align 8
%32 = icmp ne ptr %31, null
br label %33
33: ; preds = %27, %24
%34 = phi i1 [ false, %24 ], [ %32, %27 ]
br i1 %34, label %35, label %56
35: ; preds = %33
%36 = load ptr, ptr %10, align 8
%37 = load i64, ptr %13, align 8
%38 = add i64 %37, 1
store i64 %38, ptr %13, align 8
%39 = getelementptr inbounds ptr, ptr %36, i64 %37
%40 = load ptr, ptr %39, align 8
%41 = load ptr, ptr %8, align 8
%42 = getelementptr inbounds ptr, ptr %41, i64 0
%43 = load ptr, ptr %42, align 8
%44 = call ptr @find_bin(ptr noundef %40, ptr noundef %43)
store ptr %44, ptr %11, align 8
%45 = icmp ne ptr %44, null
br i1 %45, label %46, label %24, !llvm.loop !6
46: ; preds = %35
%47 = load ptr, ptr %11, align 8
%48 = load ptr, ptr %8, align 8
%49 = load ptr, ptr %7, align 8
%50 = call i32 @execute(ptr noundef %47, ptr noundef %48, ptr noundef %49)
store i32 %50, ptr %12, align 4
%51 = load ptr, ptr %11, align 8
%52 = call i32 @free(ptr noundef %51)
%53 = load ptr, ptr %10, align 8
%54 = call i32 @env_destroy(ptr noundef %53)
%55 = load i32, ptr %12, align 4
store i32 %55, ptr %5, align 4
br label %64
56: ; preds = %33
%57 = load ptr, ptr %10, align 8
%58 = call i32 @env_destroy(ptr noundef %57)
%59 = load ptr, ptr %6, align 8
%60 = load ptr, ptr %7, align 8
%61 = load ptr, ptr %8, align 8
%62 = load ptr, ptr %9, align 8
%63 = call i32 @test_direct_path(ptr noundef %59, ptr noundef %60, ptr noundef %61, ptr noundef %62)
store i32 %63, ptr %5, align 4
br label %64
64: ; preds = %56, %46
%65 = load i32, ptr %5, align 4
ret i32 %65
}
declare ptr @ft_mdsplit(i32 noundef, ptr noundef) #1
declare i32 @env_dup_var(ptr noundef, ptr noundef) #1
declare ptr @ft_split(ptr noundef, ptr noundef) #1
declare ptr @find_bin(ptr noundef, ptr noundef) #1
declare i32 @execute(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @env_destroy(ptr noundef) #1
declare i32 @test_direct_path(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmps4ydyebz.c'
source_filename = "/tmp/tmps4ydyebz.c"
target datalayout = "e-m:e-p270: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.epoll_event = type { i32, %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@IPPROTO_TCP = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [22 x i8] c"socket() failed: %s\0A.\00", align 1
@errno = dso_local global i32 0, align 4
@EXIT_FAILURE = dso_local global i32 0, align 4
@EPOLLIN = dso_local global i32 0, align 4
@EPOLLOUT = dso_local global i32 0, align 4
@EPOLL_CTL_ADD = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [25 x i8] c"epoll_ctl() failed: %s\0A.\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"epoll_pwait() failed: %s\0A.\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca %struct.epoll_event, align 4
%5 = alloca [2 x %struct.epoll_event], align 16
store i32 0, ptr %1, align 4
%6 = load i32, ptr @AF_INET, align 4
%7 = load i32, ptr @SOCK_STREAM, align 4
%8 = load i32, ptr @IPPROTO_TCP, align 4
%9 = call i32 @socket(i32 noundef %6, i32 noundef %7, i32 noundef %8)
store i32 %9, ptr %2, align 4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %17
11: ; preds = %0
%12 = load i32, ptr @stderr, align 4
%13 = load i32, ptr @errno, align 4
%14 = call ptr @strerror(i32 noundef %13)
%15 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str, ptr noundef %14)
%16 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %16, ptr %1, align 4
br label %50
17: ; preds = %0
%18 = call i32 @epoll_create1(i32 noundef 0)
store i32 %18, ptr %3, align 4
%19 = load i32, ptr %2, align 4
%20 = getelementptr inbounds %struct.epoll_event, ptr %4, i32 0, i32 1
%21 = getelementptr inbounds %struct.TYPE_2__, ptr %20, i32 0, i32 0
store i32 %19, ptr %21, align 4
%22 = load i32, ptr @EPOLLIN, align 4
%23 = load i32, ptr @EPOLLOUT, align 4
%24 = or i32 %22, %23
%25 = getelementptr inbounds %struct.epoll_event, ptr %4, i32 0, i32 0
store i32 %24, ptr %25, align 4
%26 = load i32, ptr %3, align 4
%27 = load i32, ptr @EPOLL_CTL_ADD, align 4
%28 = load i32, ptr %2, align 4
%29 = call i64 @epoll_ctl(i32 noundef %26, i32 noundef %27, i32 noundef %28, ptr noundef %4)
%30 = icmp slt i64 %29, 0
br i1 %30, label %31, label %37
31: ; preds = %17
%32 = load i32, ptr @stderr, align 4
%33 = load i32, ptr @errno, align 4
%34 = call ptr @strerror(i32 noundef %33)
%35 = call i32 @fprintf(i32 noundef %32, ptr noundef @.str.1, ptr noundef %34)
%36 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %36, ptr %1, align 4
br label %50
37: ; preds = %17
%38 = load i32, ptr %3, align 4
%39 = getelementptr inbounds [2 x %struct.epoll_event], ptr %5, i64 0, i64 0
%40 = call i64 @epoll_pwait(i32 noundef %38, ptr noundef %39, i32 noundef 2, i32 noundef 0, ptr noundef null)
%41 = icmp slt i64 %40, 0
br i1 %41, label %42, label %48
42: ; preds = %37
%43 = load i32, ptr @stderr, align 4
%44 = load i32, ptr @errno, align 4
%45 = call ptr @strerror(i32 noundef %44)
%46 = call i32 @fprintf(i32 noundef %43, ptr noundef @.str.2, ptr noundef %45)
%47 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %47, ptr %1, align 4
br label %50
48: ; preds = %37
%49 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %49, ptr %1, align 4
br label %50
50: ; preds = %48, %42, %31, %11
%51 = load i32, ptr %1, align 4
ret i32 %51
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i32 @epoll_create1(i32 noundef) #1
declare i64 @epoll_ctl(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i64 @epoll_pwait(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmps4ydyebz.c"
target datalayout = "e-m:e-p270: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.epoll_event = type { i32, %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@IPPROTO_TCP = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [22 x i8] c"socket() failed: %s\0A.\00", align 1
@errno = dso_local global i32 0, align 4
@EXIT_FAILURE = dso_local global i32 0, align 4
@EPOLLIN = dso_local global i32 0, align 4
@EPOLLOUT = dso_local global i32 0, align 4
@EPOLL_CTL_ADD = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [25 x i8] c"epoll_ctl() failed: %s\0A.\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"epoll_pwait() failed: %s\0A.\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca %struct.epoll_event, align 4
%5 = alloca [2 x %struct.epoll_event], align 16
store i32 0, ptr %1, align 4
%6 = load i32, ptr @AF_INET, align 4
%7 = load i32, ptr @SOCK_STREAM, align 4
%8 = load i32, ptr @IPPROTO_TCP, align 4
%9 = call i32 @socket(i32 noundef %6, i32 noundef %7, i32 noundef %8)
store i32 %9, ptr %2, align 4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %17
11: ; preds = %0
%12 = load i32, ptr @stderr, align 4
%13 = load i32, ptr @errno, align 4
%14 = call ptr @strerror(i32 noundef %13)
%15 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str, ptr noundef %14)
%16 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %16, ptr %1, align 4
br label %50
17: ; preds = %0
%18 = call i32 @epoll_create1(i32 noundef 0)
store i32 %18, ptr %3, align 4
%19 = load i32, ptr %2, align 4
%20 = getelementptr inbounds %struct.epoll_event, ptr %4, i32 0, i32 1
%21 = getelementptr inbounds %struct.TYPE_2__, ptr %20, i32 0, i32 0
store i32 %19, ptr %21, align 4
%22 = load i32, ptr @EPOLLIN, align 4
%23 = load i32, ptr @EPOLLOUT, align 4
%24 = or i32 %22, %23
%25 = getelementptr inbounds %struct.epoll_event, ptr %4, i32 0, i32 0
store i32 %24, ptr %25, align 4
%26 = load i32, ptr %3, align 4
%27 = load i32, ptr @EPOLL_CTL_ADD, align 4
%28 = load i32, ptr %2, align 4
%29 = call i64 @epoll_ctl(i32 noundef %26, i32 noundef %27, i32 noundef %28, ptr noundef %4)
%30 = icmp slt i64 %29, 0
br i1 %30, label %31, label %37
31: ; preds = %17
%32 = load i32, ptr @stderr, align 4
%33 = load i32, ptr @errno, align 4
%34 = call ptr @strerror(i32 noundef %33)
%35 = call i32 @fprintf(i32 noundef %32, ptr noundef @.str.1, ptr noundef %34)
%36 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %36, ptr %1, align 4
br label %50
37: ; preds = %17
%38 = load i32, ptr %3, align 4
%39 = getelementptr inbounds [2 x %struct.epoll_event], ptr %5, i64 0, i64 0
%40 = call i64 @epoll_pwait(i32 noundef %38, ptr noundef %39, i32 noundef 2, i32 noundef 0, ptr noundef null)
%41 = icmp slt i64 %40, 0
br i1 %41, label %42, label %48
42: ; preds = %37
%43 = load i32, ptr @stderr, align 4
%44 = load i32, ptr @errno, align 4
%45 = call ptr @strerror(i32 noundef %44)
%46 = call i32 @fprintf(i32 noundef %43, ptr noundef @.str.2, ptr noundef %45)
%47 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %47, ptr %1, align 4
br label %50
48: ; preds = %37
%49 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %49, ptr %1, align 4
br label %50
50: ; preds = %48, %42, %31, %11
%51 = load i32, ptr %1, align 4
ret i32 %51
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i32 @epoll_create1(i32 noundef) #1
declare i64 @epoll_ctl(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i64 @epoll_pwait(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp55fnofhk.c'
source_filename = "/tmp/tmp55fnofhk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"HOME\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"/.local/share/secapp/\00", align 1
@S_IRWXU = dso_local global i32 0, align 4
@S_IRWXG = dso_local global i32 0, align 4
@S_IROTH = dso_local global i32 0, align 4
@S_IXOTH = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @mkdir_one(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = call ptr @malloc(i32 noundef 512)
store ptr %7, ptr %6, align 8
%8 = call ptr @malloc(i32 noundef 512)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %3, align 8
%11 = call i32 @strcpy(ptr noundef %9, ptr noundef %10)
%12 = load ptr, ptr %6, align 8
%13 = call ptr @getenv(ptr noundef @.str.1)
%14 = call i32 @sprintf(ptr noundef %12, ptr noundef @.str, ptr noundef %13)
%15 = load ptr, ptr %6, align 8
%16 = call ptr @strcat(ptr noundef %15, ptr noundef @.str.2)
%17 = load ptr, ptr %5, align 8
%18 = load ptr, ptr %6, align 8
%19 = load ptr, ptr %5, align 8
%20 = call ptr @strcat(ptr noundef %18, ptr noundef %19)
%21 = call i32 @strcpy(ptr noundef %17, ptr noundef %20)
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr @S_IRWXU, align 4
%24 = load i32, ptr @S_IRWXG, align 4
%25 = or i32 %23, %24
%26 = load i32, ptr @S_IROTH, align 4
%27 = or i32 %25, %26
%28 = load i32, ptr @S_IXOTH, align 4
%29 = or i32 %27, %28
%30 = call i32 @mkdir(ptr noundef %22, i32 noundef %29)
%31 = load ptr, ptr %5, align 8
%32 = load ptr, ptr %4, align 8
%33 = call ptr @strcat(ptr noundef %31, ptr noundef %32)
%34 = load ptr, ptr %5, align 8
%35 = load i32, ptr @S_IRWXU, align 4
%36 = load i32, ptr @S_IRWXG, align 4
%37 = or i32 %35, %36
%38 = load i32, ptr @S_IROTH, align 4
%39 = or i32 %37, %38
%40 = load i32, ptr @S_IXOTH, align 4
%41 = or i32 %39, %40
%42 = call i32 @mkdir(ptr noundef %34, i32 noundef %41)
ret i32 0
}
declare ptr @malloc(i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @getenv(ptr noundef) #1
declare ptr @strcat(ptr noundef, ptr noundef) #1
declare i32 @mkdir(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/tmp55fnofhk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"HOME\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"/.local/share/secapp/\00", align 1
@S_IRWXU = dso_local global i32 0, align 4
@S_IRWXG = dso_local global i32 0, align 4
@S_IROTH = dso_local global i32 0, align 4
@S_IXOTH = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @mkdir_one(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = call ptr @malloc(i32 noundef 512)
store ptr %7, ptr %6, align 8
%8 = call ptr @malloc(i32 noundef 512)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %3, align 8
%11 = call i32 @strcpy(ptr noundef %9, ptr noundef %10)
%12 = load ptr, ptr %6, align 8
%13 = call ptr @getenv(ptr noundef @.str.1)
%14 = call i32 @sprintf(ptr noundef %12, ptr noundef @.str, ptr noundef %13)
%15 = load ptr, ptr %6, align 8
%16 = call ptr @strcat(ptr noundef %15, ptr noundef @.str.2)
%17 = load ptr, ptr %5, align 8
%18 = load ptr, ptr %6, align 8
%19 = load ptr, ptr %5, align 8
%20 = call ptr @strcat(ptr noundef %18, ptr noundef %19)
%21 = call i32 @strcpy(ptr noundef %17, ptr noundef %20)
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr @S_IRWXU, align 4
%24 = load i32, ptr @S_IRWXG, align 4
%25 = or i32 %23, %24
%26 = load i32, ptr @S_IROTH, align 4
%27 = or i32 %25, %26
%28 = load i32, ptr @S_IXOTH, align 4
%29 = or i32 %27, %28
%30 = call i32 @mkdir(ptr noundef %22, i32 noundef %29)
%31 = load ptr, ptr %5, align 8
%32 = load ptr, ptr %4, align 8
%33 = call ptr @strcat(ptr noundef %31, ptr noundef %32)
%34 = load ptr, ptr %5, align 8
%35 = load i32, ptr @S_IRWXU, align 4
%36 = load i32, ptr @S_IRWXG, align 4
%37 = or i32 %35, %36
%38 = load i32, ptr @S_IROTH, align 4
%39 = or i32 %37, %38
%40 = load i32, ptr @S_IXOTH, align 4
%41 = or i32 %39, %40
%42 = call i32 @mkdir(ptr noundef %34, i32 noundef %41)
ret i32 0
}
declare ptr @malloc(i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @getenv(ptr noundef) #1
declare ptr @strcat(ptr noundef, ptr noundef) #1
declare i32 @mkdir(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/tmphm_h1cha.c'
source_filename = "/tmp/tmphm_h1cha.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dump_metadata(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call ptr @send_metadata_request(ptr noundef %4)
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @dump_metadata_response(ptr noundef %6)
%8 = load ptr, ptr %3, align 8
%9 = call i32 @dealloc_metadata_response(ptr noundef %8)
ret void
}
declare ptr @send_metadata_request(ptr noundef) #1
declare i32 @dump_metadata_response(ptr noundef) #1
declare i32 @dealloc_metadata_response(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphm_h1cha.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dump_metadata(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call ptr @send_metadata_request(ptr noundef %4)
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @dump_metadata_response(ptr noundef %6)
%8 = load ptr, ptr %3, align 8
%9 = call i32 @dealloc_metadata_response(ptr noundef %8)
ret void
}
declare ptr @send_metadata_request(ptr noundef) #1
declare i32 @dump_metadata_response(ptr noundef) #1
declare i32 @dealloc_metadata_response(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxrmoyw2b.c'
source_filename = "/tmp/tmpxrmoyw2b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @run_spe_one(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @RVS_Ipoint(i32 noundef 10)
%4 = load i32, ptr %2, align 4
%5 = call i32 @spe_one(i32 noundef %4)
%6 = call i32 @RVS_Ipoint(i32 noundef 11)
ret void
}
declare i32 @RVS_Ipoint(i32 noundef) #1
declare i32 @spe_one(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/tmpxrmoyw2b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @run_spe_one(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @RVS_Ipoint(i32 noundef 10)
%4 = load i32, ptr %2, align 4
%5 = call i32 @spe_one(i32 noundef %4)
%6 = call i32 @RVS_Ipoint(i32 noundef 11)
ret void
}
declare i32 @RVS_Ipoint(i32 noundef) #1
declare i32 @spe_one(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/tmpgm5j1uoi.c'
source_filename = "/tmp/tmpgm5j1uoi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @init_random(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = mul nsw i32 %3, 45
%5 = call i32 @srand48(i32 noundef %4)
ret void
}
declare i32 @srand48(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/tmpgm5j1uoi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @init_random(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = mul nsw i32 %3, 45
%5 = call i32 @srand48(i32 noundef %4)
ret void
}
declare i32 @srand48(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/tmpmfcqy286.c'
source_filename = "/tmp/tmpmfcqy286.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @FCEUI_VSUniToggleDIP(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 8, %3
%5 = call i32 @FCEU_QSimpleCommand(i32 noundef %4)
ret void
}
declare i32 @FCEU_QSimpleCommand(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/tmpmfcqy286.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @FCEUI_VSUniToggleDIP(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 8, %3
%5 = call i32 @FCEU_QSimpleCommand(i32 noundef %4)
ret void
}
declare i32 @FCEU_QSimpleCommand(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/tmp04z64c2a.c'
source_filename = "/tmp/tmp04z64c2a.c"
target datalayout = "e-m:e-p270: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/tmp04z64c2a.c"
target datalayout = "e-m:e-p270: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/tmpbsiy7u6r.c'
source_filename = "/tmp/tmpbsiy7u6r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [51 x i8] c"Enter t and r separated by space (or newline)\0A\00", align 1
@.str.1 = private unnamed_addr constant [45 x i8] c" (in yrs and km, resp.; e.g. 15000 500):\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%lf\00", align 1
@.str.3 = private unnamed_addr constant [26 x i8] c"... input error; exiting\0A\00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"Results:\0A\00", align 1
@.str.5 = private unnamed_addr constant [43 x i8] c" Test A Test B \00", align 1
@.str.6 = private unnamed_addr constant [30 x i8] c" Test C Test D\0A\00", align 1
@.str.7 = private unnamed_addr constant [51 x i8] c" H = %9.4f (m) H = %9.4f (m) H = %9.4f (m) \00", align 1
@.str.8 = private unnamed_addr constant [15 x i8] c"H = %9.4f (m)\0A\00", align 1
@.str.9 = private unnamed_addr constant [54 x i8] c" M = %8.5f (m/a) M = %8.5f (m/a) M = %8.5f (m/a) \00", align 1
@.str.10 = private unnamed_addr constant [18 x i8] c"M = %8.5f (m/a)\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca 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
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca i32, align 4
store i32 0, ptr %1, align 4
store double 0x417E1853E0000000, ptr %2, align 8
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%16 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %3)
store i32 %16, ptr %13, align 4
%17 = load i32, ptr %13, align 4
%18 = icmp ne i32 %17, 1
br i1 %18, label %19, label %21
19: ; preds = %0
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 1, ptr %1, align 4
br label %65
21: ; preds = %0
%22 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %4)
store i32 %22, ptr %13, align 4
%23 = load i32, ptr %13, align 4
%24 = icmp ne i32 %23, 1
br i1 %24, label %25, label %27
25: ; preds = %21
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 1, ptr %1, align 4
br label %65
27: ; preds = %21
%28 = load double, ptr %4, align 8
%29 = fmul double %28, 1.000000e+03
%30 = call i32 @exactA(double noundef %29, ptr noundef %5, ptr noundef %6)
%31 = load double, ptr %3, align 8
%32 = fmul double %31, 0x417E1853E0000000
%33 = load double, ptr %4, align 8
%34 = fmul double %33, 1.000000e+03
%35 = call i32 @exactB(double noundef %32, double noundef %34, ptr noundef %7, ptr noundef %8)
%36 = load double, ptr %3, align 8
%37 = fmul double %36, 0x417E1853E0000000
%38 = load double, ptr %4, align 8
%39 = fmul double %38, 1.000000e+03
%40 = call i32 @exactC(double noundef %37, double noundef %39, ptr noundef %9, ptr noundef %10)
%41 = load double, ptr %3, align 8
%42 = fmul double %41, 0x417E1853E0000000
%43 = load double, ptr %4, align 8
%44 = fmul double %43, 1.000000e+03
%45 = call i32 @exactD(double noundef %42, double noundef %44, ptr noundef %11, ptr noundef %12)
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%49 = load double, ptr %5, align 8
%50 = load double, ptr %7, align 8
%51 = load double, ptr %9, align 8
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, double noundef %49, double noundef %50, double noundef %51)
%53 = load double, ptr %11, align 8
%54 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, double noundef %53)
%55 = load double, ptr %6, align 8
%56 = fmul double %55, 0x417E1853E0000000
%57 = load double, ptr %8, align 8
%58 = fmul double %57, 0x417E1853E0000000
%59 = load double, ptr %10, align 8
%60 = fmul double %59, 0x417E1853E0000000
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, double noundef %56, double noundef %58, double noundef %60)
%62 = load double, ptr %12, align 8
%63 = fmul double %62, 0x417E1853E0000000
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, double noundef %63)
store i32 0, ptr %1, align 4
br label %65
65: ; preds = %27, %25, %19
%66 = load i32, ptr %1, align 4
ret i32 %66
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @exactA(double noundef, ptr noundef, ptr noundef) #1
declare i32 @exactB(double noundef, double noundef, ptr noundef, ptr noundef) #1
declare i32 @exactC(double noundef, double noundef, ptr noundef, ptr noundef) #1
declare i32 @exactD(double noundef, double 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/tmpbsiy7u6r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [51 x i8] c"Enter t and r separated by space (or newline)\0A\00", align 1
@.str.1 = private unnamed_addr constant [45 x i8] c" (in yrs and km, resp.; e.g. 15000 500):\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%lf\00", align 1
@.str.3 = private unnamed_addr constant [26 x i8] c"... input error; exiting\0A\00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"Results:\0A\00", align 1
@.str.5 = private unnamed_addr constant [43 x i8] c" Test A Test B \00", align 1
@.str.6 = private unnamed_addr constant [30 x i8] c" Test C Test D\0A\00", align 1
@.str.7 = private unnamed_addr constant [51 x i8] c" H = %9.4f (m) H = %9.4f (m) H = %9.4f (m) \00", align 1
@.str.8 = private unnamed_addr constant [15 x i8] c"H = %9.4f (m)\0A\00", align 1
@.str.9 = private unnamed_addr constant [54 x i8] c" M = %8.5f (m/a) M = %8.5f (m/a) M = %8.5f (m/a) \00", align 1
@.str.10 = private unnamed_addr constant [18 x i8] c"M = %8.5f (m/a)\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca 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
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca i32, align 4
store i32 0, ptr %1, align 4
store double 0x417E1853E0000000, ptr %2, align 8
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%16 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %3)
store i32 %16, ptr %13, align 4
%17 = load i32, ptr %13, align 4
%18 = icmp ne i32 %17, 1
br i1 %18, label %19, label %21
19: ; preds = %0
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 1, ptr %1, align 4
br label %65
21: ; preds = %0
%22 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %4)
store i32 %22, ptr %13, align 4
%23 = load i32, ptr %13, align 4
%24 = icmp ne i32 %23, 1
br i1 %24, label %25, label %27
25: ; preds = %21
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 1, ptr %1, align 4
br label %65
27: ; preds = %21
%28 = load double, ptr %4, align 8
%29 = fmul double %28, 1.000000e+03
%30 = call i32 @exactA(double noundef %29, ptr noundef %5, ptr noundef %6)
%31 = load double, ptr %3, align 8
%32 = fmul double %31, 0x417E1853E0000000
%33 = load double, ptr %4, align 8
%34 = fmul double %33, 1.000000e+03
%35 = call i32 @exactB(double noundef %32, double noundef %34, ptr noundef %7, ptr noundef %8)
%36 = load double, ptr %3, align 8
%37 = fmul double %36, 0x417E1853E0000000
%38 = load double, ptr %4, align 8
%39 = fmul double %38, 1.000000e+03
%40 = call i32 @exactC(double noundef %37, double noundef %39, ptr noundef %9, ptr noundef %10)
%41 = load double, ptr %3, align 8
%42 = fmul double %41, 0x417E1853E0000000
%43 = load double, ptr %4, align 8
%44 = fmul double %43, 1.000000e+03
%45 = call i32 @exactD(double noundef %42, double noundef %44, ptr noundef %11, ptr noundef %12)
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%49 = load double, ptr %5, align 8
%50 = load double, ptr %7, align 8
%51 = load double, ptr %9, align 8
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, double noundef %49, double noundef %50, double noundef %51)
%53 = load double, ptr %11, align 8
%54 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, double noundef %53)
%55 = load double, ptr %6, align 8
%56 = fmul double %55, 0x417E1853E0000000
%57 = load double, ptr %8, align 8
%58 = fmul double %57, 0x417E1853E0000000
%59 = load double, ptr %10, align 8
%60 = fmul double %59, 0x417E1853E0000000
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, double noundef %56, double noundef %58, double noundef %60)
%62 = load double, ptr %12, align 8
%63 = fmul double %62, 0x417E1853E0000000
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, double noundef %63)
store i32 0, ptr %1, align 4
br label %65
65: ; preds = %27, %25, %19
%66 = load i32, ptr %1, align 4
ret i32 %66
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @exactA(double noundef, ptr noundef, ptr noundef) #1
declare i32 @exactB(double noundef, double noundef, ptr noundef, ptr noundef) #1
declare i32 @exactC(double noundef, double noundef, ptr noundef, ptr noundef) #1
declare i32 @exactD(double noundef, double 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/tmpt9_80xsm.c'
source_filename = "/tmp/tmpt9_80xsm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_3__ = type { i32, i32 }
@CA_GET_MSG = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ci_getmsg(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca %struct.TYPE_3__, align 4
%9 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
%10 = load i32, ptr %5, align 4
%11 = load i32, ptr @CA_GET_MSG, align 4
%12 = call i32 @ioctl(i32 noundef %10, i32 noundef %11, ptr noundef %8)
store i32 %12, ptr %9, align 4
%13 = load i32, ptr %9, align 4
%14 = icmp slt i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %3
%16 = load i32, ptr %9, align 4
store i32 %16, ptr %4, align 4
br label %29
17: ; preds = %3
%18 = load ptr, ptr %7, align 8
%19 = getelementptr inbounds %struct.TYPE_3__, ptr %8, i32 0, i32 1
%20 = getelementptr inbounds %struct.TYPE_3__, ptr %8, i32 0, i32 0
%21 = load i32, ptr %20, align 4
%22 = call i32 @memcpy(ptr noundef %18, ptr noundef %19, i32 noundef %21)
%23 = load ptr, ptr %7, align 8
%24 = getelementptr inbounds %struct.TYPE_3__, ptr %8, i32 0, i32 0
%25 = load i32, ptr %24, align 4
%26 = call i32 @dump(ptr noundef %23, i32 noundef %25)
%27 = getelementptr inbounds %struct.TYPE_3__, ptr %8, i32 0, i32 0
%28 = load i32, ptr %27, align 4
store i32 %28, ptr %4, align 4
br label %29
29: ; preds = %17, %15
%30 = load i32, ptr %4, align 4
ret i32 %30
}
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @dump(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/tmpt9_80xsm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_3__ = type { i32, i32 }
@CA_GET_MSG = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ci_getmsg(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca %struct.TYPE_3__, align 4
%9 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
%10 = load i32, ptr %5, align 4
%11 = load i32, ptr @CA_GET_MSG, align 4
%12 = call i32 @ioctl(i32 noundef %10, i32 noundef %11, ptr noundef %8)
store i32 %12, ptr %9, align 4
%13 = load i32, ptr %9, align 4
%14 = icmp slt i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %3
%16 = load i32, ptr %9, align 4
store i32 %16, ptr %4, align 4
br label %29
17: ; preds = %3
%18 = load ptr, ptr %7, align 8
%19 = getelementptr inbounds %struct.TYPE_3__, ptr %8, i32 0, i32 1
%20 = getelementptr inbounds %struct.TYPE_3__, ptr %8, i32 0, i32 0
%21 = load i32, ptr %20, align 4
%22 = call i32 @memcpy(ptr noundef %18, ptr noundef %19, i32 noundef %21)
%23 = load ptr, ptr %7, align 8
%24 = getelementptr inbounds %struct.TYPE_3__, ptr %8, i32 0, i32 0
%25 = load i32, ptr %24, align 4
%26 = call i32 @dump(ptr noundef %23, i32 noundef %25)
%27 = getelementptr inbounds %struct.TYPE_3__, ptr %8, i32 0, i32 0
%28 = load i32, ptr %27, align 4
store i32 %28, ptr %4, align 4
br label %29
29: ; preds = %17, %15
%30 = load i32, ptr %4, align 4
ret i32 %30
}
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @dump(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/tmp3ljgg3yu.c'
source_filename = "/tmp/tmp3ljgg3yu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [14 x i8] c"Number is 10\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"Number is 9\0A\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"Number is 8\0A\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"Unknown\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
switch i32 %4, label %11 [
i32 10, label %5
i32 9, label %7
i32 8, label %9
]
5: ; preds = %0
%6 = call i32 @printf(ptr noundef @.str.1)
br label %13
7: ; preds = %0
%8 = call i32 @printf(ptr noundef @.str.2)
br label %13
9: ; preds = %0
%10 = call i32 @printf(ptr noundef @.str.3)
br label %13
11: ; preds = %0
%12 = call i32 @printf(ptr noundef @.str.4)
br label %13
13: ; preds = %11, %9, %7, %5
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/tmp3ljgg3yu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [14 x i8] c"Number is 10\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"Number is 9\0A\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"Number is 8\0A\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"Unknown\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
switch i32 %4, label %11 [
i32 10, label %5
i32 9, label %7
i32 8, label %9
]
5: ; preds = %0
%6 = call i32 @printf(ptr noundef @.str.1)
br label %13
7: ; preds = %0
%8 = call i32 @printf(ptr noundef @.str.2)
br label %13
9: ; preds = %0
%10 = call i32 @printf(ptr noundef @.str.3)
br label %13
11: ; preds = %0
%12 = call i32 @printf(ptr noundef @.str.4)
br label %13
13: ; preds = %11, %9, %7, %5
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/tmplggogvf7.c'
source_filename = "/tmp/tmplggogvf7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__VERIFIER_nondet_unsignedint() #0 {
%1 = call i32 @time(ptr noundef null)
%2 = call i32 @srand(i32 noundef %1)
%3 = call i64 (...) @rand()
%4 = trunc i64 %3 to i32
ret i32 %4
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i64 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplggogvf7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__VERIFIER_nondet_unsignedint() #0 {
%1 = call i32 @time(ptr noundef null)
%2 = call i32 @srand(i32 noundef %1)
%3 = call i64 (...) @rand()
%4 = trunc i64 %3 to i32
ret i32 %4
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i64 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplgkc0jrj.c'
source_filename = "/tmp/tmplgkc0jrj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"Rebooting the system...\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"sudo shutdown -r 00\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @reboot_go() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @system(ptr noundef @.str.1)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplgkc0jrj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"Rebooting the system...\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"sudo shutdown -r 00\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @reboot_go() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @system(ptr noundef @.str.1)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp96wa3ho_.c'
source_filename = "/tmp/tmp96wa3ho_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getop(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
br label %6
6: ; preds = %18, %1
%7 = call i32 (...) @getch()
store i32 %7, ptr %5, align 4
%8 = trunc i32 %7 to i8
%9 = load ptr, ptr %3, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 0
store i8 %8, ptr %10, align 1
%11 = sext i8 %8 to i32
%12 = icmp eq i32 %11, 32
br i1 %12, label %16, label %13
13: ; preds = %6
%14 = load i32, ptr %5, align 4
%15 = icmp eq i32 %14, 9
br label %16
16: ; preds = %13, %6
%17 = phi i1 [ true, %6 ], [ %15, %13 ]
br i1 %17, label %18, label %19
18: ; preds = %16
br label %6, !llvm.loop !6
19: ; preds = %16
%20 = load ptr, ptr %3, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 1
store i8 0, ptr %21, align 1
%22 = load i32, ptr %5, align 4
%23 = trunc i32 %22 to i8
%24 = call i64 @isdigit(i8 noundef signext %23)
%25 = icmp ne i64 %24, 0
br i1 %25, label %31, label %26
26: ; preds = %19
%27 = load i32, ptr %5, align 4
%28 = icmp ne i32 %27, 46
br i1 %28, label %29, label %31
29: ; preds = %26
%30 = load i32, ptr %5, align 4
store i32 %30, ptr %2, align 4
br label %77
31: ; preds = %26, %19
%32 = load i32, ptr %5, align 4
%33 = trunc i32 %32 to i8
%34 = call i64 @isdigit(i8 noundef signext %33)
%35 = icmp ne i64 %34, 0
br i1 %35, label %36, label %49
36: ; preds = %31
br label %37
37: ; preds = %47, %36
%38 = call i32 (...) @getch()
store i32 %38, ptr %5, align 4
%39 = trunc i32 %38 to i8
%40 = load ptr, ptr %3, align 8
%41 = load i32, ptr %4, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %4, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %40, i64 %43
store i8 %39, ptr %44, align 1
%45 = call i64 @isdigit(i8 noundef signext %39)
%46 = icmp ne i64 %45, 0
br i1 %46, label %47, label %48
47: ; preds = %37
br label %37, !llvm.loop !8
48: ; preds = %37
br label %49
49: ; preds = %48, %31
%50 = load i32, ptr %5, align 4
%51 = icmp eq i32 %50, 46
br i1 %51, label %52, label %65
52: ; preds = %49
br label %53
53: ; preds = %63, %52
%54 = call i32 (...) @getch()
store i32 %54, ptr %5, align 4
%55 = trunc i32 %54 to i8
%56 = load ptr, ptr %3, align 8
%57 = load i32, ptr %4, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %4, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i8, ptr %56, i64 %59
store i8 %55, ptr %60, align 1
%61 = call i64 @isdigit(i8 noundef signext %55)
%62 = icmp ne i64 %61, 0
br i1 %62, label %63, label %64
63: ; preds = %53
br label %53, !llvm.loop !9
64: ; preds = %53
br label %65
65: ; preds = %64, %49
%66 = load ptr, ptr %3, align 8
%67 = load i32, ptr %4, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i8, ptr %66, i64 %68
store i8 0, ptr %69, align 1
%70 = load i32, ptr %5, align 4
%71 = load i32, ptr @EOF, align 4
%72 = icmp ne i32 %70, %71
br i1 %72, label %73, label %76
73: ; preds = %65
%74 = load i32, ptr %5, align 4
%75 = call i32 @ungetch(i32 noundef %74)
br label %76
76: ; preds = %73, %65
store i32 48, ptr %2, align 4
br label %77
77: ; preds = %76, %29
%78 = load i32, ptr %2, align 4
ret i32 %78
}
declare i32 @getch(...) #1
declare i64 @isdigit(i8 noundef signext) #1
declare i32 @ungetch(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/tmp96wa3ho_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getop(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
br label %6
6: ; preds = %16, %1
%7 = call i32 (...) @getch()
store i32 %7, ptr %5, align 4
%8 = trunc i32 %7 to i8
%9 = load ptr, ptr %3, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 0
store i8 %8, ptr %10, align 1
%11 = sext i8 %8 to i32
%12 = icmp eq i32 %11, 32
br i1 %12, label %16, label %13
13: ; preds = %6
%14 = load i32, ptr %5, align 4
%15 = icmp eq i32 %14, 9
br label %16
16: ; preds = %13, %6
%17 = phi i1 [ true, %6 ], [ %15, %13 ]
br i1 %17, label %6, label %18, !llvm.loop !6
18: ; preds = %16
%19 = load ptr, ptr %3, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 1
store i8 0, ptr %20, align 1
%21 = load i32, ptr %5, align 4
%22 = trunc i32 %21 to i8
%23 = call i64 @isdigit(i8 noundef signext %22)
%24 = icmp ne i64 %23, 0
br i1 %24, label %30, label %25
25: ; preds = %18
%26 = load i32, ptr %5, align 4
%27 = icmp ne i32 %26, 46
br i1 %27, label %28, label %30
28: ; preds = %25
%29 = load i32, ptr %5, align 4
store i32 %29, ptr %2, align 4
br label %74
30: ; preds = %25, %18
%31 = load i32, ptr %5, align 4
%32 = trunc i32 %31 to i8
%33 = call i64 @isdigit(i8 noundef signext %32)
%34 = icmp ne i64 %33, 0
br i1 %34, label %35, label %47
35: ; preds = %30
br label %36
36: ; preds = %36, %35
%37 = call i32 (...) @getch()
store i32 %37, ptr %5, align 4
%38 = trunc i32 %37 to i8
%39 = load ptr, ptr %3, align 8
%40 = load i32, ptr %4, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %4, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %39, i64 %42
store i8 %38, ptr %43, align 1
%44 = call i64 @isdigit(i8 noundef signext %38)
%45 = icmp ne i64 %44, 0
br i1 %45, label %36, label %46, !llvm.loop !8
46: ; preds = %36
br label %47
47: ; preds = %46, %30
%48 = load i32, ptr %5, align 4
%49 = icmp eq i32 %48, 46
br i1 %49, label %50, label %62
50: ; preds = %47
br label %51
51: ; preds = %51, %50
%52 = call i32 (...) @getch()
store i32 %52, ptr %5, align 4
%53 = trunc i32 %52 to i8
%54 = load ptr, ptr %3, align 8
%55 = load i32, ptr %4, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %4, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i8, ptr %54, i64 %57
store i8 %53, ptr %58, align 1
%59 = call i64 @isdigit(i8 noundef signext %53)
%60 = icmp ne i64 %59, 0
br i1 %60, label %51, label %61, !llvm.loop !9
61: ; preds = %51
br label %62
62: ; preds = %61, %47
%63 = load ptr, ptr %3, align 8
%64 = load i32, ptr %4, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i8, ptr %63, i64 %65
store i8 0, ptr %66, align 1
%67 = load i32, ptr %5, align 4
%68 = load i32, ptr @EOF, align 4
%69 = icmp ne i32 %67, %68
br i1 %69, label %70, label %73
70: ; preds = %62
%71 = load i32, ptr %5, align 4
%72 = call i32 @ungetch(i32 noundef %71)
br label %73
73: ; preds = %70, %62
store i32 48, ptr %2, align 4
br label %74
74: ; preds = %73, %28
%75 = load i32, ptr %2, align 4
ret i32 %75
}
declare i32 @getch(...) #1
declare i64 @isdigit(i8 noundef signext) #1
declare i32 @ungetch(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/tmp2gja6smy.c'
source_filename = "/tmp/tmp2gja6smy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@pcap_strerror.ebuf = internal global [20 x i8] zeroinitializer, align 16
@sys_nerr = external global i32, align 4
@sys_errlist = external constant [0 x ptr], align 8
@.str = private unnamed_addr constant [18 x i8] c"Unknown error: %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @pcap_strerror(i32 noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = load i32, ptr @sys_nerr, align 4
%6 = icmp ult i32 %4, %5
br i1 %6, label %7, label %12
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [0 x ptr], ptr @sys_errlist, i64 0, i64 %9
%11 = load ptr, ptr %10, align 8
store ptr %11, ptr %2, align 8
br label %15
12: ; preds = %1
%13 = load i32, ptr %3, align 4
%14 = call i32 @pcap_snprintf(ptr noundef @pcap_strerror.ebuf, i32 noundef 20, ptr noundef @.str, i32 noundef %13)
store ptr @pcap_strerror.ebuf, ptr %2, align 8
br label %15
15: ; preds = %12, %7
%16 = load ptr, ptr %2, align 8
ret ptr %16
}
declare i32 @pcap_snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2gja6smy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@pcap_strerror.ebuf = internal global [20 x i8] zeroinitializer, align 16
@sys_nerr = external global i32, align 4
@sys_errlist = external constant [0 x ptr], align 8
@.str = private unnamed_addr constant [18 x i8] c"Unknown error: %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @pcap_strerror(i32 noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = load i32, ptr @sys_nerr, align 4
%6 = icmp ult i32 %4, %5
br i1 %6, label %7, label %12
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [0 x ptr], ptr @sys_errlist, i64 0, i64 %9
%11 = load ptr, ptr %10, align 8
store ptr %11, ptr %2, align 8
br label %15
12: ; preds = %1
%13 = load i32, ptr %3, align 4
%14 = call i32 @pcap_snprintf(ptr noundef @pcap_strerror.ebuf, i32 noundef 20, ptr noundef @.str, i32 noundef %13)
store ptr @pcap_strerror.ebuf, ptr %2, align 8
br label %15
15: ; preds = %12, %7
%16 = load ptr, ptr %2, align 8
ret ptr %16
}
declare i32 @pcap_snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzmsitdxs.c'
source_filename = "/tmp/tmpzmsitdxs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @troca_extensao(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store ptr null, ptr %7, align 8
%9 = load ptr, ptr %4, align 8
%10 = load ptr, ptr %9, align 8
%11 = call i32 @strlen(ptr noundef %10)
%12 = add nsw i32 %11, 2
%13 = sext i32 %12 to i64
%14 = mul i64 %13, 1
%15 = trunc i64 %14 to i32
%16 = call i64 @malloc(i32 noundef %15)
%17 = inttoptr i64 %16 to ptr
store ptr %17, ptr %7, align 8
%18 = load ptr, ptr %4, align 8
%19 = load ptr, ptr %18, align 8
%20 = call i32 @strlen(ptr noundef %19)
store i32 %20, ptr %8, align 4
%21 = load ptr, ptr %7, align 8
%22 = load ptr, ptr %4, align 8
%23 = load ptr, ptr %22, align 8
%24 = load i32, ptr %8, align 4
%25 = call i32 @strncpy(ptr noundef %21, ptr noundef %23, i32 noundef %24)
%26 = load ptr, ptr %7, align 8
%27 = load i32, ptr %8, align 4
%28 = sub nsw i32 %27, 2
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %26, i64 %29
store i8 0, ptr %30, align 1
%31 = load ptr, ptr %7, align 8
%32 = load ptr, ptr %6, align 8
%33 = call i32 @strcat(ptr noundef %31, ptr noundef %32)
%34 = load ptr, ptr %7, align 8
%35 = load ptr, ptr %5, align 8
store ptr %34, ptr %35, align 8
ret void
}
declare i64 @malloc(i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzmsitdxs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @troca_extensao(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store ptr null, ptr %7, align 8
%9 = load ptr, ptr %4, align 8
%10 = load ptr, ptr %9, align 8
%11 = call i32 @strlen(ptr noundef %10)
%12 = add nsw i32 %11, 2
%13 = sext i32 %12 to i64
%14 = mul i64 %13, 1
%15 = trunc i64 %14 to i32
%16 = call i64 @malloc(i32 noundef %15)
%17 = inttoptr i64 %16 to ptr
store ptr %17, ptr %7, align 8
%18 = load ptr, ptr %4, align 8
%19 = load ptr, ptr %18, align 8
%20 = call i32 @strlen(ptr noundef %19)
store i32 %20, ptr %8, align 4
%21 = load ptr, ptr %7, align 8
%22 = load ptr, ptr %4, align 8
%23 = load ptr, ptr %22, align 8
%24 = load i32, ptr %8, align 4
%25 = call i32 @strncpy(ptr noundef %21, ptr noundef %23, i32 noundef %24)
%26 = load ptr, ptr %7, align 8
%27 = load i32, ptr %8, align 4
%28 = sub nsw i32 %27, 2
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %26, i64 %29
store i8 0, ptr %30, align 1
%31 = load ptr, ptr %7, align 8
%32 = load ptr, ptr %6, align 8
%33 = call i32 @strcat(ptr noundef %31, ptr noundef %32)
%34 = load ptr, ptr %7, align 8
%35 = load ptr, ptr %5, align 8
store ptr %34, ptr %35, align 8
ret void
}
declare i64 @malloc(i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpq89292ck.c'
source_filename = "/tmp/tmpq89292ck.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq89292ck.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4txt4oft.c'
source_filename = "/tmp/tmp4txt4oft.c"
target datalayout = "e-m:e-p270: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/tmp4txt4oft.c"
target datalayout = "e-m:e-p270: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/tmpphi8wi2d.c'
source_filename = "/tmp/tmpphi8wi2d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @string_reverse(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = call i64 @string_len(ptr noundef %7)
store i64 %8, ptr %4, align 8
%9 = load i64, ptr %4, align 8
%10 = sub i64 %9, 1
store i64 %10, ptr %6, align 8
store i64 0, ptr %5, align 8
br label %11
11: ; preds = %39, %1
%12 = load i64, ptr %5, align 8
%13 = load i64, ptr %4, align 8
%14 = icmp ult i64 %12, %13
br i1 %14, label %15, label %42
15: ; preds = %11
%16 = load ptr, ptr %2, align 8
%17 = load i64, ptr %6, align 8
%18 = getelementptr inbounds i8, ptr %16, i64 %17
%19 = load i8, ptr %18, align 1
store i8 %19, ptr %3, align 1
%20 = load ptr, ptr %2, align 8
%21 = load i64, ptr %5, align 8
%22 = getelementptr inbounds i8, ptr %20, i64 %21
%23 = load i8, ptr %22, align 1
%24 = load ptr, ptr %2, align 8
%25 = load i64, ptr %6, align 8
%26 = getelementptr inbounds i8, ptr %24, i64 %25
store i8 %23, ptr %26, align 1
%27 = load i8, ptr %3, align 1
%28 = load ptr, ptr %2, align 8
%29 = load i64, ptr %5, align 8
%30 = getelementptr inbounds i8, ptr %28, i64 %29
store i8 %27, ptr %30, align 1
%31 = load i64, ptr %6, align 8
%32 = add i64 %31, -1
store i64 %32, ptr %6, align 8
%33 = load i64, ptr %6, align 8
%34 = load i64, ptr %4, align 8
%35 = udiv i64 %34, 2
%36 = icmp eq i64 %33, %35
br i1 %36, label %37, label %38
37: ; preds = %15
br label %42
38: ; preds = %15
br label %39
39: ; preds = %38
%40 = load i64, ptr %5, align 8
%41 = add i64 %40, 1
store i64 %41, ptr %5, align 8
br label %11, !llvm.loop !6
42: ; preds = %37, %11
ret void
}
declare i64 @string_len(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpphi8wi2d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @string_reverse(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = call i64 @string_len(ptr noundef %7)
store i64 %8, ptr %4, align 8
%9 = load i64, ptr %4, align 8
%10 = sub i64 %9, 1
store i64 %10, ptr %6, align 8
store i64 0, ptr %5, align 8
%11 = load i64, ptr %5, align 8
%12 = load i64, ptr %4, align 8
%13 = icmp ult i64 %11, %12
br i1 %13, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %1
br label %14
14: ; preds = %.lr.ph, %38
%15 = load ptr, ptr %2, align 8
%16 = load i64, ptr %6, align 8
%17 = getelementptr inbounds i8, ptr %15, i64 %16
%18 = load i8, ptr %17, align 1
store i8 %18, ptr %3, align 1
%19 = load ptr, ptr %2, align 8
%20 = load i64, ptr %5, align 8
%21 = getelementptr inbounds i8, ptr %19, i64 %20
%22 = load i8, ptr %21, align 1
%23 = load ptr, ptr %2, align 8
%24 = load i64, ptr %6, align 8
%25 = getelementptr inbounds i8, ptr %23, i64 %24
store i8 %22, ptr %25, align 1
%26 = load i8, ptr %3, align 1
%27 = load ptr, ptr %2, align 8
%28 = load i64, ptr %5, align 8
%29 = getelementptr inbounds i8, ptr %27, i64 %28
store i8 %26, ptr %29, align 1
%30 = load i64, ptr %6, align 8
%31 = add i64 %30, -1
store i64 %31, ptr %6, align 8
%32 = load i64, ptr %6, align 8
%33 = load i64, ptr %4, align 8
%34 = udiv i64 %33, 2
%35 = icmp eq i64 %32, %34
br i1 %35, label %36, label %37
36: ; preds = %14
br label %44
37: ; preds = %14
br label %38
38: ; preds = %37
%39 = load i64, ptr %5, align 8
%40 = add i64 %39, 1
store i64 %40, ptr %5, align 8
%41 = load i64, ptr %5, align 8
%42 = load i64, ptr %4, align 8
%43 = icmp ult i64 %41, %42
br i1 %43, label %14, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %38
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %1
br label %44
44: ; preds = %.loopexit, %36
ret void
}
declare i64 @string_len(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp7gjlgfii.c'
source_filename = "/tmp/tmp7gjlgfii.c"
target datalayout = "e-m:e-p270: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/tmp7gjlgfii.c"
target datalayout = "e-m:e-p270: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/tmpmgt9ocqb.c'
source_filename = "/tmp/tmpmgt9ocqb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 @get_section_values(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call ptr @get_section_values_delimiter(ptr noundef %5, ptr noundef %6, ptr noundef @.str)
ret ptr %7
}
declare ptr @get_section_values_delimiter(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmgt9ocqb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 @get_section_values(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call ptr @get_section_values_delimiter(ptr noundef %5, ptr noundef %6, ptr noundef @.str)
ret ptr %7
}
declare ptr @get_section_values_delimiter(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpq4swcow3.c'
source_filename = "/tmp/tmpq4swcow3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"Failed to create a thread: %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @checked_thread_create(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%10 = load ptr, ptr %5, align 8
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %7, align 8
%13 = load ptr, ptr %8, align 8
%14 = call i32 @pthread_create(ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13)
store i32 %14, ptr %9, align 4
%15 = load i32, ptr %9, align 4
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %21
17: ; preds = %4
%18 = load i32, ptr %9, align 4
%19 = call i32 @strerror(i32 noundef %18)
%20 = call i32 @errx(i32 noundef 1, ptr noundef @.str, i32 noundef %19)
br label %21
21: ; preds = %17, %4
ret void
}
declare i32 @pthread_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @errx(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strerror(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/tmpq4swcow3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"Failed to create a thread: %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @checked_thread_create(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%10 = load ptr, ptr %5, align 8
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %7, align 8
%13 = load ptr, ptr %8, align 8
%14 = call i32 @pthread_create(ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13)
store i32 %14, ptr %9, align 4
%15 = load i32, ptr %9, align 4
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %21
17: ; preds = %4
%18 = load i32, ptr %9, align 4
%19 = call i32 @strerror(i32 noundef %18)
%20 = call i32 @errx(i32 noundef 1, ptr noundef @.str, i32 noundef %19)
br label %21
21: ; preds = %17, %4
ret void
}
declare i32 @pthread_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @errx(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strerror(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/tmpil6q7kn1.c'
source_filename = "/tmp/tmpil6q7kn1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"/dev/mem\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [38 x i8] c"Can't open RAM. Use root privileges!\0A\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [16 x i8] c"Can'r seek RAM\0A\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"Can't read RAM\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i16 @peek2(i16 noundef signext %0, i16 noundef signext %1) #0 {
%3 = alloca i16, align 2
%4 = alloca i16, align 2
%5 = alloca i16, align 2
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i16 %0, ptr %4, align 2
store i16 %1, ptr %5, align 2
%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 eq i32 %10, -1
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 @printf(ptr noundef @.str.1)
store i16 0, ptr %3, align 2
br label %33
14: ; preds = %2
%15 = load i32, ptr %6, align 4
%16 = load i16, ptr %5, align 2
%17 = load i32, ptr @SEEK_SET, align 4
%18 = call i32 @lseek(i32 noundef %15, i16 noundef signext %16, i32 noundef %17)
%19 = icmp eq i32 %18, -1
br i1 %19, label %20, label %22
20: ; preds = %14
%21 = call i32 @printf(ptr noundef @.str.2)
store i16 0, ptr %3, align 2
br label %33
22: ; preds = %14
store i32 0, ptr %7, align 4
%23 = load i32, ptr %6, align 4
%24 = call i32 @read(i32 noundef %23, ptr noundef %7, i32 noundef 2)
%25 = icmp ne i32 %24, 2
br i1 %25, label %26, label %28
26: ; preds = %22
%27 = call i32 @printf(ptr noundef @.str.3)
store i16 0, ptr %3, align 2
br label %33
28: ; preds = %22
%29 = load i32, ptr %6, align 4
%30 = call i32 @close(i32 noundef %29)
%31 = load i32, ptr %7, align 4
%32 = trunc i32 %31 to i16
store i16 %32, ptr %3, align 2
br label %33
33: ; preds = %28, %26, %20, %12
%34 = load i16, ptr %3, align 2
ret i16 %34
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @lseek(i32 noundef, i16 noundef signext, 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/tmpil6q7kn1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"/dev/mem\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [38 x i8] c"Can't open RAM. Use root privileges!\0A\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [16 x i8] c"Can'r seek RAM\0A\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"Can't read RAM\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i16 @peek2(i16 noundef signext %0, i16 noundef signext %1) #0 {
%3 = alloca i16, align 2
%4 = alloca i16, align 2
%5 = alloca i16, align 2
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i16 %0, ptr %4, align 2
store i16 %1, ptr %5, align 2
%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 eq i32 %10, -1
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 @printf(ptr noundef @.str.1)
store i16 0, ptr %3, align 2
br label %33
14: ; preds = %2
%15 = load i32, ptr %6, align 4
%16 = load i16, ptr %5, align 2
%17 = load i32, ptr @SEEK_SET, align 4
%18 = call i32 @lseek(i32 noundef %15, i16 noundef signext %16, i32 noundef %17)
%19 = icmp eq i32 %18, -1
br i1 %19, label %20, label %22
20: ; preds = %14
%21 = call i32 @printf(ptr noundef @.str.2)
store i16 0, ptr %3, align 2
br label %33
22: ; preds = %14
store i32 0, ptr %7, align 4
%23 = load i32, ptr %6, align 4
%24 = call i32 @read(i32 noundef %23, ptr noundef %7, i32 noundef 2)
%25 = icmp ne i32 %24, 2
br i1 %25, label %26, label %28
26: ; preds = %22
%27 = call i32 @printf(ptr noundef @.str.3)
store i16 0, ptr %3, align 2
br label %33
28: ; preds = %22
%29 = load i32, ptr %6, align 4
%30 = call i32 @close(i32 noundef %29)
%31 = load i32, ptr %7, align 4
%32 = trunc i32 %31 to i16
store i16 %32, ptr %3, align 2
br label %33
33: ; preds = %28, %26, %20, %12
%34 = load i16, ptr %3, align 2
ret i16 %34
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @lseek(i32 noundef, i16 noundef signext, 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/tmptzjivkhe.c'
source_filename = "/tmp/tmptzjivkhe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"Enter grade, -1 to end: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"Class average is %.2f\0A\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"No grades were entered\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca float, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %2, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
br label %8
8: ; preds = %11, %0
%9 = load i32, ptr %3, align 4
%10 = icmp ne i32 %9, -1
br i1 %10, label %11, label %19
11: ; preds = %8
%12 = load i32, ptr %4, align 4
%13 = load i32, ptr %3, align 4
%14 = add nsw i32 %12, %13
store i32 %14, ptr %4, align 4
%15 = load i32, ptr %2, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %2, align 4
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%18 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
br label %8, !llvm.loop !6
19: ; preds = %8
%20 = load i32, ptr %2, align 4
%21 = icmp ne i32 %20, 0
br i1 %21, label %22, label %31
22: ; preds = %19
%23 = load i32, ptr %4, align 4
%24 = sitofp i32 %23 to float
%25 = load i32, ptr %2, align 4
%26 = sitofp i32 %25 to float
%27 = fdiv float %24, %26
store float %27, ptr %5, align 4
%28 = load float, ptr %5, align 4
%29 = fpext float %28 to double
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %29)
br label %33
31: ; preds = %19
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %33
33: ; preds = %31, %22
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptzjivkhe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"Enter grade, -1 to end: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"Class average is %.2f\0A\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"No grades were entered\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca float, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %2, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%8 = load i32, ptr %3, align 4
%9 = icmp ne i32 %8, -1
br i1 %9, label %.lr.ph, label %20
.lr.ph: ; preds = %0
br label %10
10: ; preds = %.lr.ph, %10
%11 = load i32, ptr %4, align 4
%12 = load i32, ptr %3, align 4
%13 = add nsw i32 %11, %12
store i32 %13, ptr %4, align 4
%14 = load i32, ptr %2, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %2, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%17 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%18 = load i32, ptr %3, align 4
%19 = icmp ne i32 %18, -1
br i1 %19, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %10
br label %20
20: ; preds = %._crit_edge, %0
%21 = load i32, ptr %2, align 4
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %32
23: ; preds = %20
%24 = load i32, ptr %4, align 4
%25 = sitofp i32 %24 to float
%26 = load i32, ptr %2, align 4
%27 = sitofp i32 %26 to float
%28 = fdiv float %25, %27
store float %28, ptr %5, align 4
%29 = load float, ptr %5, align 4
%30 = fpext float %29 to double
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %30)
br label %34
32: ; preds = %20
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %34
34: ; preds = %32, %23
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp2i0ee7yi.c'
source_filename = "/tmp/tmp2i0ee7yi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@None = 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/tmp2i0ee7yi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@None = 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/tmp32z2genl.c'
source_filename = "/tmp/tmp32z2genl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c" \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @stringToChars(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
store ptr @.str, ptr %9, align 8
store ptr null, ptr %10, align 8
%13 = load ptr, ptr %5, align 8
%14 = load ptr, ptr %9, align 8
%15 = call ptr @strtok_r(ptr noundef %13, ptr noundef %14, ptr noundef %11)
store ptr %15, ptr %10, align 8
br label %16
16: ; preds = %29, %3
%17 = load ptr, ptr %10, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %19, label %32
19: ; preds = %16
%20 = load ptr, ptr %10, align 8
%21 = call i64 @strtol(ptr noundef %20, ptr noundef %12, i32 noundef 10)
%22 = trunc i64 %21 to i8
%23 = load ptr, ptr %6, align 8
%24 = load i32, ptr %8, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %23, i64 %25
store i8 %22, ptr %26, align 1
%27 = load i32, ptr %8, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %8, align 4
br label %29
29: ; preds = %19
%30 = load ptr, ptr %9, align 8
%31 = call ptr @strtok_r(ptr noundef null, ptr noundef %30, ptr noundef %11)
store ptr %31, ptr %10, align 8
br label %16, !llvm.loop !6
32: ; preds = %16
%33 = load i32, ptr %8, align 4
%34 = load i32, ptr %7, align 4
%35 = sub nsw i32 %34, 1
%36 = icmp slt i32 %33, %35
br i1 %36, label %37, label %38
37: ; preds = %32
store i32 0, ptr %4, align 4
br label %39
38: ; preds = %32
store i32 1, ptr %4, align 4
br label %39
39: ; preds = %38, %37
%40 = load i32, ptr %4, align 4
ret i32 %40
}
declare ptr @strtok_r(ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @strtol(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/tmp32z2genl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c" \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @stringToChars(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
store ptr @.str, ptr %9, align 8
store ptr null, ptr %10, align 8
%13 = load ptr, ptr %5, align 8
%14 = load ptr, ptr %9, align 8
%15 = call ptr @strtok_r(ptr noundef %13, ptr noundef %14, ptr noundef %11)
store ptr %15, ptr %10, align 8
%16 = load ptr, ptr %10, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %.lr.ph, label %33
.lr.ph: ; preds = %3
br label %18
18: ; preds = %.lr.ph, %28
%19 = load ptr, ptr %10, align 8
%20 = call i64 @strtol(ptr noundef %19, ptr noundef %12, i32 noundef 10)
%21 = trunc i64 %20 to i8
%22 = load ptr, ptr %6, align 8
%23 = load i32, ptr %8, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8, ptr %22, i64 %24
store i8 %21, ptr %25, align 1
%26 = load i32, ptr %8, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %8, align 4
br label %28
28: ; preds = %18
%29 = load ptr, ptr %9, align 8
%30 = call ptr @strtok_r(ptr noundef null, ptr noundef %29, ptr noundef %11)
store ptr %30, ptr %10, align 8
%31 = load ptr, ptr %10, align 8
%32 = icmp ne ptr %31, null
br i1 %32, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %33
33: ; preds = %._crit_edge, %3
%34 = load i32, ptr %8, align 4
%35 = load i32, ptr %7, align 4
%36 = sub nsw i32 %35, 1
%37 = icmp slt i32 %34, %36
br i1 %37, label %38, label %39
38: ; preds = %33
store i32 0, ptr %4, align 4
br label %40
39: ; preds = %33
store i32 1, ptr %4, align 4
br label %40
40: ; preds = %39, %38
%41 = load i32, ptr %4, align 4
ret i32 %41
}
declare ptr @strtok_r(ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @strtol(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/tmpbco83k0h.c'
source_filename = "/tmp/tmpbco83k0h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Unknown image type\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @renam(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i32 @getFileType(ptr noundef %8)
store i32 %9, ptr %7, align 4
%10 = load i32, ptr %7, align 4
switch i32 %10, label %26 [
i32 3, label %11
i32 1, label %16
i32 2, label %21
]
11: ; preds = %3
%12 = load ptr, ptr %4, align 8
%13 = load ptr, ptr %5, align 8
%14 = load ptr, ptr %6, align 8
%15 = call i32 @tapRename(ptr noundef %12, ptr noundef %13, ptr noundef %14)
br label %28
16: ; preds = %3
%17 = load ptr, ptr %4, align 8
%18 = load ptr, ptr %5, align 8
%19 = load ptr, ptr %6, align 8
%20 = call i32 @sclRename(ptr noundef %17, ptr noundef %18, ptr noundef %19)
br label %28
21: ; preds = %3
%22 = load ptr, ptr %4, align 8
%23 = load ptr, ptr %5, align 8
%24 = load ptr, ptr %6, align 8
%25 = call i32 @trdRename(ptr noundef %22, ptr noundef %23, ptr noundef %24)
br label %28
26: ; preds = %3
%27 = call i32 @printf(ptr noundef @.str)
br label %28
28: ; preds = %26, %21, %16, %11
ret void
}
declare i32 @getFileType(ptr noundef) #1
declare i32 @tapRename(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @sclRename(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @trdRename(ptr noundef, 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/tmpbco83k0h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Unknown image type\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @renam(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i32 @getFileType(ptr noundef %8)
store i32 %9, ptr %7, align 4
%10 = load i32, ptr %7, align 4
switch i32 %10, label %26 [
i32 3, label %11
i32 1, label %16
i32 2, label %21
]
11: ; preds = %3
%12 = load ptr, ptr %4, align 8
%13 = load ptr, ptr %5, align 8
%14 = load ptr, ptr %6, align 8
%15 = call i32 @tapRename(ptr noundef %12, ptr noundef %13, ptr noundef %14)
br label %28
16: ; preds = %3
%17 = load ptr, ptr %4, align 8
%18 = load ptr, ptr %5, align 8
%19 = load ptr, ptr %6, align 8
%20 = call i32 @sclRename(ptr noundef %17, ptr noundef %18, ptr noundef %19)
br label %28
21: ; preds = %3
%22 = load ptr, ptr %4, align 8
%23 = load ptr, ptr %5, align 8
%24 = load ptr, ptr %6, align 8
%25 = call i32 @trdRename(ptr noundef %22, ptr noundef %23, ptr noundef %24)
br label %28
26: ; preds = %3
%27 = call i32 @printf(ptr noundef @.str)
br label %28
28: ; preds = %26, %21, %16, %11
ret void
}
declare i32 @getFileType(ptr noundef) #1
declare i32 @tapRename(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @sclRename(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @trdRename(ptr noundef, 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/tmp7tiiqbps.c'
source_filename = "/tmp/tmp7tiiqbps.c"
target datalayout = "e-m:e-p270: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.cf02.delta = private unnamed_addr constant [3 x double] [double 2.000000e+01, double 2.000000e+01, double 2.000000e+01], align 16
@__const.cf02.bias = private unnamed_addr constant [3 x double] [double 0.000000e+00, double 1.000000e+02, double 2.000000e+02], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cf02(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca [3 x double], align 16
%16 = alloca [3 x double], align 16
%17 = alloca [3 x double], align 16
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i32 %2, ptr %9, align 4
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store i32 %5, ptr %12, align 4
store i32 3, ptr %14, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %16, ptr align 16 @__const.cf02.delta, i64 24, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %17, ptr align 16 @__const.cf02.bias, i64 24, i1 false)
store i32 0, ptr %13, align 4
br label %18
18: ; preds = %44, %6
%19 = load i32, ptr %13, align 4
%20 = load i32, ptr %14, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %47
22: ; preds = %18
%23 = load ptr, ptr %7, align 8
%24 = load i32, ptr %13, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 %25
%27 = load i32, ptr %9, align 4
%28 = load ptr, ptr %10, align 8
%29 = load i32, ptr %13, align 4
%30 = load i32, ptr %9, align 4
%31 = mul nsw i32 %29, %30
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds double, ptr %28, i64 %32
%34 = load ptr, ptr %11, align 8
%35 = load i32, ptr %13, align 4
%36 = load i32, ptr %9, align 4
%37 = mul nsw i32 %35, %36
%38 = load i32, ptr %9, align 4
%39 = mul nsw i32 %37, %38
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds double, ptr %34, i64 %40
%42 = load i32, ptr %12, align 4
%43 = call i32 @schwefel_func(ptr noundef %23, ptr noundef %26, i32 noundef %27, ptr noundef %33, ptr noundef %41, i32 noundef %42)
br label %44
44: ; preds = %22
%45 = load i32, ptr %13, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %13, align 4
br label %18, !llvm.loop !6
47: ; preds = %18
%48 = load ptr, ptr %7, align 8
%49 = load ptr, ptr %8, align 8
%50 = load i32, ptr %9, align 4
%51 = load ptr, ptr %10, align 8
%52 = getelementptr inbounds [3 x double], ptr %16, i64 0, i64 0
%53 = getelementptr inbounds [3 x double], ptr %17, i64 0, i64 0
%54 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 0
%55 = load i32, ptr %14, align 4
%56 = call i32 @cf_cal(ptr noundef %48, ptr noundef %49, i32 noundef %50, ptr noundef %51, ptr noundef %52, ptr noundef %53, ptr noundef %54, i32 noundef %55)
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 @schwefel_func(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @cf_cal(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7tiiqbps.c"
target datalayout = "e-m:e-p270: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.cf02.delta = private unnamed_addr constant [3 x double] [double 2.000000e+01, double 2.000000e+01, double 2.000000e+01], align 16
@__const.cf02.bias = private unnamed_addr constant [3 x double] [double 0.000000e+00, double 1.000000e+02, double 2.000000e+02], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cf02(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca [3 x double], align 16
%16 = alloca [3 x double], align 16
%17 = alloca [3 x double], align 16
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i32 %2, ptr %9, align 4
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store i32 %5, ptr %12, align 4
store i32 3, ptr %14, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %16, ptr align 16 @__const.cf02.delta, i64 24, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %17, ptr align 16 @__const.cf02.bias, i64 24, i1 false)
store i32 0, ptr %13, align 4
%18 = load i32, ptr %13, align 4
%19 = load i32, ptr %14, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %.lr.ph, label %49
.lr.ph: ; preds = %6
br label %21
21: ; preds = %.lr.ph, %43
%22 = load ptr, ptr %7, align 8
%23 = load i32, ptr %13, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 %24
%26 = load i32, ptr %9, align 4
%27 = load ptr, ptr %10, align 8
%28 = load i32, ptr %13, align 4
%29 = load i32, ptr %9, align 4
%30 = mul nsw i32 %28, %29
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds double, ptr %27, i64 %31
%33 = load ptr, ptr %11, align 8
%34 = load i32, ptr %13, align 4
%35 = load i32, ptr %9, align 4
%36 = mul nsw i32 %34, %35
%37 = load i32, ptr %9, align 4
%38 = mul nsw i32 %36, %37
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds double, ptr %33, i64 %39
%41 = load i32, ptr %12, align 4
%42 = call i32 @schwefel_func(ptr noundef %22, ptr noundef %25, i32 noundef %26, ptr noundef %32, ptr noundef %40, i32 noundef %41)
br label %43
43: ; preds = %21
%44 = load i32, ptr %13, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %13, align 4
%46 = load i32, ptr %13, align 4
%47 = load i32, ptr %14, align 4
%48 = icmp slt i32 %46, %47
br i1 %48, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %43
br label %49
49: ; preds = %._crit_edge, %6
%50 = load ptr, ptr %7, align 8
%51 = load ptr, ptr %8, align 8
%52 = load i32, ptr %9, align 4
%53 = load ptr, ptr %10, align 8
%54 = getelementptr inbounds [3 x double], ptr %16, i64 0, i64 0
%55 = getelementptr inbounds [3 x double], ptr %17, i64 0, i64 0
%56 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 0
%57 = load i32, ptr %14, align 4
%58 = call i32 @cf_cal(ptr noundef %50, ptr noundef %51, i32 noundef %52, ptr noundef %53, ptr noundef %54, ptr noundef %55, ptr noundef %56, i32 noundef %57)
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 @schwefel_func(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @cf_cal(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpcgxqck2m.c'
source_filename = "/tmp/tmpcgxqck2m.c"
target datalayout = "e-m:e-p270: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
@_IONBF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call ptr (...) @event_base_new()
store ptr %7, ptr %6, align 8
%8 = load ptr, ptr %6, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %11, label %10
10: ; preds = %2
store i32 1, ptr %3, align 4
br label %27
11: ; preds = %2
%12 = load i32, ptr @stdout, align 4
%13 = load i32, ptr @_IONBF, align 4
%14 = call i32 @setvbuf(i32 noundef %12, ptr noundef null, i32 noundef %13, i32 noundef 0)
%15 = load ptr, ptr %6, align 8
%16 = call i64 @start_dns_server(ptr noundef %15)
%17 = icmp slt i64 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %11
store i32 3, ptr %3, align 4
br label %27
19: ; preds = %11
%20 = load ptr, ptr %6, align 8
%21 = call i64 @start_tproxy_server(ptr noundef %20)
%22 = icmp slt i64 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %19
store i32 2, ptr %3, align 4
br label %27
24: ; preds = %19
%25 = load ptr, ptr %6, align 8
%26 = call i32 @event_base_dispatch(ptr noundef %25)
store i32 0, ptr %3, align 4
br label %27
27: ; preds = %24, %23, %18, %10
%28 = load i32, ptr %3, align 4
ret i32 %28
}
declare ptr @event_base_new(...) #1
declare i32 @setvbuf(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @start_dns_server(ptr noundef) #1
declare i64 @start_tproxy_server(ptr noundef) #1
declare i32 @event_base_dispatch(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcgxqck2m.c"
target datalayout = "e-m:e-p270: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
@_IONBF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call ptr (...) @event_base_new()
store ptr %7, ptr %6, align 8
%8 = load ptr, ptr %6, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %11, label %10
10: ; preds = %2
store i32 1, ptr %3, align 4
br label %27
11: ; preds = %2
%12 = load i32, ptr @stdout, align 4
%13 = load i32, ptr @_IONBF, align 4
%14 = call i32 @setvbuf(i32 noundef %12, ptr noundef null, i32 noundef %13, i32 noundef 0)
%15 = load ptr, ptr %6, align 8
%16 = call i64 @start_dns_server(ptr noundef %15)
%17 = icmp slt i64 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %11
store i32 3, ptr %3, align 4
br label %27
19: ; preds = %11
%20 = load ptr, ptr %6, align 8
%21 = call i64 @start_tproxy_server(ptr noundef %20)
%22 = icmp slt i64 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %19
store i32 2, ptr %3, align 4
br label %27
24: ; preds = %19
%25 = load ptr, ptr %6, align 8
%26 = call i32 @event_base_dispatch(ptr noundef %25)
store i32 0, ptr %3, align 4
br label %27
27: ; preds = %24, %23, %18, %10
%28 = load i32, ptr %3, align 4
ret i32 %28
}
declare ptr @event_base_new(...) #1
declare i32 @setvbuf(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @start_dns_server(ptr noundef) #1
declare i64 @start_tproxy_server(ptr noundef) #1
declare i32 @event_base_dispatch(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8zysa6u9.c'
source_filename = "/tmp/tmp8zysa6u9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"(0x%02x) \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c".\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printimage(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i8, align 1
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
store i8 0, ptr %6, align 1
%7 = load i32, ptr %5, align 4
br label %8
8: ; preds = %31, %2
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %34
12: ; preds = %8
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %5, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = load i8, ptr %16, align 1
store i8 %17, ptr %6, align 1
%18 = load i8, ptr %6, align 1
%19 = sext i8 %18 to i32
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %19)
%21 = load i8, ptr %6, align 1
%22 = call i64 @isprint(i8 noundef signext %21)
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %28
24: ; preds = %12
%25 = load i8, ptr %6, align 1
%26 = sext i8 %25 to i32
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %26)
br label %30
28: ; preds = %12
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %30
30: ; preds = %28, %24
br label %31
31: ; preds = %30
%32 = load i32, ptr %5, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %5, align 4
br label %8, !llvm.loop !6
34: ; preds = %8
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i64 @isprint(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/tmp8zysa6u9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"(0x%02x) \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c".\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printimage(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i8, align 1
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
store i8 0, ptr %6, align 1
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %36
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %30
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %5, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %12, i64 %14
%16 = load i8, ptr %15, align 1
store i8 %16, ptr %6, align 1
%17 = load i8, ptr %6, align 1
%18 = sext i8 %17 to i32
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %18)
%20 = load i8, ptr %6, align 1
%21 = call i64 @isprint(i8 noundef signext %20)
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %27
23: ; preds = %11
%24 = load i8, ptr %6, align 1
%25 = sext i8 %24 to i32
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %25)
br label %29
27: ; preds = %11
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %29
29: ; preds = %27, %23
br label %30
30: ; preds = %29
%31 = load i32, ptr %5, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %5, align 4
%33 = load i32, ptr %5, align 4
%34 = load i32, ptr %4, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %36
36: ; preds = %._crit_edge, %2
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i64 @isprint(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/tmpgmi712z3.c'
source_filename = "/tmp/tmpgmi712z3.c"
target datalayout = "e-m:e-p270: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/tmpgmi712z3.c"
target datalayout = "e-m:e-p270: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/tmp1gh0xr6v.c'
source_filename = "/tmp/tmp1gh0xr6v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"Hello Kitty!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1gh0xr6v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"Hello Kitty!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3400vob3.c'
source_filename = "/tmp/tmp3400vob3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [55 x i8] c"Usage : permutation input_file.cnf > output_file.cnf \0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [46 x i8] c"c This Formular is generated by permutation \0A\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"p cnf %d %d \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = 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
%18 = load i32, ptr %4, align 4
%19 = icmp ne i32 %18, 2
br i1 %19, label %20, label %23
20: ; preds = %2
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%22 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %22, ptr %3, align 4
br label %112
23: ; preds = %2
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 1
%26 = load ptr, ptr %25, align 8
store ptr %26, ptr %6, align 8
%27 = load ptr, ptr %6, align 8
%28 = call i32 @read_input(ptr noundef %27, ptr noundef %7, ptr noundef %8, ptr noundef %9)
%29 = load i32, ptr %9, align 4
%30 = call ptr @calloc(i32 noundef %29, i32 noundef 8)
store ptr %30, ptr %10, align 8
store i32 0, ptr %11, align 4
store i32 0, ptr %12, align 4
%31 = load i32, ptr %8, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %13, align 4
br label %33
33: ; preds = %78, %23
%34 = load i32, ptr %11, align 4
%35 = load i32, ptr %9, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %87
37: ; preds = %33
store i32 0, ptr %14, align 4
br label %38
38: ; preds = %58, %37
%39 = load i32, ptr %14, align 4
%40 = load i32, ptr %9, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %42, label %61
42: ; preds = %38
%43 = load ptr, ptr %7, align 8
%44 = load i32, ptr %14, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i32, ptr %43, i64 %45
%47 = load i32, ptr %46, align 4
%48 = load i32, ptr %13, align 4
%49 = icmp slt i32 %47, %48
br i1 %49, label %50, label %57
50: ; preds = %42
%51 = load ptr, ptr %7, align 8
%52 = load i32, ptr %14, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i32, ptr %51, i64 %53
%55 = load i32, ptr %54, align 4
store i32 %55, ptr %13, align 4
%56 = load i32, ptr %14, align 4
store i32 %56, ptr %12, align 4
br label %57
57: ; preds = %50, %42
br label %58
58: ; preds = %57
%59 = load i32, ptr %14, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %14, align 4
br label %38, !llvm.loop !6
61: ; preds = %38
%62 = load ptr, ptr %10, align 8
%63 = load i32, ptr %12, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i32, ptr %62, i64 %64
%66 = load i32, ptr %65, align 4
%67 = icmp eq i32 %66, 0
br i1 %67, label %68, label %78
68: ; preds = %61
%69 = load i32, ptr %9, align 4
%70 = load i32, ptr %11, align 4
%71 = sub nsw i32 %69, %70
%72 = load ptr, ptr %10, align 8
%73 = load i32, ptr %12, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i32, ptr %72, i64 %74
store i32 %71, ptr %75, align 4
%76 = load i32, ptr %11, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %11, align 4
br label %78
78: ; preds = %68, %61
%79 = load i32, ptr %8, align 4
%80 = add nsw i32 %79, 1
%81 = load ptr, ptr %7, align 8
%82 = load i32, ptr %12, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i32, ptr %81, i64 %83
store i32 %80, ptr %84, align 4
%85 = load i32, ptr %8, align 4
%86 = add nsw i32 %85, 1
store i32 %86, ptr %13, align 4
br label %33, !llvm.loop !8
87: ; preds = %33
%88 = load i32, ptr %8, align 4
%89 = call ptr @calloc(i32 noundef %88, i32 noundef 4)
store ptr %89, ptr %15, align 8
%90 = load i32, ptr %8, align 4
%91 = call ptr @calloc(i32 noundef %90, i32 noundef 4)
store ptr %91, ptr %16, align 8
%92 = load i32, ptr %8, align 4
%93 = call ptr @calloc(i32 noundef %92, i32 noundef 4)
store ptr %93, ptr %17, align 8
%94 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%95 = load i32, ptr %9, align 4
%96 = load i32, ptr %8, align 4
%97 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %95, i32 noundef %96)
%98 = load ptr, ptr %6, align 8
%99 = load ptr, ptr %10, align 8
%100 = call i32 @write_relabel(ptr noundef %98, ptr noundef %99, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %15, ptr noundef %16, ptr noundef %17)
%101 = load ptr, ptr %10, align 8
%102 = call i32 @free(ptr noundef %101)
%103 = load ptr, ptr %15, align 8
%104 = call i32 @free(ptr noundef %103)
%105 = load ptr, ptr %16, align 8
%106 = call i32 @free(ptr noundef %105)
%107 = load ptr, ptr %17, align 8
%108 = call i32 @free(ptr noundef %107)
%109 = load ptr, ptr %7, align 8
%110 = call i32 @free(ptr noundef %109)
%111 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %111, ptr %3, align 4
br label %112
112: ; preds = %87, %20
%113 = load i32, ptr %3, align 4
ret i32 %113
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @read_input(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @calloc(i32 noundef, i32 noundef) #1
declare i32 @write_relabel(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp3400vob3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [55 x i8] c"Usage : permutation input_file.cnf > output_file.cnf \0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [46 x i8] c"c This Formular is generated by permutation \0A\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"p cnf %d %d \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = 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
%18 = load i32, ptr %4, align 4
%19 = icmp ne i32 %18, 2
br i1 %19, label %20, label %23
20: ; preds = %2
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%22 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %22, ptr %3, align 4
br label %116
23: ; preds = %2
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 1
%26 = load ptr, ptr %25, align 8
store ptr %26, ptr %6, align 8
%27 = load ptr, ptr %6, align 8
%28 = call i32 @read_input(ptr noundef %27, ptr noundef %7, ptr noundef %8, ptr noundef %9)
%29 = load i32, ptr %9, align 4
%30 = call ptr @calloc(i32 noundef %29, i32 noundef 8)
store ptr %30, ptr %10, align 8
store i32 0, ptr %11, align 4
store i32 0, ptr %12, align 4
%31 = load i32, ptr %8, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %13, align 4
%33 = load i32, ptr %11, align 4
%34 = load i32, ptr %9, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %.lr.ph2, label %91
.lr.ph2: ; preds = %23
br label %36
36: ; preds = %.lr.ph2, %79
store i32 0, ptr %14, align 4
%37 = load i32, ptr %14, align 4
%38 = load i32, ptr %9, align 4
%39 = icmp slt i32 %37, %38
br i1 %39, label %.lr.ph, label %62
.lr.ph: ; preds = %36
br label %40
40: ; preds = %.lr.ph, %56
%41 = load ptr, ptr %7, align 8
%42 = load i32, ptr %14, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %41, i64 %43
%45 = load i32, ptr %44, align 4
%46 = load i32, ptr %13, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %48, label %55
48: ; preds = %40
%49 = load ptr, ptr %7, align 8
%50 = load i32, ptr %14, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i32, ptr %49, i64 %51
%53 = load i32, ptr %52, align 4
store i32 %53, ptr %13, align 4
%54 = load i32, ptr %14, align 4
store i32 %54, ptr %12, align 4
br label %55
55: ; preds = %48, %40
br label %56
56: ; preds = %55
%57 = load i32, ptr %14, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %14, align 4
%59 = load i32, ptr %14, align 4
%60 = load i32, ptr %9, align 4
%61 = icmp slt i32 %59, %60
br i1 %61, label %40, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %56
br label %62
62: ; preds = %._crit_edge, %36
%63 = load ptr, ptr %10, align 8
%64 = load i32, ptr %12, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i32, ptr %63, i64 %65
%67 = load i32, ptr %66, align 4
%68 = icmp eq i32 %67, 0
br i1 %68, label %69, label %79
69: ; preds = %62
%70 = load i32, ptr %9, align 4
%71 = load i32, ptr %11, align 4
%72 = sub nsw i32 %70, %71
%73 = load ptr, ptr %10, align 8
%74 = load i32, ptr %12, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i32, ptr %73, i64 %75
store i32 %72, ptr %76, align 4
%77 = load i32, ptr %11, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %11, align 4
br label %79
79: ; preds = %69, %62
%80 = load i32, ptr %8, align 4
%81 = add nsw i32 %80, 1
%82 = load ptr, ptr %7, align 8
%83 = load i32, ptr %12, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i32, ptr %82, i64 %84
store i32 %81, ptr %85, align 4
%86 = load i32, ptr %8, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %13, align 4
%88 = load i32, ptr %11, align 4
%89 = load i32, ptr %9, align 4
%90 = icmp slt i32 %88, %89
br i1 %90, label %36, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %79
br label %91
91: ; preds = %._crit_edge3, %23
%92 = load i32, ptr %8, align 4
%93 = call ptr @calloc(i32 noundef %92, i32 noundef 4)
store ptr %93, ptr %15, align 8
%94 = load i32, ptr %8, align 4
%95 = call ptr @calloc(i32 noundef %94, i32 noundef 4)
store ptr %95, ptr %16, align 8
%96 = load i32, ptr %8, align 4
%97 = call ptr @calloc(i32 noundef %96, i32 noundef 4)
store ptr %97, ptr %17, align 8
%98 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%99 = load i32, ptr %9, align 4
%100 = load i32, ptr %8, align 4
%101 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %99, i32 noundef %100)
%102 = load ptr, ptr %6, align 8
%103 = load ptr, ptr %10, align 8
%104 = call i32 @write_relabel(ptr noundef %102, ptr noundef %103, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %15, ptr noundef %16, ptr noundef %17)
%105 = load ptr, ptr %10, align 8
%106 = call i32 @free(ptr noundef %105)
%107 = load ptr, ptr %15, align 8
%108 = call i32 @free(ptr noundef %107)
%109 = load ptr, ptr %16, align 8
%110 = call i32 @free(ptr noundef %109)
%111 = load ptr, ptr %17, align 8
%112 = call i32 @free(ptr noundef %111)
%113 = load ptr, ptr %7, align 8
%114 = call i32 @free(ptr noundef %113)
%115 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %115, ptr %3, align 4
br label %116
116: ; preds = %91, %20
%117 = load i32, ptr %3, align 4
ret i32 %117
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @read_input(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @calloc(i32 noundef, i32 noundef) #1
declare i32 @write_relabel(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpkm3f2hrw.c'
source_filename = "/tmp/tmpkm3f2hrw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"Invalid argument\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cmd_write(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 @parse_string_expression(ptr noundef %4, ptr noundef %3)
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %19
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
%9 = call i64 @strlen(ptr noundef %8)
%10 = icmp sgt i64 %9, 0
br i1 %10, label %11, label %16
11: ; preds = %7
%12 = load ptr, ptr %3, align 8
%13 = getelementptr inbounds i8, ptr %12, i64 0
%14 = load i8, ptr %13, align 1
%15 = call i32 @lcd_write(i8 noundef signext %14)
br label %18
16: ; preds = %7
%17 = call i32 @syntax_error_msg_with_arg(ptr noundef @.str, ptr noundef null)
br label %18
18: ; preds = %16, %11
br label %19
19: ; preds = %18, %1
ret void
}
declare i64 @parse_string_expression(ptr noundef, ptr noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @lcd_write(i8 noundef signext) #1
declare i32 @syntax_error_msg_with_arg(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/tmpkm3f2hrw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"Invalid argument\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cmd_write(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 @parse_string_expression(ptr noundef %4, ptr noundef %3)
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %19
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
%9 = call i64 @strlen(ptr noundef %8)
%10 = icmp sgt i64 %9, 0
br i1 %10, label %11, label %16
11: ; preds = %7
%12 = load ptr, ptr %3, align 8
%13 = getelementptr inbounds i8, ptr %12, i64 0
%14 = load i8, ptr %13, align 1
%15 = call i32 @lcd_write(i8 noundef signext %14)
br label %18
16: ; preds = %7
%17 = call i32 @syntax_error_msg_with_arg(ptr noundef @.str, ptr noundef null)
br label %18
18: ; preds = %16, %11
br label %19
19: ; preds = %18, %1
ret void
}
declare i64 @parse_string_expression(ptr noundef, ptr noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @lcd_write(i8 noundef signext) #1
declare i32 @syntax_error_msg_with_arg(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/tmpnslxs8lo.c'
source_filename = "/tmp/tmpnslxs8lo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mod_inv(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca [3 x i32], align 4
%12 = alloca [2 x i32], align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%13 = load i32, ptr %8, align 4
%14 = call i32 @mpz_init(i32 noundef %13)
%15 = load i32, ptr %9, align 4
%16 = call i32 @mpz_init(i32 noundef %15)
%17 = load i32, ptr %10, align 4
%18 = call i32 @mpz_init(i32 noundef %17)
%19 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 0
%20 = load i32, ptr %19, align 4
%21 = call i32 @mpz_init(i32 noundef %20)
%22 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 1
%23 = load i32, ptr %22, align 4
%24 = call i32 @mpz_init(i32 noundef %23)
%25 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 2
%26 = load i32, ptr %25, align 4
%27 = call i32 @mpz_init(i32 noundef %26)
%28 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 0
%29 = load i32, ptr %28, align 4
%30 = call i32 @mpz_init(i32 noundef %29)
%31 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 1
%32 = load i32, ptr %31, align 4
%33 = call i32 @mpz_init(i32 noundef %32)
%34 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 0
%35 = load i32, ptr %34, align 4
%36 = call i32 @mpz_set_ui(i32 noundef %35, i32 noundef 1)
%37 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 1
%38 = load i32, ptr %37, align 4
%39 = call i32 @mpz_set_ui(i32 noundef %38, i32 noundef 1)
%40 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 2
%41 = load i32, ptr %40, align 4
%42 = call i32 @mpz_set_ui(i32 noundef %41, i32 noundef 1)
%43 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 0
%44 = load i32, ptr %43, align 4
%45 = call i32 @mpz_set_ui(i32 noundef %44, i32 noundef 0)
%46 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 1
%47 = load i32, ptr %46, align 4
%48 = call i32 @mpz_set_ui(i32 noundef %47, i32 noundef 1)
%49 = load i32, ptr %5, align 4
%50 = load i32, ptr %6, align 4
%51 = call i64 @mpz_cmp(i32 noundef %49, i32 noundef %50)
%52 = icmp sgt i64 %51, 0
br i1 %52, label %53, label %60
53: ; preds = %3
%54 = load i32, ptr %9, align 4
%55 = load i32, ptr %5, align 4
%56 = call i32 @mpz_set(i32 noundef %54, i32 noundef %55)
%57 = load i32, ptr %10, align 4
%58 = load i32, ptr %6, align 4
%59 = call i32 @mpz_set(i32 noundef %57, i32 noundef %58)
br label %67
60: ; preds = %3
%61 = load i32, ptr %9, align 4
%62 = load i32, ptr %6, align 4
%63 = call i32 @mpz_set(i32 noundef %61, i32 noundef %62)
%64 = load i32, ptr %10, align 4
%65 = load i32, ptr %5, align 4
%66 = call i32 @mpz_set(i32 noundef %64, i32 noundef %65)
br label %67
67: ; preds = %60, %53
store i32 0, ptr %7, align 4
br label %68
68: ; preds = %134, %67
%69 = load i32, ptr %10, align 4
%70 = call i64 @mpz_cmp_ui(i32 noundef %69, i32 noundef 0)
%71 = icmp ne i64 %70, 0
br i1 %71, label %72, label %137
72: ; preds = %68
%73 = load i32, ptr %7, align 4
%74 = srem i32 %73, 3
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 %75
%77 = load i32, ptr %76, align 4
%78 = load i32, ptr %9, align 4
%79 = load i32, ptr %10, align 4
%80 = call i32 @mpz_div(i32 noundef %77, i32 noundef %78, i32 noundef %79)
%81 = load i32, ptr %8, align 4
%82 = load i32, ptr %9, align 4
%83 = load i32, ptr %10, align 4
%84 = call i32 @mpz_mod(i32 noundef %81, i32 noundef %82, i32 noundef %83)
%85 = load i32, ptr %9, align 4
%86 = load i32, ptr %10, align 4
%87 = call i32 @mpz_set(i32 noundef %85, i32 noundef %86)
%88 = load i32, ptr %10, align 4
%89 = load i32, ptr %8, align 4
%90 = call i32 @mpz_set(i32 noundef %88, i32 noundef %89)
%91 = load i32, ptr %7, align 4
%92 = icmp sge i32 %91, 2
br i1 %92, label %93, label %133
93: ; preds = %72
%94 = load i32, ptr %8, align 4
%95 = load i32, ptr %7, align 4
%96 = sub nsw i32 %95, 2
%97 = srem i32 %96, 3
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 %98
%100 = load i32, ptr %99, align 4
%101 = load i32, ptr %7, align 4
%102 = sub nsw i32 %101, 1
%103 = srem i32 %102, 2
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 %104
%106 = load i32, ptr %105, align 4
%107 = call i32 @mpz_mul(i32 noundef %94, i32 noundef %100, i32 noundef %106)
%108 = load i32, ptr %8, align 4
%109 = load i32, ptr %7, align 4
%110 = sub nsw i32 %109, 2
%111 = srem i32 %110, 2
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 %112
%114 = load i32, ptr %113, align 4
%115 = load i32, ptr %8, align 4
%116 = call i32 @mpz_sub(i32 noundef %108, i32 noundef %114, i32 noundef %115)
%117 = load i32, ptr %8, align 4
%118 = call i64 @mpz_cmp_ui(i32 noundef %117, i32 noundef 0)
%119 = icmp slt i64 %118, 0
br i1 %119, label %120, label %125
120: ; preds = %93
%121 = load i32, ptr %8, align 4
%122 = load i32, ptr %8, align 4
%123 = load i32, ptr %6, align 4
%124 = call i32 @mpz_add(i32 noundef %121, i32 noundef %122, i32 noundef %123)
br label %125
125: ; preds = %120, %93
%126 = load i32, ptr %7, align 4
%127 = srem i32 %126, 2
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 %128
%130 = load i32, ptr %129, align 4
%131 = load i32, ptr %8, align 4
%132 = call i32 @mpz_set(i32 noundef %130, i32 noundef %131)
br label %133
133: ; preds = %125, %72
br label %134
134: ; preds = %133
%135 = load i32, ptr %7, align 4
%136 = add nsw i32 %135, 1
store i32 %136, ptr %7, align 4
br label %68, !llvm.loop !6
137: ; preds = %68
%138 = load i32, ptr %8, align 4
%139 = load i32, ptr %7, align 4
%140 = sub nsw i32 %139, 2
%141 = srem i32 %140, 3
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 %142
%144 = load i32, ptr %143, align 4
%145 = load i32, ptr %7, align 4
%146 = sub nsw i32 %145, 1
%147 = srem i32 %146, 2
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 %148
%150 = load i32, ptr %149, align 4
%151 = call i32 @mpz_mul(i32 noundef %138, i32 noundef %144, i32 noundef %150)
%152 = load i32, ptr %8, align 4
%153 = load i32, ptr %7, align 4
%154 = sub nsw i32 %153, 2
%155 = srem i32 %154, 2
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 %156
%158 = load i32, ptr %157, align 4
%159 = load i32, ptr %8, align 4
%160 = call i32 @mpz_sub(i32 noundef %152, i32 noundef %158, i32 noundef %159)
%161 = load i32, ptr %8, align 4
%162 = call i64 @mpz_cmp_ui(i32 noundef %161, i32 noundef 0)
%163 = icmp slt i64 %162, 0
br i1 %163, label %164, label %169
164: ; preds = %137
%165 = load i32, ptr %8, align 4
%166 = load i32, ptr %8, align 4
%167 = load i32, ptr %6, align 4
%168 = call i32 @mpz_add(i32 noundef %165, i32 noundef %166, i32 noundef %167)
br label %169
169: ; preds = %164, %137
%170 = load i32, ptr %4, align 4
%171 = load i32, ptr %8, align 4
%172 = call i32 @mpz_set(i32 noundef %170, i32 noundef %171)
%173 = load i32, ptr %8, align 4
%174 = call i32 @mpz_clear(i32 noundef %173)
%175 = load i32, ptr %9, align 4
%176 = call i32 @mpz_clear(i32 noundef %175)
%177 = load i32, ptr %10, align 4
%178 = call i32 @mpz_clear(i32 noundef %177)
%179 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 0
%180 = load i32, ptr %179, align 4
%181 = call i32 @mpz_clear(i32 noundef %180)
%182 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 1
%183 = load i32, ptr %182, align 4
%184 = call i32 @mpz_clear(i32 noundef %183)
%185 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 2
%186 = load i32, ptr %185, align 4
%187 = call i32 @mpz_clear(i32 noundef %186)
%188 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 0
%189 = load i32, ptr %188, align 4
%190 = call i32 @mpz_clear(i32 noundef %189)
%191 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 1
%192 = load i32, ptr %191, align 4
%193 = call i32 @mpz_clear(i32 noundef %192)
ret void
}
declare i32 @mpz_init(i32 noundef) #1
declare i32 @mpz_set_ui(i32 noundef, i32 noundef) #1
declare i64 @mpz_cmp(i32 noundef, i32 noundef) #1
declare i32 @mpz_set(i32 noundef, i32 noundef) #1
declare i64 @mpz_cmp_ui(i32 noundef, i32 noundef) #1
declare i32 @mpz_div(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpz_mod(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpz_mul(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpz_sub(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpz_add(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpz_clear(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/tmpnslxs8lo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mod_inv(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca [3 x i32], align 4
%12 = alloca [2 x i32], align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%13 = load i32, ptr %8, align 4
%14 = call i32 @mpz_init(i32 noundef %13)
%15 = load i32, ptr %9, align 4
%16 = call i32 @mpz_init(i32 noundef %15)
%17 = load i32, ptr %10, align 4
%18 = call i32 @mpz_init(i32 noundef %17)
%19 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 0
%20 = load i32, ptr %19, align 4
%21 = call i32 @mpz_init(i32 noundef %20)
%22 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 1
%23 = load i32, ptr %22, align 4
%24 = call i32 @mpz_init(i32 noundef %23)
%25 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 2
%26 = load i32, ptr %25, align 4
%27 = call i32 @mpz_init(i32 noundef %26)
%28 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 0
%29 = load i32, ptr %28, align 4
%30 = call i32 @mpz_init(i32 noundef %29)
%31 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 1
%32 = load i32, ptr %31, align 4
%33 = call i32 @mpz_init(i32 noundef %32)
%34 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 0
%35 = load i32, ptr %34, align 4
%36 = call i32 @mpz_set_ui(i32 noundef %35, i32 noundef 1)
%37 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 1
%38 = load i32, ptr %37, align 4
%39 = call i32 @mpz_set_ui(i32 noundef %38, i32 noundef 1)
%40 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 2
%41 = load i32, ptr %40, align 4
%42 = call i32 @mpz_set_ui(i32 noundef %41, i32 noundef 1)
%43 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 0
%44 = load i32, ptr %43, align 4
%45 = call i32 @mpz_set_ui(i32 noundef %44, i32 noundef 0)
%46 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 1
%47 = load i32, ptr %46, align 4
%48 = call i32 @mpz_set_ui(i32 noundef %47, i32 noundef 1)
%49 = load i32, ptr %5, align 4
%50 = load i32, ptr %6, align 4
%51 = call i64 @mpz_cmp(i32 noundef %49, i32 noundef %50)
%52 = icmp sgt i64 %51, 0
br i1 %52, label %53, label %60
53: ; preds = %3
%54 = load i32, ptr %9, align 4
%55 = load i32, ptr %5, align 4
%56 = call i32 @mpz_set(i32 noundef %54, i32 noundef %55)
%57 = load i32, ptr %10, align 4
%58 = load i32, ptr %6, align 4
%59 = call i32 @mpz_set(i32 noundef %57, i32 noundef %58)
br label %67
60: ; preds = %3
%61 = load i32, ptr %9, align 4
%62 = load i32, ptr %6, align 4
%63 = call i32 @mpz_set(i32 noundef %61, i32 noundef %62)
%64 = load i32, ptr %10, align 4
%65 = load i32, ptr %5, align 4
%66 = call i32 @mpz_set(i32 noundef %64, i32 noundef %65)
br label %67
67: ; preds = %60, %53
store i32 0, ptr %7, align 4
%68 = load i32, ptr %10, align 4
%69 = call i64 @mpz_cmp_ui(i32 noundef %68, i32 noundef 0)
%70 = icmp ne i64 %69, 0
br i1 %70, label %.lr.ph, label %139
.lr.ph: ; preds = %67
br label %71
71: ; preds = %.lr.ph, %133
%72 = load i32, ptr %7, align 4
%73 = srem i32 %72, 3
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 %74
%76 = load i32, ptr %75, align 4
%77 = load i32, ptr %9, align 4
%78 = load i32, ptr %10, align 4
%79 = call i32 @mpz_div(i32 noundef %76, i32 noundef %77, i32 noundef %78)
%80 = load i32, ptr %8, align 4
%81 = load i32, ptr %9, align 4
%82 = load i32, ptr %10, align 4
%83 = call i32 @mpz_mod(i32 noundef %80, i32 noundef %81, i32 noundef %82)
%84 = load i32, ptr %9, align 4
%85 = load i32, ptr %10, align 4
%86 = call i32 @mpz_set(i32 noundef %84, i32 noundef %85)
%87 = load i32, ptr %10, align 4
%88 = load i32, ptr %8, align 4
%89 = call i32 @mpz_set(i32 noundef %87, i32 noundef %88)
%90 = load i32, ptr %7, align 4
%91 = icmp sge i32 %90, 2
br i1 %91, label %92, label %132
92: ; preds = %71
%93 = load i32, ptr %8, align 4
%94 = load i32, ptr %7, align 4
%95 = sub nsw i32 %94, 2
%96 = srem i32 %95, 3
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 %97
%99 = load i32, ptr %98, align 4
%100 = load i32, ptr %7, align 4
%101 = sub nsw i32 %100, 1
%102 = srem i32 %101, 2
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 %103
%105 = load i32, ptr %104, align 4
%106 = call i32 @mpz_mul(i32 noundef %93, i32 noundef %99, i32 noundef %105)
%107 = load i32, ptr %8, align 4
%108 = load i32, ptr %7, align 4
%109 = sub nsw i32 %108, 2
%110 = srem i32 %109, 2
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 %111
%113 = load i32, ptr %112, align 4
%114 = load i32, ptr %8, align 4
%115 = call i32 @mpz_sub(i32 noundef %107, i32 noundef %113, i32 noundef %114)
%116 = load i32, ptr %8, align 4
%117 = call i64 @mpz_cmp_ui(i32 noundef %116, i32 noundef 0)
%118 = icmp slt i64 %117, 0
br i1 %118, label %119, label %124
119: ; preds = %92
%120 = load i32, ptr %8, align 4
%121 = load i32, ptr %8, align 4
%122 = load i32, ptr %6, align 4
%123 = call i32 @mpz_add(i32 noundef %120, i32 noundef %121, i32 noundef %122)
br label %124
124: ; preds = %119, %92
%125 = load i32, ptr %7, align 4
%126 = srem i32 %125, 2
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 %127
%129 = load i32, ptr %128, align 4
%130 = load i32, ptr %8, align 4
%131 = call i32 @mpz_set(i32 noundef %129, i32 noundef %130)
br label %132
132: ; preds = %124, %71
br label %133
133: ; preds = %132
%134 = load i32, ptr %7, align 4
%135 = add nsw i32 %134, 1
store i32 %135, ptr %7, align 4
%136 = load i32, ptr %10, align 4
%137 = call i64 @mpz_cmp_ui(i32 noundef %136, i32 noundef 0)
%138 = icmp ne i64 %137, 0
br i1 %138, label %71, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %133
br label %139
139: ; preds = %._crit_edge, %67
%140 = load i32, ptr %8, align 4
%141 = load i32, ptr %7, align 4
%142 = sub nsw i32 %141, 2
%143 = srem i32 %142, 3
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 %144
%146 = load i32, ptr %145, align 4
%147 = load i32, ptr %7, align 4
%148 = sub nsw i32 %147, 1
%149 = srem i32 %148, 2
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 %150
%152 = load i32, ptr %151, align 4
%153 = call i32 @mpz_mul(i32 noundef %140, i32 noundef %146, i32 noundef %152)
%154 = load i32, ptr %8, align 4
%155 = load i32, ptr %7, align 4
%156 = sub nsw i32 %155, 2
%157 = srem i32 %156, 2
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 %158
%160 = load i32, ptr %159, align 4
%161 = load i32, ptr %8, align 4
%162 = call i32 @mpz_sub(i32 noundef %154, i32 noundef %160, i32 noundef %161)
%163 = load i32, ptr %8, align 4
%164 = call i64 @mpz_cmp_ui(i32 noundef %163, i32 noundef 0)
%165 = icmp slt i64 %164, 0
br i1 %165, label %166, label %171
166: ; preds = %139
%167 = load i32, ptr %8, align 4
%168 = load i32, ptr %8, align 4
%169 = load i32, ptr %6, align 4
%170 = call i32 @mpz_add(i32 noundef %167, i32 noundef %168, i32 noundef %169)
br label %171
171: ; preds = %166, %139
%172 = load i32, ptr %4, align 4
%173 = load i32, ptr %8, align 4
%174 = call i32 @mpz_set(i32 noundef %172, i32 noundef %173)
%175 = load i32, ptr %8, align 4
%176 = call i32 @mpz_clear(i32 noundef %175)
%177 = load i32, ptr %9, align 4
%178 = call i32 @mpz_clear(i32 noundef %177)
%179 = load i32, ptr %10, align 4
%180 = call i32 @mpz_clear(i32 noundef %179)
%181 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 0
%182 = load i32, ptr %181, align 4
%183 = call i32 @mpz_clear(i32 noundef %182)
%184 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 1
%185 = load i32, ptr %184, align 4
%186 = call i32 @mpz_clear(i32 noundef %185)
%187 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 2
%188 = load i32, ptr %187, align 4
%189 = call i32 @mpz_clear(i32 noundef %188)
%190 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 0
%191 = load i32, ptr %190, align 4
%192 = call i32 @mpz_clear(i32 noundef %191)
%193 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 1
%194 = load i32, ptr %193, align 4
%195 = call i32 @mpz_clear(i32 noundef %194)
ret void
}
declare i32 @mpz_init(i32 noundef) #1
declare i32 @mpz_set_ui(i32 noundef, i32 noundef) #1
declare i64 @mpz_cmp(i32 noundef, i32 noundef) #1
declare i32 @mpz_set(i32 noundef, i32 noundef) #1
declare i64 @mpz_cmp_ui(i32 noundef, i32 noundef) #1
declare i32 @mpz_div(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpz_mod(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpz_mul(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpz_sub(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpz_add(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpz_clear(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/tmpupbxfkgx.c'
source_filename = "/tmp/tmpupbxfkgx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"Enter ban words\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"Enter text\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call ptr @line_reading(i32 noundef 200)
store ptr %5, ptr %2, align 8
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%7 = call ptr @line_reading(i32 noundef 200)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = load ptr, ptr %2, align 8
%10 = call i32 @text_filter(ptr noundef %8, ptr noundef %9)
%11 = load ptr, ptr %3, align 8
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %11)
%13 = load ptr, ptr %2, align 8
%14 = call i32 @free(ptr noundef %13)
%15 = load ptr, ptr %3, align 8
%16 = call i32 @free(ptr noundef %15)
%17 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %17
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @line_reading(i32 noundef) #1
declare i32 @text_filter(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpupbxfkgx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"Enter ban words\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"Enter text\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call ptr @line_reading(i32 noundef 200)
store ptr %5, ptr %2, align 8
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%7 = call ptr @line_reading(i32 noundef 200)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = load ptr, ptr %2, align 8
%10 = call i32 @text_filter(ptr noundef %8, ptr noundef %9)
%11 = load ptr, ptr %3, align 8
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %11)
%13 = load ptr, ptr %2, align 8
%14 = call i32 @free(ptr noundef %13)
%15 = load ptr, ptr %3, align 8
%16 = call i32 @free(ptr noundef %15)
%17 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %17
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @line_reading(i32 noundef) #1
declare i32 @text_filter(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpru4n94d3.c'
source_filename = "/tmp/tmpru4n94d3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [2724 x i8] c"Usage : scrot [OPTIONS]... [FILE]\0A Where FILE is the target file for the screenshot.\0A If FILE is not specified, a date-stamped file will be dropped in the\0A current directory.\0A See man scrot for more details\0A -h, --help display this help and exit\0A -v, --version output version information and exit\0A -b, --border When selecting a window, grab wm border too\0A -c, --count show a countdown before taking the shot\0A -d, --delay NUM wait NUM seconds before taking a shot\0A -e, --exec APP run APP on the resulting screenshot\0A -q, --quality NUM Image quality (1-100) high value means\0A high size, low compression. Default: 75.\0A For lossless compression formats, like png,\0A low quality means high compression.\0A -m, --multidisp For multiple heads, grab shot from each\0A and join them together.\0A -s, --select interactively choose a rectnagle with the mouse\0A -w, --window interactively choose a window with the mouse\0A -t, --thumb NUM generate thumbnail too. NUM is the percentage\0A of the original size for the thumbnail to be,\0A or the geometry in percent, e.g. 50x60 or 80x20.\0A\0A SPECIAL STRINGS\0A Both the --exec and filename parameters can take format specifiers\0A that are expanded by scrot when encountered.\0A There are two types of format specifier. Characters preceded by a '%%'\0A are interpretted by strftime(2). See man strftime for examples.\0A These options may be used to refer to the current date and time.\0A The second kind are internal to scrot and are prefixed by '$'\0A The following specifiers are recognised:\0A $f image path/filename (ignored when used in the filename)\0A $m thumbnail path/filename\0A $n image name (ignored when used in the filename)\0A $s image size (bytes) (ignored when used in the filename)\0A $p image pixel size\0A $w image width\0A $h image height\0A $t image format\0A $$ prints a literal '$'\0A \\n prints a newline (ignored when used in the filename)\0A Example:\0A scrot '%%Y-%%m-%%d_$wx$h_scrot.png' -e 'mv $f ~/images/shots/'\0A Creates a file called something like 2013-10-12_1024x768_scrot.png\0A and moves it to your images directory.\0A\0AThis program is free software. See the file COPYING for licensing info.\0ACopyright Tom Gilbert 2000\0ACopyright mahkoh 2013\0AReport bugs at https://github.com/mahkoh/scrot/issues\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @help_show_usage() #0 {
%1 = load i32, ptr @stdout, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = load i32, ptr @EXIT_SUCCESS, align 4
%4 = call i32 @exit(i32 noundef %3) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpru4n94d3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [2724 x i8] c"Usage : scrot [OPTIONS]... [FILE]\0A Where FILE is the target file for the screenshot.\0A If FILE is not specified, a date-stamped file will be dropped in the\0A current directory.\0A See man scrot for more details\0A -h, --help display this help and exit\0A -v, --version output version information and exit\0A -b, --border When selecting a window, grab wm border too\0A -c, --count show a countdown before taking the shot\0A -d, --delay NUM wait NUM seconds before taking a shot\0A -e, --exec APP run APP on the resulting screenshot\0A -q, --quality NUM Image quality (1-100) high value means\0A high size, low compression. Default: 75.\0A For lossless compression formats, like png,\0A low quality means high compression.\0A -m, --multidisp For multiple heads, grab shot from each\0A and join them together.\0A -s, --select interactively choose a rectnagle with the mouse\0A -w, --window interactively choose a window with the mouse\0A -t, --thumb NUM generate thumbnail too. NUM is the percentage\0A of the original size for the thumbnail to be,\0A or the geometry in percent, e.g. 50x60 or 80x20.\0A\0A SPECIAL STRINGS\0A Both the --exec and filename parameters can take format specifiers\0A that are expanded by scrot when encountered.\0A There are two types of format specifier. Characters preceded by a '%%'\0A are interpretted by strftime(2). See man strftime for examples.\0A These options may be used to refer to the current date and time.\0A The second kind are internal to scrot and are prefixed by '$'\0A The following specifiers are recognised:\0A $f image path/filename (ignored when used in the filename)\0A $m thumbnail path/filename\0A $n image name (ignored when used in the filename)\0A $s image size (bytes) (ignored when used in the filename)\0A $p image pixel size\0A $w image width\0A $h image height\0A $t image format\0A $$ prints a literal '$'\0A \\n prints a newline (ignored when used in the filename)\0A Example:\0A scrot '%%Y-%%m-%%d_$wx$h_scrot.png' -e 'mv $f ~/images/shots/'\0A Creates a file called something like 2013-10-12_1024x768_scrot.png\0A and moves it to your images directory.\0A\0AThis program is free software. See the file COPYING for licensing info.\0ACopyright Tom Gilbert 2000\0ACopyright mahkoh 2013\0AReport bugs at https://github.com/mahkoh/scrot/issues\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @help_show_usage() #0 {
%1 = load i32, ptr @stdout, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = load i32, ptr @EXIT_SUCCESS, align 4
%4 = call i32 @exit(i32 noundef %3) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp66odwizs.c'
source_filename = "/tmp/tmp66odwizs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i8 0, align 1
@.str = private unnamed_addr constant [6 x i8] c"*%s%c\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"<i>%s</i>\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @onIorB(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i8, align 1
%10 = alloca [1000 x i8], align 16
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%11 = load ptr, ptr %5, align 8
%12 = call signext i8 @fgetc(ptr noundef %11)
store i8 %12, ptr %9, align 1
%13 = load i8, ptr %9, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 42
br i1 %15, label %16, label %25
16: ; preds = %2
%17 = load ptr, ptr %4, align 8
%18 = load ptr, ptr %5, align 8
%19 = call i32 @onBold(ptr noundef %17, ptr noundef %18)
store i32 %19, ptr %7, align 4
%20 = load i32, ptr %7, align 4
%21 = icmp ne i32 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %16
%23 = load i32, ptr %7, align 4
store i32 %23, ptr %3, align 4
br label %96
24: ; preds = %16
store i32 -1, ptr %3, align 4
br label %96
25: ; preds = %2
%26 = load i8, ptr %9, align 1
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 32
br i1 %28, label %29, label %30
29: ; preds = %25
store i32 1, ptr %8, align 4
br label %36
30: ; preds = %25
store i32 0, ptr %8, align 4
%31 = load i8, ptr %9, align 1
%32 = load i32, ptr %6, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %6, align 4
%34 = sext i32 %32 to i64
%35 = getelementptr inbounds [1000 x i8], ptr %10, i64 0, i64 %34
store i8 %31, ptr %35, align 1
br label %36
36: ; preds = %30, %29
br label %37
37: ; preds = %36
%38 = load i32, ptr %8, align 4
%39 = icmp ne i32 %38, 0
br i1 %39, label %40, label %53
40: ; preds = %37
br label %41
41: ; preds = %46, %40
%42 = load ptr, ptr %5, align 8
%43 = call signext i8 @fgetc(ptr noundef %42)
store i8 %43, ptr %9, align 1
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %44, 32
br i1 %45, label %46, label %47
46: ; preds = %41
br label %41, !llvm.loop !6
47: ; preds = %41
%48 = load i8, ptr %9, align 1
%49 = load i32, ptr %6, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %6, align 4
%51 = sext i32 %49 to i64
%52 = getelementptr inbounds [1000 x i8], ptr %10, i64 0, i64 %51
store i8 %48, ptr %52, align 1
br label %53
53: ; preds = %47, %37
br label %54
54: ; preds = %73, %53
%55 = load ptr, ptr %5, align 8
%56 = call signext i8 @fgetc(ptr noundef %55)
store i8 %56, ptr %9, align 1
%57 = sext i8 %56 to i32
%58 = load i8, ptr @EOF, align 1
%59 = sext i8 %58 to i32
%60 = icmp ne i32 %57, %59
br i1 %60, label %61, label %79
61: ; preds = %54
%62 = load i8, ptr %9, align 1
%63 = sext i8 %62 to i32
%64 = icmp eq i32 %63, 42
br i1 %64, label %72, label %65
65: ; preds = %61
%66 = load i8, ptr %9, align 1
%67 = sext i8 %66 to i32
%68 = icmp eq i32 %67, 10
br i1 %68, label %72, label %69
69: ; preds = %65
%70 = load i32, ptr %6, align 4
%71 = icmp sgt i32 %70, 999
br i1 %71, label %72, label %73
72: ; preds = %69, %65, %61
br label %79
73: ; preds = %69
%74 = load i8, ptr %9, align 1
%75 = load i32, ptr %6, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %6, align 4
%77 = sext i32 %75 to i64
%78 = getelementptr inbounds [1000 x i8], ptr %10, i64 0, i64 %77
store i8 %74, ptr %78, align 1
br label %54, !llvm.loop !8
79: ; preds = %72, %54
%80 = load i32, ptr %6, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [1000 x i8], ptr %10, i64 0, i64 %81
store i8 0, ptr %82, align 1
%83 = load i8, ptr %9, align 1
%84 = sext i8 %83 to i32
%85 = icmp ne i32 %84, 42
br i1 %85, label %86, label %92
86: ; preds = %79
%87 = load ptr, ptr %4, align 8
%88 = getelementptr inbounds [1000 x i8], ptr %10, i64 0, i64 0
%89 = load i8, ptr %9, align 1
%90 = sext i8 %89 to i32
%91 = call i32 (ptr, ptr, ptr, ...) @fprintf(ptr noundef %87, ptr noundef @.str, ptr noundef %88, i32 noundef %90)
store i32 10, ptr %3, align 4
br label %96
92: ; preds = %79
%93 = load ptr, ptr %4, align 8
%94 = getelementptr inbounds [1000 x i8], ptr %10, i64 0, i64 0
%95 = call i32 (ptr, ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef @.str.1, ptr noundef %94)
store i32 -2, ptr %3, align 4
br label %96
96: ; preds = %92, %86, %24, %22
%97 = load i32, ptr %3, align 4
ret i32 %97
}
declare signext i8 @fgetc(ptr noundef) #1
declare i32 @onBold(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp66odwizs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i8 0, align 1
@.str = private unnamed_addr constant [6 x i8] c"*%s%c\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"<i>%s</i>\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @onIorB(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i8, align 1
%10 = alloca [1000 x i8], align 16
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%11 = load ptr, ptr %5, align 8
%12 = call signext i8 @fgetc(ptr noundef %11)
store i8 %12, ptr %9, align 1
%13 = load i8, ptr %9, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 42
br i1 %15, label %16, label %25
16: ; preds = %2
%17 = load ptr, ptr %4, align 8
%18 = load ptr, ptr %5, align 8
%19 = call i32 @onBold(ptr noundef %17, ptr noundef %18)
store i32 %19, ptr %7, align 4
%20 = load i32, ptr %7, align 4
%21 = icmp ne i32 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %16
%23 = load i32, ptr %7, align 4
store i32 %23, ptr %3, align 4
br label %100
24: ; preds = %16
store i32 -1, ptr %3, align 4
br label %100
25: ; preds = %2
%26 = load i8, ptr %9, align 1
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 32
br i1 %28, label %29, label %30
29: ; preds = %25
store i32 1, ptr %8, align 4
br label %36
30: ; preds = %25
store i32 0, ptr %8, align 4
%31 = load i8, ptr %9, align 1
%32 = load i32, ptr %6, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %6, align 4
%34 = sext i32 %32 to i64
%35 = getelementptr inbounds [1000 x i8], ptr %10, i64 0, i64 %34
store i8 %31, ptr %35, align 1
br label %36
36: ; preds = %30, %29
br label %37
37: ; preds = %36
%38 = load i32, ptr %8, align 4
%39 = icmp ne i32 %38, 0
br i1 %39, label %40, label %52
40: ; preds = %37
br label %41
41: ; preds = %41, %40
%42 = load ptr, ptr %5, align 8
%43 = call signext i8 @fgetc(ptr noundef %42)
store i8 %43, ptr %9, align 1
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %44, 32
br i1 %45, label %41, label %46, !llvm.loop !6
46: ; preds = %41
%47 = load i8, ptr %9, align 1
%48 = load i32, ptr %6, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %6, align 4
%50 = sext i32 %48 to i64
%51 = getelementptr inbounds [1000 x i8], ptr %10, i64 0, i64 %50
store i8 %47, ptr %51, align 1
br label %52
52: ; preds = %46, %37
%53 = load ptr, ptr %5, align 8
%54 = call signext i8 @fgetc(ptr noundef %53)
store i8 %54, ptr %9, align 1
%55 = sext i8 %54 to i32
%56 = load i8, ptr @EOF, align 1
%57 = sext i8 %56 to i32
%58 = icmp ne i32 %55, %57
br i1 %58, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %52
br label %59
59: ; preds = %.lr.ph, %71
%60 = load i8, ptr %9, align 1
%61 = sext i8 %60 to i32
%62 = icmp eq i32 %61, 42
br i1 %62, label %70, label %63
63: ; preds = %59
%64 = load i8, ptr %9, align 1
%65 = sext i8 %64 to i32
%66 = icmp eq i32 %65, 10
br i1 %66, label %70, label %67
67: ; preds = %63
%68 = load i32, ptr %6, align 4
%69 = icmp sgt i32 %68, 999
br i1 %69, label %70, label %71
70: ; preds = %67, %63, %59
br label %83
71: ; preds = %67
%72 = load i8, ptr %9, align 1
%73 = load i32, ptr %6, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %6, align 4
%75 = sext i32 %73 to i64
%76 = getelementptr inbounds [1000 x i8], ptr %10, i64 0, i64 %75
store i8 %72, ptr %76, align 1
%77 = load ptr, ptr %5, align 8
%78 = call signext i8 @fgetc(ptr noundef %77)
store i8 %78, ptr %9, align 1
%79 = sext i8 %78 to i32
%80 = load i8, ptr @EOF, align 1
%81 = sext i8 %80 to i32
%82 = icmp ne i32 %79, %81
br i1 %82, label %59, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %71
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %52
br label %83
83: ; preds = %.loopexit, %70
%84 = load i32, ptr %6, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [1000 x i8], ptr %10, i64 0, i64 %85
store i8 0, ptr %86, align 1
%87 = load i8, ptr %9, align 1
%88 = sext i8 %87 to i32
%89 = icmp ne i32 %88, 42
br i1 %89, label %90, label %96
90: ; preds = %83
%91 = load ptr, ptr %4, align 8
%92 = getelementptr inbounds [1000 x i8], ptr %10, i64 0, i64 0
%93 = load i8, ptr %9, align 1
%94 = sext i8 %93 to i32
%95 = call i32 (ptr, ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef @.str, ptr noundef %92, i32 noundef %94)
store i32 10, ptr %3, align 4
br label %100
96: ; preds = %83
%97 = load ptr, ptr %4, align 8
%98 = getelementptr inbounds [1000 x i8], ptr %10, i64 0, i64 0
%99 = call i32 (ptr, ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef @.str.1, ptr noundef %98)
store i32 -2, ptr %3, align 4
br label %100
100: ; preds = %96, %90, %24, %22
%101 = load i32, ptr %3, align 4
ret i32 %101
}
declare signext i8 @fgetc(ptr noundef) #1
declare i32 @onBold(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpvwjimelw.c'
source_filename = "/tmp/tmpvwjimelw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EI_CLASS = dso_local global i64 0, align 8
@ELFCLASS32 = dso_local global i64 0, align 8
@EM_S390 = 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/tmpvwjimelw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EI_CLASS = dso_local global i64 0, align 8
@ELFCLASS32 = dso_local global i64 0, align 8
@EM_S390 = 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/tmpv1x9tobx.c'
source_filename = "/tmp/tmpv1x9tobx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"I=%d J=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
br label %4
4: ; preds = %19, %0
%5 = load i32, ptr %2, align 4
%6 = icmp sle i32 %5, 9
br i1 %6, label %7, label %22
7: ; preds = %4
store i32 7, ptr %3, align 4
br label %8
8: ; preds = %15, %7
%9 = load i32, ptr %3, align 4
%10 = icmp sgt i32 %9, 4
br i1 %10, label %11, label %18
11: ; preds = %8
%12 = load i32, ptr %2, align 4
%13 = load i32, ptr %3, align 4
%14 = call i32 @printf(ptr noundef @.str, i32 noundef %12, i32 noundef %13)
br label %15
15: ; preds = %11
%16 = load i32, ptr %3, align 4
%17 = add nsw i32 %16, -1
store i32 %17, ptr %3, align 4
br label %8, !llvm.loop !6
18: ; preds = %8
br label %19
19: ; preds = %18
%20 = load i32, ptr %2, align 4
%21 = add nsw i32 %20, 2
store i32 %21, ptr %2, align 4
br label %4, !llvm.loop !8
22: ; preds = %4
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv1x9tobx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"I=%d J=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp sle i32 %4, 9
br i1 %5, label %.lr.ph2, label %24
.lr.ph2: ; preds = %0
br label %6
6: ; preds = %.lr.ph2, %19
store i32 7, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp sgt i32 %7, 4
br i1 %8, label %.lr.ph, label %18
.lr.ph: ; preds = %6
br label %9
9: ; preds = %.lr.ph, %13
%10 = load i32, ptr %2, align 4
%11 = load i32, ptr %3, align 4
%12 = call i32 @printf(ptr noundef @.str, i32 noundef %10, i32 noundef %11)
br label %13
13: ; preds = %9
%14 = load i32, ptr %3, align 4
%15 = add nsw i32 %14, -1
store i32 %15, ptr %3, align 4
%16 = load i32, ptr %3, align 4
%17 = icmp sgt i32 %16, 4
br i1 %17, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %18
18: ; preds = %._crit_edge, %6
br label %19
19: ; preds = %18
%20 = load i32, ptr %2, align 4
%21 = add nsw i32 %20, 2
store i32 %21, ptr %2, align 4
%22 = load i32, ptr %2, align 4
%23 = icmp sle i32 %22, 9
br i1 %23, label %6, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %19
br label %24
24: ; preds = %._crit_edge3, %0
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmps6fwuw_7.c'
source_filename = "/tmp/tmps6fwuw_7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"Before: my pid is %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"fork\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (...) @getpid()
%4 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
%5 = call i32 (...) @fork()
store i32 %5, ptr %2, align 4
%6 = icmp eq i32 %5, -1
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 @perror(ptr noundef @.str.1)
br label %18
9: ; preds = %0
%10 = load i32, ptr %2, align 4
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %9
%13 = call i32 @child_code(i32 noundef 2)
br label %17
14: ; preds = %9
%15 = load i32, ptr %2, align 4
%16 = call i32 @parent_code(i32 noundef %15)
br label %17
17: ; preds = %14, %12
br label %18
18: ; preds = %17, %7
%19 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %19
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @getpid(...) #1
declare i32 @fork(...) #1
declare i32 @perror(ptr noundef) #1
declare i32 @child_code(i32 noundef) #1
declare i32 @parent_code(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/tmps6fwuw_7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"Before: my pid is %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"fork\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (...) @getpid()
%4 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
%5 = call i32 (...) @fork()
store i32 %5, ptr %2, align 4
%6 = icmp eq i32 %5, -1
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 @perror(ptr noundef @.str.1)
br label %18
9: ; preds = %0
%10 = load i32, ptr %2, align 4
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %9
%13 = call i32 @child_code(i32 noundef 2)
br label %17
14: ; preds = %9
%15 = load i32, ptr %2, align 4
%16 = call i32 @parent_code(i32 noundef %15)
br label %17
17: ; preds = %14, %12
br label %18
18: ; preds = %17, %7
%19 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %19
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @getpid(...) #1
declare i32 @fork(...) #1
declare i32 @perror(ptr noundef) #1
declare i32 @child_code(i32 noundef) #1
declare i32 @parent_code(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/tmpxdr_jfj2.c'
source_filename = "/tmp/tmpxdr_jfj2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [2 x i8] c"*\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
store i32 1, ptr %3, align 4
br label %6
6: ; preds = %22, %0
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp sle i32 %7, %8
br i1 %9, label %10, label %25
10: ; preds = %6
store i32 1, ptr %4, align 4
br label %11
11: ; preds = %17, %10
%12 = load i32, ptr %4, align 4
%13 = load i32, ptr %3, align 4
%14 = icmp sle i32 %12, %13
br i1 %14, label %15, label %20
15: ; preds = %11
%16 = call i32 @printf(ptr noundef @.str.1)
br label %17
17: ; preds = %15
%18 = load i32, ptr %4, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %4, align 4
br label %11, !llvm.loop !6
20: ; preds = %11
%21 = call i32 @printf(ptr noundef @.str.2)
br label %22
22: ; preds = %20
%23 = load i32, ptr %3, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %3, align 4
br label %6, !llvm.loop !8
25: ; preds = %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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxdr_jfj2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [2 x i8] c"*\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
store i32 1, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = load i32, ptr %2, align 4
%8 = icmp sle i32 %6, %7
br i1 %8, label %.lr.ph2, label %29
.lr.ph2: ; preds = %0
br label %9
9: ; preds = %.lr.ph2, %23
store i32 1, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = load i32, ptr %3, align 4
%12 = icmp sle i32 %10, %11
br i1 %12, label %.lr.ph, label %21
.lr.ph: ; preds = %9
br label %13
13: ; preds = %.lr.ph, %15
%14 = call i32 @printf(ptr noundef @.str.1)
br label %15
15: ; preds = %13
%16 = load i32, ptr %4, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %4, align 4
%18 = load i32, ptr %4, align 4
%19 = load i32, ptr %3, align 4
%20 = icmp sle i32 %18, %19
br i1 %20, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %21
21: ; preds = %._crit_edge, %9
%22 = call i32 @printf(ptr noundef @.str.2)
br label %23
23: ; preds = %21
%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 = icmp sle i32 %26, %27
br i1 %28, label %9, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %23
br label %29
29: ; preds = %._crit_edge3, %0
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpmhz_54ca.c'
source_filename = "/tmp/tmpmhz_54ca.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @network_client_free(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 @free(ptr noundef %7)
ret void
}
declare i32 @assert(i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmhz_54ca.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @network_client_free(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 @free(ptr noundef %7)
ret void
}
declare i32 @assert(i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyiagz78e.c'
source_filename = "/tmp/tmpyiagz78e.c"
target datalayout = "e-m:e-p270: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/tmpyiagz78e.c"
target datalayout = "e-m:e-p270: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/tmpp7osfxe_.c'
source_filename = "/tmp/tmpp7osfxe_.c"
target datalayout = "e-m:e-p270: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 [61 x i8] c"ERROR! Allocation failure. Probably out of memory in %s:%d.\0A\00", align 1
@.str.1 = private unnamed_addr constant [130 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/BIC-MNI/BEaST/refs/heads/master/alloc.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @alloc_2d_double(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%8 = load i32, ptr %3, align 4
%9 = call i64 @calloc(i32 noundef %8, i32 noundef 8)
%10 = inttoptr i64 %9 to ptr
store ptr %10, ptr %5, align 8
%11 = load ptr, ptr %5, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %17
13: ; preds = %2
%14 = load i32, ptr @stderr, align 4
%15 = call i32 @fprintf(i32 noundef %14, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 200)
%16 = call i32 (...) @abort() #3
unreachable
17: ; preds = %2
%18 = load i32, ptr %3, align 4
%19 = load i32, ptr %4, align 4
%20 = mul nsw i32 %18, %19
%21 = call i64 @calloc(i32 noundef %20, i32 noundef 8)
%22 = inttoptr i64 %21 to ptr
store ptr %22, ptr %6, align 8
%23 = load ptr, ptr %6, align 8
%24 = icmp eq ptr %23, null
br i1 %24, label %25, label %29
25: ; preds = %17
%26 = load i32, ptr @stderr, align 4
%27 = call i32 @fprintf(i32 noundef %26, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 202)
%28 = call i32 (...) @abort() #3
unreachable
29: ; preds = %17
%30 = load ptr, ptr %6, align 8
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 0
store ptr %30, ptr %32, align 8
store i32 1, ptr %7, align 4
br label %33
33: ; preds = %51, %29
%34 = load i32, ptr %7, align 4
%35 = load i32, ptr %3, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %54
37: ; preds = %33
%38 = load ptr, ptr %5, align 8
%39 = load i32, ptr %7, align 4
%40 = sub nsw i32 %39, 1
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds ptr, ptr %38, i64 %41
%43 = load ptr, ptr %42, align 8
%44 = load i32, ptr %4, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds double, ptr %43, i64 %45
%47 = load ptr, ptr %5, align 8
%48 = load i32, ptr %7, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds ptr, ptr %47, i64 %49
store ptr %46, ptr %50, align 8
br label %51
51: ; preds = %37
%52 = load i32, ptr %7, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %7, align 4
br label %33, !llvm.loop !6
54: ; preds = %33
%55 = load ptr, ptr %5, align 8
ret ptr %55
}
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp7osfxe_.c"
target datalayout = "e-m:e-p270: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 [61 x i8] c"ERROR! Allocation failure. Probably out of memory in %s:%d.\0A\00", align 1
@.str.1 = private unnamed_addr constant [130 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/BIC-MNI/BEaST/refs/heads/master/alloc.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @alloc_2d_double(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%8 = load i32, ptr %3, align 4
%9 = call i64 @calloc(i32 noundef %8, i32 noundef 8)
%10 = inttoptr i64 %9 to ptr
store ptr %10, ptr %5, align 8
%11 = load ptr, ptr %5, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %17
13: ; preds = %2
%14 = load i32, ptr @stderr, align 4
%15 = call i32 @fprintf(i32 noundef %14, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 200)
%16 = call i32 (...) @abort() #3
unreachable
17: ; preds = %2
%18 = load i32, ptr %3, align 4
%19 = load i32, ptr %4, align 4
%20 = mul nsw i32 %18, %19
%21 = call i64 @calloc(i32 noundef %20, i32 noundef 8)
%22 = inttoptr i64 %21 to ptr
store ptr %22, ptr %6, align 8
%23 = load ptr, ptr %6, align 8
%24 = icmp eq ptr %23, null
br i1 %24, label %25, label %29
25: ; preds = %17
%26 = load i32, ptr @stderr, align 4
%27 = call i32 @fprintf(i32 noundef %26, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 202)
%28 = call i32 (...) @abort() #3
unreachable
29: ; preds = %17
%30 = load ptr, ptr %6, align 8
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 0
store ptr %30, ptr %32, align 8
store i32 1, ptr %7, align 4
%33 = load i32, ptr %7, align 4
%34 = load i32, ptr %3, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %.lr.ph, label %56
.lr.ph: ; preds = %29
br label %36
36: ; preds = %.lr.ph, %50
%37 = load ptr, ptr %5, align 8
%38 = load i32, ptr %7, align 4
%39 = sub nsw i32 %38, 1
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds ptr, ptr %37, i64 %40
%42 = load ptr, ptr %41, align 8
%43 = load i32, ptr %4, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds double, ptr %42, i64 %44
%46 = load ptr, ptr %5, align 8
%47 = load i32, ptr %7, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds ptr, ptr %46, i64 %48
store ptr %45, ptr %49, align 8
br label %50
50: ; preds = %36
%51 = load i32, ptr %7, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %7, align 4
%53 = load i32, ptr %7, align 4
%54 = load i32, ptr %3, align 4
%55 = icmp slt i32 %53, %54
br i1 %55, label %36, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %50
br label %56
56: ; preds = %._crit_edge, %29
%57 = load ptr, ptr %5, align 8
ret ptr %57
}
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpf1fgoqzw.c'
source_filename = "/tmp/tmpf1fgoqzw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cesetfldcolr(double noundef %0, double noundef %1, double noundef %2, double noundef %3, i8 noundef signext %4, ptr noundef %5) #0 {
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca i8, align 1
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca float, align 4
store double %0, ptr %7, align 8
store double %1, ptr %8, align 8
store double %2, ptr %9, align 8
store double %3, ptr %10, align 8
store i8 %4, ptr %11, align 1
store ptr %5, ptr %12, align 8
%15 = load double, ptr %10, align 8
%16 = fcmp olt double %15, 0x3BC79CA10C924223
br i1 %16, label %17, label %19
17: ; preds = %6
%18 = load ptr, ptr %12, align 8
store i32 1400, ptr %18, align 4
br label %67
19: ; preds = %6
%20 = load double, ptr %10, align 8
%21 = fdiv double 2.530000e+02, %20
%22 = fptrunc double %21 to float
store float %22, ptr %14, align 4
store i32 0, ptr %13, align 4
%23 = load i8, ptr %11, align 1
%24 = icmp ne i8 %23, 0
br i1 %24, label %25, label %39
25: ; preds = %19
%26 = load double, ptr %7, align 8
%27 = load double, ptr %8, align 8
%28 = fcmp oge double %26, %27
br i1 %28, label %29, label %38
29: ; preds = %25
%30 = load double, ptr %7, align 8
%31 = call float @log10(double noundef %30)
%32 = load double, ptr %8, align 8
%33 = call float @log10(double noundef %32)
%34 = fsub float %31, %33
%35 = load float, ptr %14, align 4
%36 = fmul float %34, %35
%37 = fptosi float %36 to i32
store i32 %37, ptr %13, align 4
br label %38
38: ; preds = %29, %25
br label %47
39: ; preds = %19
%40 = load double, ptr %7, align 8
%41 = load double, ptr %8, align 8
%42 = fsub double %40, %41
%43 = load float, ptr %14, align 4
%44 = fpext float %43 to double
%45 = fmul double %42, %44
%46 = fptosi double %45 to i32
store i32 %46, ptr %13, align 4
br label %47
47: ; preds = %39, %38
%48 = load i32, ptr %13, align 4
%49 = add nsw i32 %48, 400
store i32 %49, ptr %13, align 4
%50 = load i32, ptr %13, align 4
%51 = icmp slt i32 %50, 300
br i1 %51, label %52, label %53
52: ; preds = %47
store i32 300, ptr %13, align 4
br label %53
53: ; preds = %52, %47
%54 = load double, ptr %7, align 8
%55 = load double, ptr %8, align 8
%56 = fcmp olt double %54, %55
br i1 %56, label %57, label %58
57: ; preds = %53
store i32 300, ptr %13, align 4
br label %58
58: ; preds = %57, %53
%59 = load double, ptr %7, align 8
%60 = load double, ptr %9, align 8
%61 = fcmp ogt double %59, %60
br i1 %61, label %62, label %63
62: ; preds = %58
store i32 655, ptr %13, align 4
br label %63
63: ; preds = %62, %58
%64 = load i32, ptr %13, align 4
%65 = add nsw i32 %64, 1000
%66 = load ptr, ptr %12, align 8
store i32 %65, ptr %66, align 4
br label %67
67: ; preds = %63, %17
ret void
}
declare float @log10(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf1fgoqzw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cesetfldcolr(double noundef %0, double noundef %1, double noundef %2, double noundef %3, i8 noundef signext %4, ptr noundef %5) #0 {
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca i8, align 1
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca float, align 4
store double %0, ptr %7, align 8
store double %1, ptr %8, align 8
store double %2, ptr %9, align 8
store double %3, ptr %10, align 8
store i8 %4, ptr %11, align 1
store ptr %5, ptr %12, align 8
%15 = load double, ptr %10, align 8
%16 = fcmp olt double %15, 0x3BC79CA10C924223
br i1 %16, label %17, label %19
17: ; preds = %6
%18 = load ptr, ptr %12, align 8
store i32 1400, ptr %18, align 4
br label %67
19: ; preds = %6
%20 = load double, ptr %10, align 8
%21 = fdiv double 2.530000e+02, %20
%22 = fptrunc double %21 to float
store float %22, ptr %14, align 4
store i32 0, ptr %13, align 4
%23 = load i8, ptr %11, align 1
%24 = icmp ne i8 %23, 0
br i1 %24, label %25, label %39
25: ; preds = %19
%26 = load double, ptr %7, align 8
%27 = load double, ptr %8, align 8
%28 = fcmp oge double %26, %27
br i1 %28, label %29, label %38
29: ; preds = %25
%30 = load double, ptr %7, align 8
%31 = call float @log10(double noundef %30)
%32 = load double, ptr %8, align 8
%33 = call float @log10(double noundef %32)
%34 = fsub float %31, %33
%35 = load float, ptr %14, align 4
%36 = fmul float %34, %35
%37 = fptosi float %36 to i32
store i32 %37, ptr %13, align 4
br label %38
38: ; preds = %29, %25
br label %47
39: ; preds = %19
%40 = load double, ptr %7, align 8
%41 = load double, ptr %8, align 8
%42 = fsub double %40, %41
%43 = load float, ptr %14, align 4
%44 = fpext float %43 to double
%45 = fmul double %42, %44
%46 = fptosi double %45 to i32
store i32 %46, ptr %13, align 4
br label %47
47: ; preds = %39, %38
%48 = load i32, ptr %13, align 4
%49 = add nsw i32 %48, 400
store i32 %49, ptr %13, align 4
%50 = load i32, ptr %13, align 4
%51 = icmp slt i32 %50, 300
br i1 %51, label %52, label %53
52: ; preds = %47
store i32 300, ptr %13, align 4
br label %53
53: ; preds = %52, %47
%54 = load double, ptr %7, align 8
%55 = load double, ptr %8, align 8
%56 = fcmp olt double %54, %55
br i1 %56, label %57, label %58
57: ; preds = %53
store i32 300, ptr %13, align 4
br label %58
58: ; preds = %57, %53
%59 = load double, ptr %7, align 8
%60 = load double, ptr %9, align 8
%61 = fcmp ogt double %59, %60
br i1 %61, label %62, label %63
62: ; preds = %58
store i32 655, ptr %13, align 4
br label %63
63: ; preds = %62, %58
%64 = load i32, ptr %13, align 4
%65 = add nsw i32 %64, 1000
%66 = load ptr, ptr %12, align 8
store i32 %65, ptr %66, align 4
br label %67
67: ; preds = %63, %17
ret void
}
declare float @log10(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpl7g3w5xu.c'
source_filename = "/tmp/tmpl7g3w5xu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [9 x i8] c"test.txt\00", align 1
@S_IRUSR = dso_local global i32 0, align 4
@S_IRGRP = dso_local global i32 0, align 4
@S_IROTH = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [21 x i8] c"fail to change model\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"test2.txt\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"fail to stat\00", align 1
@S_IRWXU = dso_local global i32 0, align 4
@S_IRWXG = dso_local global i32 0, align 4
@S_IRWXO = 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
%3 = alloca %struct.stat, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = load i32, ptr @S_IRUSR, align 4
%6 = load i32, ptr @S_IRGRP, align 4
%7 = or i32 %5, %6
%8 = load i32, ptr @S_IROTH, align 4
%9 = or i32 %7, %8
%10 = call i32 @chmod(ptr noundef @.str, i32 noundef %9)
%11 = icmp eq i32 %10, -1
br i1 %11, label %12, label %15
12: ; preds = %0
%13 = call i32 @perror(ptr noundef @.str.1)
%14 = call i32 @exit(i32 noundef 1) #3
unreachable
15: ; preds = %0
%16 = call i32 @stat(ptr noundef @.str.2, ptr noundef %3)
%17 = icmp eq i32 %16, -1
br i1 %17, label %18, label %21
18: ; preds = %15
%19 = call i32 @perror(ptr noundef @.str.3)
%20 = call i32 @exit(i32 noundef 1) #3
unreachable
21: ; preds = %15
%22 = getelementptr inbounds %struct.stat, ptr %3, i32 0, i32 0
%23 = load i32, ptr %22, align 4
store i32 %23, ptr %4, align 4
%24 = load i32, ptr @S_IRWXU, align 4
%25 = xor i32 %24, -1
%26 = load i32, ptr @S_IRWXG, align 4
%27 = xor i32 %26, -1
%28 = and i32 %25, %27
%29 = load i32, ptr @S_IRWXO, align 4
%30 = xor i32 %29, -1
%31 = and i32 %28, %30
%32 = load i32, ptr %4, align 4
%33 = and i32 %32, %31
store i32 %33, ptr %4, align 4
%34 = load i32, ptr @S_IRUSR, align 4
%35 = load i32, ptr @S_IRGRP, align 4
%36 = or i32 %34, %35
%37 = load i32, ptr @S_IROTH, align 4
%38 = or i32 %36, %37
%39 = load i32, ptr %4, align 4
%40 = or i32 %39, %38
store i32 %40, ptr %4, align 4
%41 = load i32, ptr %4, align 4
%42 = call i32 @chmod(ptr noundef @.str.2, i32 noundef %41)
%43 = icmp eq i32 %42, -1
br i1 %43, label %44, label %47
44: ; preds = %21
%45 = call i32 @perror(ptr noundef @.str.1)
%46 = call i32 @exit(i32 noundef 1) #3
unreachable
47: ; preds = %21
ret i32 0
}
declare i32 @chmod(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @stat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpl7g3w5xu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [9 x i8] c"test.txt\00", align 1
@S_IRUSR = dso_local global i32 0, align 4
@S_IRGRP = dso_local global i32 0, align 4
@S_IROTH = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [21 x i8] c"fail to change model\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"test2.txt\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"fail to stat\00", align 1
@S_IRWXU = dso_local global i32 0, align 4
@S_IRWXG = dso_local global i32 0, align 4
@S_IRWXO = 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
%3 = alloca %struct.stat, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = load i32, ptr @S_IRUSR, align 4
%6 = load i32, ptr @S_IRGRP, align 4
%7 = or i32 %5, %6
%8 = load i32, ptr @S_IROTH, align 4
%9 = or i32 %7, %8
%10 = call i32 @chmod(ptr noundef @.str, i32 noundef %9)
%11 = icmp eq i32 %10, -1
br i1 %11, label %12, label %15
12: ; preds = %0
%13 = call i32 @perror(ptr noundef @.str.1)
%14 = call i32 @exit(i32 noundef 1) #3
unreachable
15: ; preds = %0
%16 = call i32 @stat(ptr noundef @.str.2, ptr noundef %3)
%17 = icmp eq i32 %16, -1
br i1 %17, label %18, label %21
18: ; preds = %15
%19 = call i32 @perror(ptr noundef @.str.3)
%20 = call i32 @exit(i32 noundef 1) #3
unreachable
21: ; preds = %15
%22 = getelementptr inbounds %struct.stat, ptr %3, i32 0, i32 0
%23 = load i32, ptr %22, align 4
store i32 %23, ptr %4, align 4
%24 = load i32, ptr @S_IRWXU, align 4
%25 = xor i32 %24, -1
%26 = load i32, ptr @S_IRWXG, align 4
%27 = xor i32 %26, -1
%28 = and i32 %25, %27
%29 = load i32, ptr @S_IRWXO, align 4
%30 = xor i32 %29, -1
%31 = and i32 %28, %30
%32 = load i32, ptr %4, align 4
%33 = and i32 %32, %31
store i32 %33, ptr %4, align 4
%34 = load i32, ptr @S_IRUSR, align 4
%35 = load i32, ptr @S_IRGRP, align 4
%36 = or i32 %34, %35
%37 = load i32, ptr @S_IROTH, align 4
%38 = or i32 %36, %37
%39 = load i32, ptr %4, align 4
%40 = or i32 %39, %38
store i32 %40, ptr %4, align 4
%41 = load i32, ptr %4, align 4
%42 = call i32 @chmod(ptr noundef @.str.2, i32 noundef %41)
%43 = icmp eq i32 %42, -1
br i1 %43, label %44, label %47
44: ; preds = %21
%45 = call i32 @perror(ptr noundef @.str.1)
%46 = call i32 @exit(i32 noundef 1) #3
unreachable
47: ; preds = %21
ret i32 0
}
declare i32 @chmod(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @stat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpzr970881.c'
source_filename = "/tmp/tmpzr970881.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_CREAT = dso_local global i32 0, align 4
@O_EXCL = dso_local global i32 0, align 4
@O_RDWR = dso_local global i32 0, align 4
@S_IREAD = dso_local global i32 0, align 4
@S_IWRITE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [33 x i8] c"\0A [!] Unexpected SHM Error - %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [33 x i8] c"\0A [X] Unexpected SHM State - %s\0A\00", align 1
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@S_IRGRP = dso_local global i32 0, align 4
@S_IWGRP = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @kattach_thedawn_shm_open(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%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 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%7 = load ptr, ptr %3, align 8
%8 = load i32, ptr @O_CREAT, align 4
%9 = load i32, ptr @O_EXCL, align 4
%10 = or i32 %8, %9
%11 = load i32, ptr @O_RDWR, align 4
%12 = or i32 %10, %11
%13 = load i32, ptr @S_IREAD, align 4
%14 = load i32, ptr @S_IWRITE, align 4
%15 = or i32 %13, %14
%16 = call i32 @shm_open(ptr noundef %7, i32 noundef %12, i32 noundef %15)
store i32 %16, ptr %4, align 4
%17 = icmp sgt i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %1
store i32 1, ptr %5, align 4
br label %33
19: ; preds = %1
%20 = load ptr, ptr %3, align 8
%21 = load i32, ptr @O_CREAT, align 4
%22 = load i32, ptr @O_RDWR, align 4
%23 = or i32 %21, %22
%24 = load i32, ptr @S_IREAD, align 4
%25 = load i32, ptr @S_IWRITE, align 4
%26 = or i32 %24, %25
%27 = call i32 @shm_open(ptr noundef %20, i32 noundef %23, i32 noundef %26)
store i32 %27, ptr %4, align 4
%28 = icmp slt i32 %27, 0
br i1 %28, label %29, label %32
29: ; preds = %19
%30 = load ptr, ptr %3, align 8
%31 = call i32 @printf(ptr noundef @.str, ptr noundef %30)
store i32 0, ptr %2, align 4
br label %52
32: ; preds = %19
br label %33
33: ; preds = %32, %18
%34 = load i32, ptr %5, align 4
%35 = icmp ne i32 %34, 0
br i1 %35, label %39, label %36
36: ; preds = %33
%37 = load ptr, ptr %3, align 8
%38 = call i32 @printf(ptr noundef @.str.1, ptr noundef %37)
br label %39
39: ; preds = %36, %33
%40 = load i32, ptr %4, align 4
%41 = call i32 @fchown(i32 noundef %40, i32 noundef 0, i32 noundef 77)
store i32 %41, ptr %6, align 4
%42 = load i32, ptr %4, align 4
%43 = load i32, ptr @S_IRUSR, align 4
%44 = load i32, ptr @S_IWUSR, align 4
%45 = or i32 %43, %44
%46 = load i32, ptr @S_IRGRP, align 4
%47 = or i32 %45, %46
%48 = load i32, ptr @S_IWGRP, align 4
%49 = or i32 %47, %48
%50 = call i32 @fchmod(i32 noundef %42, i32 noundef %49)
store i32 %50, ptr %6, align 4
%51 = load i32, ptr %4, align 4
store i32 %51, ptr %2, align 4
br label %52
52: ; preds = %39, %29
%53 = load i32, ptr %2, align 4
ret i32 %53
}
declare i32 @shm_open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @fchown(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fchmod(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/tmpzr970881.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_CREAT = dso_local global i32 0, align 4
@O_EXCL = dso_local global i32 0, align 4
@O_RDWR = dso_local global i32 0, align 4
@S_IREAD = dso_local global i32 0, align 4
@S_IWRITE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [33 x i8] c"\0A [!] Unexpected SHM Error - %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [33 x i8] c"\0A [X] Unexpected SHM State - %s\0A\00", align 1
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@S_IRGRP = dso_local global i32 0, align 4
@S_IWGRP = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @kattach_thedawn_shm_open(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%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 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%7 = load ptr, ptr %3, align 8
%8 = load i32, ptr @O_CREAT, align 4
%9 = load i32, ptr @O_EXCL, align 4
%10 = or i32 %8, %9
%11 = load i32, ptr @O_RDWR, align 4
%12 = or i32 %10, %11
%13 = load i32, ptr @S_IREAD, align 4
%14 = load i32, ptr @S_IWRITE, align 4
%15 = or i32 %13, %14
%16 = call i32 @shm_open(ptr noundef %7, i32 noundef %12, i32 noundef %15)
store i32 %16, ptr %4, align 4
%17 = icmp sgt i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %1
store i32 1, ptr %5, align 4
br label %33
19: ; preds = %1
%20 = load ptr, ptr %3, align 8
%21 = load i32, ptr @O_CREAT, align 4
%22 = load i32, ptr @O_RDWR, align 4
%23 = or i32 %21, %22
%24 = load i32, ptr @S_IREAD, align 4
%25 = load i32, ptr @S_IWRITE, align 4
%26 = or i32 %24, %25
%27 = call i32 @shm_open(ptr noundef %20, i32 noundef %23, i32 noundef %26)
store i32 %27, ptr %4, align 4
%28 = icmp slt i32 %27, 0
br i1 %28, label %29, label %32
29: ; preds = %19
%30 = load ptr, ptr %3, align 8
%31 = call i32 @printf(ptr noundef @.str, ptr noundef %30)
store i32 0, ptr %2, align 4
br label %52
32: ; preds = %19
br label %33
33: ; preds = %32, %18
%34 = load i32, ptr %5, align 4
%35 = icmp ne i32 %34, 0
br i1 %35, label %39, label %36
36: ; preds = %33
%37 = load ptr, ptr %3, align 8
%38 = call i32 @printf(ptr noundef @.str.1, ptr noundef %37)
br label %39
39: ; preds = %36, %33
%40 = load i32, ptr %4, align 4
%41 = call i32 @fchown(i32 noundef %40, i32 noundef 0, i32 noundef 77)
store i32 %41, ptr %6, align 4
%42 = load i32, ptr %4, align 4
%43 = load i32, ptr @S_IRUSR, align 4
%44 = load i32, ptr @S_IWUSR, align 4
%45 = or i32 %43, %44
%46 = load i32, ptr @S_IRGRP, align 4
%47 = or i32 %45, %46
%48 = load i32, ptr @S_IWGRP, align 4
%49 = or i32 %47, %48
%50 = call i32 @fchmod(i32 noundef %42, i32 noundef %49)
store i32 %50, ptr %6, align 4
%51 = load i32, ptr %4, align 4
store i32 %51, ptr %2, align 4
br label %52
52: ; preds = %39, %29
%53 = load i32, ptr %2, align 4
ret i32 %53
}
declare i32 @shm_open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @fchown(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fchmod(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/tmpluozmma9.c'
source_filename = "/tmp/tmpluozmma9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOENT = 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 @_unlink(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @ENOENT, align 4
store i32 %3, ptr @errno, align 4
ret i32 -1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpluozmma9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOENT = 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 @_unlink(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @ENOENT, align 4
store i32 %3, ptr @errno, align 4
ret i32 -1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp80aff6dk.c'
source_filename = "/tmp/tmp80aff6dk.c"
target datalayout = "e-m:e-p270: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/tmp80aff6dk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.