llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmpyhktwp_u.c'
source_filename = "/tmp/tmpyhktwp_u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 the number\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"Bit is set\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"Bit is clear\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 @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%5 = load i32, ptr %2, align 4
%6 = and i32 %5, 524288
%7 = icmp eq i32 %6, 1
br i1 %7, label %8, label %10
8: ; preds = %0
%9 = call i32 @printf(ptr noundef @.str.2)
br label %12
10: ; preds = %0
%11 = call i32 @printf(ptr noundef @.str.3)
br label %12
12: ; preds = %10, %8
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyhktwp_u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 the number\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"Bit is set\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"Bit is clear\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 @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%5 = load i32, ptr %2, align 4
%6 = and i32 %5, 524288
%7 = icmp eq i32 %6, 1
br i1 %7, label %8, label %10
8: ; preds = %0
%9 = call i32 @printf(ptr noundef @.str.2)
br label %12
10: ; preds = %0
%11 = call i32 @printf(ptr noundef @.str.3)
br label %12
12: ; preds = %10, %8
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphesu6uxj.c'
source_filename = "/tmp/tmphesu6uxj.c"
target datalayout = "e-m:e-p270: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/tmphesu6uxj.c"
target datalayout = "e-m:e-p270: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/tmpi8qdm44v.c'
source_filename = "/tmp/tmpi8qdm44v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @generate_output_filename(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%9 = load ptr, ptr %3, align 8
%10 = call i64 @strlen(ptr noundef %9)
store i64 %10, ptr %6, align 8
%11 = load i64, ptr %6, align 8
%12 = load ptr, ptr %4, align 8
%13 = call i64 @strlen(ptr noundef %12)
%14 = add i64 %11, %13
%15 = add i64 %14, 1
%16 = mul i64 1, %15
%17 = trunc i64 %16 to i32
%18 = call i64 @malloc(i32 noundef %17)
%19 = inttoptr i64 %18 to ptr
store ptr %19, ptr %5, align 8
%20 = load ptr, ptr %5, align 8
%21 = icmp ne ptr %20, null
br i1 %21, label %22, label %46
22: ; preds = %2
%23 = load ptr, ptr %3, align 8
%24 = call ptr @strrchr(ptr noundef %23, i8 noundef signext 46)
store ptr %24, ptr %8, align 8
%25 = load ptr, ptr %8, align 8
%26 = icmp ne ptr %25, null
br i1 %26, label %27, label %45
27: ; preds = %22
%28 = load ptr, ptr %8, align 8
%29 = load ptr, ptr %3, align 8
%30 = ptrtoint ptr %28 to i64
%31 = ptrtoint ptr %29 to i64
%32 = sub i64 %30, %31
store i64 %32, ptr %7, align 8
%33 = load ptr, ptr %5, align 8
%34 = load ptr, ptr %3, align 8
%35 = load i64, ptr %7, align 8
%36 = call i32 @strncpy(ptr noundef %33, ptr noundef %34, i64 noundef %35)
%37 = load ptr, ptr %5, align 8
%38 = load i64, ptr %7, align 8
%39 = getelementptr inbounds i8, ptr %37, i64 %38
%40 = load ptr, ptr %4, align 8
%41 = call i32 @strcpy(ptr noundef %39, ptr noundef %40)
%42 = load ptr, ptr %5, align 8
%43 = load ptr, ptr %8, align 8
%44 = call i32 @strcat(ptr noundef %42, ptr noundef %43)
br label %45
45: ; preds = %27, %22
br label %46
46: ; preds = %45, %2
%47 = load ptr, ptr %5, align 8
ret ptr %47
}
declare i64 @strlen(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi8qdm44v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @generate_output_filename(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%9 = load ptr, ptr %3, align 8
%10 = call i64 @strlen(ptr noundef %9)
store i64 %10, ptr %6, align 8
%11 = load i64, ptr %6, align 8
%12 = load ptr, ptr %4, align 8
%13 = call i64 @strlen(ptr noundef %12)
%14 = add i64 %11, %13
%15 = add i64 %14, 1
%16 = mul i64 1, %15
%17 = trunc i64 %16 to i32
%18 = call i64 @malloc(i32 noundef %17)
%19 = inttoptr i64 %18 to ptr
store ptr %19, ptr %5, align 8
%20 = load ptr, ptr %5, align 8
%21 = icmp ne ptr %20, null
br i1 %21, label %22, label %46
22: ; preds = %2
%23 = load ptr, ptr %3, align 8
%24 = call ptr @strrchr(ptr noundef %23, i8 noundef signext 46)
store ptr %24, ptr %8, align 8
%25 = load ptr, ptr %8, align 8
%26 = icmp ne ptr %25, null
br i1 %26, label %27, label %45
27: ; preds = %22
%28 = load ptr, ptr %8, align 8
%29 = load ptr, ptr %3, align 8
%30 = ptrtoint ptr %28 to i64
%31 = ptrtoint ptr %29 to i64
%32 = sub i64 %30, %31
store i64 %32, ptr %7, align 8
%33 = load ptr, ptr %5, align 8
%34 = load ptr, ptr %3, align 8
%35 = load i64, ptr %7, align 8
%36 = call i32 @strncpy(ptr noundef %33, ptr noundef %34, i64 noundef %35)
%37 = load ptr, ptr %5, align 8
%38 = load i64, ptr %7, align 8
%39 = getelementptr inbounds i8, ptr %37, i64 %38
%40 = load ptr, ptr %4, align 8
%41 = call i32 @strcpy(ptr noundef %39, ptr noundef %40)
%42 = load ptr, ptr %5, align 8
%43 = load ptr, ptr %8, align 8
%44 = call i32 @strcat(ptr noundef %42, ptr noundef %43)
br label %45
45: ; preds = %27, %22
br label %46
46: ; preds = %45, %2
%47 = load ptr, ptr %5, align 8
ret ptr %47
}
declare i64 @strlen(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpu9d8up46.c'
source_filename = "/tmp/tmpu9d8up46.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@FNM_PERIOD = dso_local global i32 0, align 4
@FNM_NOMATCH = dso_local global i32 0, align 4
@FNM_PATHNAME = dso_local global i32 0, align 4
@FNM_NOESCAPE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fnmatch(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 i32, align 4
%10 = alloca i8, align 1
%11 = alloca i8, align 1
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 1, ptr %9, align 4
br label %14
14: ; preds = %151, %3
%15 = load ptr, ptr %5, align 8
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %24
19: ; preds = %14
%20 = load ptr, ptr %6, align 8
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 0
br label %24
24: ; preds = %19, %14
%25 = phi i1 [ false, %14 ], [ %23, %19 ]
br i1 %25, label %26, label %154
26: ; preds = %24
%27 = load ptr, ptr %5, align 8
%28 = load i8, ptr %27, align 1
store i8 %28, ptr %10, align 1
%29 = load ptr, ptr %6, align 8
%30 = load i8, ptr %29, align 1
store i8 %30, ptr %11, align 1
%31 = load i32, ptr %9, align 4
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %51
33: ; preds = %26
%34 = load i8, ptr %11, align 1
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 46
br i1 %36, label %37, label %51
37: ; preds = %33
%38 = load i32, ptr %7, align 4
%39 = load i32, ptr @FNM_PERIOD, align 4
%40 = and i32 %38, %39
%41 = icmp ne i32 %40, 0
br i1 %41, label %42, label %51
42: ; preds = %37
%43 = load i8, ptr %10, align 1
%44 = sext i8 %43 to i32
%45 = icmp ne i32 %44, 46
br i1 %45, label %46, label %48
46: ; preds = %42
%47 = load i32, ptr @FNM_NOMATCH, align 4
store i32 %47, ptr %4, align 4
br label %165
48: ; preds = %42
%49 = load ptr, ptr %6, align 8
%50 = getelementptr inbounds i8, ptr %49, i32 1
store ptr %50, ptr %6, align 8
br label %151
51: ; preds = %37, %33, %26
%52 = load i8, ptr %11, align 1
%53 = sext i8 %52 to i32
%54 = icmp eq i32 %53, 47
br i1 %54, label %55, label %69
55: ; preds = %51
%56 = load i32, ptr %7, align 4
%57 = load i32, ptr @FNM_PATHNAME, align 4
%58 = and i32 %56, %57
%59 = icmp ne i32 %58, 0
br i1 %59, label %60, label %69
60: ; preds = %55
%61 = load i8, ptr %10, align 1
%62 = sext i8 %61 to i32
%63 = icmp ne i32 %62, 47
br i1 %63, label %64, label %66
64: ; preds = %60
%65 = load i32, ptr @FNM_NOMATCH, align 4
store i32 %65, ptr %4, align 4
br label %165
66: ; preds = %60
store i32 1, ptr %9, align 4
%67 = load ptr, ptr %6, align 8
%68 = getelementptr inbounds i8, ptr %67, i32 1
store ptr %68, ptr %6, align 8
br label %151
69: ; preds = %55, %51
store i32 0, ptr %9, align 4
br label %70
70: ; preds = %69
%71 = load i32, ptr %8, align 4
%72 = icmp ne i32 %71, 0
br i1 %72, label %80, label %73
73: ; preds = %70
%74 = load i8, ptr %10, align 1
%75 = sext i8 %74 to i32
%76 = icmp eq i32 %75, 63
br i1 %76, label %77, label %80
77: ; preds = %73
%78 = load ptr, ptr %6, align 8
%79 = getelementptr inbounds i8, ptr %78, i32 1
store ptr %79, ptr %6, align 8
br label %151
80: ; preds = %73, %70
%81 = load i32, ptr %8, align 4
%82 = icmp ne i32 %81, 0
br i1 %82, label %93, label %83
83: ; preds = %80
%84 = load i8, ptr %10, align 1
%85 = sext i8 %84 to i32
%86 = icmp eq i32 %85, 92
br i1 %86, label %87, label %93
87: ; preds = %83
%88 = load i32, ptr %7, align 4
%89 = load i32, ptr @FNM_NOESCAPE, align 4
%90 = and i32 %88, %89
%91 = icmp ne i32 %90, 0
br i1 %91, label %93, label %92
92: ; preds = %87
store i32 1, ptr %8, align 4
br label %151
93: ; preds = %87, %83, %80
%94 = load i32, ptr %8, align 4
%95 = icmp ne i32 %94, 0
br i1 %95, label %121, label %96
96: ; preds = %93
%97 = load i8, ptr %10, align 1
%98 = sext i8 %97 to i32
%99 = icmp eq i32 %98, 91
br i1 %99, label %100, label %121
100: ; preds = %96
%101 = load ptr, ptr %5, align 8
%102 = load i8, ptr %11, align 1
%103 = load i32, ptr %7, align 4
%104 = call i32 @bracket(ptr noundef %101, i8 noundef signext %102, i32 noundef %103)
store i32 %104, ptr %12, align 4
%105 = load i32, ptr %12, align 4
%106 = icmp ne i32 %105, 0
br i1 %106, label %109, label %107
107: ; preds = %100
%108 = load i32, ptr @FNM_NOMATCH, align 4
store i32 %108, ptr %4, align 4
br label %165
109: ; preds = %100
%110 = load i32, ptr %12, align 4
%111 = icmp sgt i32 %110, 0
br i1 %111, label %112, label %119
112: ; preds = %109
%113 = load i32, ptr %12, align 4
%114 = load ptr, ptr %5, align 8
%115 = sext i32 %113 to i64
%116 = getelementptr inbounds i8, ptr %114, i64 %115
store ptr %116, ptr %5, align 8
%117 = load ptr, ptr %6, align 8
%118 = getelementptr inbounds i8, ptr %117, i32 1
store ptr %118, ptr %6, align 8
br label %151
119: ; preds = %109
br label %120
120: ; preds = %119
br label %121
121: ; preds = %120, %96, %93
%122 = load i32, ptr %8, align 4
%123 = icmp ne i32 %122, 0
br i1 %123, label %140, label %124
124: ; preds = %121
%125 = load i8, ptr %10, align 1
%126 = sext i8 %125 to i32
%127 = icmp eq i32 %126, 42
br i1 %127, label %128, label %140
128: ; preds = %124
%129 = load ptr, ptr %5, align 8
%130 = getelementptr inbounds i8, ptr %129, i64 1
%131 = load ptr, ptr %6, align 8
%132 = load i32, ptr %7, align 4
%133 = load i32, ptr %9, align 4
%134 = call i32 @asterisk(ptr noundef %130, ptr noundef %131, i32 noundef %132, i32 noundef %133)
store i32 %134, ptr %13, align 4
%135 = load i32, ptr %13, align 4
%136 = icmp ne i32 %135, 0
br i1 %136, label %138, label %137
137: ; preds = %128
store i32 0, ptr %4, align 4
br label %165
138: ; preds = %128
%139 = load i32, ptr @FNM_NOMATCH, align 4
store i32 %139, ptr %4, align 4
br label %165
140: ; preds = %124, %121
%141 = load i8, ptr %10, align 1
%142 = sext i8 %141 to i32
%143 = load i8, ptr %11, align 1
%144 = sext i8 %143 to i32
%145 = icmp ne i32 %142, %144
br i1 %145, label %146, label %148
146: ; preds = %140
%147 = load i32, ptr @FNM_NOMATCH, align 4
store i32 %147, ptr %4, align 4
br label %165
148: ; preds = %140
%149 = load ptr, ptr %6, align 8
%150 = getelementptr inbounds i8, ptr %149, i32 1
store ptr %150, ptr %6, align 8
store i32 0, ptr %8, align 4
br label %151
151: ; preds = %148, %112, %92, %77, %66, %48
%152 = load ptr, ptr %5, align 8
%153 = getelementptr inbounds i8, ptr %152, i32 1
store ptr %153, ptr %5, align 8
br label %14, !llvm.loop !6
154: ; preds = %24
%155 = load ptr, ptr %6, align 8
%156 = load i8, ptr %155, align 1
%157 = icmp ne i8 %156, 0
br i1 %157, label %163, label %158
158: ; preds = %154
%159 = load ptr, ptr %5, align 8
%160 = load i8, ptr %159, align 1
%161 = icmp ne i8 %160, 0
br i1 %161, label %163, label %162
162: ; preds = %158
store i32 0, ptr %4, align 4
br label %165
163: ; preds = %158, %154
%164 = load i32, ptr @FNM_NOMATCH, align 4
store i32 %164, ptr %4, align 4
br label %165
165: ; preds = %163, %162, %146, %138, %137, %107, %64, %46
%166 = load i32, ptr %4, align 4
ret i32 %166
}
declare i32 @bracket(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @asterisk(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu9d8up46.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@FNM_PERIOD = dso_local global i32 0, align 4
@FNM_NOMATCH = dso_local global i32 0, align 4
@FNM_PATHNAME = dso_local global i32 0, align 4
@FNM_NOESCAPE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fnmatch(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 i32, align 4
%10 = alloca i8, align 1
%11 = alloca i8, align 1
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 1, ptr %9, align 4
br label %14
14: ; preds = %151, %3
%15 = load ptr, ptr %5, align 8
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %24
19: ; preds = %14
%20 = load ptr, ptr %6, align 8
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 0
br label %24
24: ; preds = %19, %14
%25 = phi i1 [ false, %14 ], [ %23, %19 ]
br i1 %25, label %26, label %154
26: ; preds = %24
%27 = load ptr, ptr %5, align 8
%28 = load i8, ptr %27, align 1
store i8 %28, ptr %10, align 1
%29 = load ptr, ptr %6, align 8
%30 = load i8, ptr %29, align 1
store i8 %30, ptr %11, align 1
%31 = load i32, ptr %9, align 4
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %51
33: ; preds = %26
%34 = load i8, ptr %11, align 1
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 46
br i1 %36, label %37, label %51
37: ; preds = %33
%38 = load i32, ptr %7, align 4
%39 = load i32, ptr @FNM_PERIOD, align 4
%40 = and i32 %38, %39
%41 = icmp ne i32 %40, 0
br i1 %41, label %42, label %51
42: ; preds = %37
%43 = load i8, ptr %10, align 1
%44 = sext i8 %43 to i32
%45 = icmp ne i32 %44, 46
br i1 %45, label %46, label %48
46: ; preds = %42
%47 = load i32, ptr @FNM_NOMATCH, align 4
store i32 %47, ptr %4, align 4
br label %165
48: ; preds = %42
%49 = load ptr, ptr %6, align 8
%50 = getelementptr inbounds i8, ptr %49, i32 1
store ptr %50, ptr %6, align 8
br label %151
51: ; preds = %37, %33, %26
%52 = load i8, ptr %11, align 1
%53 = sext i8 %52 to i32
%54 = icmp eq i32 %53, 47
br i1 %54, label %55, label %69
55: ; preds = %51
%56 = load i32, ptr %7, align 4
%57 = load i32, ptr @FNM_PATHNAME, align 4
%58 = and i32 %56, %57
%59 = icmp ne i32 %58, 0
br i1 %59, label %60, label %69
60: ; preds = %55
%61 = load i8, ptr %10, align 1
%62 = sext i8 %61 to i32
%63 = icmp ne i32 %62, 47
br i1 %63, label %64, label %66
64: ; preds = %60
%65 = load i32, ptr @FNM_NOMATCH, align 4
store i32 %65, ptr %4, align 4
br label %165
66: ; preds = %60
store i32 1, ptr %9, align 4
%67 = load ptr, ptr %6, align 8
%68 = getelementptr inbounds i8, ptr %67, i32 1
store ptr %68, ptr %6, align 8
br label %151
69: ; preds = %55, %51
store i32 0, ptr %9, align 4
br label %70
70: ; preds = %69
%71 = load i32, ptr %8, align 4
%72 = icmp ne i32 %71, 0
br i1 %72, label %80, label %73
73: ; preds = %70
%74 = load i8, ptr %10, align 1
%75 = sext i8 %74 to i32
%76 = icmp eq i32 %75, 63
br i1 %76, label %77, label %80
77: ; preds = %73
%78 = load ptr, ptr %6, align 8
%79 = getelementptr inbounds i8, ptr %78, i32 1
store ptr %79, ptr %6, align 8
br label %151
80: ; preds = %73, %70
%81 = load i32, ptr %8, align 4
%82 = icmp ne i32 %81, 0
br i1 %82, label %93, label %83
83: ; preds = %80
%84 = load i8, ptr %10, align 1
%85 = sext i8 %84 to i32
%86 = icmp eq i32 %85, 92
br i1 %86, label %87, label %93
87: ; preds = %83
%88 = load i32, ptr %7, align 4
%89 = load i32, ptr @FNM_NOESCAPE, align 4
%90 = and i32 %88, %89
%91 = icmp ne i32 %90, 0
br i1 %91, label %93, label %92
92: ; preds = %87
store i32 1, ptr %8, align 4
br label %151
93: ; preds = %87, %83, %80
%94 = load i32, ptr %8, align 4
%95 = icmp ne i32 %94, 0
br i1 %95, label %121, label %96
96: ; preds = %93
%97 = load i8, ptr %10, align 1
%98 = sext i8 %97 to i32
%99 = icmp eq i32 %98, 91
br i1 %99, label %100, label %121
100: ; preds = %96
%101 = load ptr, ptr %5, align 8
%102 = load i8, ptr %11, align 1
%103 = load i32, ptr %7, align 4
%104 = call i32 @bracket(ptr noundef %101, i8 noundef signext %102, i32 noundef %103)
store i32 %104, ptr %12, align 4
%105 = load i32, ptr %12, align 4
%106 = icmp ne i32 %105, 0
br i1 %106, label %109, label %107
107: ; preds = %100
%108 = load i32, ptr @FNM_NOMATCH, align 4
store i32 %108, ptr %4, align 4
br label %165
109: ; preds = %100
%110 = load i32, ptr %12, align 4
%111 = icmp sgt i32 %110, 0
br i1 %111, label %112, label %119
112: ; preds = %109
%113 = load i32, ptr %12, align 4
%114 = load ptr, ptr %5, align 8
%115 = sext i32 %113 to i64
%116 = getelementptr inbounds i8, ptr %114, i64 %115
store ptr %116, ptr %5, align 8
%117 = load ptr, ptr %6, align 8
%118 = getelementptr inbounds i8, ptr %117, i32 1
store ptr %118, ptr %6, align 8
br label %151
119: ; preds = %109
br label %120
120: ; preds = %119
br label %121
121: ; preds = %120, %96, %93
%122 = load i32, ptr %8, align 4
%123 = icmp ne i32 %122, 0
br i1 %123, label %140, label %124
124: ; preds = %121
%125 = load i8, ptr %10, align 1
%126 = sext i8 %125 to i32
%127 = icmp eq i32 %126, 42
br i1 %127, label %128, label %140
128: ; preds = %124
%129 = load ptr, ptr %5, align 8
%130 = getelementptr inbounds i8, ptr %129, i64 1
%131 = load ptr, ptr %6, align 8
%132 = load i32, ptr %7, align 4
%133 = load i32, ptr %9, align 4
%134 = call i32 @asterisk(ptr noundef %130, ptr noundef %131, i32 noundef %132, i32 noundef %133)
store i32 %134, ptr %13, align 4
%135 = load i32, ptr %13, align 4
%136 = icmp ne i32 %135, 0
br i1 %136, label %138, label %137
137: ; preds = %128
store i32 0, ptr %4, align 4
br label %165
138: ; preds = %128
%139 = load i32, ptr @FNM_NOMATCH, align 4
store i32 %139, ptr %4, align 4
br label %165
140: ; preds = %124, %121
%141 = load i8, ptr %10, align 1
%142 = sext i8 %141 to i32
%143 = load i8, ptr %11, align 1
%144 = sext i8 %143 to i32
%145 = icmp ne i32 %142, %144
br i1 %145, label %146, label %148
146: ; preds = %140
%147 = load i32, ptr @FNM_NOMATCH, align 4
store i32 %147, ptr %4, align 4
br label %165
148: ; preds = %140
%149 = load ptr, ptr %6, align 8
%150 = getelementptr inbounds i8, ptr %149, i32 1
store ptr %150, ptr %6, align 8
store i32 0, ptr %8, align 4
br label %151
151: ; preds = %148, %112, %92, %77, %66, %48
%152 = load ptr, ptr %5, align 8
%153 = getelementptr inbounds i8, ptr %152, i32 1
store ptr %153, ptr %5, align 8
br label %14, !llvm.loop !6
154: ; preds = %24
%155 = load ptr, ptr %6, align 8
%156 = load i8, ptr %155, align 1
%157 = icmp ne i8 %156, 0
br i1 %157, label %163, label %158
158: ; preds = %154
%159 = load ptr, ptr %5, align 8
%160 = load i8, ptr %159, align 1
%161 = icmp ne i8 %160, 0
br i1 %161, label %163, label %162
162: ; preds = %158
store i32 0, ptr %4, align 4
br label %165
163: ; preds = %158, %154
%164 = load i32, ptr @FNM_NOMATCH, align 4
store i32 %164, ptr %4, align 4
br label %165
165: ; preds = %163, %162, %146, %138, %137, %107, %64, %46
%166 = load i32, ptr %4, align 4
ret i32 %166
}
declare i32 @bracket(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @asterisk(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpi79abrfi.c'
source_filename = "/tmp/tmpi79abrfi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
br label %7
7: ; preds = %18, %2
%8 = load i32, ptr %6, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %21
11: ; preds = %7
%12 = load ptr, ptr %5, align 8
%13 = load i32, ptr %6, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds ptr, ptr %12, i64 %14
%16 = load ptr, ptr %15, align 8
%17 = call i32 @printf(ptr noundef @.str, ptr noundef %16)
br label %18
18: ; preds = %11
%19 = load i32, ptr %6, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %6, align 4
br label %7, !llvm.loop !6
21: ; preds = %7
ret i32 0
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi79abrfi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%7 = load i32, ptr %6, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %.lr.ph, label %23
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %17
%11 = load ptr, ptr %5, align 8
%12 = load i32, ptr %6, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds ptr, ptr %11, i64 %13
%15 = load ptr, ptr %14, align 8
%16 = call i32 @printf(ptr noundef @.str, ptr noundef %15)
br label %17
17: ; preds = %10
%18 = load i32, ptr %6, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %6, align 4
%20 = load i32, ptr %6, align 4
%21 = load i32, ptr %4, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %23
23: ; preds = %._crit_edge, %2
ret i32 0
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpz07dzjiq.c'
source_filename = "/tmp/tmpz07dzjiq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"r\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@EOF = dso_local global i8 0, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @LowerCase(i64 noundef %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store i64 %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%8 = call ptr @fidopen(i32 noundef 0, ptr noundef @.str)
store ptr %8, ptr %6, align 8
%9 = call ptr @fidopen(i32 noundef 1, ptr noundef @.str.1)
store ptr %9, ptr %7, align 8
br label %10
10: ; preds = %17, %2
%11 = load ptr, ptr %6, align 8
%12 = call signext i8 @fgetc(ptr noundef %11)
store i8 %12, ptr %5, align 1
%13 = sext i8 %12 to i32
%14 = load i8, ptr @EOF, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %13, %15
br i1 %16, label %17, label %22
17: ; preds = %10
%18 = load i8, ptr %5, align 1
%19 = call i32 @tolower(i8 noundef signext %18)
%20 = load ptr, ptr %7, align 8
%21 = call i32 @fputc(i32 noundef %19, ptr noundef %20)
br label %10, !llvm.loop !6
22: ; preds = %10
%23 = load ptr, ptr %6, align 8
%24 = call i32 @fclose(ptr noundef %23)
%25 = load ptr, ptr %7, align 8
%26 = call i32 @fclose(ptr noundef %25)
ret i32 0
}
declare ptr @fidopen(i32 noundef, ptr noundef) #1
declare signext i8 @fgetc(ptr noundef) #1
declare i32 @fputc(i32 noundef, ptr noundef) #1
declare i32 @tolower(i8 noundef signext) #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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz07dzjiq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"r\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@EOF = dso_local global i8 0, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @LowerCase(i64 noundef %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store i64 %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%8 = call ptr @fidopen(i32 noundef 0, ptr noundef @.str)
store ptr %8, ptr %6, align 8
%9 = call ptr @fidopen(i32 noundef 1, ptr noundef @.str.1)
store ptr %9, ptr %7, align 8
%10 = load ptr, ptr %6, align 8
%11 = call signext i8 @fgetc(ptr noundef %10)
store i8 %11, ptr %5, align 1
%12 = sext i8 %11 to i32
%13 = load i8, ptr @EOF, align 1
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %12, %14
br i1 %15, label %.lr.ph, label %27
.lr.ph: ; preds = %2
br label %16
16: ; preds = %.lr.ph, %16
%17 = load i8, ptr %5, align 1
%18 = call i32 @tolower(i8 noundef signext %17)
%19 = load ptr, ptr %7, align 8
%20 = call i32 @fputc(i32 noundef %18, ptr noundef %19)
%21 = load ptr, ptr %6, align 8
%22 = call signext i8 @fgetc(ptr noundef %21)
store i8 %22, ptr %5, align 1
%23 = sext i8 %22 to i32
%24 = load i8, ptr @EOF, align 1
%25 = sext i8 %24 to i32
%26 = icmp ne i32 %23, %25
br i1 %26, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %27
27: ; preds = %._crit_edge, %2
%28 = load ptr, ptr %6, align 8
%29 = call i32 @fclose(ptr noundef %28)
%30 = load ptr, ptr %7, align 8
%31 = call i32 @fclose(ptr noundef %30)
ret i32 0
}
declare ptr @fidopen(i32 noundef, ptr noundef) #1
declare signext i8 @fgetc(ptr noundef) #1
declare i32 @fputc(i32 noundef, ptr noundef) #1
declare i32 @tolower(i8 noundef signext) #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"}
|
; ModuleID = '/tmp/tmpep5amc3m.c'
source_filename = "/tmp/tmpep5amc3m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @compare_mem(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%9 = load ptr, ptr %6, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %14
11: ; preds = %3
%12 = load ptr, ptr %7, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %16, label %14
14: ; preds = %11, %3
%15 = call i32 (...) @ordering_err_2()
store i32 %15, ptr %4, align 4
br label %58
16: ; preds = %11
%17 = load ptr, ptr %5, align 8
%18 = call i64 @objp_to_size(ptr noundef %17)
store i64 %18, ptr %8, align 8
%19 = load i64, ptr %8, align 8
%20 = icmp ule i64 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %16
store i32 0, ptr %4, align 4
br label %58
22: ; preds = %16
%23 = load ptr, ptr %6, align 8
%24 = load ptr, ptr %7, align 8
%25 = load i64, ptr %8, align 8
%26 = call i32 @memcmp(ptr noundef %23, ptr noundef %24, i64 noundef %25)
%27 = icmp ne i32 %26, -938278912
br i1 %27, label %28, label %39
28: ; preds = %22
%29 = load ptr, ptr %6, align 8
%30 = load ptr, ptr %7, align 8
%31 = load i64, ptr %8, align 8
%32 = call i32 @memcmp(ptr noundef %29, ptr noundef %30, i64 noundef %31)
%33 = icmp ne i32 %32, -938344448
br i1 %33, label %34, label %39
34: ; preds = %28
%35 = load ptr, ptr %6, align 8
%36 = load ptr, ptr %7, align 8
%37 = load i64, ptr %8, align 8
%38 = call i32 @memcmp(ptr noundef %35, ptr noundef %36, i64 noundef %37)
br label %56
39: ; preds = %28, %22
%40 = load ptr, ptr %6, align 8
%41 = load ptr, ptr %7, align 8
%42 = load i64, ptr %8, align 8
%43 = call i32 @memcmp(ptr noundef %40, ptr noundef %41, i64 noundef %42)
%44 = icmp sle i32 %43, 0
br i1 %44, label %45, label %53
45: ; preds = %39
%46 = load ptr, ptr %6, align 8
%47 = load ptr, ptr %7, align 8
%48 = load i64, ptr %8, align 8
%49 = call i32 @memcmp(ptr noundef %46, ptr noundef %47, i64 noundef %48)
%50 = icmp slt i32 %49, 0
%51 = zext i1 %50 to i64
%52 = select i1 %50, i32 -938409984, i32 0
br label %54
53: ; preds = %39
br label %54
54: ; preds = %53, %45
%55 = phi i32 [ %52, %45 ], [ 938409984, %53 ]
br label %56
56: ; preds = %54, %34
%57 = phi i32 [ %38, %34 ], [ %55, %54 ]
store i32 %57, ptr %4, align 4
br label %58
58: ; preds = %56, %21, %14
%59 = load i32, ptr %4, align 4
ret i32 %59
}
declare i32 @ordering_err_2(...) #1
declare i64 @objp_to_size(ptr noundef) #1
declare i32 @memcmp(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpep5amc3m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @compare_mem(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%9 = load ptr, ptr %6, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %14
11: ; preds = %3
%12 = load ptr, ptr %7, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %16, label %14
14: ; preds = %11, %3
%15 = call i32 (...) @ordering_err_2()
store i32 %15, ptr %4, align 4
br label %58
16: ; preds = %11
%17 = load ptr, ptr %5, align 8
%18 = call i64 @objp_to_size(ptr noundef %17)
store i64 %18, ptr %8, align 8
%19 = load i64, ptr %8, align 8
%20 = icmp ule i64 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %16
store i32 0, ptr %4, align 4
br label %58
22: ; preds = %16
%23 = load ptr, ptr %6, align 8
%24 = load ptr, ptr %7, align 8
%25 = load i64, ptr %8, align 8
%26 = call i32 @memcmp(ptr noundef %23, ptr noundef %24, i64 noundef %25)
%27 = icmp ne i32 %26, -938278912
br i1 %27, label %28, label %39
28: ; preds = %22
%29 = load ptr, ptr %6, align 8
%30 = load ptr, ptr %7, align 8
%31 = load i64, ptr %8, align 8
%32 = call i32 @memcmp(ptr noundef %29, ptr noundef %30, i64 noundef %31)
%33 = icmp ne i32 %32, -938344448
br i1 %33, label %34, label %39
34: ; preds = %28
%35 = load ptr, ptr %6, align 8
%36 = load ptr, ptr %7, align 8
%37 = load i64, ptr %8, align 8
%38 = call i32 @memcmp(ptr noundef %35, ptr noundef %36, i64 noundef %37)
br label %56
39: ; preds = %28, %22
%40 = load ptr, ptr %6, align 8
%41 = load ptr, ptr %7, align 8
%42 = load i64, ptr %8, align 8
%43 = call i32 @memcmp(ptr noundef %40, ptr noundef %41, i64 noundef %42)
%44 = icmp sle i32 %43, 0
br i1 %44, label %45, label %53
45: ; preds = %39
%46 = load ptr, ptr %6, align 8
%47 = load ptr, ptr %7, align 8
%48 = load i64, ptr %8, align 8
%49 = call i32 @memcmp(ptr noundef %46, ptr noundef %47, i64 noundef %48)
%50 = icmp slt i32 %49, 0
%51 = zext i1 %50 to i64
%52 = select i1 %50, i32 -938409984, i32 0
br label %54
53: ; preds = %39
br label %54
54: ; preds = %53, %45
%55 = phi i32 [ %52, %45 ], [ 938409984, %53 ]
br label %56
56: ; preds = %54, %34
%57 = phi i32 [ %38, %34 ], [ %55, %54 ]
store i32 %57, ptr %4, align 4
br label %58
58: ; preds = %56, %21, %14
%59 = load i32, ptr %4, align 4
ret i32 %59
}
declare i32 @ordering_err_2(...) #1
declare i64 @objp_to_size(ptr noundef) #1
declare i32 @memcmp(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplk_i_kj8.c'
source_filename = "/tmp/tmplk_i_kj8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/argv0_test.nexe\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [24 x i8] c"unexpected argv[0]: %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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %5, align 8
%7 = getelementptr inbounds ptr, ptr %6, i64 0
%8 = load ptr, ptr %7, align 8
%9 = call ptr @strstr(ptr noundef %8, ptr noundef @.str)
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %17
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.1, ptr noundef %15)
store i32 1, ptr %3, align 4
br label %18
17: ; preds = %2
store i32 0, ptr %3, align 4
br label %18
18: ; preds = %17, %11
%19 = load i32, ptr %3, align 4
ret i32 %19
}
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplk_i_kj8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/argv0_test.nexe\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [24 x i8] c"unexpected argv[0]: %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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %5, align 8
%7 = getelementptr inbounds ptr, ptr %6, i64 0
%8 = load ptr, ptr %7, align 8
%9 = call ptr @strstr(ptr noundef %8, ptr noundef @.str)
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %17
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.1, ptr noundef %15)
store i32 1, ptr %3, align 4
br label %18
17: ; preds = %2
store i32 0, ptr %3, align 4
br label %18
18: ; preds = %17, %11
%19 = load i32, ptr %3, align 4
ret i32 %19
}
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbd1l3c0f.c'
source_filename = "/tmp/tmpbd1l3c0f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s:FAIL####\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @sprint_FAIL(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 @sprintf(ptr noundef %5, ptr noundef @.str, ptr noundef %6)
%8 = load ptr, ptr %3, align 8
ret ptr %8
}
declare i32 @sprintf(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/tmpbd1l3c0f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s:FAIL####\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @sprint_FAIL(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 @sprintf(ptr noundef %5, ptr noundef @.str, ptr noundef %6)
%8 = load ptr, ptr %3, align 8
ret ptr %8
}
declare i32 @sprintf(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/tmpdpk9weme.c'
source_filename = "/tmp/tmpdpk9weme.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pixel_avg_2x2(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = 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
store i32 %3, ptr %8, align 4
%9 = load ptr, ptr %5, align 8
%10 = load i32, ptr %6, align 4
%11 = load ptr, ptr %7, align 8
%12 = load i32, ptr %8, align 4
%13 = call i32 @pixel_avg_wxh(ptr noundef %9, i32 noundef %10, ptr noundef %11, i32 noundef %12, i32 noundef 2, i32 noundef 2)
ret void
}
declare i32 @pixel_avg_wxh(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdpk9weme.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pixel_avg_2x2(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = 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
store i32 %3, ptr %8, align 4
%9 = load ptr, ptr %5, align 8
%10 = load i32, ptr %6, align 4
%11 = load ptr, ptr %7, align 8
%12 = load i32, ptr %8, align 4
%13 = call i32 @pixel_avg_wxh(ptr noundef %9, i32 noundef %10, ptr noundef %11, i32 noundef %12, i32 noundef 2, i32 noundef 2)
ret void
}
declare i32 @pixel_avg_wxh(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpi212lr8_.c'
source_filename = "/tmp/tmpi212lr8_.c"
target datalayout = "e-m:e-p270: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/tmpi212lr8_.c"
target datalayout = "e-m:e-p270: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/tmpcth5g7pe.c'
source_filename = "/tmp/tmpcth5g7pe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp ne i32 %8, 2
br i1 %9, label %10, label %15
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 0
%13 = load ptr, ptr %12, align 8
%14 = call i32 @showHelp(ptr noundef %13)
br label %24
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 i32 @atoi(ptr noundef %18)
store i32 %19, ptr %6, align 4
%20 = load i32, ptr %6, align 4
%21 = call i32 @highest(i32 noundef %20)
store i32 %21, ptr %7, align 4
%22 = load i32, ptr %7, align 4
%23 = call i32 @printf(ptr noundef @.str, i32 noundef %22)
br label %24
24: ; preds = %15, %10
ret i32 0
}
declare i32 @showHelp(ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @highest(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcth5g7pe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp ne i32 %8, 2
br i1 %9, label %10, label %15
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 0
%13 = load ptr, ptr %12, align 8
%14 = call i32 @showHelp(ptr noundef %13)
br label %24
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 i32 @atoi(ptr noundef %18)
store i32 %19, ptr %6, align 4
%20 = load i32, ptr %6, align 4
%21 = call i32 @highest(i32 noundef %20)
store i32 %21, ptr %7, align 4
%22 = load i32, ptr %7, align 4
%23 = call i32 @printf(ptr noundef @.str, i32 noundef %22)
br label %24
24: ; preds = %15, %10
ret i32 0
}
declare i32 @showHelp(ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @highest(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9obyubzu.c'
source_filename = "/tmp/tmp9obyubzu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ERANGE = dso_local global i32 0, align 4
@INT_MAX = dso_local global i32 0, align 4
@INT_MIN = 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/tmp9obyubzu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ERANGE = dso_local global i32 0, align 4
@INT_MAX = dso_local global i32 0, align 4
@INT_MIN = 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/tmpq9v09kkf.c'
source_filename = "/tmp/tmpq9v09kkf.c"
target datalayout = "e-m:e-p270: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/tmpq9v09kkf.c"
target datalayout = "e-m:e-p270: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/tmpoppeobhx.c'
source_filename = "/tmp/tmpoppeobhx.c"
target datalayout = "e-m:e-p270: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/tmpoppeobhx.c"
target datalayout = "e-m:e-p270: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/tmpqk44rgbv.c'
source_filename = "/tmp/tmpqk44rgbv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"test_mysqrt <num>\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\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 float, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 2
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
br label %18
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
%15 = call i32 @sscanf(ptr noundef %14, ptr noundef @.str.1, ptr noundef %6)
%16 = load float, ptr %6, align 4
%17 = call i32 @my_sqrt(float noundef %16)
store i32 0, ptr %3, align 4
br label %18
18: ; preds = %11, %9
%19 = load i32, ptr %3, align 4
ret i32 %19
}
declare i32 @printf(ptr noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @my_sqrt(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqk44rgbv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"test_mysqrt <num>\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\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 float, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 2
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
br label %18
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
%15 = call i32 @sscanf(ptr noundef %14, ptr noundef @.str.1, ptr noundef %6)
%16 = load float, ptr %6, align 4
%17 = call i32 @my_sqrt(float noundef %16)
store i32 0, ptr %3, align 4
br label %18
18: ; preds = %11, %9
%19 = load i32, ptr %3, align 4
ret i32 %19
}
declare i32 @printf(ptr noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @my_sqrt(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpb8qga44n.c'
source_filename = "/tmp/tmpb8qga44n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [2 x i8] c"F\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"B\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @processLineWithScan(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%8 = load ptr, ptr %2, align 8
%9 = call i32 @sscanf(ptr noundef %8, ptr noundef @.str, ptr noundef %3, ptr noundef %4, ptr noundef %5)
store i32 1, ptr %6, align 4
br label %10
10: ; preds = %41, %1
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp sle i32 %11, %12
br i1 %13, label %14, label %44
14: ; preds = %10
store i32 1, ptr %7, align 4
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %3, align 4
%17 = srem i32 %15, %16
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %14
store i32 0, ptr %7, align 4
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %21
21: ; preds = %19, %14
%22 = load i32, ptr %6, align 4
%23 = load i32, ptr %4, align 4
%24 = srem i32 %22, %23
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %21
store i32 0, ptr %7, align 4
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %28
28: ; preds = %26, %21
%29 = load i32, ptr %7, align 4
%30 = icmp ne i32 %29, 0
br i1 %30, label %31, label %34
31: ; preds = %28
%32 = load i32, ptr %6, align 4
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %32)
br label %34
34: ; preds = %31, %28
%35 = load i32, ptr %6, align 4
%36 = load i32, ptr %5, align 4
%37 = icmp ne i32 %35, %36
br i1 %37, label %38, label %40
38: ; preds = %34
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %40
40: ; preds = %38, %34
br label %41
41: ; preds = %40
%42 = load i32, ptr %6, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %6, align 4
br label %10, !llvm.loop !6
44: ; preds = %10
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
ret void
}
declare i32 @sscanf(ptr noundef, ptr noundef, 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb8qga44n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [2 x i8] c"F\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"B\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @processLineWithScan(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%8 = load ptr, ptr %2, align 8
%9 = call i32 @sscanf(ptr noundef %8, ptr noundef @.str, ptr noundef %3, ptr noundef %4, ptr noundef %5)
store i32 1, ptr %6, align 4
%10 = load i32, ptr %6, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp sle i32 %10, %11
br i1 %12, label %.lr.ph, label %46
.lr.ph: ; preds = %1
br label %13
13: ; preds = %.lr.ph, %40
store i32 1, ptr %7, align 4
%14 = load i32, ptr %6, align 4
%15 = load i32, ptr %3, align 4
%16 = srem i32 %14, %15
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %13
store i32 0, ptr %7, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %20
20: ; preds = %18, %13
%21 = load i32, ptr %6, align 4
%22 = load i32, ptr %4, align 4
%23 = srem i32 %21, %22
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %20
store i32 0, ptr %7, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %27
27: ; preds = %25, %20
%28 = load i32, ptr %7, align 4
%29 = icmp ne i32 %28, 0
br i1 %29, label %30, label %33
30: ; preds = %27
%31 = load i32, ptr %6, align 4
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %31)
br label %33
33: ; preds = %30, %27
%34 = load i32, ptr %6, align 4
%35 = load i32, ptr %5, align 4
%36 = icmp ne i32 %34, %35
br i1 %36, label %37, label %39
37: ; preds = %33
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %39
39: ; preds = %37, %33
br label %40
40: ; preds = %39
%41 = load i32, ptr %6, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %6, align 4
%43 = load i32, ptr %6, align 4
%44 = load i32, ptr %5, align 4
%45 = icmp sle i32 %43, %44
br i1 %45, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %40
br label %46
46: ; preds = %._crit_edge, %1
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
ret void
}
declare i32 @sscanf(ptr noundef, ptr noundef, 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp4k6spgld.c'
source_filename = "/tmp/tmp4k6spgld.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @xmalloc(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
store i64 %0, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = call ptr @original_malloc(i64 noundef %4)
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
ret ptr %6
}
declare ptr @original_malloc(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4k6spgld.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @xmalloc(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
store i64 %0, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = call ptr @original_malloc(i64 noundef %4)
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
ret ptr %6
}
declare ptr @original_malloc(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkdpew6_h.c'
source_filename = "/tmp/tmpkdpew6_h.c"
target datalayout = "e-m:e-p270: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/tmpkdpew6_h.c"
target datalayout = "e-m:e-p270: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/tmps4rzlgvi.c'
source_filename = "/tmp/tmps4rzlgvi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @trim(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %4, align 8
store ptr %9, ptr %7, align 8
%10 = load ptr, ptr %4, align 8
%11 = icmp eq ptr null, %10
br i1 %11, label %12, label %13
12: ; preds = %2
store ptr null, ptr %3, align 8
br label %67
13: ; preds = %2
%14 = load ptr, ptr %7, align 8
%15 = load ptr, ptr %7, align 8
%16 = call i32 @strlen(ptr noundef %15)
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %14, i64 %17
%19 = getelementptr inbounds i8, ptr %18, i64 -1
store ptr %19, ptr %8, align 8
br label %20
20: ; preds = %32, %13
%21 = load ptr, ptr %7, align 8
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp ne i32 0, %23
br i1 %24, label %25, label %30
25: ; preds = %20
%26 = load ptr, ptr %7, align 8
%27 = load i8, ptr %26, align 1
%28 = call i64 @isspace(i8 noundef signext %27)
%29 = icmp ne i64 %28, 0
br label %30
30: ; preds = %25, %20
%31 = phi i1 [ false, %20 ], [ %29, %25 ]
br i1 %31, label %32, label %35
32: ; preds = %30
%33 = load ptr, ptr %7, align 8
%34 = getelementptr inbounds i8, ptr %33, i32 1
store ptr %34, ptr %7, align 8
br label %20, !llvm.loop !6
35: ; preds = %30
br label %36
36: ; preds = %47, %35
%37 = load ptr, ptr %8, align 8
%38 = load ptr, ptr %7, align 8
%39 = icmp uge ptr %37, %38
br i1 %39, label %40, label %45
40: ; preds = %36
%41 = load ptr, ptr %8, align 8
%42 = load i8, ptr %41, align 1
%43 = call i64 @isspace(i8 noundef signext %42)
%44 = icmp ne i64 %43, 0
br label %45
45: ; preds = %40, %36
%46 = phi i1 [ false, %36 ], [ %44, %40 ]
br i1 %46, label %47, label %50
47: ; preds = %45
%48 = load ptr, ptr %8, align 8
%49 = getelementptr inbounds i8, ptr %48, i32 -1
store ptr %49, ptr %8, align 8
br label %36, !llvm.loop !8
50: ; preds = %45
%51 = load ptr, ptr %8, align 8
%52 = load ptr, ptr %7, align 8
%53 = ptrtoint ptr %51 to i64
%54 = ptrtoint ptr %52 to i64
%55 = sub i64 %53, %54
%56 = add nsw i64 %55, 1
%57 = trunc i64 %56 to i32
store i32 %57, ptr %6, align 4
%58 = load ptr, ptr %5, align 8
%59 = load ptr, ptr %7, align 8
%60 = load i32, ptr %6, align 4
%61 = call i32 @memmove(ptr noundef %58, ptr noundef %59, i32 noundef %60)
%62 = load ptr, ptr %5, align 8
%63 = load i32, ptr %6, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i8, ptr %62, i64 %64
store i8 0, ptr %65, align 1
%66 = load ptr, ptr %5, align 8
store ptr %66, ptr %3, align 8
br label %67
67: ; preds = %50, %12
%68 = load ptr, ptr %3, align 8
ret ptr %68
}
declare i32 @strlen(ptr noundef) #1
declare i64 @isspace(i8 noundef signext) #1
declare i32 @memmove(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmps4rzlgvi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @trim(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %4, align 8
store ptr %9, ptr %7, align 8
%10 = load ptr, ptr %4, align 8
%11 = icmp eq ptr null, %10
br i1 %11, label %12, label %13
12: ; preds = %2
store ptr null, ptr %3, align 8
br label %67
13: ; preds = %2
%14 = load ptr, ptr %7, align 8
%15 = load ptr, ptr %7, align 8
%16 = call i32 @strlen(ptr noundef %15)
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %14, i64 %17
%19 = getelementptr inbounds i8, ptr %18, i64 -1
store ptr %19, ptr %8, align 8
br label %20
20: ; preds = %32, %13
%21 = load ptr, ptr %7, align 8
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp ne i32 0, %23
br i1 %24, label %25, label %30
25: ; preds = %20
%26 = load ptr, ptr %7, align 8
%27 = load i8, ptr %26, align 1
%28 = call i64 @isspace(i8 noundef signext %27)
%29 = icmp ne i64 %28, 0
br label %30
30: ; preds = %25, %20
%31 = phi i1 [ false, %20 ], [ %29, %25 ]
br i1 %31, label %32, label %35
32: ; preds = %30
%33 = load ptr, ptr %7, align 8
%34 = getelementptr inbounds i8, ptr %33, i32 1
store ptr %34, ptr %7, align 8
br label %20, !llvm.loop !6
35: ; preds = %30
br label %36
36: ; preds = %47, %35
%37 = load ptr, ptr %8, align 8
%38 = load ptr, ptr %7, align 8
%39 = icmp uge ptr %37, %38
br i1 %39, label %40, label %45
40: ; preds = %36
%41 = load ptr, ptr %8, align 8
%42 = load i8, ptr %41, align 1
%43 = call i64 @isspace(i8 noundef signext %42)
%44 = icmp ne i64 %43, 0
br label %45
45: ; preds = %40, %36
%46 = phi i1 [ false, %36 ], [ %44, %40 ]
br i1 %46, label %47, label %50
47: ; preds = %45
%48 = load ptr, ptr %8, align 8
%49 = getelementptr inbounds i8, ptr %48, i32 -1
store ptr %49, ptr %8, align 8
br label %36, !llvm.loop !8
50: ; preds = %45
%51 = load ptr, ptr %8, align 8
%52 = load ptr, ptr %7, align 8
%53 = ptrtoint ptr %51 to i64
%54 = ptrtoint ptr %52 to i64
%55 = sub i64 %53, %54
%56 = add nsw i64 %55, 1
%57 = trunc i64 %56 to i32
store i32 %57, ptr %6, align 4
%58 = load ptr, ptr %5, align 8
%59 = load ptr, ptr %7, align 8
%60 = load i32, ptr %6, align 4
%61 = call i32 @memmove(ptr noundef %58, ptr noundef %59, i32 noundef %60)
%62 = load ptr, ptr %5, align 8
%63 = load i32, ptr %6, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i8, ptr %62, i64 %64
store i8 0, ptr %65, align 1
%66 = load ptr, ptr %5, align 8
store ptr %66, ptr %3, align 8
br label %67
67: ; preds = %50, %12
%68 = load ptr, ptr %3, align 8
ret ptr %68
}
declare i32 @strlen(ptr noundef) #1
declare i64 @isspace(i8 noundef signext) #1
declare i32 @memmove(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp6nxr4mq9.c'
source_filename = "/tmp/tmp6nxr4mq9.c"
target datalayout = "e-m:e-p270: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/tmp6nxr4mq9.c"
target datalayout = "e-m:e-p270: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/tmppodc9c4t.c'
source_filename = "/tmp/tmppodc9c4t.c"
target datalayout = "e-m:e-p270: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.b = private unnamed_addr constant [3 x i32] [i32 1, i32 2, i32 3], align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [3 x i32], align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %1, ptr align 4 @__const.main.b, i64 12, i1 false)
%2 = getelementptr inbounds [3 x i32], ptr %1, i64 0, i64 0
%3 = load i32, ptr %2, align 4
%4 = icmp eq i32 %3, 1
%5 = zext i1 %4 to i32
%6 = call i32 @assert(i32 noundef %5)
%7 = getelementptr inbounds [3 x i32], ptr %1, i64 0, i64 1
%8 = load i32, ptr %7, align 4
%9 = icmp eq i32 %8, 2
%10 = zext i1 %9 to i32
%11 = call i32 @assert(i32 noundef %10)
%12 = getelementptr inbounds [3 x i32], ptr %1, i64 0, i64 2
%13 = load i32, ptr %12, align 4
%14 = icmp eq i32 %13, 3
%15 = zext i1 %14 to i32
%16 = call i32 @assert(i32 noundef %15)
%17 = getelementptr inbounds [3 x i32], ptr %1, i64 0, i64 0
store i32 -1, ptr %17, align 4
%18 = getelementptr inbounds [3 x i32], ptr %1, i64 0, i64 1
store i32 -2, ptr %18, align 4
%19 = getelementptr inbounds [3 x i32], ptr %1, i64 0, i64 2
store i32 -3, ptr %19, align 4
%20 = getelementptr inbounds [3 x i32], ptr %1, i64 0, i64 0
%21 = load i32, ptr %20, align 4
%22 = icmp eq i32 %21, 1
%23 = zext i1 %22 to i32
%24 = call i32 @assert(i32 noundef %23)
%25 = getelementptr inbounds [3 x i32], ptr %1, i64 0, i64 1
%26 = load i32, ptr %25, align 4
%27 = icmp eq i32 %26, 2
%28 = zext i1 %27 to i32
%29 = call i32 @assert(i32 noundef %28)
%30 = getelementptr inbounds [3 x i32], ptr %1, i64 0, i64 2
%31 = load i32, ptr %30, align 4
%32 = icmp eq i32 %31, 3
%33 = zext i1 %32 to i32
%34 = call i32 @assert(i32 noundef %33)
%35 = getelementptr inbounds [3 x i32], ptr %1, i64 0, i64 0
%36 = load i32, ptr %35, align 4
%37 = icmp eq i32 %36, 1
%38 = zext i1 %37 to i32
%39 = call i32 @assert(i32 noundef %38)
%40 = getelementptr inbounds [3 x i32], ptr %1, i64 0, i64 1
%41 = load i32, ptr %40, align 4
%42 = icmp eq i32 %41, 2
%43 = zext i1 %42 to i32
%44 = call i32 @assert(i32 noundef %43)
%45 = getelementptr inbounds [3 x i32], ptr %1, i64 0, i64 2
%46 = load i32, ptr %45, align 4
%47 = icmp eq i32 %46, 3
%48 = zext i1 %47 to i32
%49 = call i32 @assert(i32 noundef %48)
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 @assert(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppodc9c4t.c"
target datalayout = "e-m:e-p270: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.b = private unnamed_addr constant [3 x i32] [i32 1, i32 2, i32 3], align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [3 x i32], align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %1, ptr align 4 @__const.main.b, i64 12, i1 false)
%2 = getelementptr inbounds [3 x i32], ptr %1, i64 0, i64 0
%3 = load i32, ptr %2, align 4
%4 = icmp eq i32 %3, 1
%5 = zext i1 %4 to i32
%6 = call i32 @assert(i32 noundef %5)
%7 = getelementptr inbounds [3 x i32], ptr %1, i64 0, i64 1
%8 = load i32, ptr %7, align 4
%9 = icmp eq i32 %8, 2
%10 = zext i1 %9 to i32
%11 = call i32 @assert(i32 noundef %10)
%12 = getelementptr inbounds [3 x i32], ptr %1, i64 0, i64 2
%13 = load i32, ptr %12, align 4
%14 = icmp eq i32 %13, 3
%15 = zext i1 %14 to i32
%16 = call i32 @assert(i32 noundef %15)
%17 = getelementptr inbounds [3 x i32], ptr %1, i64 0, i64 0
store i32 -1, ptr %17, align 4
%18 = getelementptr inbounds [3 x i32], ptr %1, i64 0, i64 1
store i32 -2, ptr %18, align 4
%19 = getelementptr inbounds [3 x i32], ptr %1, i64 0, i64 2
store i32 -3, ptr %19, align 4
%20 = getelementptr inbounds [3 x i32], ptr %1, i64 0, i64 0
%21 = load i32, ptr %20, align 4
%22 = icmp eq i32 %21, 1
%23 = zext i1 %22 to i32
%24 = call i32 @assert(i32 noundef %23)
%25 = getelementptr inbounds [3 x i32], ptr %1, i64 0, i64 1
%26 = load i32, ptr %25, align 4
%27 = icmp eq i32 %26, 2
%28 = zext i1 %27 to i32
%29 = call i32 @assert(i32 noundef %28)
%30 = getelementptr inbounds [3 x i32], ptr %1, i64 0, i64 2
%31 = load i32, ptr %30, align 4
%32 = icmp eq i32 %31, 3
%33 = zext i1 %32 to i32
%34 = call i32 @assert(i32 noundef %33)
%35 = getelementptr inbounds [3 x i32], ptr %1, i64 0, i64 0
%36 = load i32, ptr %35, align 4
%37 = icmp eq i32 %36, 1
%38 = zext i1 %37 to i32
%39 = call i32 @assert(i32 noundef %38)
%40 = getelementptr inbounds [3 x i32], ptr %1, i64 0, i64 1
%41 = load i32, ptr %40, align 4
%42 = icmp eq i32 %41, 2
%43 = zext i1 %42 to i32
%44 = call i32 @assert(i32 noundef %43)
%45 = getelementptr inbounds [3 x i32], ptr %1, i64 0, i64 2
%46 = load i32, ptr %45, align 4
%47 = icmp eq i32 %46, 3
%48 = zext i1 %47 to i32
%49 = call i32 @assert(i32 noundef %48)
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 @assert(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpilb168ql.c'
source_filename = "/tmp/tmpilb168ql.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"test.dat\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [17 x i8] c"File not found.\0A\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [4 x i8] c"%g\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 float, align 4
%7 = 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
%8 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %8, ptr %7, align 8
%9 = load ptr, ptr %7, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %15
11: ; preds = %2
%12 = load i32, ptr @stderr, align 4
%13 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %12, ptr noundef @.str.2)
%14 = call i32 @exit(i32 noundef -1) #3
unreachable
15: ; preds = %2
br label %16
16: ; preds = %20, %15
%17 = load ptr, ptr %7, align 8
%18 = call i64 @ConvertFreadFloat(ptr noundef %17, ptr noundef %6)
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %25
20: ; preds = %16
%21 = load i32, ptr @stdout, align 4
%22 = load float, ptr %6, align 4
%23 = fpext float %22 to double
%24 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %21, ptr noundef @.str.3, double noundef %23)
br label %16, !llvm.loop !6
25: ; preds = %16
%26 = load ptr, ptr %7, align 8
%27 = call i32 @fclose(ptr noundef %26)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @ConvertFreadFloat(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" }
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/tmpilb168ql.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"test.dat\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [17 x i8] c"File not found.\0A\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [4 x i8] c"%g\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 float, align 4
%7 = 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
%8 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %8, ptr %7, align 8
%9 = load ptr, ptr %7, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %15
11: ; preds = %2
%12 = load i32, ptr @stderr, align 4
%13 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %12, ptr noundef @.str.2)
%14 = call i32 @exit(i32 noundef -1) #3
unreachable
15: ; preds = %2
%16 = load ptr, ptr %7, align 8
%17 = call i64 @ConvertFreadFloat(ptr noundef %16, ptr noundef %6)
%18 = icmp eq i64 %17, 0
br i1 %18, label %.lr.ph, label %27
.lr.ph: ; preds = %15
br label %19
19: ; preds = %.lr.ph, %19
%20 = load i32, ptr @stdout, align 4
%21 = load float, ptr %6, align 4
%22 = fpext float %21 to double
%23 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %20, ptr noundef @.str.3, double noundef %22)
%24 = load ptr, ptr %7, align 8
%25 = call i64 @ConvertFreadFloat(ptr noundef %24, ptr noundef %6)
%26 = icmp eq i64 %25, 0
br i1 %26, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %27
27: ; preds = %._crit_edge, %15
%28 = load ptr, ptr %7, align 8
%29 = call i32 @fclose(ptr noundef %28)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @ConvertFreadFloat(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" }
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/tmpbcasce61.c'
source_filename = "/tmp/tmpbcasce61.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"<Source>%s</Source><Sink>%s</Sink>\00", align 1
@.str.1 = private unnamed_addr constant [49 x i8] c"urn:schemas-upnp-org:service:ConnectionManager:1\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"GetProtocolInfo\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @UpnpResponse_MediaRenderer_ConnectionManager_GetProtocolInfo(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 ptr, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%10 = load ptr, ptr %5, align 8
%11 = call i64 @ILibXmlEscapeLength(ptr noundef %10)
%12 = add nsw i64 1, %11
%13 = call i64 @malloc(i64 noundef %12)
%14 = inttoptr i64 %13 to ptr
store ptr %14, ptr %8, align 8
%15 = load ptr, ptr %6, align 8
%16 = call i64 @ILibXmlEscapeLength(ptr noundef %15)
%17 = add nsw i64 1, %16
%18 = call i64 @malloc(i64 noundef %17)
%19 = inttoptr i64 %18 to ptr
store ptr %19, ptr %9, align 8
%20 = load ptr, ptr %8, align 8
%21 = load ptr, ptr %5, align 8
%22 = call i32 @ILibXmlEscape(ptr noundef %20, ptr noundef %21)
%23 = load ptr, ptr %9, align 8
%24 = load ptr, ptr %6, align 8
%25 = call i32 @ILibXmlEscape(ptr noundef %23, ptr noundef %24)
%26 = load ptr, ptr %8, align 8
%27 = call i64 @strlen(ptr noundef %26)
%28 = add nsw i64 31, %27
%29 = load ptr, ptr %9, align 8
%30 = call i64 @strlen(ptr noundef %29)
%31 = add nsw i64 %28, %30
%32 = call i64 @malloc(i64 noundef %31)
%33 = inttoptr i64 %32 to ptr
store ptr %33, ptr %7, align 8
%34 = load ptr, ptr %7, align 8
%35 = load ptr, ptr %8, align 8
%36 = load ptr, ptr %9, align 8
%37 = call i32 @sprintf(ptr noundef %34, ptr noundef @.str, ptr noundef %35, ptr noundef %36)
%38 = load ptr, ptr %4, align 8
%39 = load ptr, ptr %7, align 8
%40 = call i32 @UpnpResponseGeneric(ptr noundef %38, ptr noundef @.str.1, ptr noundef @.str.2, ptr noundef %39)
%41 = load ptr, ptr %7, align 8
%42 = call i32 @free(ptr noundef %41)
%43 = load ptr, ptr %8, align 8
%44 = call i32 @free(ptr noundef %43)
%45 = load ptr, ptr %9, align 8
%46 = call i32 @free(ptr noundef %45)
ret void
}
declare i64 @malloc(i64 noundef) #1
declare i64 @ILibXmlEscapeLength(ptr noundef) #1
declare i32 @ILibXmlEscape(ptr noundef, ptr noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @UpnpResponseGeneric(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbcasce61.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"<Source>%s</Source><Sink>%s</Sink>\00", align 1
@.str.1 = private unnamed_addr constant [49 x i8] c"urn:schemas-upnp-org:service:ConnectionManager:1\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"GetProtocolInfo\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @UpnpResponse_MediaRenderer_ConnectionManager_GetProtocolInfo(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 ptr, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%10 = load ptr, ptr %5, align 8
%11 = call i64 @ILibXmlEscapeLength(ptr noundef %10)
%12 = add nsw i64 1, %11
%13 = call i64 @malloc(i64 noundef %12)
%14 = inttoptr i64 %13 to ptr
store ptr %14, ptr %8, align 8
%15 = load ptr, ptr %6, align 8
%16 = call i64 @ILibXmlEscapeLength(ptr noundef %15)
%17 = add nsw i64 1, %16
%18 = call i64 @malloc(i64 noundef %17)
%19 = inttoptr i64 %18 to ptr
store ptr %19, ptr %9, align 8
%20 = load ptr, ptr %8, align 8
%21 = load ptr, ptr %5, align 8
%22 = call i32 @ILibXmlEscape(ptr noundef %20, ptr noundef %21)
%23 = load ptr, ptr %9, align 8
%24 = load ptr, ptr %6, align 8
%25 = call i32 @ILibXmlEscape(ptr noundef %23, ptr noundef %24)
%26 = load ptr, ptr %8, align 8
%27 = call i64 @strlen(ptr noundef %26)
%28 = add nsw i64 31, %27
%29 = load ptr, ptr %9, align 8
%30 = call i64 @strlen(ptr noundef %29)
%31 = add nsw i64 %28, %30
%32 = call i64 @malloc(i64 noundef %31)
%33 = inttoptr i64 %32 to ptr
store ptr %33, ptr %7, align 8
%34 = load ptr, ptr %7, align 8
%35 = load ptr, ptr %8, align 8
%36 = load ptr, ptr %9, align 8
%37 = call i32 @sprintf(ptr noundef %34, ptr noundef @.str, ptr noundef %35, ptr noundef %36)
%38 = load ptr, ptr %4, align 8
%39 = load ptr, ptr %7, align 8
%40 = call i32 @UpnpResponseGeneric(ptr noundef %38, ptr noundef @.str.1, ptr noundef @.str.2, ptr noundef %39)
%41 = load ptr, ptr %7, align 8
%42 = call i32 @free(ptr noundef %41)
%43 = load ptr, ptr %8, align 8
%44 = call i32 @free(ptr noundef %43)
%45 = load ptr, ptr %9, align 8
%46 = call i32 @free(ptr noundef %45)
ret void
}
declare i64 @malloc(i64 noundef) #1
declare i64 @ILibXmlEscapeLength(ptr noundef) #1
declare i32 @ILibXmlEscape(ptr noundef, ptr noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @UpnpResponseGeneric(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"}
|
; ModuleID = '/tmp/tmpewvaexe2.c'
source_filename = "/tmp/tmpewvaexe2.c"
target datalayout = "e-m:e-p270: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/tmpewvaexe2.c"
target datalayout = "e-m:e-p270: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/tmp9opwtoo_.c'
source_filename = "/tmp/tmp9opwtoo_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__lxstat(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @booster_lxstat(i32 noundef %7, ptr noundef %8, ptr noundef %9)
ret i32 %10
}
declare i32 @booster_lxstat(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9opwtoo_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__lxstat(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @booster_lxstat(i32 noundef %7, ptr noundef %8, ptr noundef %9)
ret i32 %10
}
declare i32 @booster_lxstat(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpcrerpc1e.c'
source_filename = "/tmp/tmpcrerpc1e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@DBL_MIN = dso_local global double 0.000000e+00, 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/tmpcrerpc1e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@DBL_MIN = dso_local global double 0.000000e+00, 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/tmp6lnzf465.c'
source_filename = "/tmp/tmp6lnzf465.c"
target datalayout = "e-m:e-p270: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/tmp6lnzf465.c"
target datalayout = "e-m:e-p270: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/tmpuvz98wix.c'
source_filename = "/tmp/tmpuvz98wix.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@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/tmpuvz98wix.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@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/tmptnlj_7vd.c'
source_filename = "/tmp/tmptnlj_7vd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @zwavecmd_multilevel_start_level_change(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [2 x i8], align 1
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = getelementptr inbounds [2 x i8], ptr %5, i64 0, i64 0
store i8 96, ptr %9, align 1
br label %12
10: ; preds = %2
%11 = getelementptr inbounds [2 x i8], ptr %5, i64 0, i64 0
store i8 32, ptr %11, align 1
br label %12
12: ; preds = %10, %8
%13 = getelementptr inbounds [2 x i8], ptr %5, i64 0, i64 1
store i8 0, ptr %13, align 1
%14 = load i32, ptr %3, align 4
%15 = getelementptr inbounds [2 x i8], ptr %5, i64 0, i64 0
%16 = call i32 @zwave_sendClassCommand(i32 noundef %14, i32 noundef 38, i32 noundef 4, ptr noundef %15, i32 noundef 2)
ret void
}
declare i32 @zwave_sendClassCommand(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptnlj_7vd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @zwavecmd_multilevel_start_level_change(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [2 x i8], align 1
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = getelementptr inbounds [2 x i8], ptr %5, i64 0, i64 0
store i8 96, ptr %9, align 1
br label %12
10: ; preds = %2
%11 = getelementptr inbounds [2 x i8], ptr %5, i64 0, i64 0
store i8 32, ptr %11, align 1
br label %12
12: ; preds = %10, %8
%13 = getelementptr inbounds [2 x i8], ptr %5, i64 0, i64 1
store i8 0, ptr %13, align 1
%14 = load i32, ptr %3, align 4
%15 = getelementptr inbounds [2 x i8], ptr %5, i64 0, i64 0
%16 = call i32 @zwave_sendClassCommand(i32 noundef %14, i32 noundef 38, i32 noundef 4, ptr noundef %15, i32 noundef 2)
ret void
}
declare i32 @zwave_sendClassCommand(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpy8d24di7.c'
source_filename = "/tmp/tmpy8d24di7.c"
target datalayout = "e-m:e-p270: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/tmpy8d24di7.c"
target datalayout = "e-m:e-p270: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/tmpe2sd1qm0.c'
source_filename = "/tmp/tmpe2sd1qm0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOSYS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @setcontext(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @ENOSYS, align 4
%4 = call i32 @__set_errno(i32 noundef %3)
ret i32 -1
}
declare i32 @__set_errno(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/tmpe2sd1qm0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOSYS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @setcontext(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @ENOSYS, align 4
%4 = call i32 @__set_errno(i32 noundef %3)
ret i32 -1
}
declare i32 @__set_errno(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/tmppj3p4a7j.c'
source_filename = "/tmp/tmppj3p4a7j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i64 }
@.str = private unnamed_addr constant [6 x i8] c"fstat\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [42 x i8] c"mtime has not been changed. mtime is %ld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @check_changes(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca %struct.stat, align 8
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = call i32 @fstat(i32 noundef %8, ptr noundef %6)
store i32 %9, ptr %7, align 4
%10 = load i32, ptr %7, align 4
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = call i32 @perror(ptr noundef @.str)
%14 = load i32, ptr %7, align 4
store i32 %14, ptr %3, align 4
br label %29
15: ; preds = %2
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds %struct.stat, ptr %16, i32 0, i32 0
%18 = load i64, ptr %17, align 8
%19 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 0
%20 = load i64, ptr %19, align 8
%21 = icmp eq i64 %18, %20
br i1 %21, label %22, label %28
22: ; preds = %15
%23 = load i32, ptr @stderr, align 4
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds %struct.stat, ptr %24, i32 0, i32 0
%26 = load i64, ptr %25, align 8
%27 = call i32 @fprintf(i32 noundef %23, ptr noundef @.str.1, i64 noundef %26)
store i32 -1, ptr %3, align 4
br label %29
28: ; preds = %15
store i32 0, ptr %3, align 4
br label %29
29: ; preds = %28, %22, %12
%30 = load i32, ptr %3, align 4
ret i32 %30
}
declare i32 @fstat(i32 noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppj3p4a7j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i64 }
@.str = private unnamed_addr constant [6 x i8] c"fstat\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [42 x i8] c"mtime has not been changed. mtime is %ld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @check_changes(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca %struct.stat, align 8
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = call i32 @fstat(i32 noundef %8, ptr noundef %6)
store i32 %9, ptr %7, align 4
%10 = load i32, ptr %7, align 4
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = call i32 @perror(ptr noundef @.str)
%14 = load i32, ptr %7, align 4
store i32 %14, ptr %3, align 4
br label %29
15: ; preds = %2
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds %struct.stat, ptr %16, i32 0, i32 0
%18 = load i64, ptr %17, align 8
%19 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 0
%20 = load i64, ptr %19, align 8
%21 = icmp eq i64 %18, %20
br i1 %21, label %22, label %28
22: ; preds = %15
%23 = load i32, ptr @stderr, align 4
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds %struct.stat, ptr %24, i32 0, i32 0
%26 = load i64, ptr %25, align 8
%27 = call i32 @fprintf(i32 noundef %23, ptr noundef @.str.1, i64 noundef %26)
store i32 -1, ptr %3, align 4
br label %29
28: ; preds = %15
store i32 0, ptr %3, align 4
br label %29
29: ; preds = %28, %22, %12
%30 = load i32, ptr %3, align 4
ret i32 %30
}
declare i32 @fstat(i32 noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsw3ifzep.c'
source_filename = "/tmp/tmpsw3ifzep.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"# c::%s:len=%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"dsnansum\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"ok %d benchmark finished\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = call i32 @time(ptr noundef null)
%9 = call i32 @srand(i32 noundef %8)
%10 = call i32 (...) @print_version()
store i32 0, ptr %3, align 4
store i32 1, ptr %6, align 4
br label %11
11: ; preds = %41, %0
%12 = load i32, ptr %6, align 4
%13 = icmp sle i32 %12, 6
br i1 %13, label %14, label %44
14: ; preds = %11
%15 = load i32, ptr %6, align 4
%16 = call i32 @pow(i32 noundef 10, i32 noundef %15)
store i32 %16, ptr %5, align 4
%17 = load i32, ptr %6, align 4
%18 = sub nsw i32 %17, 1
%19 = call i32 @pow(i32 noundef 10, i32 noundef %18)
%20 = sdiv i32 10000000, %19
store i32 %20, ptr %4, align 4
store i32 0, ptr %7, align 4
br label %21
21: ; preds = %37, %14
%22 = load i32, ptr %7, align 4
%23 = icmp slt i32 %22, 3
br i1 %23, label %24, label %40
24: ; preds = %21
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %3, align 4
%27 = load i32, ptr %5, align 4
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef %27)
%29 = load i32, ptr %4, align 4
%30 = load i32, ptr %5, align 4
%31 = call double @benchmark(i32 noundef %29, i32 noundef %30)
store double %31, ptr %2, align 8
%32 = load i32, ptr %4, align 4
%33 = load double, ptr %2, align 8
%34 = call i32 @print_results(i32 noundef %32, double noundef %33)
%35 = load i32, ptr %3, align 4
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %35)
br label %37
37: ; preds = %24
%38 = load i32, ptr %7, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %7, align 4
br label %21, !llvm.loop !6
40: ; preds = %21
br label %41
41: ; preds = %40
%42 = load i32, ptr %6, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %6, align 4
br label %11, !llvm.loop !8
44: ; preds = %11
%45 = load i32, ptr %3, align 4
%46 = load i32, ptr %3, align 4
%47 = call i32 @print_summary(i32 noundef %45, i32 noundef %46)
%48 = load i32, ptr %1, align 4
ret i32 %48
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @print_version(...) #1
declare i32 @pow(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @benchmark(i32 noundef, i32 noundef) #1
declare i32 @print_results(i32 noundef, double noundef) #1
declare i32 @print_summary(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsw3ifzep.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"# c::%s:len=%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"dsnansum\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"ok %d benchmark finished\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = call i32 @time(ptr noundef null)
%9 = call i32 @srand(i32 noundef %8)
%10 = call i32 (...) @print_version()
store i32 0, ptr %3, align 4
store i32 1, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp sle i32 %11, 6
br i1 %12, label %.lr.ph2, label %46
.lr.ph2: ; preds = %0
br label %13
13: ; preds = %.lr.ph2, %41
%14 = load i32, ptr %6, align 4
%15 = call i32 @pow(i32 noundef 10, i32 noundef %14)
store i32 %15, ptr %5, align 4
%16 = load i32, ptr %6, align 4
%17 = sub nsw i32 %16, 1
%18 = call i32 @pow(i32 noundef 10, i32 noundef %17)
%19 = sdiv i32 10000000, %18
store i32 %19, ptr %4, align 4
store i32 0, ptr %7, align 4
%20 = load i32, ptr %7, align 4
%21 = icmp slt i32 %20, 3
br i1 %21, label %.lr.ph, label %40
.lr.ph: ; preds = %13
br label %22
22: ; preds = %.lr.ph, %35
%23 = load i32, ptr %3, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %3, align 4
%25 = load i32, ptr %5, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef %25)
%27 = load i32, ptr %4, align 4
%28 = load i32, ptr %5, align 4
%29 = call double @benchmark(i32 noundef %27, i32 noundef %28)
store double %29, ptr %2, align 8
%30 = load i32, ptr %4, align 4
%31 = load double, ptr %2, align 8
%32 = call i32 @print_results(i32 noundef %30, double noundef %31)
%33 = load i32, ptr %3, align 4
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %33)
br label %35
35: ; preds = %22
%36 = load i32, ptr %7, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %7, align 4
%38 = load i32, ptr %7, align 4
%39 = icmp slt i32 %38, 3
br i1 %39, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %35
br label %40
40: ; preds = %._crit_edge, %13
br label %41
41: ; preds = %40
%42 = load i32, ptr %6, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %6, align 4
%44 = load i32, ptr %6, align 4
%45 = icmp sle i32 %44, 6
br i1 %45, label %13, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %41
br label %46
46: ; preds = %._crit_edge3, %0
%47 = load i32, ptr %3, align 4
%48 = load i32, ptr %3, align 4
%49 = call i32 @print_summary(i32 noundef %47, i32 noundef %48)
%50 = load i32, ptr %1, align 4
ret i32 %50
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @print_version(...) #1
declare i32 @pow(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @benchmark(i32 noundef, i32 noundef) #1
declare i32 @print_results(i32 noundef, double noundef) #1
declare i32 @print_summary(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmppbchbidj.c'
source_filename = "/tmp/tmppbchbidj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @sinc_approx(i32 noundef %0, double noundef %1, double noundef %2, double noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca i32, align 4
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
store i32 %0, ptr %5, align 4
store double %1, ptr %6, align 8
store double %2, ptr %7, align 8
store double %3, ptr %8, align 8
%13 = load double, ptr @M_PI, align 8
%14 = load double, ptr %6, align 8
%15 = fmul double %13, %14
%16 = load double, ptr %7, align 8
%17 = load i32, ptr %5, align 4
%18 = sitofp i32 %17 to double
%19 = fmul double %16, %18
%20 = fdiv double %15, %19
%21 = call double @sqrt(double noundef %20) #4
store double %21, ptr %10, align 8
%22 = load double, ptr %8, align 8
%23 = call double @asinh(double noundef %22) #4
store double %23, ptr %11, align 8
store double 0.000000e+00, ptr %12, align 8
%24 = load i32, ptr %5, align 4
store i32 %24, ptr %9, align 4
br label %25
25: ; preds = %53, %4
%26 = load i32, ptr %9, align 4
%27 = icmp sgt i32 %26, 0
br i1 %27, label %28, label %56
28: ; preds = %25
%29 = load i32, ptr %9, align 4
%30 = sitofp i32 %29 to double
%31 = load double, ptr %10, align 8
%32 = fmul double %30, %31
%33 = call double @ftrans(double noundef %32)
%34 = load i32, ptr %9, align 4
%35 = load double, ptr %10, align 8
%36 = load double, ptr %11, align 8
%37 = call double @S(i32 noundef %34, double noundef %35, double noundef %36)
%38 = load double, ptr %12, align 8
%39 = call double @llvm.fmuladd.f64(double %33, double %37, double %38)
store double %39, ptr %12, align 8
%40 = load i32, ptr %9, align 4
%41 = sub nsw i32 0, %40
%42 = sitofp i32 %41 to double
%43 = load double, ptr %10, align 8
%44 = fmul double %42, %43
%45 = call double @ftrans(double noundef %44)
%46 = load i32, ptr %9, align 4
%47 = sub nsw i32 0, %46
%48 = load double, ptr %10, align 8
%49 = load double, ptr %11, align 8
%50 = call double @S(i32 noundef %47, double noundef %48, double noundef %49)
%51 = load double, ptr %12, align 8
%52 = call double @llvm.fmuladd.f64(double %45, double %50, double %51)
store double %52, ptr %12, align 8
br label %53
53: ; preds = %28
%54 = load i32, ptr %9, align 4
%55 = add nsw i32 %54, -1
store i32 %55, ptr %9, align 4
br label %25, !llvm.loop !6
56: ; preds = %25
%57 = load double, ptr %10, align 8
%58 = fmul double 0.000000e+00, %57
%59 = call double @ftrans(double noundef %58)
%60 = load double, ptr %10, align 8
%61 = load double, ptr %11, align 8
%62 = call double @S(i32 noundef 0, double noundef %60, double noundef %61)
%63 = load double, ptr %12, align 8
%64 = call double @llvm.fmuladd.f64(double %59, double %62, double %63)
store double %64, ptr %12, align 8
%65 = load double, ptr %12, align 8
ret double %65
}
; Function Attrs: nounwind
declare double @sqrt(double noundef) #1
; Function Attrs: nounwind
declare double @asinh(double noundef) #1
declare double @ftrans(double noundef) #2
declare double @S(i32 noundef, double noundef, double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppbchbidj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @sinc_approx(i32 noundef %0, double noundef %1, double noundef %2, double noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca i32, align 4
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
store i32 %0, ptr %5, align 4
store double %1, ptr %6, align 8
store double %2, ptr %7, align 8
store double %3, ptr %8, align 8
%13 = load double, ptr @M_PI, align 8
%14 = load double, ptr %6, align 8
%15 = fmul double %13, %14
%16 = load double, ptr %7, align 8
%17 = load i32, ptr %5, align 4
%18 = sitofp i32 %17 to double
%19 = fmul double %16, %18
%20 = fdiv double %15, %19
%21 = call double @sqrt(double noundef %20) #4
store double %21, ptr %10, align 8
%22 = load double, ptr %8, align 8
%23 = call double @asinh(double noundef %22) #4
store double %23, ptr %11, align 8
store double 0.000000e+00, ptr %12, align 8
%24 = load i32, ptr %5, align 4
store i32 %24, ptr %9, align 4
%25 = load i32, ptr %9, align 4
%26 = icmp sgt i32 %25, 0
br i1 %26, label %.lr.ph, label %57
.lr.ph: ; preds = %4
br label %27
27: ; preds = %.lr.ph, %52
%28 = load i32, ptr %9, align 4
%29 = sitofp i32 %28 to double
%30 = load double, ptr %10, align 8
%31 = fmul double %29, %30
%32 = call double @ftrans(double noundef %31)
%33 = load i32, ptr %9, align 4
%34 = load double, ptr %10, align 8
%35 = load double, ptr %11, align 8
%36 = call double @S(i32 noundef %33, double noundef %34, double noundef %35)
%37 = load double, ptr %12, align 8
%38 = call double @llvm.fmuladd.f64(double %32, double %36, double %37)
store double %38, ptr %12, align 8
%39 = load i32, ptr %9, align 4
%40 = sub nsw i32 0, %39
%41 = sitofp i32 %40 to double
%42 = load double, ptr %10, align 8
%43 = fmul double %41, %42
%44 = call double @ftrans(double noundef %43)
%45 = load i32, ptr %9, align 4
%46 = sub nsw i32 0, %45
%47 = load double, ptr %10, align 8
%48 = load double, ptr %11, align 8
%49 = call double @S(i32 noundef %46, double noundef %47, double noundef %48)
%50 = load double, ptr %12, align 8
%51 = call double @llvm.fmuladd.f64(double %44, double %49, double %50)
store double %51, ptr %12, align 8
br label %52
52: ; preds = %27
%53 = load i32, ptr %9, align 4
%54 = add nsw i32 %53, -1
store i32 %54, ptr %9, align 4
%55 = load i32, ptr %9, align 4
%56 = icmp sgt i32 %55, 0
br i1 %56, label %27, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %52
br label %57
57: ; preds = %._crit_edge, %4
%58 = load double, ptr %10, align 8
%59 = fmul double 0.000000e+00, %58
%60 = call double @ftrans(double noundef %59)
%61 = load double, ptr %10, align 8
%62 = load double, ptr %11, align 8
%63 = call double @S(i32 noundef 0, double noundef %61, double noundef %62)
%64 = load double, ptr %12, align 8
%65 = call double @llvm.fmuladd.f64(double %60, double %63, double %64)
store double %65, ptr %12, align 8
%66 = load double, ptr %12, align 8
ret double %66
}
; Function Attrs: nounwind
declare double @sqrt(double noundef) #1
; Function Attrs: nounwind
declare double @asinh(double noundef) #1
declare double @ftrans(double noundef) #2
declare double @S(i32 noundef, double noundef, double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpaqq4jodi.c'
source_filename = "/tmp/tmpaqq4jodi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.termios = type { i32 }
@STDOUT_FILENO = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [12 x i8] c"\0APassword? \00", align 1
@STDIN_FILENO = dso_local global i32 0, align 4
@ECHO = dso_local global i32 0, align 4
@ECHOE = dso_local global i32 0, align 4
@ECHOK = dso_local global i32 0, align 4
@ECHONL = dso_local global i32 0, align 4
@ICANON = dso_local global i32 0, align 4
@TCSAFLUSH = dso_local global i32 0, align 4
@TCSANOW = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [13 x i8] c"\0A\0APassword: \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 %struct.termios, align 4
%3 = alloca %struct.termios, align 4
%4 = alloca i32, align 4
%5 = alloca [21 x i8], align 16
%6 = alloca i8, align 1
%7 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i8 42, ptr %7, align 1
%8 = load i32, ptr @STDOUT_FILENO, align 4
%9 = call i32 @write(i32 noundef %8, ptr noundef @.str, i32 noundef 11)
%10 = load i32, ptr @STDIN_FILENO, align 4
%11 = call i32 @tcgetattr(i32 noundef %10, ptr noundef %3)
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %2, ptr align 4 %3, i64 4, i1 false)
%12 = load i32, ptr @ECHO, align 4
%13 = load i32, ptr @ECHOE, align 4
%14 = or i32 %12, %13
%15 = load i32, ptr @ECHOK, align 4
%16 = or i32 %14, %15
%17 = load i32, ptr @ECHONL, align 4
%18 = or i32 %16, %17
%19 = load i32, ptr @ICANON, align 4
%20 = or i32 %18, %19
%21 = xor i32 %20, -1
%22 = getelementptr inbounds %struct.termios, ptr %2, i32 0, i32 0
%23 = load i32, ptr %22, align 4
%24 = and i32 %23, %21
store i32 %24, ptr %22, align 4
%25 = load i32, ptr @STDIN_FILENO, align 4
%26 = load i32, ptr @TCSAFLUSH, align 4
%27 = call i32 @tcsetattr(i32 noundef %25, i32 noundef %26, ptr noundef %2)
store i32 0, ptr %4, align 4
br label %28
28: ; preds = %41, %0
%29 = load i32, ptr %4, align 4
%30 = icmp slt i32 %29, 20
br i1 %30, label %31, label %39
31: ; preds = %28
%32 = load i32, ptr @STDIN_FILENO, align 4
%33 = call i64 @read(i32 noundef %32, ptr noundef %6, i32 noundef 1)
%34 = icmp ne i64 %33, 0
br i1 %34, label %35, label %39
35: ; preds = %31
%36 = load i8, ptr %6, align 1
%37 = sext i8 %36 to i32
%38 = icmp ne i32 %37, 10
br label %39
39: ; preds = %35, %31, %28
%40 = phi i1 [ false, %31 ], [ false, %28 ], [ %38, %35 ]
br i1 %40, label %41, label %49
41: ; preds = %39
%42 = load i8, ptr %6, align 1
%43 = load i32, ptr %4, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %4, align 4
%45 = sext i32 %43 to i64
%46 = getelementptr inbounds [21 x i8], ptr %5, i64 0, i64 %45
store i8 %42, ptr %46, align 1
%47 = load i32, ptr @STDOUT_FILENO, align 4
%48 = call i32 @write(i32 noundef %47, ptr noundef %7, i32 noundef 1)
br label %28, !llvm.loop !6
49: ; preds = %39
%50 = load i32, ptr %4, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [21 x i8], ptr %5, i64 0, i64 %51
store i8 0, ptr %52, align 1
%53 = load i32, ptr @STDIN_FILENO, align 4
%54 = load i32, ptr @TCSANOW, align 4
%55 = call i32 @tcsetattr(i32 noundef %53, i32 noundef %54, ptr noundef %3)
%56 = load i32, ptr @STDOUT_FILENO, align 4
%57 = call i32 @write(i32 noundef %56, ptr noundef @.str.1, i32 noundef 12)
%58 = load i32, ptr @STDOUT_FILENO, align 4
%59 = getelementptr inbounds [21 x i8], ptr %5, i64 0, i64 0
%60 = getelementptr inbounds [21 x i8], ptr %5, i64 0, i64 0
%61 = call i32 @strlen(ptr noundef %60)
%62 = call i32 @write(i32 noundef %58, ptr noundef %59, i32 noundef %61)
%63 = load i32, ptr @STDOUT_FILENO, align 4
%64 = call i32 @write(i32 noundef %63, ptr noundef @.str.2, i32 noundef 1)
ret i32 0
}
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @tcgetattr(i32 noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @tcsetattr(i32 noundef, i32 noundef, ptr noundef) #1
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpaqq4jodi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.termios = type { i32 }
@STDOUT_FILENO = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [12 x i8] c"\0APassword? \00", align 1
@STDIN_FILENO = dso_local global i32 0, align 4
@ECHO = dso_local global i32 0, align 4
@ECHOE = dso_local global i32 0, align 4
@ECHOK = dso_local global i32 0, align 4
@ECHONL = dso_local global i32 0, align 4
@ICANON = dso_local global i32 0, align 4
@TCSAFLUSH = dso_local global i32 0, align 4
@TCSANOW = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [13 x i8] c"\0A\0APassword: \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 %struct.termios, align 4
%3 = alloca %struct.termios, align 4
%4 = alloca i32, align 4
%5 = alloca [21 x i8], align 16
%6 = alloca i8, align 1
%7 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i8 42, ptr %7, align 1
%8 = load i32, ptr @STDOUT_FILENO, align 4
%9 = call i32 @write(i32 noundef %8, ptr noundef @.str, i32 noundef 11)
%10 = load i32, ptr @STDIN_FILENO, align 4
%11 = call i32 @tcgetattr(i32 noundef %10, ptr noundef %3)
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %2, ptr align 4 %3, i64 4, i1 false)
%12 = load i32, ptr @ECHO, align 4
%13 = load i32, ptr @ECHOE, align 4
%14 = or i32 %12, %13
%15 = load i32, ptr @ECHOK, align 4
%16 = or i32 %14, %15
%17 = load i32, ptr @ECHONL, align 4
%18 = or i32 %16, %17
%19 = load i32, ptr @ICANON, align 4
%20 = or i32 %18, %19
%21 = xor i32 %20, -1
%22 = getelementptr inbounds %struct.termios, ptr %2, i32 0, i32 0
%23 = load i32, ptr %22, align 4
%24 = and i32 %23, %21
store i32 %24, ptr %22, align 4
%25 = load i32, ptr @STDIN_FILENO, align 4
%26 = load i32, ptr @TCSAFLUSH, align 4
%27 = call i32 @tcsetattr(i32 noundef %25, i32 noundef %26, ptr noundef %2)
store i32 0, ptr %4, align 4
br label %28
28: ; preds = %41, %0
%29 = load i32, ptr %4, align 4
%30 = icmp slt i32 %29, 20
br i1 %30, label %31, label %39
31: ; preds = %28
%32 = load i32, ptr @STDIN_FILENO, align 4
%33 = call i64 @read(i32 noundef %32, ptr noundef %6, i32 noundef 1)
%34 = icmp ne i64 %33, 0
br i1 %34, label %35, label %39
35: ; preds = %31
%36 = load i8, ptr %6, align 1
%37 = sext i8 %36 to i32
%38 = icmp ne i32 %37, 10
br label %39
39: ; preds = %35, %31, %28
%40 = phi i1 [ false, %31 ], [ false, %28 ], [ %38, %35 ]
br i1 %40, label %41, label %49
41: ; preds = %39
%42 = load i8, ptr %6, align 1
%43 = load i32, ptr %4, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %4, align 4
%45 = sext i32 %43 to i64
%46 = getelementptr inbounds [21 x i8], ptr %5, i64 0, i64 %45
store i8 %42, ptr %46, align 1
%47 = load i32, ptr @STDOUT_FILENO, align 4
%48 = call i32 @write(i32 noundef %47, ptr noundef %7, i32 noundef 1)
br label %28, !llvm.loop !6
49: ; preds = %39
%50 = load i32, ptr %4, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [21 x i8], ptr %5, i64 0, i64 %51
store i8 0, ptr %52, align 1
%53 = load i32, ptr @STDIN_FILENO, align 4
%54 = load i32, ptr @TCSANOW, align 4
%55 = call i32 @tcsetattr(i32 noundef %53, i32 noundef %54, ptr noundef %3)
%56 = load i32, ptr @STDOUT_FILENO, align 4
%57 = call i32 @write(i32 noundef %56, ptr noundef @.str.1, i32 noundef 12)
%58 = load i32, ptr @STDOUT_FILENO, align 4
%59 = getelementptr inbounds [21 x i8], ptr %5, i64 0, i64 0
%60 = getelementptr inbounds [21 x i8], ptr %5, i64 0, i64 0
%61 = call i32 @strlen(ptr noundef %60)
%62 = call i32 @write(i32 noundef %58, ptr noundef %59, i32 noundef %61)
%63 = load i32, ptr @STDOUT_FILENO, align 4
%64 = call i32 @write(i32 noundef %63, ptr noundef @.str.2, i32 noundef 1)
ret i32 0
}
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @tcgetattr(i32 noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @tcsetattr(i32 noundef, i32 noundef, ptr noundef) #1
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpedkawue0.c'
source_filename = "/tmp/tmpedkawue0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [41 x i8] c"Error: incorrect number of lines in %s.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ancestrymap2lfmm(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 ptr, align 8
%10 = alloca i32, align 4
%11 = alloca double, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%12 = load ptr, ptr %5, align 8
%13 = call i32 @nb_ind_ancestrymap(ptr noundef %12)
%14 = load ptr, ptr %7, align 8
store i32 %13, ptr %14, align 4
%15 = load ptr, ptr %5, align 8
%16 = call i32 @nb_lines(ptr noundef %15, i32 noundef 1000)
store i32 %16, ptr %10, align 4
%17 = load i32, ptr %10, align 4
%18 = sitofp i32 %17 to double
%19 = load ptr, ptr %7, align 8
%20 = load i32, ptr %19, align 4
%21 = sitofp i32 %20 to double
%22 = fdiv double %18, %21
store double %22, ptr %11, align 8
%23 = load double, ptr %11, align 8
%24 = load double, ptr %11, align 8
%25 = call double @llvm.floor.f64(double %24)
%26 = fcmp une double %23, %25
br i1 %26, label %27, label %31
27: ; preds = %4
%28 = load ptr, ptr %5, align 8
%29 = call i32 @printf(ptr noundef @.str, ptr noundef %28)
%30 = call i32 @exit(i32 noundef 1) #4
unreachable
31: ; preds = %4
%32 = load double, ptr %11, align 8
%33 = fptosi double %32 to i32
%34 = load ptr, ptr %8, align 8
store i32 %33, ptr %34, align 4
%35 = load ptr, ptr %7, align 8
%36 = load i32, ptr %35, align 4
%37 = load ptr, ptr %8, align 8
%38 = load i32, ptr %37, align 4
%39 = mul nsw i32 %36, %38
%40 = sext i32 %39 to i64
%41 = mul i64 %40, 4
%42 = trunc i64 %41 to i32
%43 = call i64 @malloc(i32 noundef %42)
%44 = inttoptr i64 %43 to ptr
store ptr %44, ptr %9, align 8
%45 = load ptr, ptr %5, align 8
%46 = load ptr, ptr %7, align 8
%47 = load i32, ptr %46, align 4
%48 = load ptr, ptr %8, align 8
%49 = load i32, ptr %48, align 4
%50 = load ptr, ptr %9, align 8
%51 = call i32 @read_ancestrymap(ptr noundef %45, i32 noundef %47, i32 noundef %49, ptr noundef %50)
%52 = load ptr, ptr %6, align 8
%53 = load ptr, ptr %7, align 8
%54 = load i32, ptr %53, align 4
%55 = load ptr, ptr %8, align 8
%56 = load i32, ptr %55, align 4
%57 = load ptr, ptr %9, align 8
%58 = call i32 @write_data_int(ptr noundef %52, i32 noundef %54, i32 noundef %56, ptr noundef %57)
%59 = load ptr, ptr %9, align 8
%60 = call i32 @free(ptr noundef %59)
ret void
}
declare i32 @nb_ind_ancestrymap(ptr noundef) #1
declare i32 @nb_lines(ptr noundef, 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, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i64 @malloc(i32 noundef) #1
declare i32 @read_ancestrymap(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @write_data_int(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpedkawue0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [41 x i8] c"Error: incorrect number of lines in %s.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ancestrymap2lfmm(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 ptr, align 8
%10 = alloca i32, align 4
%11 = alloca double, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%12 = load ptr, ptr %5, align 8
%13 = call i32 @nb_ind_ancestrymap(ptr noundef %12)
%14 = load ptr, ptr %7, align 8
store i32 %13, ptr %14, align 4
%15 = load ptr, ptr %5, align 8
%16 = call i32 @nb_lines(ptr noundef %15, i32 noundef 1000)
store i32 %16, ptr %10, align 4
%17 = load i32, ptr %10, align 4
%18 = sitofp i32 %17 to double
%19 = load ptr, ptr %7, align 8
%20 = load i32, ptr %19, align 4
%21 = sitofp i32 %20 to double
%22 = fdiv double %18, %21
store double %22, ptr %11, align 8
%23 = load double, ptr %11, align 8
%24 = load double, ptr %11, align 8
%25 = call double @llvm.floor.f64(double %24)
%26 = fcmp une double %23, %25
br i1 %26, label %27, label %31
27: ; preds = %4
%28 = load ptr, ptr %5, align 8
%29 = call i32 @printf(ptr noundef @.str, ptr noundef %28)
%30 = call i32 @exit(i32 noundef 1) #4
unreachable
31: ; preds = %4
%32 = load double, ptr %11, align 8
%33 = fptosi double %32 to i32
%34 = load ptr, ptr %8, align 8
store i32 %33, ptr %34, align 4
%35 = load ptr, ptr %7, align 8
%36 = load i32, ptr %35, align 4
%37 = load ptr, ptr %8, align 8
%38 = load i32, ptr %37, align 4
%39 = mul nsw i32 %36, %38
%40 = sext i32 %39 to i64
%41 = mul i64 %40, 4
%42 = trunc i64 %41 to i32
%43 = call i64 @malloc(i32 noundef %42)
%44 = inttoptr i64 %43 to ptr
store ptr %44, ptr %9, align 8
%45 = load ptr, ptr %5, align 8
%46 = load ptr, ptr %7, align 8
%47 = load i32, ptr %46, align 4
%48 = load ptr, ptr %8, align 8
%49 = load i32, ptr %48, align 4
%50 = load ptr, ptr %9, align 8
%51 = call i32 @read_ancestrymap(ptr noundef %45, i32 noundef %47, i32 noundef %49, ptr noundef %50)
%52 = load ptr, ptr %6, align 8
%53 = load ptr, ptr %7, align 8
%54 = load i32, ptr %53, align 4
%55 = load ptr, ptr %8, align 8
%56 = load i32, ptr %55, align 4
%57 = load ptr, ptr %9, align 8
%58 = call i32 @write_data_int(ptr noundef %52, i32 noundef %54, i32 noundef %56, ptr noundef %57)
%59 = load ptr, ptr %9, align 8
%60 = call i32 @free(ptr noundef %59)
ret void
}
declare i32 @nb_ind_ancestrymap(ptr noundef) #1
declare i32 @nb_lines(ptr noundef, 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, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i64 @malloc(i32 noundef) #1
declare i32 @read_ancestrymap(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @write_data_int(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqg67hqlm.c'
source_filename = "/tmp/tmpqg67hqlm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
; 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 [20 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 0
%8 = load i32, ptr @stdin, align 4
%9 = call i32 @fgets(ptr noundef %7, i32 noundef 21, i32 noundef %8)
ret i32 0
}
declare i32 @fgets(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/tmpqg67hqlm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
; 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 [20 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 0
%8 = load i32, ptr @stdin, align 4
%9 = call i32 @fgets(ptr noundef %7, i32 noundef 21, i32 noundef %8)
ret i32 0
}
declare i32 @fgets(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/tmp5ma975qa.c'
source_filename = "/tmp/tmp5ma975qa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [18 x i8] c"command not found\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @error(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = call ptr @malloc(i32 noundef 8)
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %2, align 8
%7 = load ptr, ptr %3, align 8
%8 = getelementptr inbounds ptr, ptr %7, i64 0
store ptr %6, ptr %8, align 8
%9 = load ptr, ptr %3, align 8
%10 = call i32 @printFF(ptr noundef @.str, ptr noundef %9, i32 noundef 0)
%11 = call i32 @putchar(i8 noundef signext 58)
%12 = call i32 @putchar(i8 noundef signext 32)
store ptr @.str.1, ptr %4, align 8
%13 = load ptr, ptr %4, align 8
%14 = load ptr, ptr %3, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 0
store ptr %13, ptr %15, align 8
%16 = load ptr, ptr %3, align 8
%17 = call i32 @printFF(ptr noundef @.str, ptr noundef %16, i32 noundef 0)
%18 = call i32 @putchar(i8 noundef signext 10)
ret void
}
declare ptr @malloc(i32 noundef) #1
declare i32 @printFF(ptr noundef, ptr noundef, i32 noundef) #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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5ma975qa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [18 x i8] c"command not found\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @error(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = call ptr @malloc(i32 noundef 8)
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %2, align 8
%7 = load ptr, ptr %3, align 8
%8 = getelementptr inbounds ptr, ptr %7, i64 0
store ptr %6, ptr %8, align 8
%9 = load ptr, ptr %3, align 8
%10 = call i32 @printFF(ptr noundef @.str, ptr noundef %9, i32 noundef 0)
%11 = call i32 @putchar(i8 noundef signext 58)
%12 = call i32 @putchar(i8 noundef signext 32)
store ptr @.str.1, ptr %4, align 8
%13 = load ptr, ptr %4, align 8
%14 = load ptr, ptr %3, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 0
store ptr %13, ptr %15, align 8
%16 = load ptr, ptr %3, align 8
%17 = call i32 @printFF(ptr noundef @.str, ptr noundef %16, i32 noundef 0)
%18 = call i32 @putchar(i8 noundef signext 10)
ret void
}
declare ptr @malloc(i32 noundef) #1
declare i32 @printFF(ptr noundef, ptr noundef, i32 noundef) #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"}
|
; ModuleID = '/tmp/tmpeop03qz1.c'
source_filename = "/tmp/tmpeop03qz1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Should get 14\0AGot: \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Should get 5\0AGot: \00", align 1
@.str.3 = private unnamed_addr constant [20 x i8] c"Should get 11\0AGot: \00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"Should get 10\0AGot: \00", align 1
@.str.5 = private unnamed_addr constant [19 x i8] c"Should get 2\0AGot: \00", align 1
@.str.6 = private unnamed_addr constant [20 x i8] c"Should get -8\0AGot: \00", align 1
@.str.7 = private unnamed_addr constant [20 x i8] c"Should get 21\0AGot: \00", align 1
@.str.8 = private unnamed_addr constant [20 x i8] c"Should get 17\0AGot: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
store i32 14, ptr %1, align 4
%2 = call i32 @print_string(ptr noundef @.str)
%3 = load i32, ptr %1, align 4
%4 = call i32 @print_int(i32 noundef %3)
%5 = call i32 @print_string(ptr noundef @.str.1)
store i32 5, ptr %1, align 4
%6 = call i32 @print_string(ptr noundef @.str.2)
%7 = load i32, ptr %1, align 4
%8 = call i32 @print_int(i32 noundef %7)
%9 = call i32 @print_string(ptr noundef @.str.1)
store i32 5, ptr %1, align 4
%10 = call i32 @print_string(ptr noundef @.str.2)
%11 = load i32, ptr %1, align 4
%12 = call i32 @print_int(i32 noundef %11)
%13 = call i32 @print_string(ptr noundef @.str.1)
store i32 11, ptr %1, align 4
%14 = call i32 @print_string(ptr noundef @.str.3)
%15 = load i32, ptr %1, align 4
%16 = call i32 @print_int(i32 noundef %15)
%17 = call i32 @print_string(ptr noundef @.str.1)
store i32 10, ptr %1, align 4
%18 = call i32 @print_string(ptr noundef @.str.4)
%19 = load i32, ptr %1, align 4
%20 = call i32 @print_int(i32 noundef %19)
%21 = call i32 @print_string(ptr noundef @.str.1)
store i32 2, ptr %1, align 4
%22 = call i32 @print_string(ptr noundef @.str.5)
%23 = load i32, ptr %1, align 4
%24 = call i32 @print_int(i32 noundef %23)
%25 = call i32 @print_string(ptr noundef @.str.1)
store i32 -8, ptr %1, align 4
%26 = call i32 @print_string(ptr noundef @.str.6)
%27 = load i32, ptr %1, align 4
%28 = call i32 @print_int(i32 noundef %27)
%29 = call i32 @print_string(ptr noundef @.str.1)
store i32 21, ptr %1, align 4
%30 = call i32 @print_string(ptr noundef @.str.7)
%31 = load i32, ptr %1, align 4
%32 = call i32 @print_int(i32 noundef %31)
%33 = call i32 @print_string(ptr noundef @.str.1)
store i32 17, ptr %1, align 4
%34 = call i32 @print_string(ptr noundef @.str.8)
%35 = load i32, ptr %1, align 4
%36 = call i32 @print_int(i32 noundef %35)
%37 = call i32 @print_string(ptr noundef @.str.1)
ret void
}
declare i32 @print_string(ptr noundef) #1
declare i32 @print_int(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/tmpeop03qz1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Should get 14\0AGot: \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Should get 5\0AGot: \00", align 1
@.str.3 = private unnamed_addr constant [20 x i8] c"Should get 11\0AGot: \00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"Should get 10\0AGot: \00", align 1
@.str.5 = private unnamed_addr constant [19 x i8] c"Should get 2\0AGot: \00", align 1
@.str.6 = private unnamed_addr constant [20 x i8] c"Should get -8\0AGot: \00", align 1
@.str.7 = private unnamed_addr constant [20 x i8] c"Should get 21\0AGot: \00", align 1
@.str.8 = private unnamed_addr constant [20 x i8] c"Should get 17\0AGot: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
store i32 14, ptr %1, align 4
%2 = call i32 @print_string(ptr noundef @.str)
%3 = load i32, ptr %1, align 4
%4 = call i32 @print_int(i32 noundef %3)
%5 = call i32 @print_string(ptr noundef @.str.1)
store i32 5, ptr %1, align 4
%6 = call i32 @print_string(ptr noundef @.str.2)
%7 = load i32, ptr %1, align 4
%8 = call i32 @print_int(i32 noundef %7)
%9 = call i32 @print_string(ptr noundef @.str.1)
store i32 5, ptr %1, align 4
%10 = call i32 @print_string(ptr noundef @.str.2)
%11 = load i32, ptr %1, align 4
%12 = call i32 @print_int(i32 noundef %11)
%13 = call i32 @print_string(ptr noundef @.str.1)
store i32 11, ptr %1, align 4
%14 = call i32 @print_string(ptr noundef @.str.3)
%15 = load i32, ptr %1, align 4
%16 = call i32 @print_int(i32 noundef %15)
%17 = call i32 @print_string(ptr noundef @.str.1)
store i32 10, ptr %1, align 4
%18 = call i32 @print_string(ptr noundef @.str.4)
%19 = load i32, ptr %1, align 4
%20 = call i32 @print_int(i32 noundef %19)
%21 = call i32 @print_string(ptr noundef @.str.1)
store i32 2, ptr %1, align 4
%22 = call i32 @print_string(ptr noundef @.str.5)
%23 = load i32, ptr %1, align 4
%24 = call i32 @print_int(i32 noundef %23)
%25 = call i32 @print_string(ptr noundef @.str.1)
store i32 -8, ptr %1, align 4
%26 = call i32 @print_string(ptr noundef @.str.6)
%27 = load i32, ptr %1, align 4
%28 = call i32 @print_int(i32 noundef %27)
%29 = call i32 @print_string(ptr noundef @.str.1)
store i32 21, ptr %1, align 4
%30 = call i32 @print_string(ptr noundef @.str.7)
%31 = load i32, ptr %1, align 4
%32 = call i32 @print_int(i32 noundef %31)
%33 = call i32 @print_string(ptr noundef @.str.1)
store i32 17, ptr %1, align 4
%34 = call i32 @print_string(ptr noundef @.str.8)
%35 = load i32, ptr %1, align 4
%36 = call i32 @print_int(i32 noundef %35)
%37 = call i32 @print_string(ptr noundef @.str.1)
ret void
}
declare i32 @print_string(ptr noundef) #1
declare i32 @print_int(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/tmpnsa13n_6.c'
source_filename = "/tmp/tmpnsa13n_6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Entre com o n\C3\BAmero de dias: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [31 x i8] c"\0A%d dias equivalem a %f anos.\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 float, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%6 = load i32, ptr %2, align 4
%7 = sitofp i32 %6 to double
%8 = fdiv double %7, 3.652500e+02
%9 = fptrunc double %8 to float
store float %9, ptr %3, align 4
%10 = load i32, ptr %2, align 4
%11 = load float, ptr %3, align 4
%12 = fpext float %11 to double
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %10, double noundef %12)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnsa13n_6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Entre com o n\C3\BAmero de dias: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [31 x i8] c"\0A%d dias equivalem a %f anos.\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 float, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%6 = load i32, ptr %2, align 4
%7 = sitofp i32 %6 to double
%8 = fdiv double %7, 3.652500e+02
%9 = fptrunc double %8 to float
store float %9, ptr %3, align 4
%10 = load i32, ptr %2, align 4
%11 = load float, ptr %3, align 4
%12 = fpext float %11 to double
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %10, double noundef %12)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpk47zc14b.c'
source_filename = "/tmp/tmpk47zc14b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @Load(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = add nsw i32 %6, 3
%8 = call ptr @Memory(i32 noundef %7, i32 noundef 1)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %4, align 4
%12 = call i32 @memcpy(ptr noundef %9, ptr noundef %10, i32 noundef %11)
%13 = load ptr, ptr %5, align 8
ret ptr %13
}
declare ptr @Memory(i32 noundef, i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk47zc14b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @Load(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = add nsw i32 %6, 3
%8 = call ptr @Memory(i32 noundef %7, i32 noundef 1)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %4, align 4
%12 = call i32 @memcpy(ptr noundef %9, ptr noundef %10, i32 noundef %11)
%13 = load ptr, ptr %5, align 8
ret ptr %13
}
declare ptr @Memory(i32 noundef, i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2vs0_4re.c'
source_filename = "/tmp/tmp2vs0_4re.c"
target datalayout = "e-m:e-p270: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/tmp2vs0_4re.c"
target datalayout = "e-m:e-p270: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/tmpn5qu42e4.c'
source_filename = "/tmp/tmpn5qu42e4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [163 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/tumf/xen-3.3.1/refs/heads/master/tools/ioemu-qemu-xen/tests/linux-test.c\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"waitpid status=0x%x\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_fork() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 (...) @fork()
%4 = call i32 @__chk_error(ptr noundef @.str, i32 noundef 216, i32 noundef %3)
store i32 %4, ptr %1, align 4
%5 = load i32, ptr %1, align 4
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 @exit(i32 noundef 2) #3
unreachable
9: ; preds = %0
%10 = load i32, ptr %1, align 4
%11 = call i32 @waitpid(i32 noundef %10, ptr noundef %2, i32 noundef 0)
%12 = call i32 @__chk_error(ptr noundef @.str, i32 noundef 221, i32 noundef %11)
%13 = load i32, ptr %2, align 4
%14 = call i32 @WIFEXITED(i32 noundef %13)
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %20
16: ; preds = %9
%17 = load i32, ptr %2, align 4
%18 = call i32 @WEXITSTATUS(i32 noundef %17)
%19 = icmp ne i32 %18, 2
br i1 %19, label %20, label %23
20: ; preds = %16, %9
%21 = load i32, ptr %2, align 4
%22 = call i32 @error1(ptr noundef @.str, i32 noundef 223, ptr noundef @.str.1, i32 noundef %21)
br label %23
23: ; preds = %20, %16
ret void
}
declare i32 @__chk_error(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fork(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @waitpid(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @WIFEXITED(i32 noundef) #1
declare i32 @WEXITSTATUS(i32 noundef) #1
declare i32 @error1(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" }
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/tmpn5qu42e4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [163 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/tumf/xen-3.3.1/refs/heads/master/tools/ioemu-qemu-xen/tests/linux-test.c\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"waitpid status=0x%x\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_fork() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 (...) @fork()
%4 = call i32 @__chk_error(ptr noundef @.str, i32 noundef 216, i32 noundef %3)
store i32 %4, ptr %1, align 4
%5 = load i32, ptr %1, align 4
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 @exit(i32 noundef 2) #3
unreachable
9: ; preds = %0
%10 = load i32, ptr %1, align 4
%11 = call i32 @waitpid(i32 noundef %10, ptr noundef %2, i32 noundef 0)
%12 = call i32 @__chk_error(ptr noundef @.str, i32 noundef 221, i32 noundef %11)
%13 = load i32, ptr %2, align 4
%14 = call i32 @WIFEXITED(i32 noundef %13)
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %20
16: ; preds = %9
%17 = load i32, ptr %2, align 4
%18 = call i32 @WEXITSTATUS(i32 noundef %17)
%19 = icmp ne i32 %18, 2
br i1 %19, label %20, label %23
20: ; preds = %16, %9
%21 = load i32, ptr %2, align 4
%22 = call i32 @error1(ptr noundef @.str, i32 noundef 223, ptr noundef @.str.1, i32 noundef %21)
br label %23
23: ; preds = %20, %16
ret void
}
declare i32 @__chk_error(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fork(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @waitpid(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @WIFEXITED(i32 noundef) #1
declare i32 @WEXITSTATUS(i32 noundef) #1
declare i32 @error1(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" }
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/tmprz6_sz9v.c'
source_filename = "/tmp/tmprz6_sz9v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@_NSIG = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @__libc_sigaction(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %6, align 8
%10 = load i32, ptr @_NSIG, align 4
%11 = sdiv i32 %10, 8
%12 = call i32 @__rt_sigaction(i32 noundef %7, ptr noundef %8, ptr noundef %9, i32 noundef 0, i32 noundef %11)
ret i32 %12
}
declare i32 @__rt_sigaction(i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprz6_sz9v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@_NSIG = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @__libc_sigaction(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %6, align 8
%10 = load i32, ptr @_NSIG, align 4
%11 = sdiv i32 %10, 8
%12 = call i32 @__rt_sigaction(i32 noundef %7, ptr noundef %8, ptr noundef %9, i32 noundef 0, i32 noundef %11)
ret i32 %12
}
declare i32 @__rt_sigaction(i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmxafzqkc.c'
source_filename = "/tmp/tmpmxafzqkc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test() #0 {
%1 = call i32 (...) @fun()
%2 = add nsw i32 %1, 2
%3 = add nsw i32 %2, 1
ret i32 %3
}
declare i32 @fun(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmxafzqkc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test() #0 {
%1 = call i32 (...) @fun()
%2 = add nsw i32 %1, 2
%3 = add nsw i32 %2, 1
ret i32 %3
}
declare i32 @fun(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_3y8vg7w.c'
source_filename = "/tmp/tmp_3y8vg7w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @file_read(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = 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 null, ptr %8, align 8
%12 = load ptr, ptr %5, align 8
%13 = call ptr @fopen(ptr noundef %12, ptr noundef @.str)
store ptr %13, ptr %8, align 8
%14 = load ptr, ptr %8, align 8
%15 = icmp eq ptr %14, null
br i1 %15, label %16, label %17
16: ; preds = %3
store i32 -1, ptr %4, align 4
br label %47
17: ; preds = %3
%18 = load ptr, ptr %8, align 8
%19 = load i32, ptr @SEEK_END, align 4
%20 = call i32 @fseek(ptr noundef %18, i32 noundef 0, i32 noundef %19)
%21 = load ptr, ptr %8, align 8
%22 = call i64 @ftell(ptr noundef %21)
store i64 %22, ptr %9, align 8
%23 = load ptr, ptr %8, align 8
%24 = load i32, ptr @SEEK_SET, align 4
%25 = call i32 @fseek(ptr noundef %23, i32 noundef 0, i32 noundef %24)
%26 = load i64, ptr %9, align 8
%27 = call ptr @malloc(i64 noundef %26)
store ptr %27, ptr %10, align 8
%28 = load ptr, ptr %10, align 8
%29 = load i64, ptr %9, align 8
%30 = load ptr, ptr %8, align 8
%31 = call i32 @fread(ptr noundef %28, i32 noundef 1, i64 noundef %29, ptr noundef %30)
store i32 %31, ptr %11, align 4
%32 = load i32, ptr %11, align 4
%33 = sext i32 %32 to i64
%34 = load i64, ptr %9, align 8
%35 = icmp ne i64 %33, %34
br i1 %35, label %36, label %39
36: ; preds = %17
%37 = load ptr, ptr %8, align 8
%38 = call i32 @fclose(ptr noundef %37)
store i32 -1, ptr %4, align 4
br label %47
39: ; preds = %17
%40 = load ptr, ptr %8, align 8
%41 = call i32 @fclose(ptr noundef %40)
%42 = load ptr, ptr %10, align 8
%43 = load ptr, ptr %6, align 8
store ptr %42, ptr %43, align 8
%44 = load i32, ptr %11, align 4
%45 = load ptr, ptr %7, align 8
store i32 %44, ptr %45, align 4
%46 = load i32, ptr %11, align 4
store i32 %46, ptr %4, align 4
br label %47
47: ; preds = %39, %36, %16
%48 = load i32, ptr %4, align 4
ret i32 %48
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_3y8vg7w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @file_read(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = 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 null, ptr %8, align 8
%12 = load ptr, ptr %5, align 8
%13 = call ptr @fopen(ptr noundef %12, ptr noundef @.str)
store ptr %13, ptr %8, align 8
%14 = load ptr, ptr %8, align 8
%15 = icmp eq ptr %14, null
br i1 %15, label %16, label %17
16: ; preds = %3
store i32 -1, ptr %4, align 4
br label %47
17: ; preds = %3
%18 = load ptr, ptr %8, align 8
%19 = load i32, ptr @SEEK_END, align 4
%20 = call i32 @fseek(ptr noundef %18, i32 noundef 0, i32 noundef %19)
%21 = load ptr, ptr %8, align 8
%22 = call i64 @ftell(ptr noundef %21)
store i64 %22, ptr %9, align 8
%23 = load ptr, ptr %8, align 8
%24 = load i32, ptr @SEEK_SET, align 4
%25 = call i32 @fseek(ptr noundef %23, i32 noundef 0, i32 noundef %24)
%26 = load i64, ptr %9, align 8
%27 = call ptr @malloc(i64 noundef %26)
store ptr %27, ptr %10, align 8
%28 = load ptr, ptr %10, align 8
%29 = load i64, ptr %9, align 8
%30 = load ptr, ptr %8, align 8
%31 = call i32 @fread(ptr noundef %28, i32 noundef 1, i64 noundef %29, ptr noundef %30)
store i32 %31, ptr %11, align 4
%32 = load i32, ptr %11, align 4
%33 = sext i32 %32 to i64
%34 = load i64, ptr %9, align 8
%35 = icmp ne i64 %33, %34
br i1 %35, label %36, label %39
36: ; preds = %17
%37 = load ptr, ptr %8, align 8
%38 = call i32 @fclose(ptr noundef %37)
store i32 -1, ptr %4, align 4
br label %47
39: ; preds = %17
%40 = load ptr, ptr %8, align 8
%41 = call i32 @fclose(ptr noundef %40)
%42 = load ptr, ptr %10, align 8
%43 = load ptr, ptr %6, align 8
store ptr %42, ptr %43, align 8
%44 = load i32, ptr %11, align 4
%45 = load ptr, ptr %7, align 8
store i32 %44, ptr %45, align 4
%46 = load i32, ptr %11, align 4
store i32 %46, ptr %4, align 4
br label %47
47: ; preds = %39, %36, %16
%48 = load i32, ptr %4, align 4
ret i32 %48
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpim660gfy.c'
source_filename = "/tmp/tmpim660gfy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"U_WMRF6\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @U_WMRF6_set() #0 {
%1 = call ptr @U_WMRCORENONE_set(ptr noundef @.str)
ret ptr %1
}
declare ptr @U_WMRCORENONE_set(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpim660gfy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"U_WMRF6\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @U_WMRF6_set() #0 {
%1 = call ptr @U_WMRCORENONE_set(ptr noundef @.str)
ret ptr %1
}
declare ptr @U_WMRCORENONE_set(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgk43e_17.c'
source_filename = "/tmp/tmpgk43e_17.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"Error: invalid system: %d, quit\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @bi_bi2str(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca [125 x i64], align 16
%10 = alloca i32, align 4
%11 = alloca i8, align 1
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%16 = load i32, ptr %8, align 4
%17 = icmp eq i32 %16, 10
br i1 %17, label %18, label %69
18: ; preds = %4
store i32 0, ptr %10, align 4
br label %19
19: ; preds = %32, %18
%20 = load i32, ptr %10, align 4
%21 = load i32, ptr %6, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %23, label %35
23: ; preds = %19
%24 = load ptr, ptr %7, align 8
%25 = load i32, ptr %10, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i64, ptr %24, i64 %26
%28 = load i64, ptr %27, align 8
%29 = load i32, ptr %10, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [125 x i64], ptr %9, i64 0, i64 %30
store i64 %28, ptr %31, align 8
br label %32
32: ; preds = %23
%33 = load i32, ptr %10, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %10, align 4
br label %19, !llvm.loop !6
35: ; preds = %19
store i32 0, ptr %10, align 4
br label %36
36: ; preds = %48, %35
%37 = load i32, ptr %6, align 4
%38 = icmp sgt i32 %37, 0
br i1 %38, label %39, label %46
39: ; preds = %36
%40 = load i32, ptr %6, align 4
%41 = sub nsw i32 %40, 1
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [125 x i64], ptr %9, i64 0, i64 %42
%44 = load i64, ptr %43, align 8
%45 = icmp ugt i64 %44, 0
br label %46
46: ; preds = %39, %36
%47 = phi i1 [ false, %36 ], [ %45, %39 ]
br i1 %47, label %48, label %68
48: ; preds = %46
%49 = load i32, ptr %6, align 4
%50 = getelementptr inbounds [125 x i64], ptr %9, i64 0, i64 0
%51 = load i32, ptr %8, align 4
%52 = call i64 @bi_mod1(i32 noundef %49, ptr noundef %50, i32 noundef %51)
%53 = trunc i64 %52 to i8
%54 = sext i8 %53 to i32
%55 = add nsw i32 %54, 48
%56 = trunc i32 %55 to i8
store i8 %56, ptr %11, align 1
%57 = load i8, ptr %11, align 1
%58 = load ptr, ptr %5, align 8
%59 = load i32, ptr %10, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i8, ptr %58, i64 %60
store i8 %57, ptr %61, align 1
%62 = load i32, ptr %6, align 4
%63 = getelementptr inbounds [125 x i64], ptr %9, i64 0, i64 0
%64 = load i32, ptr %8, align 4
%65 = call i32 @bi_div1(i32 noundef %62, ptr noundef %63, i32 noundef %64)
store i32 %65, ptr %6, align 4
%66 = load i32, ptr %10, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %10, align 4
br label %36, !llvm.loop !8
68: ; preds = %46
br label %136
69: ; preds = %4
%70 = load i32, ptr %8, align 4
%71 = icmp eq i32 %70, 16
br i1 %71, label %72, label %131
72: ; preds = %69
store i32 0, ptr %14, align 4
store i32 0, ptr %10, align 4
%73 = load i32, ptr %6, align 4
%74 = sub nsw i32 %73, 1
store i32 %74, ptr %13, align 4
br label %75
75: ; preds = %127, %72
%76 = load i32, ptr %13, align 4
%77 = icmp sge i32 %76, 0
br i1 %77, label %78, label %130
78: ; preds = %75
store i32 7, ptr %12, align 4
br label %79
79: ; preds = %123, %78
%80 = load i32, ptr %12, align 4
%81 = icmp sge i32 %80, 0
br i1 %81, label %82, label %126
82: ; preds = %79
%83 = load ptr, ptr %7, align 8
%84 = load i32, ptr %13, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i64, ptr %83, i64 %85
%87 = load i64, ptr %86, align 8
%88 = load i32, ptr %12, align 4
%89 = mul nsw i32 %88, 4
%90 = zext i32 %89 to i64
%91 = lshr i64 %87, %90
%92 = and i64 %91, 15
store i64 %92, ptr %15, align 8
%93 = load i32, ptr %14, align 4
%94 = icmp ne i32 %93, 0
br i1 %94, label %99, label %95
95: ; preds = %82
%96 = load i64, ptr %15, align 8
%97 = icmp ne i64 %96, 0
br i1 %97, label %98, label %99
98: ; preds = %95
store i32 1, ptr %14, align 4
br label %99
99: ; preds = %98, %95, %82
%100 = load i32, ptr %14, align 4
%101 = icmp ne i32 %100, 0
br i1 %101, label %103, label %102
102: ; preds = %99
br label %123
103: ; preds = %99
%104 = load i64, ptr %15, align 8
%105 = icmp ult i64 %104, 10
br i1 %105, label %106, label %110
106: ; preds = %103
%107 = load i64, ptr %15, align 8
%108 = add i64 %107, 48
%109 = trunc i64 %108 to i8
store i8 %109, ptr %11, align 1
br label %115
110: ; preds = %103
%111 = load i64, ptr %15, align 8
%112 = sub i64 %111, 10
%113 = add i64 %112, 97
%114 = trunc i64 %113 to i8
store i8 %114, ptr %11, align 1
br label %115
115: ; preds = %110, %106
%116 = load i8, ptr %11, align 1
%117 = load ptr, ptr %5, align 8
%118 = load i32, ptr %10, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds i8, ptr %117, i64 %119
store i8 %116, ptr %120, align 1
%121 = load i32, ptr %10, align 4
%122 = add nsw i32 %121, 1
store i32 %122, ptr %10, align 4
br label %123
123: ; preds = %115, %102
%124 = load i32, ptr %12, align 4
%125 = add nsw i32 %124, -1
store i32 %125, ptr %12, align 4
br label %79, !llvm.loop !9
126: ; preds = %79
br label %127
127: ; preds = %126
%128 = load i32, ptr %13, align 4
%129 = add nsw i32 %128, -1
store i32 %129, ptr %13, align 4
br label %75, !llvm.loop !10
130: ; preds = %75
br label %135
131: ; preds = %69
%132 = load i32, ptr %8, align 4
%133 = call i32 @printf(ptr noundef @.str, i32 noundef %132)
%134 = call i32 @exit(i32 noundef -1) #3
unreachable
135: ; preds = %130
br label %136
136: ; preds = %135, %68
%137 = load ptr, ptr %5, align 8
%138 = load i32, ptr %10, align 4
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds i8, ptr %137, i64 %139
store i8 0, ptr %140, align 1
%141 = load i32, ptr %10, align 4
ret i32 %141
}
declare i64 @bi_mod1(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @bi_div1(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgk43e_17.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"Error: invalid system: %d, quit\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @bi_bi2str(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca [125 x i64], align 16
%10 = alloca i32, align 4
%11 = alloca i8, align 1
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%16 = load i32, ptr %8, align 4
%17 = icmp eq i32 %16, 10
br i1 %17, label %18, label %71
18: ; preds = %4
store i32 0, ptr %10, align 4
%19 = load i32, ptr %10, align 4
%20 = load i32, ptr %6, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %.lr.ph5, label %37
.lr.ph5: ; preds = %18
br label %22
22: ; preds = %.lr.ph5, %31
%23 = load ptr, ptr %7, align 8
%24 = load i32, ptr %10, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i64, ptr %23, i64 %25
%27 = load i64, ptr %26, align 8
%28 = load i32, ptr %10, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [125 x i64], ptr %9, i64 0, i64 %29
store i64 %27, ptr %30, align 8
br label %31
31: ; preds = %22
%32 = load i32, ptr %10, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %10, align 4
%34 = load i32, ptr %10, align 4
%35 = load i32, ptr %6, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %22, label %._crit_edge6, !llvm.loop !6
._crit_edge6: ; preds = %31
br label %37
37: ; preds = %._crit_edge6, %18
store i32 0, ptr %10, align 4
br label %38
38: ; preds = %50, %37
%39 = load i32, ptr %6, align 4
%40 = icmp sgt i32 %39, 0
br i1 %40, label %41, label %48
41: ; preds = %38
%42 = load i32, ptr %6, align 4
%43 = sub nsw i32 %42, 1
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [125 x i64], ptr %9, i64 0, i64 %44
%46 = load i64, ptr %45, align 8
%47 = icmp ugt i64 %46, 0
br label %48
48: ; preds = %41, %38
%49 = phi i1 [ false, %38 ], [ %47, %41 ]
br i1 %49, label %50, label %70
50: ; preds = %48
%51 = load i32, ptr %6, align 4
%52 = getelementptr inbounds [125 x i64], ptr %9, i64 0, i64 0
%53 = load i32, ptr %8, align 4
%54 = call i64 @bi_mod1(i32 noundef %51, ptr noundef %52, i32 noundef %53)
%55 = trunc i64 %54 to i8
%56 = sext i8 %55 to i32
%57 = add nsw i32 %56, 48
%58 = trunc i32 %57 to i8
store i8 %58, ptr %11, align 1
%59 = load i8, ptr %11, align 1
%60 = load ptr, ptr %5, align 8
%61 = load i32, ptr %10, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i8, ptr %60, i64 %62
store i8 %59, ptr %63, align 1
%64 = load i32, ptr %6, align 4
%65 = getelementptr inbounds [125 x i64], ptr %9, i64 0, i64 0
%66 = load i32, ptr %8, align 4
%67 = call i32 @bi_div1(i32 noundef %64, ptr noundef %65, i32 noundef %66)
store i32 %67, ptr %6, align 4
%68 = load i32, ptr %10, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %10, align 4
br label %38, !llvm.loop !8
70: ; preds = %48
br label %140
71: ; preds = %4
%72 = load i32, ptr %8, align 4
%73 = icmp eq i32 %72, 16
br i1 %73, label %74, label %135
74: ; preds = %71
store i32 0, ptr %14, align 4
store i32 0, ptr %10, align 4
%75 = load i32, ptr %6, align 4
%76 = sub nsw i32 %75, 1
store i32 %76, ptr %13, align 4
%77 = load i32, ptr %13, align 4
%78 = icmp sge i32 %77, 0
br i1 %78, label %.lr.ph2, label %134
.lr.ph2: ; preds = %74
br label %79
79: ; preds = %.lr.ph2, %129
store i32 7, ptr %12, align 4
%80 = load i32, ptr %12, align 4
%81 = icmp sge i32 %80, 0
br i1 %81, label %.lr.ph, label %128
.lr.ph: ; preds = %79
br label %82
82: ; preds = %.lr.ph, %123
%83 = load ptr, ptr %7, align 8
%84 = load i32, ptr %13, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i64, ptr %83, i64 %85
%87 = load i64, ptr %86, align 8
%88 = load i32, ptr %12, align 4
%89 = mul nsw i32 %88, 4
%90 = zext i32 %89 to i64
%91 = lshr i64 %87, %90
%92 = and i64 %91, 15
store i64 %92, ptr %15, align 8
%93 = load i32, ptr %14, align 4
%94 = icmp ne i32 %93, 0
br i1 %94, label %99, label %95
95: ; preds = %82
%96 = load i64, ptr %15, align 8
%97 = icmp ne i64 %96, 0
br i1 %97, label %98, label %99
98: ; preds = %95
store i32 1, ptr %14, align 4
br label %99
99: ; preds = %98, %95, %82
%100 = load i32, ptr %14, align 4
%101 = icmp ne i32 %100, 0
br i1 %101, label %103, label %102
102: ; preds = %99
br label %123
103: ; preds = %99
%104 = load i64, ptr %15, align 8
%105 = icmp ult i64 %104, 10
br i1 %105, label %106, label %110
106: ; preds = %103
%107 = load i64, ptr %15, align 8
%108 = add i64 %107, 48
%109 = trunc i64 %108 to i8
store i8 %109, ptr %11, align 1
br label %115
110: ; preds = %103
%111 = load i64, ptr %15, align 8
%112 = sub i64 %111, 10
%113 = add i64 %112, 97
%114 = trunc i64 %113 to i8
store i8 %114, ptr %11, align 1
br label %115
115: ; preds = %110, %106
%116 = load i8, ptr %11, align 1
%117 = load ptr, ptr %5, align 8
%118 = load i32, ptr %10, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds i8, ptr %117, i64 %119
store i8 %116, ptr %120, align 1
%121 = load i32, ptr %10, align 4
%122 = add nsw i32 %121, 1
store i32 %122, ptr %10, align 4
br label %123
123: ; preds = %115, %102
%124 = load i32, ptr %12, align 4
%125 = add nsw i32 %124, -1
store i32 %125, ptr %12, align 4
%126 = load i32, ptr %12, align 4
%127 = icmp sge i32 %126, 0
br i1 %127, label %82, label %._crit_edge, !llvm.loop !9
._crit_edge: ; preds = %123
br label %128
128: ; preds = %._crit_edge, %79
br label %129
129: ; preds = %128
%130 = load i32, ptr %13, align 4
%131 = add nsw i32 %130, -1
store i32 %131, ptr %13, align 4
%132 = load i32, ptr %13, align 4
%133 = icmp sge i32 %132, 0
br i1 %133, label %79, label %._crit_edge3, !llvm.loop !10
._crit_edge3: ; preds = %129
br label %134
134: ; preds = %._crit_edge3, %74
br label %139
135: ; preds = %71
%136 = load i32, ptr %8, align 4
%137 = call i32 @printf(ptr noundef @.str, i32 noundef %136)
%138 = call i32 @exit(i32 noundef -1) #3
unreachable
139: ; preds = %134
br label %140
140: ; preds = %139, %70
%141 = load ptr, ptr %5, align 8
%142 = load i32, ptr %10, align 4
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds i8, ptr %141, i64 %143
store i8 0, ptr %144, align 1
%145 = load i32, ptr %10, align 4
ret i32 %145
}
declare i64 @bi_mod1(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @bi_div1(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmp2ecv57md.c'
source_filename = "/tmp/tmp2ecv57md.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @StripFilename(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i64 @strlen(ptr noundef %4)
%6 = trunc i64 %5 to i32
%7 = sub nsw i32 %6, 1
store i32 %7, ptr %3, align 4
br label %8
8: ; preds = %21, %1
%9 = load i32, ptr %3, align 4
%10 = icmp sgt i32 %9, 0
br i1 %10, label %11, label %19
11: ; preds = %8
%12 = load ptr, ptr %2, align 8
%13 = load i32, ptr %3, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %12, i64 %14
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %17, 47
br label %19
19: ; preds = %11, %8
%20 = phi i1 [ false, %8 ], [ %18, %11 ]
br i1 %20, label %21, label %24
21: ; preds = %19
%22 = load i32, ptr %3, align 4
%23 = add nsw i32 %22, -1
store i32 %23, ptr %3, align 4
br label %8, !llvm.loop !6
24: ; preds = %19
%25 = load ptr, ptr %2, align 8
%26 = load i32, ptr %3, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
store i8 0, ptr %28, align 1
ret void
}
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2ecv57md.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @StripFilename(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i64 @strlen(ptr noundef %4)
%6 = trunc i64 %5 to i32
%7 = sub nsw i32 %6, 1
store i32 %7, ptr %3, align 4
br label %8
8: ; preds = %21, %1
%9 = load i32, ptr %3, align 4
%10 = icmp sgt i32 %9, 0
br i1 %10, label %11, label %19
11: ; preds = %8
%12 = load ptr, ptr %2, align 8
%13 = load i32, ptr %3, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %12, i64 %14
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %17, 47
br label %19
19: ; preds = %11, %8
%20 = phi i1 [ false, %8 ], [ %18, %11 ]
br i1 %20, label %21, label %24
21: ; preds = %19
%22 = load i32, ptr %3, align 4
%23 = add nsw i32 %22, -1
store i32 %23, ptr %3, align 4
br label %8, !llvm.loop !6
24: ; preds = %19
%25 = load ptr, ptr %2, align 8
%26 = load i32, ptr %3, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
store i8 0, ptr %28, align 1
ret void
}
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpsu5dieu8.c'
source_filename = "/tmp/tmpsu5dieu8.c"
target datalayout = "e-m:e-p270: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/tmpsu5dieu8.c"
target datalayout = "e-m:e-p270: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/tmpppe0s4br.c'
source_filename = "/tmp/tmpppe0s4br.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @release_file(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load i64, ptr %4, align 8
%7 = call i32 @munmap(ptr noundef %5, i64 noundef %6)
ret void
}
declare i32 @munmap(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpppe0s4br.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @release_file(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load i64, ptr %4, align 8
%7 = call i32 @munmap(ptr noundef %5, i64 noundef %6)
ret void
}
declare i32 @munmap(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpiv8x8rlo.c'
source_filename = "/tmp/tmpiv8x8rlo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @vga_terminal_putfloat(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca ptr, align 8
store double %0, ptr %2, align 8
%4 = load double, ptr %2, align 8
%5 = call ptr @ftoa(double noundef %4, i32 noundef 2)
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @printf(ptr noundef @.str, ptr noundef %6)
%8 = load ptr, ptr %3, align 8
%9 = call i32 @free(ptr noundef %8)
ret void
}
declare ptr @ftoa(double noundef, i32 noundef) #1
declare i32 @printf(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/tmpiv8x8rlo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @vga_terminal_putfloat(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca ptr, align 8
store double %0, ptr %2, align 8
%4 = load double, ptr %2, align 8
%5 = call ptr @ftoa(double noundef %4, i32 noundef 2)
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @printf(ptr noundef @.str, ptr noundef %6)
%8 = load ptr, ptr %3, align 8
%9 = call i32 @free(ptr noundef %8)
ret void
}
declare ptr @ftoa(double noundef, i32 noundef) #1
declare i32 @printf(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/tmptyi6pt0n.c'
source_filename = "/tmp/tmptyi6pt0n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @big2hostl(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i64, align 8
store i64 %0, ptr %3, align 8
%4 = call i64 (...) @isLittleEndian()
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i64, ptr %3, align 8
%8 = call i64 @big2littlel(i64 noundef %7)
store i64 %8, ptr %2, align 8
br label %11
9: ; preds = %1
%10 = load i64, ptr %3, align 8
store i64 %10, ptr %2, align 8
br label %11
11: ; preds = %9, %6
%12 = load i64, ptr %2, align 8
ret i64 %12
}
declare i64 @isLittleEndian(...) #1
declare i64 @big2littlel(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptyi6pt0n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @big2hostl(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i64, align 8
store i64 %0, ptr %3, align 8
%4 = call i64 (...) @isLittleEndian()
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i64, ptr %3, align 8
%8 = call i64 @big2littlel(i64 noundef %7)
store i64 %8, ptr %2, align 8
br label %11
9: ; preds = %1
%10 = load i64, ptr %3, align 8
store i64 %10, ptr %2, align 8
br label %11
11: ; preds = %9, %6
%12 = load i64, ptr %2, align 8
ret i64 %12
}
declare i64 @isLittleEndian(...) #1
declare i64 @big2littlel(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp01z8mrcj.c'
source_filename = "/tmp/tmp01z8mrcj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"01\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [4 x i8] c"%5d\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #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 @srand(i32 noundef 12345)
store i32 0, ptr %3, align 4
br label %6
6: ; preds = %31, %0
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %7, 3
br i1 %8, label %9, label %34
9: ; preds = %6
store i32 0, ptr %4, align 4
br label %10
10: ; preds = %20, %9
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %11, 5000
br i1 %12, label %13, label %23
13: ; preds = %10
%14 = call i32 (...) @rand()
%15 = srem i32 %14, 2
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [3 x i8], ptr @.str, i64 0, i64 %16
%18 = load i8, ptr %17, align 1
%19 = call i32 @putchar(i8 noundef signext %18)
br label %20
20: ; preds = %13
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %4, align 4
br label %10, !llvm.loop !6
23: ; preds = %10
%24 = call i32 @putchar(i8 noundef signext 10)
%25 = load i32, ptr @stdout, align 4
%26 = call i32 @fflush(i32 noundef %25)
%27 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%28 = load i32, ptr @stderr, align 4
%29 = load i32, ptr %2, align 4
%30 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %28, ptr noundef @.str.2, i32 noundef %29)
br label %31
31: ; preds = %23
%32 = load i32, ptr %3, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %3, align 4
br label %6, !llvm.loop !8
34: ; preds = %6
%35 = load i32, ptr @stderr, align 4
%36 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %35, ptr noundef @.str.3)
ret i32 0
}
declare i32 @srand(i32 noundef) #1
declare i32 @putchar(i8 noundef signext) #1
declare i32 @rand(...) #1
declare i32 @fflush(i32 noundef) #1
declare i32 @scanf(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"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp01z8mrcj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"01\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [4 x i8] c"%5d\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #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 @srand(i32 noundef 12345)
store i32 0, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp slt i32 %6, 3
br i1 %7, label %.lr.ph2, label %36
.lr.ph2: ; preds = %0
br label %8
8: ; preds = %.lr.ph2, %31
store i32 0, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %9, 5000
br i1 %10, label %.lr.ph, label %23
.lr.ph: ; preds = %8
br label %11
11: ; preds = %.lr.ph, %18
%12 = call i32 (...) @rand()
%13 = srem i32 %12, 2
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [3 x i8], ptr @.str, i64 0, i64 %14
%16 = load i8, ptr %15, align 1
%17 = call i32 @putchar(i8 noundef signext %16)
br label %18
18: ; preds = %11
%19 = load i32, ptr %4, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %4, align 4
%21 = load i32, ptr %4, align 4
%22 = icmp slt i32 %21, 5000
br i1 %22, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %23
23: ; preds = %._crit_edge, %8
%24 = call i32 @putchar(i8 noundef signext 10)
%25 = load i32, ptr @stdout, align 4
%26 = call i32 @fflush(i32 noundef %25)
%27 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%28 = load i32, ptr @stderr, align 4
%29 = load i32, ptr %2, align 4
%30 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %28, ptr noundef @.str.2, i32 noundef %29)
br label %31
31: ; preds = %23
%32 = load i32, ptr %3, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %3, align 4
%34 = load i32, ptr %3, align 4
%35 = icmp slt i32 %34, 3
br i1 %35, label %8, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %31
br label %36
36: ; preds = %._crit_edge3, %0
%37 = load i32, ptr @stderr, align 4
%38 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %37, ptr noundef @.str.3)
ret i32 0
}
declare i32 @srand(i32 noundef) #1
declare i32 @putchar(i8 noundef signext) #1
declare i32 @rand(...) #1
declare i32 @fflush(i32 noundef) #1
declare i32 @scanf(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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp7oyku9vz.c'
source_filename = "/tmp/tmp7oyku9vz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.a = private unnamed_addr constant [10 x i32] [i32 4, i32 5, i32 3, i32 9, i32 9, i32 5, i32 2, i32 4, i32 2, i32 0], align 16
@.str = private unnamed_addr constant [4 x i8] c"%3d\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [10 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.a, i64 40, i1 false)
store i32 0, ptr %3, align 4
br label %6
6: ; preds = %46, %0
%7 = load i32, ptr %3, align 4
%8 = icmp sle i32 %7, 8
br i1 %8, label %9, label %49
9: ; preds = %6
%10 = load i32, ptr %3, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %4, align 4
br label %12
12: ; preds = %42, %9
%13 = load i32, ptr %4, align 4
%14 = icmp sle i32 %13, 9
br i1 %14, label %15, label %45
15: ; preds = %12
%16 = load i32, ptr %3, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %17
%19 = load i32, ptr %18, align 4
%20 = load i32, ptr %4, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %21
%23 = load i32, ptr %22, align 4
%24 = icmp sgt i32 %19, %23
br i1 %24, label %25, label %41
25: ; preds = %15
%26 = load i32, ptr %3, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %27
%29 = load i32, ptr %28, align 4
store i32 %29, ptr %5, align 4
%30 = load i32, ptr %4, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %31
%33 = load i32, ptr %32, align 4
%34 = load i32, ptr %3, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %35
store i32 %33, ptr %36, align 4
%37 = load i32, ptr %5, align 4
%38 = load i32, ptr %4, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %39
store i32 %37, ptr %40, align 4
br label %41
41: ; preds = %25, %15
br label %42
42: ; preds = %41
%43 = load i32, ptr %4, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %4, align 4
br label %12, !llvm.loop !6
45: ; preds = %12
br label %46
46: ; preds = %45
%47 = load i32, ptr %3, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %3, align 4
br label %6, !llvm.loop !8
49: ; preds = %6
store i32 0, ptr %3, align 4
br label %50
50: ; preds = %59, %49
%51 = load i32, ptr %3, align 4
%52 = icmp slt i32 %51, 10
br i1 %52, label %53, label %62
53: ; preds = %50
%54 = load i32, ptr %3, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %55
%57 = load i32, ptr %56, align 4
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %57)
br label %59
59: ; preds = %53
%60 = load i32, ptr %3, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %3, align 4
br label %50, !llvm.loop !9
62: ; preds = %50
%63 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7oyku9vz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.a = private unnamed_addr constant [10 x i32] [i32 4, i32 5, i32 3, i32 9, i32 9, i32 5, i32 2, i32 4, i32 2, i32 0], align 16
@.str = private unnamed_addr constant [4 x i8] c"%3d\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [10 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.a, i64 40, i1 false)
store i32 0, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp sle i32 %6, 8
br i1 %7, label %.lr.ph2, label %51
.lr.ph2: ; preds = %0
br label %8
8: ; preds = %.lr.ph2, %46
%9 = load i32, ptr %3, align 4
%10 = add nsw i32 %9, 1
store i32 %10, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp sle i32 %11, 9
br i1 %12, label %.lr.ph, label %45
.lr.ph: ; preds = %8
br label %13
13: ; preds = %.lr.ph, %40
%14 = load i32, ptr %3, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %15
%17 = load i32, ptr %16, align 4
%18 = load i32, ptr %4, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %19
%21 = load i32, ptr %20, align 4
%22 = icmp sgt i32 %17, %21
br i1 %22, label %23, label %39
23: ; preds = %13
%24 = load i32, ptr %3, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %25
%27 = load i32, ptr %26, align 4
store i32 %27, ptr %5, align 4
%28 = load i32, ptr %4, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %29
%31 = load i32, ptr %30, align 4
%32 = load i32, ptr %3, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %33
store i32 %31, ptr %34, align 4
%35 = load i32, ptr %5, align 4
%36 = load i32, ptr %4, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %37
store i32 %35, ptr %38, align 4
br label %39
39: ; preds = %23, %13
br label %40
40: ; preds = %39
%41 = load i32, ptr %4, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %4, align 4
%43 = load i32, ptr %4, align 4
%44 = icmp sle i32 %43, 9
br i1 %44, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %40
br label %45
45: ; preds = %._crit_edge, %8
br label %46
46: ; preds = %45
%47 = load i32, ptr %3, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %3, align 4
%49 = load i32, ptr %3, align 4
%50 = icmp sle i32 %49, 8
br i1 %50, label %8, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %46
br label %51
51: ; preds = %._crit_edge3, %0
store i32 0, ptr %3, align 4
%52 = load i32, ptr %3, align 4
%53 = icmp slt i32 %52, 10
br i1 %53, label %.lr.ph5, label %65
.lr.ph5: ; preds = %51
br label %54
54: ; preds = %.lr.ph5, %60
%55 = load i32, ptr %3, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %56
%58 = load i32, ptr %57, align 4
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %58)
br label %60
60: ; preds = %54
%61 = load i32, ptr %3, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %3, align 4
%63 = load i32, ptr %3, align 4
%64 = icmp slt i32 %63, 10
br i1 %64, label %54, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %60
br label %65
65: ; preds = %._crit_edge6, %51
%66 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpq40nk1hu.c'
source_filename = "/tmp/tmpq40nk1hu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SQLITE_OK = 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/tmpq40nk1hu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SQLITE_OK = 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/tmpi1d2ktwj.c'
source_filename = "/tmp/tmpi1d2ktwj.c"
target datalayout = "e-m:e-p270: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/tmpi1d2ktwj.c"
target datalayout = "e-m:e-p270: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/tmpd9jrrtji.c'
source_filename = "/tmp/tmpd9jrrtji.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CLOCK_REALTIME = 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/tmpd9jrrtji.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CLOCK_REALTIME = 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/tmp8guh9rjb.c'
source_filename = "/tmp/tmp8guh9rjb.c"
target datalayout = "e-m:e-p270: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 }
@_SC_PAGESIZE = dso_local global i32 0, align 4
@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_ANON = dso_local global i32 0, align 4
@MAP_FAILED = dso_local global ptr null, align 8
@.str = private unnamed_addr constant [18 x i8] c"mem %p backup %p\0A\00", align 1
@__const.main.req = private unnamed_addr constant %struct.timespec { i32 100000, i32 0 }, align 4
@.str.1 = private unnamed_addr constant [9 x i8] c"t %u %u\0A\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"final rover %u\0A\00", align 1
@.str.3 = private unnamed_addr constant [32 x i8] c"Page %u differs want %u has %u\0A\00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"Page %u matches %u\0A\00", align 1
@.str.5 = private unnamed_addr constant [51 x i8] c"FAIL: %s:%d: Memory corruption\0A (errno = %d (%s))\0A\00", align 1
@.str.6 = private unnamed_addr constant [166 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AuthenticEshkinKot/criu/refs/heads/master/test/zdtm/live/static/mem-touch.c\00", align 1
@errno = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [6 x i8] c"PASS\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 [16 x i32], align 16
%11 = alloca i32, align 4
%12 = alloca %struct.timespec, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %8, align 4
store i32 1, ptr %9, align 4
call void @llvm.memset.p0.i64(ptr align 16 %10, i8 0, i64 64, i1 false)
%13 = call i32 @time(ptr noundef null)
%14 = call i32 @srand(i32 noundef %13)
%15 = load i32, ptr %4, align 4
%16 = load ptr, ptr %5, align 8
%17 = call i32 @test_init(i32 noundef %15, ptr noundef %16)
%18 = load i32, ptr @_SC_PAGESIZE, align 4
%19 = call i64 @sysconf(i32 noundef %18)
%20 = trunc i64 %19 to i32
%21 = mul i32 16, %20
%22 = load i32, ptr @PROT_READ, align 4
%23 = load i32, ptr @PROT_WRITE, align 4
%24 = or i32 %22, %23
%25 = load i32, ptr @MAP_PRIVATE, align 4
%26 = load i32, ptr @MAP_ANON, align 4
%27 = or i32 %25, %26
%28 = call ptr @mmap(ptr noundef null, i32 noundef %21, i32 noundef %24, i32 noundef %27, i32 noundef 0, i32 noundef 0)
store ptr %28, ptr %6, align 8
%29 = load ptr, ptr %6, align 8
%30 = load ptr, ptr @MAP_FAILED, align 8
%31 = icmp eq ptr %29, %30
br i1 %31, label %32, label %33
32: ; preds = %2
store i32 1, ptr %3, align 4
br label %123
33: ; preds = %2
%34 = load ptr, ptr %6, align 8
%35 = getelementptr inbounds [16 x i32], ptr %10, i64 0, i64 0
%36 = call i32 (ptr, ...) @test_msg(ptr noundef @.str, ptr noundef %34, ptr noundef %35)
%37 = call i32 (...) @test_daemon()
br label %38
38: ; preds = %41, %33
%39 = call i64 (...) @test_go()
%40 = icmp ne i64 %39, 0
br i1 %40, label %41, label %63
41: ; preds = %38
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 @__const.main.req, i64 8, i1 false)
%42 = call i32 (...) @random()
%43 = srem i32 %42, 16
store i32 %43, ptr %11, align 4
%44 = load i32, ptr %9, align 4
%45 = load ptr, ptr %6, align 8
%46 = load i32, ptr %11, align 4
%47 = load i32, ptr @_SC_PAGESIZE, align 4
%48 = call i64 @sysconf(i32 noundef %47)
%49 = trunc i64 %48 to i32
%50 = mul i32 %46, %49
%51 = zext i32 %50 to i64
%52 = getelementptr i8, ptr %45, i64 %51
store i32 %44, ptr %52, align 4
%53 = load i32, ptr %9, align 4
%54 = load i32, ptr %11, align 4
%55 = zext i32 %54 to i64
%56 = getelementptr inbounds [16 x i32], ptr %10, i64 0, i64 %55
store i32 %53, ptr %56, align 4
%57 = load i32, ptr %11, align 4
%58 = load i32, ptr %9, align 4
%59 = call i32 (ptr, ...) @test_msg(ptr noundef @.str.1, i32 noundef %57, i32 noundef %58)
%60 = load i32, ptr %9, align 4
%61 = add i32 %60, 1
store i32 %61, ptr %9, align 4
%62 = call i32 @nanosleep(ptr noundef %12, ptr noundef null)
br label %38, !llvm.loop !6
63: ; preds = %38
%64 = call i32 (...) @test_waitsig()
%65 = load i32, ptr %9, align 4
%66 = call i32 (ptr, ...) @test_msg(ptr noundef @.str.2, i32 noundef %65)
store i32 0, ptr %7, align 4
br label %67
67: ; preds = %109, %63
%68 = load i32, ptr %7, align 4
%69 = icmp slt i32 %68, 16
br i1 %69, label %70, label %112
70: ; preds = %67
%71 = load i32, ptr %7, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [16 x i32], ptr %10, i64 0, i64 %72
%74 = load i32, ptr %73, align 4
%75 = load ptr, ptr %6, align 8
%76 = load i32, ptr %7, align 4
%77 = load i32, ptr @_SC_PAGESIZE, align 4
%78 = call i64 @sysconf(i32 noundef %77)
%79 = trunc i64 %78 to i32
%80 = mul i32 %76, %79
%81 = zext i32 %80 to i64
%82 = getelementptr i8, ptr %75, i64 %81
%83 = load i32, ptr %82, align 4
%84 = icmp ne i32 %74, %83
br i1 %84, label %85, label %101
85: ; preds = %70
%86 = load i32, ptr %7, align 4
%87 = load i32, ptr %7, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [16 x i32], ptr %10, i64 0, i64 %88
%90 = load i32, ptr %89, align 4
%91 = load ptr, ptr %6, align 8
%92 = load i32, ptr %7, align 4
%93 = load i32, ptr @_SC_PAGESIZE, align 4
%94 = call i64 @sysconf(i32 noundef %93)
%95 = trunc i64 %94 to i32
%96 = mul i32 %92, %95
%97 = zext i32 %96 to i64
%98 = getelementptr i8, ptr %91, i64 %97
%99 = load i32, ptr %98, align 4
%100 = call i32 (ptr, ...) @test_msg(ptr noundef @.str.3, i32 noundef %86, i32 noundef %90, i32 noundef %99)
store i32 1, ptr %8, align 4
br label %108
101: ; preds = %70
%102 = load i32, ptr %7, align 4
%103 = load i32, ptr %7, align 4
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds [16 x i32], ptr %10, i64 0, i64 %104
%106 = load i32, ptr %105, align 4
%107 = call i32 (ptr, ...) @test_msg(ptr noundef @.str.4, i32 noundef %102, i32 noundef %106)
br label %108
108: ; preds = %101, %85
br label %109
109: ; preds = %108
%110 = load i32, ptr %7, align 4
%111 = add nsw i32 %110, 1
store i32 %111, ptr %7, align 4
br label %67, !llvm.loop !8
112: ; preds = %67
%113 = load i32, ptr %8, align 4
%114 = icmp ne i32 %113, 0
br i1 %114, label %115, label %120
115: ; preds = %112
%116 = load i32, ptr @errno, align 4
%117 = load i32, ptr @errno, align 4
%118 = call i32 @strerror(i32 noundef %117)
%119 = call i32 (ptr, ...) @test_msg(ptr noundef @.str.5, ptr noundef @.str.6, i32 noundef 56, i32 noundef %116, i32 noundef %118)
br label %122
120: ; preds = %112
%121 = call i32 (ptr, ...) @test_msg(ptr noundef @.str.7)
br label %122
122: ; preds = %120, %115
store i32 0, ptr %3, align 4
br label %123
123: ; preds = %122, %32
%124 = load i32, ptr %3, align 4
ret i32 %124
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @srand(i32 noundef) #2
declare i32 @time(ptr noundef) #2
declare i32 @test_init(i32 noundef, ptr noundef) #2
declare ptr @mmap(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2
declare i64 @sysconf(i32 noundef) #2
declare i32 @test_msg(ptr noundef, ...) #2
declare i32 @test_daemon(...) #2
declare i64 @test_go(...) #2
; 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) #3
declare i32 @random(...) #2
declare i32 @nanosleep(ptr noundef, ptr noundef) #2
declare i32 @test_waitsig(...) #2
declare i32 @strerror(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8guh9rjb.c"
target datalayout = "e-m:e-p270: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 }
@_SC_PAGESIZE = dso_local global i32 0, align 4
@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_ANON = dso_local global i32 0, align 4
@MAP_FAILED = dso_local global ptr null, align 8
@.str = private unnamed_addr constant [18 x i8] c"mem %p backup %p\0A\00", align 1
@__const.main.req = private unnamed_addr constant %struct.timespec { i32 100000, i32 0 }, align 4
@.str.1 = private unnamed_addr constant [9 x i8] c"t %u %u\0A\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"final rover %u\0A\00", align 1
@.str.3 = private unnamed_addr constant [32 x i8] c"Page %u differs want %u has %u\0A\00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"Page %u matches %u\0A\00", align 1
@.str.5 = private unnamed_addr constant [51 x i8] c"FAIL: %s:%d: Memory corruption\0A (errno = %d (%s))\0A\00", align 1
@.str.6 = private unnamed_addr constant [166 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AuthenticEshkinKot/criu/refs/heads/master/test/zdtm/live/static/mem-touch.c\00", align 1
@errno = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [6 x i8] c"PASS\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 [16 x i32], align 16
%11 = alloca i32, align 4
%12 = alloca %struct.timespec, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %8, align 4
store i32 1, ptr %9, align 4
call void @llvm.memset.p0.i64(ptr align 16 %10, i8 0, i64 64, i1 false)
%13 = call i32 @time(ptr noundef null)
%14 = call i32 @srand(i32 noundef %13)
%15 = load i32, ptr %4, align 4
%16 = load ptr, ptr %5, align 8
%17 = call i32 @test_init(i32 noundef %15, ptr noundef %16)
%18 = load i32, ptr @_SC_PAGESIZE, align 4
%19 = call i64 @sysconf(i32 noundef %18)
%20 = trunc i64 %19 to i32
%21 = mul i32 16, %20
%22 = load i32, ptr @PROT_READ, align 4
%23 = load i32, ptr @PROT_WRITE, align 4
%24 = or i32 %22, %23
%25 = load i32, ptr @MAP_PRIVATE, align 4
%26 = load i32, ptr @MAP_ANON, align 4
%27 = or i32 %25, %26
%28 = call ptr @mmap(ptr noundef null, i32 noundef %21, i32 noundef %24, i32 noundef %27, i32 noundef 0, i32 noundef 0)
store ptr %28, ptr %6, align 8
%29 = load ptr, ptr %6, align 8
%30 = load ptr, ptr @MAP_FAILED, align 8
%31 = icmp eq ptr %29, %30
br i1 %31, label %32, label %33
32: ; preds = %2
store i32 1, ptr %3, align 4
br label %125
33: ; preds = %2
%34 = load ptr, ptr %6, align 8
%35 = getelementptr inbounds [16 x i32], ptr %10, i64 0, i64 0
%36 = call i32 (ptr, ...) @test_msg(ptr noundef @.str, ptr noundef %34, ptr noundef %35)
%37 = call i32 (...) @test_daemon()
%38 = call i64 (...) @test_go()
%39 = icmp ne i64 %38, 0
br i1 %39, label %.lr.ph, label %64
.lr.ph: ; preds = %33
br label %40
40: ; preds = %.lr.ph, %40
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 @__const.main.req, i64 8, i1 false)
%41 = call i32 (...) @random()
%42 = srem i32 %41, 16
store i32 %42, ptr %11, align 4
%43 = load i32, ptr %9, align 4
%44 = load ptr, ptr %6, align 8
%45 = load i32, ptr %11, align 4
%46 = load i32, ptr @_SC_PAGESIZE, align 4
%47 = call i64 @sysconf(i32 noundef %46)
%48 = trunc i64 %47 to i32
%49 = mul i32 %45, %48
%50 = zext i32 %49 to i64
%51 = getelementptr i8, ptr %44, i64 %50
store i32 %43, ptr %51, align 4
%52 = load i32, ptr %9, align 4
%53 = load i32, ptr %11, align 4
%54 = zext i32 %53 to i64
%55 = getelementptr inbounds [16 x i32], ptr %10, i64 0, i64 %54
store i32 %52, ptr %55, align 4
%56 = load i32, ptr %11, align 4
%57 = load i32, ptr %9, align 4
%58 = call i32 (ptr, ...) @test_msg(ptr noundef @.str.1, i32 noundef %56, i32 noundef %57)
%59 = load i32, ptr %9, align 4
%60 = add i32 %59, 1
store i32 %60, ptr %9, align 4
%61 = call i32 @nanosleep(ptr noundef %12, ptr noundef null)
%62 = call i64 (...) @test_go()
%63 = icmp ne i64 %62, 0
br i1 %63, label %40, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %40
br label %64
64: ; preds = %._crit_edge, %33
%65 = call i32 (...) @test_waitsig()
%66 = load i32, ptr %9, align 4
%67 = call i32 (ptr, ...) @test_msg(ptr noundef @.str.2, i32 noundef %66)
store i32 0, ptr %7, align 4
%68 = load i32, ptr %7, align 4
%69 = icmp slt i32 %68, 16
br i1 %69, label %.lr.ph2, label %114
.lr.ph2: ; preds = %64
br label %70
70: ; preds = %.lr.ph2, %109
%71 = load i32, ptr %7, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [16 x i32], ptr %10, i64 0, i64 %72
%74 = load i32, ptr %73, align 4
%75 = load ptr, ptr %6, align 8
%76 = load i32, ptr %7, align 4
%77 = load i32, ptr @_SC_PAGESIZE, align 4
%78 = call i64 @sysconf(i32 noundef %77)
%79 = trunc i64 %78 to i32
%80 = mul i32 %76, %79
%81 = zext i32 %80 to i64
%82 = getelementptr i8, ptr %75, i64 %81
%83 = load i32, ptr %82, align 4
%84 = icmp ne i32 %74, %83
br i1 %84, label %85, label %101
85: ; preds = %70
%86 = load i32, ptr %7, align 4
%87 = load i32, ptr %7, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [16 x i32], ptr %10, i64 0, i64 %88
%90 = load i32, ptr %89, align 4
%91 = load ptr, ptr %6, align 8
%92 = load i32, ptr %7, align 4
%93 = load i32, ptr @_SC_PAGESIZE, align 4
%94 = call i64 @sysconf(i32 noundef %93)
%95 = trunc i64 %94 to i32
%96 = mul i32 %92, %95
%97 = zext i32 %96 to i64
%98 = getelementptr i8, ptr %91, i64 %97
%99 = load i32, ptr %98, align 4
%100 = call i32 (ptr, ...) @test_msg(ptr noundef @.str.3, i32 noundef %86, i32 noundef %90, i32 noundef %99)
store i32 1, ptr %8, align 4
br label %108
101: ; preds = %70
%102 = load i32, ptr %7, align 4
%103 = load i32, ptr %7, align 4
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds [16 x i32], ptr %10, i64 0, i64 %104
%106 = load i32, ptr %105, align 4
%107 = call i32 (ptr, ...) @test_msg(ptr noundef @.str.4, i32 noundef %102, i32 noundef %106)
br label %108
108: ; preds = %101, %85
br label %109
109: ; preds = %108
%110 = load i32, ptr %7, align 4
%111 = add nsw i32 %110, 1
store i32 %111, ptr %7, align 4
%112 = load i32, ptr %7, align 4
%113 = icmp slt i32 %112, 16
br i1 %113, label %70, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %109
br label %114
114: ; preds = %._crit_edge3, %64
%115 = load i32, ptr %8, align 4
%116 = icmp ne i32 %115, 0
br i1 %116, label %117, label %122
117: ; preds = %114
%118 = load i32, ptr @errno, align 4
%119 = load i32, ptr @errno, align 4
%120 = call i32 @strerror(i32 noundef %119)
%121 = call i32 (ptr, ...) @test_msg(ptr noundef @.str.5, ptr noundef @.str.6, i32 noundef 56, i32 noundef %118, i32 noundef %120)
br label %124
122: ; preds = %114
%123 = call i32 (ptr, ...) @test_msg(ptr noundef @.str.7)
br label %124
124: ; preds = %122, %117
store i32 0, ptr %3, align 4
br label %125
125: ; preds = %124, %32
%126 = load i32, ptr %3, align 4
ret i32 %126
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @srand(i32 noundef) #2
declare i32 @time(ptr noundef) #2
declare i32 @test_init(i32 noundef, ptr noundef) #2
declare ptr @mmap(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2
declare i64 @sysconf(i32 noundef) #2
declare i32 @test_msg(ptr noundef, ...) #2
declare i32 @test_daemon(...) #2
declare i64 @test_go(...) #2
; 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) #3
declare i32 @random(...) #2
declare i32 @nanosleep(ptr noundef, ptr noundef) #2
declare i32 @test_waitsig(...) #2
declare i32 @strerror(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpaj1tjn08.c'
source_filename = "/tmp/tmpaj1tjn08.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"hello...\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"\0A\01\0D\\ \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 @puts(ptr noundef @.str)
%3 = call i32 @puts(ptr noundef @.str.1)
ret i32 0
}
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpaj1tjn08.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"hello...\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"\0A\01\0D\\ \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 @puts(ptr noundef @.str)
%3 = call i32 @puts(ptr noundef @.str.1)
ret i32 0
}
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpq6c178bj.c'
source_filename = "/tmp/tmpq6c178bj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"GL_VERSION: %s\0A\00", align 1
@GL_VERSION = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [33 x i8] c"GL_SHADING_LANGUAGE_VERSION: %s\0A\00", align 1
@GL_SHADING_LANGUAGE_VERSION = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [17 x i8] c"GL_RENDERER: %s\0A\00", align 1
@GL_RENDERER = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [15 x i8] c"GL_VENDOR: %s\0A\00", align 1
@GL_VENDOR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%3 = call ptr @gl_test_make(i32 noundef 0)
store ptr %3, ptr %2, align 8
%4 = load i32, ptr @GL_VERSION, align 4
%5 = call i64 @glGetString(i32 noundef %4)
%6 = inttoptr i64 %5 to ptr
%7 = call i32 @printf(ptr noundef @.str, ptr noundef %6)
%8 = load i32, ptr @GL_SHADING_LANGUAGE_VERSION, align 4
%9 = call i64 @glGetString(i32 noundef %8)
%10 = inttoptr i64 %9 to ptr
%11 = call i32 @printf(ptr noundef @.str.1, ptr noundef %10)
%12 = load i32, ptr @GL_RENDERER, align 4
%13 = call i64 @glGetString(i32 noundef %12)
%14 = inttoptr i64 %13 to ptr
%15 = call i32 @printf(ptr noundef @.str.2, ptr noundef %14)
%16 = load i32, ptr @GL_VENDOR, align 4
%17 = call i64 @glGetString(i32 noundef %16)
%18 = inttoptr i64 %17 to ptr
%19 = call i32 @printf(ptr noundef @.str.3, ptr noundef %18)
%20 = load ptr, ptr %2, align 8
%21 = call i32 @gl_test_free(ptr noundef %20)
ret i32 0
}
declare ptr @gl_test_make(i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i64 @glGetString(i32 noundef) #1
declare i32 @gl_test_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/tmpq6c178bj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"GL_VERSION: %s\0A\00", align 1
@GL_VERSION = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [33 x i8] c"GL_SHADING_LANGUAGE_VERSION: %s\0A\00", align 1
@GL_SHADING_LANGUAGE_VERSION = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [17 x i8] c"GL_RENDERER: %s\0A\00", align 1
@GL_RENDERER = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [15 x i8] c"GL_VENDOR: %s\0A\00", align 1
@GL_VENDOR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%3 = call ptr @gl_test_make(i32 noundef 0)
store ptr %3, ptr %2, align 8
%4 = load i32, ptr @GL_VERSION, align 4
%5 = call i64 @glGetString(i32 noundef %4)
%6 = inttoptr i64 %5 to ptr
%7 = call i32 @printf(ptr noundef @.str, ptr noundef %6)
%8 = load i32, ptr @GL_SHADING_LANGUAGE_VERSION, align 4
%9 = call i64 @glGetString(i32 noundef %8)
%10 = inttoptr i64 %9 to ptr
%11 = call i32 @printf(ptr noundef @.str.1, ptr noundef %10)
%12 = load i32, ptr @GL_RENDERER, align 4
%13 = call i64 @glGetString(i32 noundef %12)
%14 = inttoptr i64 %13 to ptr
%15 = call i32 @printf(ptr noundef @.str.2, ptr noundef %14)
%16 = load i32, ptr @GL_VENDOR, align 4
%17 = call i64 @glGetString(i32 noundef %16)
%18 = inttoptr i64 %17 to ptr
%19 = call i32 @printf(ptr noundef @.str.3, ptr noundef %18)
%20 = load ptr, ptr %2, align 8
%21 = call i32 @gl_test_free(ptr noundef %20)
ret i32 0
}
declare ptr @gl_test_make(i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i64 @glGetString(i32 noundef) #1
declare i32 @gl_test_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/tmp_tulyltf.c'
source_filename = "/tmp/tmp_tulyltf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @YsGLSLCreateMonoColorMarkerByPointSprite3DRenderer() #0 {
%1 = call ptr (...) @YsGLSLCreateVariColorMarkerByPointSprite3DRenderer()
ret ptr %1
}
declare ptr @YsGLSLCreateVariColorMarkerByPointSprite3DRenderer(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_tulyltf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @YsGLSLCreateMonoColorMarkerByPointSprite3DRenderer() #0 {
%1 = call ptr (...) @YsGLSLCreateVariColorMarkerByPointSprite3DRenderer()
ret ptr %1
}
declare ptr @YsGLSLCreateVariColorMarkerByPointSprite3DRenderer(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpw4wovhf_.c'
source_filename = "/tmp/tmpw4wovhf_.c"
target datalayout = "e-m:e-p270: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_5__ = type { i64, ptr }
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [5 x i8] c"%s/*\00", align 1
@GLOB_NOSORT = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @recursive_remove(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca %struct.TYPE_5__, align 8
%4 = alloca i64, align 8
%5 = alloca [256 x i8], align 16
%6 = alloca %struct.stat, align 4
store ptr %0, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %10
9: ; preds = %1
br label %77
10: ; preds = %1
%11 = load ptr, ptr %2, align 8
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %10
br label %77
16: ; preds = %10
%17 = load ptr, ptr %2, align 8
%18 = call i64 @stat(ptr noundef %17, ptr noundef %6)
%19 = icmp slt i64 %18, 0
br i1 %19, label %20, label %21
20: ; preds = %16
br label %77
21: ; preds = %16
%22 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 0
%23 = load i32, ptr %22, align 4
%24 = call i64 @S_ISDIR(i32 noundef %23)
%25 = icmp ne i64 %24, 0
br i1 %25, label %29, label %26
26: ; preds = %21
%27 = load ptr, ptr %2, align 8
%28 = call i32 @unlink(ptr noundef %27)
br label %77
29: ; preds = %21
%30 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
%31 = load ptr, ptr %2, align 8
%32 = call i32 @sprintf(ptr noundef %30, ptr noundef @.str, ptr noundef %31)
%33 = call i32 @memset(ptr noundef %3, i32 noundef 0, i32 noundef 16)
%34 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
%35 = load i32, ptr @GLOB_NOSORT, align 4
%36 = call i32 @glob(ptr noundef %34, i32 noundef %35, ptr noundef null, ptr noundef %3)
store i64 0, ptr %4, align 8
br label %37
37: ; preds = %70, %29
%38 = load i64, ptr %4, align 8
%39 = getelementptr inbounds %struct.TYPE_5__, ptr %3, i32 0, i32 0
%40 = load i64, ptr %39, align 8
%41 = icmp ult i64 %38, %40
br i1 %41, label %42, label %73
42: ; preds = %37
%43 = getelementptr inbounds %struct.TYPE_5__, ptr %3, i32 0, i32 1
%44 = load ptr, ptr %43, align 8
%45 = load i64, ptr %4, align 8
%46 = getelementptr inbounds ptr, ptr %44, i64 %45
%47 = load ptr, ptr %46, align 8
%48 = call i64 @stat(ptr noundef %47, ptr noundef %6)
%49 = icmp slt i64 %48, 0
br i1 %49, label %50, label %51
50: ; preds = %42
br label %70
51: ; preds = %42
%52 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 0
%53 = load i32, ptr %52, align 4
%54 = call i64 @S_ISDIR(i32 noundef %53)
%55 = icmp ne i64 %54, 0
br i1 %55, label %56, label %62
56: ; preds = %51
%57 = getelementptr inbounds %struct.TYPE_5__, ptr %3, i32 0, i32 1
%58 = load ptr, ptr %57, align 8
%59 = load i64, ptr %4, align 8
%60 = getelementptr inbounds ptr, ptr %58, i64 %59
%61 = load ptr, ptr %60, align 8
call void @recursive_remove(ptr noundef %61)
br label %69
62: ; preds = %51
%63 = getelementptr inbounds %struct.TYPE_5__, ptr %3, i32 0, i32 1
%64 = load ptr, ptr %63, align 8
%65 = load i64, ptr %4, align 8
%66 = getelementptr inbounds ptr, ptr %64, i64 %65
%67 = load ptr, ptr %66, align 8
%68 = call i32 @unlink(ptr noundef %67)
br label %69
69: ; preds = %62, %56
br label %70
70: ; preds = %69, %50
%71 = load i64, ptr %4, align 8
%72 = add i64 %71, 1
store i64 %72, ptr %4, align 8
br label %37, !llvm.loop !6
73: ; preds = %37
%74 = call i32 @globfree(ptr noundef %3)
%75 = load ptr, ptr %2, align 8
%76 = call i32 @rmdir(ptr noundef %75)
br label %77
77: ; preds = %73, %26, %20, %15, %9
ret void
}
declare i64 @stat(ptr noundef, ptr noundef) #1
declare i64 @S_ISDIR(i32 noundef) #1
declare i32 @unlink(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @glob(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @globfree(ptr noundef) #1
declare i32 @rmdir(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpw4wovhf_.c"
target datalayout = "e-m:e-p270: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_5__ = type { i64, ptr }
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [5 x i8] c"%s/*\00", align 1
@GLOB_NOSORT = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @recursive_remove(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca %struct.TYPE_5__, align 8
%4 = alloca i64, align 8
%5 = alloca [256 x i8], align 16
%6 = alloca %struct.stat, align 4
store ptr %0, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %10
9: ; preds = %1
br label %79
10: ; preds = %1
%11 = load ptr, ptr %2, align 8
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %10
br label %79
16: ; preds = %10
%17 = load ptr, ptr %2, align 8
%18 = call i64 @stat(ptr noundef %17, ptr noundef %6)
%19 = icmp slt i64 %18, 0
br i1 %19, label %20, label %21
20: ; preds = %16
br label %79
21: ; preds = %16
%22 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 0
%23 = load i32, ptr %22, align 4
%24 = call i64 @S_ISDIR(i32 noundef %23)
%25 = icmp ne i64 %24, 0
br i1 %25, label %29, label %26
26: ; preds = %21
%27 = load ptr, ptr %2, align 8
%28 = call i32 @unlink(ptr noundef %27)
br label %79
29: ; preds = %21
%30 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
%31 = load ptr, ptr %2, align 8
%32 = call i32 @sprintf(ptr noundef %30, ptr noundef @.str, ptr noundef %31)
%33 = call i32 @memset(ptr noundef %3, i32 noundef 0, i32 noundef 16)
%34 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
%35 = load i32, ptr @GLOB_NOSORT, align 4
%36 = call i32 @glob(ptr noundef %34, i32 noundef %35, ptr noundef null, ptr noundef %3)
store i64 0, ptr %4, align 8
%37 = load i64, ptr %4, align 8
%38 = getelementptr inbounds %struct.TYPE_5__, ptr %3, i32 0, i32 0
%39 = load i64, ptr %38, align 8
%40 = icmp ult i64 %37, %39
br i1 %40, label %.lr.ph, label %75
.lr.ph: ; preds = %29
br label %41
41: ; preds = %.lr.ph, %69
%42 = getelementptr inbounds %struct.TYPE_5__, ptr %3, i32 0, i32 1
%43 = load ptr, ptr %42, align 8
%44 = load i64, ptr %4, align 8
%45 = getelementptr inbounds ptr, ptr %43, i64 %44
%46 = load ptr, ptr %45, align 8
%47 = call i64 @stat(ptr noundef %46, ptr noundef %6)
%48 = icmp slt i64 %47, 0
br i1 %48, label %49, label %50
49: ; preds = %41
br label %69
50: ; preds = %41
%51 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 0
%52 = load i32, ptr %51, align 4
%53 = call i64 @S_ISDIR(i32 noundef %52)
%54 = icmp ne i64 %53, 0
br i1 %54, label %55, label %61
55: ; preds = %50
%56 = getelementptr inbounds %struct.TYPE_5__, ptr %3, i32 0, i32 1
%57 = load ptr, ptr %56, align 8
%58 = load i64, ptr %4, align 8
%59 = getelementptr inbounds ptr, ptr %57, i64 %58
%60 = load ptr, ptr %59, align 8
call void @recursive_remove(ptr noundef %60)
br label %68
61: ; preds = %50
%62 = getelementptr inbounds %struct.TYPE_5__, ptr %3, i32 0, i32 1
%63 = load ptr, ptr %62, align 8
%64 = load i64, ptr %4, align 8
%65 = getelementptr inbounds ptr, ptr %63, i64 %64
%66 = load ptr, ptr %65, align 8
%67 = call i32 @unlink(ptr noundef %66)
br label %68
68: ; preds = %61, %55
br label %69
69: ; preds = %68, %49
%70 = load i64, ptr %4, align 8
%71 = add i64 %70, 1
store i64 %71, ptr %4, align 8
%72 = load i64, ptr %4, align 8
%73 = load i64, ptr %38, align 8
%74 = icmp ult i64 %72, %73
br i1 %74, label %41, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %69
br label %75
75: ; preds = %._crit_edge, %29
%76 = call i32 @globfree(ptr noundef %3)
%77 = load ptr, ptr %2, align 8
%78 = call i32 @rmdir(ptr noundef %77)
br label %79
79: ; preds = %75, %26, %20, %15, %9
ret void
}
declare i64 @stat(ptr noundef, ptr noundef) #1
declare i64 @S_ISDIR(i32 noundef) #1
declare i32 @unlink(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @glob(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @globfree(ptr noundef) #1
declare i32 @rmdir(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpkuim00ag.c'
source_filename = "/tmp/tmpkuim00ag.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 world!\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 (...) @irq_init()
%3 = call i32 (...) @uart_init()
%4 = call i32 (...) @key_init()
%5 = call i32 @myputs(ptr noundef @.str)
%6 = call i32 (...) @led_test()
ret i32 0
}
declare i32 @irq_init(...) #1
declare i32 @uart_init(...) #1
declare i32 @key_init(...) #1
declare i32 @myputs(ptr noundef) #1
declare i32 @led_test(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkuim00ag.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 world!\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 (...) @irq_init()
%3 = call i32 (...) @uart_init()
%4 = call i32 (...) @key_init()
%5 = call i32 @myputs(ptr noundef @.str)
%6 = call i32 (...) @led_test()
ret i32 0
}
declare i32 @irq_init(...) #1
declare i32 @uart_init(...) #1
declare i32 @key_init(...) #1
declare i32 @myputs(ptr noundef) #1
declare i32 @led_test(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzc6n1l0i.c'
source_filename = "/tmp/tmpzc6n1l0i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cool_read(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %9, align 4
br label %10
10: ; preds = %3, %29
%11 = load i32, ptr %5, align 4
%12 = load ptr, ptr %6, align 8
%13 = load i32, ptr %9, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %12, i64 %14
%16 = load i32, ptr %7, align 4
%17 = load i32, ptr %9, align 4
%18 = sub nsw i32 %16, %17
%19 = call i32 @read(i32 noundef %11, ptr noundef %15, i32 noundef %18)
store i32 %19, ptr %8, align 4
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %10
%22 = load i32, ptr %9, align 4
store i32 %22, ptr %4, align 4
br label %33
23: ; preds = %10
%24 = load i32, ptr %8, align 4
%25 = icmp slt i32 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = load i32, ptr %8, align 4
store i32 %27, ptr %4, align 4
br label %33
28: ; preds = %23
br label %29
29: ; preds = %28
%30 = load i32, ptr %8, align 4
%31 = load i32, ptr %9, align 4
%32 = add nsw i32 %31, %30
store i32 %32, ptr %9, align 4
br label %10
33: ; preds = %26, %21
%34 = load i32, ptr %4, align 4
ret i32 %34
}
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzc6n1l0i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cool_read(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %9, align 4
%10 = load i32, ptr %5, align 4
%11 = load ptr, ptr %6, align 8
%12 = load i32, ptr %9, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, ptr %11, i64 %13
%15 = load i32, ptr %7, align 4
%16 = load i32, ptr %9, align 4
%17 = sub nsw i32 %15, %16
%18 = call i32 @read(i32 noundef %10, ptr noundef %14, i32 noundef %17)
store i32 %18, ptr %8, align 4
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %.lr.ph
.lr.ph: ; preds = %3
br label %22
._crit_edge: ; preds = %28
br label %20
20: ; preds = %._crit_edge, %3
%21 = load i32, ptr %9, align 4
store i32 %21, ptr %4, align 4
br label %42
22: ; preds = %.lr.ph, %28
%23 = load i32, ptr %8, align 4
%24 = icmp slt i32 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %22
%26 = load i32, ptr %8, align 4
store i32 %26, ptr %4, align 4
br label %42
27: ; preds = %22
br label %28
28: ; preds = %27
%29 = load i32, ptr %8, align 4
%30 = load i32, ptr %9, align 4
%31 = add nsw i32 %30, %29
store i32 %31, ptr %9, align 4
%32 = load i32, ptr %5, align 4
%33 = load ptr, ptr %6, align 8
%34 = load i32, ptr %9, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
%37 = load i32, ptr %7, align 4
%38 = load i32, ptr %9, align 4
%39 = sub nsw i32 %37, %38
%40 = call i32 @read(i32 noundef %32, ptr noundef %36, i32 noundef %39)
store i32 %40, ptr %8, align 4
%41 = icmp eq i32 %40, 0
br i1 %41, label %._crit_edge, label %22
42: ; preds = %25, %20
%43 = load i32, ptr %4, align 4
ret i32 %43
}
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkoo8a265.c'
source_filename = "/tmp/tmpkoo8a265.c"
target datalayout = "e-m:e-p270: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 void @read_words(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%9 = load ptr, ptr %3, align 8
%10 = call i32 @memset(ptr noundef %9, i32 noundef 0, i32 noundef 64)
store i32 0, ptr %5, align 4
br label %11
11: ; preds = %41, %2
%12 = call i32 (...) @getchar()
store i32 %12, ptr %6, align 4
%13 = load i32, ptr @EOF, align 4
%14 = icmp ne i32 %12, %13
br i1 %14, label %15, label %42
15: ; preds = %11
%16 = load i32, ptr %6, align 4
%17 = call i64 @isspace(i32 noundef %16)
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %38
19: ; preds = %15
%20 = load i32, ptr %5, align 4
%21 = icmp sgt i32 %20, 0
br i1 %21, label %22, label %37
22: ; preds = %19
%23 = load i32, ptr %5, align 4
%24 = load i32, ptr %4, align 4
%25 = icmp sge i32 %23, %24
br i1 %25, label %26, label %27
26: ; preds = %22
br label %29
27: ; preds = %22
%28 = load i32, ptr %5, align 4
br label %29
29: ; preds = %27, %26
%30 = phi i32 [ 0, %26 ], [ %28, %27 ]
store i32 %30, ptr %7, align 4
%31 = load ptr, ptr %3, align 8
%32 = load i32, ptr %7, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i32, ptr %31, i64 %33
%35 = load i32, ptr %34, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %34, align 4
store i32 0, ptr %5, align 4
br label %37
37: ; preds = %29, %19
br label %41
38: ; preds = %15
%39 = load i32, ptr %5, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %5, align 4
br label %41
41: ; preds = %38, %37
br label %11, !llvm.loop !6
42: ; preds = %11
%43 = load i32, ptr %5, align 4
%44 = icmp sgt i32 %43, 0
br i1 %44, label %45, label %60
45: ; preds = %42
%46 = load i32, ptr %5, align 4
%47 = load i32, ptr %4, align 4
%48 = icmp sge i32 %46, %47
br i1 %48, label %49, label %50
49: ; preds = %45
br label %52
50: ; preds = %45
%51 = load i32, ptr %5, align 4
br label %52
52: ; preds = %50, %49
%53 = phi i32 [ 0, %49 ], [ %51, %50 ]
store i32 %53, ptr %8, align 4
%54 = load ptr, ptr %3, align 8
%55 = load i32, ptr %8, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i32, ptr %54, i64 %56
%58 = load i32, ptr %57, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %57, align 4
store i32 0, ptr %5, align 4
br label %60
60: ; preds = %52, %42
ret void
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getchar(...) #1
declare i64 @isspace(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkoo8a265.c"
target datalayout = "e-m:e-p270: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 void @read_words(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%9 = load ptr, ptr %3, align 8
%10 = call i32 @memset(ptr noundef %9, i32 noundef 0, i32 noundef 64)
store i32 0, ptr %5, align 4
%11 = call i32 (...) @getchar()
store i32 %11, ptr %6, align 4
%12 = load i32, ptr @EOF, align 4
%13 = icmp ne i32 %11, %12
br i1 %13, label %.lr.ph, label %44
.lr.ph: ; preds = %2
br label %14
14: ; preds = %.lr.ph, %40
%15 = load i32, ptr %6, align 4
%16 = call i64 @isspace(i32 noundef %15)
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %37
18: ; preds = %14
%19 = load i32, ptr %5, align 4
%20 = icmp sgt i32 %19, 0
br i1 %20, label %21, label %36
21: ; preds = %18
%22 = load i32, ptr %5, align 4
%23 = load i32, ptr %4, align 4
%24 = icmp sge i32 %22, %23
br i1 %24, label %25, label %26
25: ; preds = %21
br label %28
26: ; preds = %21
%27 = load i32, ptr %5, align 4
br label %28
28: ; preds = %26, %25
%29 = phi i32 [ 0, %25 ], [ %27, %26 ]
store i32 %29, ptr %7, align 4
%30 = load ptr, ptr %3, align 8
%31 = load i32, ptr %7, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i32, ptr %30, i64 %32
%34 = load i32, ptr %33, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %33, align 4
store i32 0, ptr %5, align 4
br label %36
36: ; preds = %28, %18
br label %40
37: ; preds = %14
%38 = load i32, ptr %5, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %5, align 4
br label %40
40: ; preds = %37, %36
%41 = call i32 (...) @getchar()
store i32 %41, ptr %6, align 4
%42 = load i32, ptr @EOF, align 4
%43 = icmp ne i32 %41, %42
br i1 %43, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %40
br label %44
44: ; preds = %._crit_edge, %2
%45 = load i32, ptr %5, align 4
%46 = icmp sgt i32 %45, 0
br i1 %46, label %47, label %62
47: ; preds = %44
%48 = load i32, ptr %5, align 4
%49 = load i32, ptr %4, align 4
%50 = icmp sge i32 %48, %49
br i1 %50, label %51, label %52
51: ; preds = %47
br label %54
52: ; preds = %47
%53 = load i32, ptr %5, align 4
br label %54
54: ; preds = %52, %51
%55 = phi i32 [ 0, %51 ], [ %53, %52 ]
store i32 %55, ptr %8, align 4
%56 = load ptr, ptr %3, align 8
%57 = load i32, ptr %8, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i32, ptr %56, i64 %58
%60 = load i32, ptr %59, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %59, align 4
store i32 0, ptr %5, align 4
br label %62
62: ; preds = %54, %44
ret void
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getchar(...) #1
declare i64 @isspace(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpnxt52qf2.c'
source_filename = "/tmp/tmpnxt52qf2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SYS_arch_prctl = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @arch_prctl(i32 noundef %0, i64 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i64, align 8
store i32 %0, ptr %3, align 4
store i64 %1, ptr %4, align 8
%5 = load i32, ptr @SYS_arch_prctl, align 4
%6 = load i32, ptr %3, align 4
%7 = load i64, ptr %4, align 8
%8 = call i32 @__syscall2(i32 noundef %5, i32 noundef %6, i64 noundef %7)
ret i32 %8
}
declare i32 @__syscall2(i32 noundef, i32 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnxt52qf2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SYS_arch_prctl = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @arch_prctl(i32 noundef %0, i64 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i64, align 8
store i32 %0, ptr %3, align 4
store i64 %1, ptr %4, align 8
%5 = load i32, ptr @SYS_arch_prctl, align 4
%6 = load i32, ptr %3, align 4
%7 = load i64, ptr %4, align 8
%8 = call i32 @__syscall2(i32 noundef %5, i32 noundef %6, i64 noundef %7)
ret i32 %8
}
declare i32 @__syscall2(i32 noundef, i32 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmc4ucspi.c'
source_filename = "/tmp/tmpmc4ucspi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ThinkLayer(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i16, align 2
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
store i32 0, ptr %11, align 4
store i32 0, ptr %12, align 4
br label %15
15: ; preds = %62, %5
%16 = load i32, ptr %12, align 4
%17 = load i32, ptr %9, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %65
19: ; preds = %15
store i32 0, ptr %11, align 4
store i32 0, ptr %13, align 4
br label %20
20: ; preds = %45, %19
%21 = load i32, ptr %13, align 4
%22 = load i32, ptr %7, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %24, label %48
24: ; preds = %20
%25 = load ptr, ptr %10, align 8
%26 = load i32, ptr %9, align 4
%27 = load i32, ptr %13, align 4
%28 = mul nsw i32 %26, %27
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i16, ptr %25, i64 %29
%31 = load i32, ptr %12, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i16, ptr %30, i64 %32
%34 = load i16, ptr %33, align 2
store i16 %34, ptr %14, align 2
%35 = load i32, ptr %11, align 4
%36 = load ptr, ptr %6, align 8
%37 = load i32, ptr %13, 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 i16, ptr %14, align 2
%42 = sext i16 %41 to i32
%43 = mul nsw i32 %40, %42
%44 = add nsw i32 %35, %43
store i32 %44, ptr %11, align 4
br label %45
45: ; preds = %24
%46 = load i32, ptr %13, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %13, align 4
br label %20, !llvm.loop !6
48: ; preds = %20
%49 = load i32, ptr %11, align 4
%50 = icmp sgt i32 %49, 0
br i1 %50, label %51, label %56
51: ; preds = %48
%52 = load ptr, ptr %8, align 8
%53 = load i32, ptr %12, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i32, ptr %52, i64 %54
store i32 1, ptr %55, align 4
br label %61
56: ; preds = %48
%57 = load ptr, ptr %8, align 8
%58 = load i32, ptr %12, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i32, ptr %57, i64 %59
store i32 0, ptr %60, align 4
br label %61
61: ; preds = %56, %51
br label %62
62: ; preds = %61
%63 = load i32, ptr %12, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %12, align 4
br label %15, !llvm.loop !8
65: ; preds = %15
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmc4ucspi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ThinkLayer(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i16, align 2
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
store i32 0, ptr %11, align 4
store i32 0, ptr %12, align 4
%15 = load i32, ptr %12, align 4
%16 = load i32, ptr %9, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %.lr.ph2, label %69
.lr.ph2: ; preds = %5
br label %18
18: ; preds = %.lr.ph2, %63
store i32 0, ptr %11, align 4
store i32 0, ptr %13, align 4
%19 = load i32, ptr %13, align 4
%20 = load i32, ptr %7, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %.lr.ph, label %49
.lr.ph: ; preds = %18
br label %22
22: ; preds = %.lr.ph, %43
%23 = load ptr, ptr %10, align 8
%24 = load i32, ptr %9, align 4
%25 = load i32, ptr %13, align 4
%26 = mul nsw i32 %24, %25
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i16, ptr %23, i64 %27
%29 = load i32, ptr %12, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i16, ptr %28, i64 %30
%32 = load i16, ptr %31, align 2
store i16 %32, ptr %14, align 2
%33 = load i32, ptr %11, align 4
%34 = load ptr, ptr %6, align 8
%35 = load i32, ptr %13, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %34, i64 %36
%38 = load i32, ptr %37, align 4
%39 = load i16, ptr %14, align 2
%40 = sext i16 %39 to i32
%41 = mul nsw i32 %38, %40
%42 = add nsw i32 %33, %41
store i32 %42, ptr %11, align 4
br label %43
43: ; preds = %22
%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 %7, align 4
%48 = icmp slt i32 %46, %47
br i1 %48, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %43
br label %49
49: ; preds = %._crit_edge, %18
%50 = load i32, ptr %11, align 4
%51 = icmp sgt i32 %50, 0
br i1 %51, label %52, label %57
52: ; preds = %49
%53 = load ptr, ptr %8, align 8
%54 = load i32, ptr %12, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i32, ptr %53, i64 %55
store i32 1, ptr %56, align 4
br label %62
57: ; preds = %49
%58 = load ptr, ptr %8, align 8
%59 = load i32, ptr %12, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i32, ptr %58, i64 %60
store i32 0, ptr %61, align 4
br label %62
62: ; preds = %57, %52
br label %63
63: ; preds = %62
%64 = load i32, ptr %12, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %12, align 4
%66 = load i32, ptr %12, align 4
%67 = load i32, ptr %9, align 4
%68 = icmp slt i32 %66, %67
br i1 %68, label %18, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %63
br label %69
69: ; preds = %._crit_edge3, %5
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpcz2szxpg.c'
source_filename = "/tmp/tmpcz2szxpg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"-\0A\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"*\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [10 x i32], align 16
%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
br label %7
7: ; preds = %0, %69
%8 = call i32 @scanf(ptr noundef @.str, ptr noundef %6)
%9 = load i32, ptr %6, align 4
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %7
br label %70
12: ; preds = %7
store i32 0, ptr %3, align 4
br label %13
13: ; preds = %20, %12
%14 = load i32, ptr %3, align 4
%15 = icmp slt i32 %14, 10
br i1 %15, label %16, label %23
16: ; preds = %13
%17 = load i32, ptr %3, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %18
store i32 0, ptr %19, align 4
br label %20
20: ; preds = %16
%21 = load i32, ptr %3, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %3, align 4
br label %13, !llvm.loop !6
23: ; preds = %13
store i32 0, ptr %3, align 4
br label %24
24: ; preds = %35, %23
%25 = load i32, ptr %3, align 4
%26 = load i32, ptr %6, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %38
28: ; preds = %24
%29 = call i32 @scanf(ptr noundef @.str, ptr noundef %5)
%30 = load i32, ptr %5, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %31
%33 = load i32, ptr %32, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %32, align 4
br label %35
35: ; preds = %28
%36 = load i32, ptr %3, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %3, align 4
br label %24, !llvm.loop !8
38: ; preds = %24
store i32 0, ptr %3, align 4
br label %39
39: ; preds = %66, %38
%40 = load i32, ptr %3, align 4
%41 = icmp slt i32 %40, 10
br i1 %41, label %42, label %69
42: ; preds = %39
%43 = load i32, ptr %3, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %44
%46 = load i32, ptr %45, align 4
%47 = icmp eq i32 %46, 0
br i1 %47, label %48, label %50
48: ; preds = %42
%49 = call i32 @printf(ptr noundef @.str.1)
br label %65
50: ; preds = %42
store i32 0, ptr %4, align 4
br label %51
51: ; preds = %60, %50
%52 = load i32, ptr %4, align 4
%53 = load i32, ptr %3, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %54
%56 = load i32, ptr %55, align 4
%57 = icmp slt i32 %52, %56
br i1 %57, label %58, label %63
58: ; preds = %51
%59 = call i32 @printf(ptr noundef @.str.2)
br label %60
60: ; preds = %58
%61 = load i32, ptr %4, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %4, align 4
br label %51, !llvm.loop !9
63: ; preds = %51
%64 = call i32 @printf(ptr noundef @.str.3)
br label %65
65: ; preds = %63, %48
br label %66
66: ; preds = %65
%67 = load i32, ptr %3, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %3, align 4
br label %39, !llvm.loop !10
69: ; preds = %39
br label %7
70: ; preds = %11
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}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcz2szxpg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"-\0A\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"*\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [10 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %6)
%8 = load i32, ptr %6, align 4
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %.lr.ph11
.lr.ph11: ; preds = %0
br label %11
._crit_edge12: ; preds = %77
br label %10
10: ; preds = %._crit_edge12, %0
br label %81
11: ; preds = %.lr.ph11, %77
store i32 0, ptr %3, align 4
%12 = load i32, ptr %3, align 4
%13 = icmp slt i32 %12, 10
br i1 %13, label %.lr.ph, label %23
.lr.ph: ; preds = %11
br label %14
14: ; preds = %.lr.ph, %18
%15 = load i32, ptr %3, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %16
store i32 0, ptr %17, align 4
br label %18
18: ; preds = %14
%19 = load i32, ptr %3, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %3, align 4
%21 = load i32, ptr %3, align 4
%22 = icmp slt i32 %21, 10
br i1 %22, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %23
23: ; preds = %._crit_edge, %11
store i32 0, ptr %3, align 4
%24 = load i32, ptr %3, align 4
%25 = load i32, ptr %6, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %.lr.ph2, label %40
.lr.ph2: ; preds = %23
br label %27
27: ; preds = %.lr.ph2, %34
%28 = call i32 @scanf(ptr noundef @.str, ptr noundef %5)
%29 = load i32, ptr %5, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %30
%32 = load i32, ptr %31, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %31, align 4
br label %34
34: ; preds = %27
%35 = load i32, ptr %3, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %3, align 4
%37 = load i32, ptr %3, align 4
%38 = load i32, ptr %6, align 4
%39 = icmp slt i32 %37, %38
br i1 %39, label %27, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %34
br label %40
40: ; preds = %._crit_edge3, %23
store i32 0, ptr %3, align 4
%41 = load i32, ptr %3, align 4
%42 = icmp slt i32 %41, 10
br i1 %42, label %.lr.ph8, label %77
.lr.ph8: ; preds = %40
br label %43
43: ; preds = %.lr.ph8, %72
%44 = load i32, ptr %3, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %45
%47 = load i32, ptr %46, align 4
%48 = icmp eq i32 %47, 0
br i1 %48, label %49, label %51
49: ; preds = %43
%50 = call i32 @printf(ptr noundef @.str.1)
br label %71
51: ; preds = %43
store i32 0, ptr %4, align 4
%52 = load i32, ptr %4, align 4
%53 = load i32, ptr %3, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %54
%56 = load i32, ptr %55, align 4
%57 = icmp slt i32 %52, %56
br i1 %57, label %.lr.ph5, label %69
.lr.ph5: ; preds = %51
br label %58
58: ; preds = %.lr.ph5, %60
%59 = call i32 @printf(ptr noundef @.str.2)
br label %60
60: ; preds = %58
%61 = load i32, ptr %4, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %4, align 4
%63 = load i32, ptr %4, align 4
%64 = load i32, ptr %3, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %65
%67 = load i32, ptr %66, align 4
%68 = icmp slt i32 %63, %67
br i1 %68, label %58, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %60
br label %69
69: ; preds = %._crit_edge6, %51
%70 = call i32 @printf(ptr noundef @.str.3)
br label %71
71: ; preds = %69, %49
br label %72
72: ; preds = %71
%73 = load i32, ptr %3, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %3, align 4
%75 = load i32, ptr %3, align 4
%76 = icmp slt i32 %75, 10
br i1 %76, label %43, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %72
br label %77
77: ; preds = %._crit_edge9, %40
%78 = call i32 @scanf(ptr noundef @.str, ptr noundef %6)
%79 = load i32, ptr %6, align 4
%80 = icmp eq i32 %79, 0
br i1 %80, label %._crit_edge12, label %11
81: ; preds = %10
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}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpkrolgqpf.c'
source_filename = "/tmp/tmpkrolgqpf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [39 x i8] c"Expected printf to return %d, got %d.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @DoCharTest(ptr noundef %0, i8 noundef signext %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i8 %1, ptr %5, align 1
store ptr %2, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
%9 = load i8, ptr %5, align 1
%10 = call i32 @printf(ptr noundef %8, i8 noundef signext %9)
store i32 %10, ptr %7, align 4
%11 = load i32, ptr %7, align 4
%12 = load ptr, ptr %6, align 8
%13 = call i32 @strlen(ptr noundef %12)
%14 = icmp ne i32 %11, %13
br i1 %14, label %15, label %20
15: ; preds = %3
%16 = load ptr, ptr %6, align 8
%17 = call i32 @strlen(ptr noundef %16)
%18 = load i32, ptr %7, align 4
%19 = call i32 @Fail(ptr noundef @.str, i32 noundef %17, i32 noundef %18)
br label %20
20: ; preds = %15, %3
ret void
}
declare i32 @printf(ptr noundef, i8 noundef signext) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @Fail(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/tmpkrolgqpf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [39 x i8] c"Expected printf to return %d, got %d.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @DoCharTest(ptr noundef %0, i8 noundef signext %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i8 %1, ptr %5, align 1
store ptr %2, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
%9 = load i8, ptr %5, align 1
%10 = call i32 @printf(ptr noundef %8, i8 noundef signext %9)
store i32 %10, ptr %7, align 4
%11 = load i32, ptr %7, align 4
%12 = load ptr, ptr %6, align 8
%13 = call i32 @strlen(ptr noundef %12)
%14 = icmp ne i32 %11, %13
br i1 %14, label %15, label %20
15: ; preds = %3
%16 = load ptr, ptr %6, align 8
%17 = call i32 @strlen(ptr noundef %16)
%18 = load i32, ptr %7, align 4
%19 = call i32 @Fail(ptr noundef @.str, i32 noundef %17, i32 noundef %18)
br label %20
20: ; preds = %15, %3
ret void
}
declare i32 @printf(ptr noundef, i8 noundef signext) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @Fail(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/tmph361q25v.c'
source_filename = "/tmp/tmph361q25v.c"
target datalayout = "e-m:e-p270: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/tmph361q25v.c"
target datalayout = "e-m:e-p270: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/tmpwjn9ga7y.c'
source_filename = "/tmp/tmpwjn9ga7y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ftrylockfile(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
ret i32 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwjn9ga7y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ftrylockfile(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
ret i32 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjg5qe2mm.c'
source_filename = "/tmp/tmpjg5qe2mm.c"
target datalayout = "e-m:e-p270: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/tmpjg5qe2mm.c"
target datalayout = "e-m:e-p270: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/tmpwao365mg.c'
source_filename = "/tmp/tmpwao365mg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.passwd = type { ptr }
@.str = private unnamed_addr constant [5 x i8] c"HOME\00", align 1
@errno = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @pe_utils_get_homedir() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = call ptr @getenv(ptr noundef @.str)
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = load ptr, ptr %2, align 8
store ptr %8, ptr %1, align 8
br label %21
9: ; preds = %0
store i64 0, ptr @errno, align 8
%10 = call i32 (...) @getuid()
%11 = call ptr @getpwuid(i32 noundef %10)
store ptr %11, ptr %3, align 8
%12 = load ptr, ptr %3, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %15
14: ; preds = %9
br label %19
15: ; preds = %9
%16 = load ptr, ptr %3, align 8
%17 = getelementptr inbounds %struct.passwd, ptr %16, i32 0, i32 0
%18 = load ptr, ptr %17, align 8
br label %19
19: ; preds = %15, %14
%20 = phi ptr [ null, %14 ], [ %18, %15 ]
store ptr %20, ptr %1, align 8
br label %21
21: ; preds = %19, %7
%22 = load ptr, ptr %1, align 8
ret ptr %22
}
declare ptr @getenv(ptr noundef) #1
declare ptr @getpwuid(i32 noundef) #1
declare i32 @getuid(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwao365mg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.passwd = type { ptr }
@.str = private unnamed_addr constant [5 x i8] c"HOME\00", align 1
@errno = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @pe_utils_get_homedir() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = call ptr @getenv(ptr noundef @.str)
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = load ptr, ptr %2, align 8
store ptr %8, ptr %1, align 8
br label %21
9: ; preds = %0
store i64 0, ptr @errno, align 8
%10 = call i32 (...) @getuid()
%11 = call ptr @getpwuid(i32 noundef %10)
store ptr %11, ptr %3, align 8
%12 = load ptr, ptr %3, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %15
14: ; preds = %9
br label %19
15: ; preds = %9
%16 = load ptr, ptr %3, align 8
%17 = getelementptr inbounds %struct.passwd, ptr %16, i32 0, i32 0
%18 = load ptr, ptr %17, align 8
br label %19
19: ; preds = %15, %14
%20 = phi ptr [ null, %14 ], [ %18, %15 ]
store ptr %20, ptr %1, align 8
br label %21
21: ; preds = %19, %7
%22 = load ptr, ptr %1, align 8
ret ptr %22
}
declare ptr @getenv(ptr noundef) #1
declare ptr @getpwuid(i32 noundef) #1
declare i32 @getuid(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7mpb18dv.c'
source_filename = "/tmp/tmp7mpb18dv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @HCHANGE(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, double noundef %5, i32 noundef %6, ptr noundef %7) #0 {
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca double, align 8
%15 = alloca i32, align 4
%16 = alloca ptr, align 8
%17 = alloca double, align 8
store ptr %0, ptr %9, align 8
store ptr %1, ptr %10, align 8
store ptr %2, ptr %11, align 8
store i32 %3, ptr %12, align 4
store i32 %4, ptr %13, align 4
store double %5, ptr %14, align 8
store i32 %6, ptr %15, align 4
store ptr %7, ptr %16, align 8
%18 = load ptr, ptr %9, align 8
%19 = load i32, ptr %13, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds double, ptr %18, i64 %20
%22 = load double, ptr %21, align 8
store double %22, ptr %17, align 8
%23 = load double, ptr %14, align 8
%24 = load ptr, ptr %9, align 8
%25 = load i32, ptr %13, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds double, ptr %24, i64 %26
store double %23, ptr %27, align 8
%28 = load i32, ptr %15, align 4
%29 = load ptr, ptr %10, align 8
%30 = load i32, ptr %13, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i32, ptr %29, i64 %31
store i32 %28, ptr %32, align 4
%33 = load i32, ptr %13, align 4
%34 = load ptr, ptr %11, align 8
%35 = load i32, ptr %15, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %34, i64 %36
store i32 %33, ptr %37, align 4
%38 = load double, ptr %17, align 8
%39 = load double, ptr %14, align 8
%40 = fcmp olt double %38, %39
br i1 %40, label %41, label %48
41: ; preds = %8
%42 = load ptr, ptr %9, align 8
%43 = load ptr, ptr %10, align 8
%44 = load ptr, ptr %11, align 8
%45 = load i32, ptr %13, align 4
%46 = load ptr, ptr %16, align 8
%47 = call i32 @HUP(ptr noundef %42, ptr noundef %43, ptr noundef %44, i32 noundef %45, ptr noundef %46)
br label %56
48: ; preds = %8
%49 = load ptr, ptr %9, align 8
%50 = load ptr, ptr %10, align 8
%51 = load ptr, ptr %11, align 8
%52 = load i32, ptr %12, align 4
%53 = load i32, ptr %13, align 4
%54 = load ptr, ptr %16, align 8
%55 = call i32 @HDOWN(ptr noundef %49, ptr noundef %50, ptr noundef %51, i32 noundef %52, i32 noundef %53, ptr noundef %54)
br label %56
56: ; preds = %48, %41
ret void
}
declare i32 @HUP(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @HDOWN(ptr noundef, ptr 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/tmp7mpb18dv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @HCHANGE(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, double noundef %5, i32 noundef %6, ptr noundef %7) #0 {
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca double, align 8
%15 = alloca i32, align 4
%16 = alloca ptr, align 8
%17 = alloca double, align 8
store ptr %0, ptr %9, align 8
store ptr %1, ptr %10, align 8
store ptr %2, ptr %11, align 8
store i32 %3, ptr %12, align 4
store i32 %4, ptr %13, align 4
store double %5, ptr %14, align 8
store i32 %6, ptr %15, align 4
store ptr %7, ptr %16, align 8
%18 = load ptr, ptr %9, align 8
%19 = load i32, ptr %13, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds double, ptr %18, i64 %20
%22 = load double, ptr %21, align 8
store double %22, ptr %17, align 8
%23 = load double, ptr %14, align 8
%24 = load ptr, ptr %9, align 8
%25 = load i32, ptr %13, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds double, ptr %24, i64 %26
store double %23, ptr %27, align 8
%28 = load i32, ptr %15, align 4
%29 = load ptr, ptr %10, align 8
%30 = load i32, ptr %13, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i32, ptr %29, i64 %31
store i32 %28, ptr %32, align 4
%33 = load i32, ptr %13, align 4
%34 = load ptr, ptr %11, align 8
%35 = load i32, ptr %15, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %34, i64 %36
store i32 %33, ptr %37, align 4
%38 = load double, ptr %17, align 8
%39 = load double, ptr %14, align 8
%40 = fcmp olt double %38, %39
br i1 %40, label %41, label %48
41: ; preds = %8
%42 = load ptr, ptr %9, align 8
%43 = load ptr, ptr %10, align 8
%44 = load ptr, ptr %11, align 8
%45 = load i32, ptr %13, align 4
%46 = load ptr, ptr %16, align 8
%47 = call i32 @HUP(ptr noundef %42, ptr noundef %43, ptr noundef %44, i32 noundef %45, ptr noundef %46)
br label %56
48: ; preds = %8
%49 = load ptr, ptr %9, align 8
%50 = load ptr, ptr %10, align 8
%51 = load ptr, ptr %11, align 8
%52 = load i32, ptr %12, align 4
%53 = load i32, ptr %13, align 4
%54 = load ptr, ptr %16, align 8
%55 = call i32 @HDOWN(ptr noundef %49, ptr noundef %50, ptr noundef %51, i32 noundef %52, i32 noundef %53, ptr noundef %54)
br label %56
56: ; preds = %48, %41
ret void
}
declare i32 @HUP(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @HDOWN(ptr noundef, ptr 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/tmpd0vbvptd.c'
source_filename = "/tmp/tmpd0vbvptd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"# c::%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"wrap\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"ok %d benchmark finished\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @time(ptr noundef null)
%5 = call i32 @srand(i32 noundef %4)
%6 = call i32 (...) @print_version()
store i32 0, ptr %3, align 4
br label %7
7: ; preds = %18, %0
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %8, 3
br i1 %9, label %10, label %21
10: ; preds = %7
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
%12 = call double (...) @benchmark()
store double %12, ptr %2, align 8
%13 = load double, ptr %2, align 8
%14 = call i32 @print_results(double noundef %13)
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, 1
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %16)
br label %18
18: ; preds = %10
%19 = load i32, ptr %3, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %3, align 4
br label %7, !llvm.loop !6
21: ; preds = %7
%22 = call i32 @print_summary(i32 noundef 3, i32 noundef 3)
%23 = load i32, ptr %1, align 4
ret i32 %23
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @print_version(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @benchmark(...) #1
declare i32 @print_results(double noundef) #1
declare i32 @print_summary(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpd0vbvptd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"# c::%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"wrap\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"ok %d benchmark finished\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @time(ptr noundef null)
%5 = call i32 @srand(i32 noundef %4)
%6 = call i32 (...) @print_version()
store i32 0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %7, 3
br i1 %8, label %.lr.ph, label %22
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %17
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
%11 = call double (...) @benchmark()
store double %11, ptr %2, align 8
%12 = load double, ptr %2, align 8
%13 = call i32 @print_results(double noundef %12)
%14 = load i32, ptr %3, align 4
%15 = add nsw i32 %14, 1
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %15)
br label %17
17: ; preds = %9
%18 = load i32, ptr %3, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %3, align 4
%20 = load i32, ptr %3, align 4
%21 = icmp slt i32 %20, 3
br i1 %21, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %22
22: ; preds = %._crit_edge, %0
%23 = call i32 @print_summary(i32 noundef 3, i32 noundef 3)
%24 = load i32, ptr %1, align 4
ret i32 %24
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @print_version(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @benchmark(...) #1
declare i32 @print_results(double noundef) #1
declare i32 @print_summary(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp87scalk9.c'
source_filename = "/tmp/tmp87scalk9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @i32toa(i32 noundef %0, i64 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i64 %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i32 1, ptr %8, align 4
%9 = load i64, ptr %5, align 8
store i64 %9, ptr %7, align 8
br label %10
10: ; preds = %28, %3
%11 = load i64, ptr %7, align 8
%12 = icmp sgt i64 %11, 0
br i1 %12, label %13, label %31
13: ; preds = %10
%14 = load i32, ptr %4, align 4
%15 = load i32, ptr %8, align 4
%16 = mul nsw i32 %15, 10
%17 = srem i32 %14, %16
%18 = load i32, ptr %8, align 4
%19 = sdiv i32 %17, %18
%20 = add nsw i32 %19, 48
%21 = trunc i32 %20 to i8
%22 = load ptr, ptr %6, align 8
%23 = load i64, ptr %7, align 8
%24 = getelementptr inbounds i8, ptr %22, i64 %23
%25 = getelementptr inbounds i8, ptr %24, i64 -1
store volatile i8 %21, ptr %25, align 1
%26 = load i32, ptr %8, align 4
%27 = mul nsw i32 %26, 10
store i32 %27, ptr %8, align 4
br label %28
28: ; preds = %13
%29 = load i64, ptr %7, align 8
%30 = add nsw i64 %29, -1
store i64 %30, ptr %7, align 8
br label %10, !llvm.loop !6
31: ; preds = %10
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp87scalk9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @i32toa(i32 noundef %0, i64 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i64 %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i32 1, ptr %8, align 4
%9 = load i64, ptr %5, align 8
store i64 %9, ptr %7, align 8
%10 = load i64, ptr %7, align 8
%11 = icmp sgt i64 %10, 0
br i1 %11, label %.lr.ph, label %32
.lr.ph: ; preds = %3
br label %12
12: ; preds = %.lr.ph, %27
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr %8, align 4
%15 = mul nsw i32 %14, 10
%16 = srem i32 %13, %15
%17 = load i32, ptr %8, align 4
%18 = sdiv i32 %16, %17
%19 = add nsw i32 %18, 48
%20 = trunc i32 %19 to i8
%21 = load ptr, ptr %6, align 8
%22 = load i64, ptr %7, align 8
%23 = getelementptr inbounds i8, ptr %21, i64 %22
%24 = getelementptr inbounds i8, ptr %23, i64 -1
store volatile i8 %20, ptr %24, align 1
%25 = load i32, ptr %8, align 4
%26 = mul nsw i32 %25, 10
store i32 %26, ptr %8, align 4
br label %27
27: ; preds = %12
%28 = load i64, ptr %7, align 8
%29 = add nsw i64 %28, -1
store i64 %29, ptr %7, align 8
%30 = load i64, ptr %7, align 8
%31 = icmp sgt i64 %30, 0
br i1 %31, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %32
32: ; preds = %._crit_edge, %3
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpqqwkzeyr.c'
source_filename = "/tmp/tmpqqwkzeyr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"error getsockopt: %s\00", align 1
@errno = dso_local global i32 0, align 4
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Getsockopt(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%12 = load i32, ptr %6, align 4
%13 = load i32, ptr %7, align 4
%14 = load i32, ptr %8, align 4
%15 = load ptr, ptr %9, align 8
%16 = load ptr, ptr %10, align 8
%17 = call i32 @getsockopt(i32 noundef %12, i32 noundef %13, i32 noundef %14, ptr noundef %15, ptr noundef %16)
store i32 %17, ptr %11, align 4
%18 = load i32, ptr %11, align 4
%19 = icmp eq i32 %18, -1
br i1 %19, label %20, label %26
20: ; preds = %5
%21 = load i32, ptr @errno, align 4
%22 = call i32 @strerror(i32 noundef %21)
%23 = call i32 @err_msg(ptr noundef @.str, i32 noundef %22)
%24 = load i32, ptr @EXIT_FAILURE, align 4
%25 = call i32 @exit(i32 noundef %24) #3
unreachable
26: ; preds = %5
%27 = load i32, ptr %11, align 4
ret i32 %27
}
declare i32 @getsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @err_msg(ptr noundef, i32 noundef) #1
declare i32 @strerror(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/tmpqqwkzeyr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"error getsockopt: %s\00", align 1
@errno = dso_local global i32 0, align 4
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Getsockopt(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%12 = load i32, ptr %6, align 4
%13 = load i32, ptr %7, align 4
%14 = load i32, ptr %8, align 4
%15 = load ptr, ptr %9, align 8
%16 = load ptr, ptr %10, align 8
%17 = call i32 @getsockopt(i32 noundef %12, i32 noundef %13, i32 noundef %14, ptr noundef %15, ptr noundef %16)
store i32 %17, ptr %11, align 4
%18 = load i32, ptr %11, align 4
%19 = icmp eq i32 %18, -1
br i1 %19, label %20, label %26
20: ; preds = %5
%21 = load i32, ptr @errno, align 4
%22 = call i32 @strerror(i32 noundef %21)
%23 = call i32 @err_msg(ptr noundef @.str, i32 noundef %22)
%24 = load i32, ptr @EXIT_FAILURE, align 4
%25 = call i32 @exit(i32 noundef %24) #3
unreachable
26: ; preds = %5
%27 = load i32, ptr %11, align 4
ret i32 %27
}
declare i32 @getsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @err_msg(ptr noundef, i32 noundef) #1
declare i32 @strerror(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/tmpm66qju5k.c'
source_filename = "/tmp/tmpm66qju5k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f_snoiseP(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 0
%11 = load ptr, ptr %10, align 8
store ptr %11, ptr %7, align 8
%12 = load ptr, ptr %6, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
store ptr %14, ptr %8, align 8
%15 = load ptr, ptr %8, align 8
%16 = getelementptr inbounds float, ptr %15, i64 0
%17 = load float, ptr %16, align 4
%18 = load ptr, ptr %8, align 8
%19 = getelementptr inbounds float, ptr %18, i64 1
%20 = load float, ptr %19, align 4
%21 = load ptr, ptr %8, align 8
%22 = getelementptr inbounds float, ptr %21, i64 2
%23 = load float, ptr %22, align 4
%24 = call float @snoise3(float noundef %17, float noundef %20, float noundef %23)
%25 = fadd float 1.000000e+00, %24
%26 = fmul float %25, 5.000000e-01
%27 = load ptr, ptr %7, align 8
store float %26, ptr %27, align 4
ret i32 0
}
declare float @snoise3(float noundef, float noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm66qju5k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f_snoiseP(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 0
%11 = load ptr, ptr %10, align 8
store ptr %11, ptr %7, align 8
%12 = load ptr, ptr %6, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
store ptr %14, ptr %8, align 8
%15 = load ptr, ptr %8, align 8
%16 = getelementptr inbounds float, ptr %15, i64 0
%17 = load float, ptr %16, align 4
%18 = load ptr, ptr %8, align 8
%19 = getelementptr inbounds float, ptr %18, i64 1
%20 = load float, ptr %19, align 4
%21 = load ptr, ptr %8, align 8
%22 = getelementptr inbounds float, ptr %21, i64 2
%23 = load float, ptr %22, align 4
%24 = call float @snoise3(float noundef %17, float noundef %20, float noundef %23)
%25 = fadd float 1.000000e+00, %24
%26 = fmul float %25, 5.000000e-01
%27 = load ptr, ptr %7, align 8
store float %26, ptr %27, align 4
ret i32 0
}
declare float @snoise3(float noundef, float noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbps18b5f.c'
source_filename = "/tmp/tmpbps18b5f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [100 x i32], align 16
%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)
store i32 0, ptr %4, align 4
br label %7
7: ; preds = %16, %0
%8 = load i32, ptr %4, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %19
11: ; preds = %7
%12 = load i32, ptr %4, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 %13
%15 = call i32 @scanf(ptr noundef @.str, ptr noundef %14)
br label %16
16: ; preds = %11
%17 = load i32, ptr %4, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %4, align 4
br label %7, !llvm.loop !6
19: ; preds = %7
%20 = load i32, ptr %2, align 4
%21 = sub nsw i32 %20, 1
store i32 %21, ptr %5, align 4
br label %22
22: ; preds = %31, %19
%23 = load i32, ptr %5, align 4
%24 = icmp sge i32 %23, 0
br i1 %24, label %25, label %34
25: ; preds = %22
%26 = load i32, ptr %5, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 %27
%29 = load i32, ptr %28, align 4
%30 = call i32 @printf(ptr noundef @.str.1, i32 noundef %29)
br label %31
31: ; preds = %25
%32 = load i32, ptr %5, align 4
%33 = add nsw i32 %32, -1
store i32 %33, ptr %5, align 4
br label %22, !llvm.loop !8
34: ; preds = %22
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbps18b5f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [100 x i32], align 16
%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)
store i32 0, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %.lr.ph, label %21
.lr.ph: ; preds = %0
br label %10
10: ; preds = %.lr.ph, %15
%11 = load i32, ptr %4, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 %12
%14 = call i32 @scanf(ptr noundef @.str, ptr noundef %13)
br label %15
15: ; preds = %10
%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 %2, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %21
21: ; preds = %._crit_edge, %0
%22 = load i32, ptr %2, align 4
%23 = sub nsw i32 %22, 1
store i32 %23, ptr %5, align 4
%24 = load i32, ptr %5, align 4
%25 = icmp sge i32 %24, 0
br i1 %25, label %.lr.ph2, label %37
.lr.ph2: ; preds = %21
br label %26
26: ; preds = %.lr.ph2, %32
%27 = load i32, ptr %5, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 %28
%30 = load i32, ptr %29, align 4
%31 = call i32 @printf(ptr noundef @.str.1, i32 noundef %30)
br label %32
32: ; preds = %26
%33 = load i32, ptr %5, align 4
%34 = add nsw i32 %33, -1
store i32 %34, ptr %5, align 4
%35 = load i32, ptr %5, align 4
%36 = icmp sge i32 %35, 0
br i1 %36, label %26, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %32
br label %37
37: ; preds = %._crit_edge3, %21
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp8s0m9t9d.c'
source_filename = "/tmp/tmp8s0m9t9d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@db_total_posts.sql = internal constant [2 x ptr] [ptr @.str, ptr @.str.1], align 16
@.str = private unnamed_addr constant [49 x i8] c"SELECT MAX(id) FROM posts WHERE board_id = \22%s\22;\00", align 1
@.str.1 = private unnamed_addr constant [70 x i8] c"SELECT COUNT(*) FROM posts WHERE board_id = \22%s\22 AND parent_id = %ld;\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @db_total_posts(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%11 = load i64, ptr %6, align 8
%12 = icmp slt i64 %11, 0
%13 = zext i1 %12 to i64
%14 = select i1 %12, i32 0, i32 1
store i32 %14, ptr %7, align 4
%15 = load i32, ptr %7, align 4
%16 = zext i32 %15 to i64
%17 = getelementptr inbounds [2 x ptr], ptr @db_total_posts.sql, i64 0, i64 %16
%18 = load ptr, ptr %17, align 8
store ptr %18, ptr %8, align 8
%19 = load i32, ptr %7, align 4
%20 = icmp ne i32 %19, 0
br i1 %20, label %25, label %21
21: ; preds = %3
%22 = load ptr, ptr %8, align 8
%23 = load ptr, ptr %5, align 8
%24 = call ptr (ptr, ptr, ...) @sql_generate(ptr noundef %22, ptr noundef %23)
br label %30
25: ; preds = %3
%26 = load ptr, ptr %8, align 8
%27 = load ptr, ptr %5, align 8
%28 = load i64, ptr %6, align 8
%29 = call ptr (ptr, ptr, ...) @sql_generate(ptr noundef %26, ptr noundef %27, i64 noundef %28)
br label %30
30: ; preds = %25, %21
%31 = phi ptr [ %24, %21 ], [ %29, %25 ]
store ptr %31, ptr %9, align 8
%32 = load ptr, ptr %4, align 8
%33 = load ptr, ptr %9, align 8
%34 = call i64 @db_retrieval(ptr noundef %32, ptr noundef %33)
store i64 %34, ptr %10, align 8
%35 = load ptr, ptr %9, align 8
%36 = call i32 @free(ptr noundef %35)
%37 = load i64, ptr %10, align 8
ret i64 %37
}
declare ptr @sql_generate(ptr noundef, ptr noundef, ...) #1
declare i64 @db_retrieval(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/tmp8s0m9t9d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@db_total_posts.sql = internal constant [2 x ptr] [ptr @.str, ptr @.str.1], align 16
@.str = private unnamed_addr constant [49 x i8] c"SELECT MAX(id) FROM posts WHERE board_id = \22%s\22;\00", align 1
@.str.1 = private unnamed_addr constant [70 x i8] c"SELECT COUNT(*) FROM posts WHERE board_id = \22%s\22 AND parent_id = %ld;\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @db_total_posts(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%11 = load i64, ptr %6, align 8
%12 = icmp slt i64 %11, 0
%13 = zext i1 %12 to i64
%14 = select i1 %12, i32 0, i32 1
store i32 %14, ptr %7, align 4
%15 = load i32, ptr %7, align 4
%16 = zext i32 %15 to i64
%17 = getelementptr inbounds [2 x ptr], ptr @db_total_posts.sql, i64 0, i64 %16
%18 = load ptr, ptr %17, align 8
store ptr %18, ptr %8, align 8
%19 = load i32, ptr %7, align 4
%20 = icmp ne i32 %19, 0
br i1 %20, label %25, label %21
21: ; preds = %3
%22 = load ptr, ptr %8, align 8
%23 = load ptr, ptr %5, align 8
%24 = call ptr (ptr, ptr, ...) @sql_generate(ptr noundef %22, ptr noundef %23)
br label %30
25: ; preds = %3
%26 = load ptr, ptr %8, align 8
%27 = load ptr, ptr %5, align 8
%28 = load i64, ptr %6, align 8
%29 = call ptr (ptr, ptr, ...) @sql_generate(ptr noundef %26, ptr noundef %27, i64 noundef %28)
br label %30
30: ; preds = %25, %21
%31 = phi ptr [ %24, %21 ], [ %29, %25 ]
store ptr %31, ptr %9, align 8
%32 = load ptr, ptr %4, align 8
%33 = load ptr, ptr %9, align 8
%34 = call i64 @db_retrieval(ptr noundef %32, ptr noundef %33)
store i64 %34, ptr %10, align 8
%35 = load ptr, ptr %9, align 8
%36 = call i32 @free(ptr noundef %35)
%37 = load i64, ptr %10, align 8
ret i64 %37
}
declare ptr @sql_generate(ptr noundef, ptr noundef, ...) #1
declare i64 @db_retrieval(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/tmppjt680x4.c'
source_filename = "/tmp/tmppjt680x4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"the uid is : %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"the euid is : %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"fail to set uid\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"after changing\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 i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (...) @getuid()
store i32 %5, ptr %3, align 4
%6 = call i32 (...) @geteuid()
store i32 %6, ptr %4, align 4
%7 = load i32, ptr %3, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %7)
%9 = load i32, ptr %4, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %9)
%11 = call i32 @setuid(i32 noundef 8000)
%12 = icmp eq i32 %11, -1
br i1 %12, label %13, label %16
13: ; preds = %0
%14 = call i32 @perror(ptr noundef @.str.2)
%15 = call i32 @exit(i32 noundef 1) #3
unreachable
16: ; preds = %0
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%18 = call i32 (...) @getuid()
store i32 %18, ptr %3, align 4
%19 = call i32 (...) @geteuid()
store i32 %19, ptr %4, align 4
%20 = load i32, ptr %3, align 4
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %20)
%22 = load i32, ptr %4, align 4
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %22)
ret i32 0
}
declare i32 @getuid(...) #1
declare i32 @geteuid(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @setuid(i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppjt680x4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"the uid is : %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"the euid is : %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"fail to set uid\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"after changing\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 i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (...) @getuid()
store i32 %5, ptr %3, align 4
%6 = call i32 (...) @geteuid()
store i32 %6, ptr %4, align 4
%7 = load i32, ptr %3, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %7)
%9 = load i32, ptr %4, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %9)
%11 = call i32 @setuid(i32 noundef 8000)
%12 = icmp eq i32 %11, -1
br i1 %12, label %13, label %16
13: ; preds = %0
%14 = call i32 @perror(ptr noundef @.str.2)
%15 = call i32 @exit(i32 noundef 1) #3
unreachable
16: ; preds = %0
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%18 = call i32 (...) @getuid()
store i32 %18, ptr %3, align 4
%19 = call i32 (...) @geteuid()
store i32 %19, ptr %4, align 4
%20 = load i32, ptr %3, align 4
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %20)
%22 = load i32, ptr %4, align 4
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %22)
ret i32 0
}
declare i32 @getuid(...) #1
declare i32 @geteuid(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @setuid(i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0nbsgi2z.c'
source_filename = "/tmp/tmp0nbsgi2z.c"
target datalayout = "e-m:e-p270: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 [37 x i8] c"Expected a program name as argument\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"fork\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 i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 2
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load i32, ptr @stderr, align 4
%11 = call i32 @fprintf(i32 noundef %10, ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %31
12: ; preds = %2
%13 = call i64 (...) @fork()
store i64 %13, ptr %6, align 8
%14 = load i64, ptr %6, align 8
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %21
16: ; preds = %12
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 1
%19 = load ptr, ptr %18, align 8
%20 = call i32 @run_target(ptr noundef %19)
br label %30
21: ; preds = %12
%22 = load i64, ptr %6, align 8
%23 = icmp sgt i64 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %21
%25 = load i64, ptr %6, align 8
%26 = call i32 @run_debugger(i64 noundef %25)
br label %29
27: ; preds = %21
%28 = call i32 @perror(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %31
29: ; preds = %24
br label %30
30: ; preds = %29, %16
store i32 0, ptr %3, align 4
br label %31
31: ; preds = %30, %27, %9
%32 = load i32, ptr %3, align 4
ret i32 %32
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i64 @fork(...) #1
declare i32 @run_target(ptr noundef) #1
declare i32 @run_debugger(i64 noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0nbsgi2z.c"
target datalayout = "e-m:e-p270: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 [37 x i8] c"Expected a program name as argument\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"fork\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 i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 2
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load i32, ptr @stderr, align 4
%11 = call i32 @fprintf(i32 noundef %10, ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %31
12: ; preds = %2
%13 = call i64 (...) @fork()
store i64 %13, ptr %6, align 8
%14 = load i64, ptr %6, align 8
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %21
16: ; preds = %12
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 1
%19 = load ptr, ptr %18, align 8
%20 = call i32 @run_target(ptr noundef %19)
br label %30
21: ; preds = %12
%22 = load i64, ptr %6, align 8
%23 = icmp sgt i64 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %21
%25 = load i64, ptr %6, align 8
%26 = call i32 @run_debugger(i64 noundef %25)
br label %29
27: ; preds = %21
%28 = call i32 @perror(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %31
29: ; preds = %24
br label %30
30: ; preds = %29, %16
store i32 0, ptr %3, align 4
br label %31
31: ; preds = %30, %27, %9
%32 = load i32, ptr %3, align 4
ret i32 %32
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i64 @fork(...) #1
declare i32 @run_target(ptr noundef) #1
declare i32 @run_debugger(i64 noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsd2bs6ku.c'
source_filename = "/tmp/tmpsd2bs6ku.c"
target datalayout = "e-m:e-p270: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/tmpsd2bs6ku.c"
target datalayout = "e-m:e-p270: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/tmproaqnpbm.c'
source_filename = "/tmp/tmproaqnpbm.c"
target datalayout = "e-m:e-p270: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/tmproaqnpbm.c"
target datalayout = "e-m:e-p270: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/tmpajnv9jiq.c'
source_filename = "/tmp/tmpajnv9jiq.c"
target datalayout = "e-m:e-p270: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/tmpajnv9jiq.c"
target datalayout = "e-m:e-p270: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/tmpsgl9ucgt.c'
source_filename = "/tmp/tmpsgl9ucgt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @sum(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca double, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store double 0.000000e+00, ptr %5, align 8
%7 = load i64, ptr %4, align 8
%8 = sub i64 %7, 1
%9 = trunc i64 %8 to i32
store i32 %9, ptr %6, align 4
br label %10
10: ; preds = %21, %2
%11 = load i32, ptr %6, align 4
%12 = icmp sge i32 %11, 0
br i1 %12, label %13, label %24
13: ; preds = %10
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %6, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds double, ptr %14, i64 %16
%18 = load double, ptr %17, align 8
%19 = load double, ptr %5, align 8
%20 = fadd double %19, %18
store double %20, ptr %5, align 8
br label %21
21: ; preds = %13
%22 = load i32, ptr %6, align 4
%23 = add nsw i32 %22, -1
store i32 %23, ptr %6, align 4
br label %10, !llvm.loop !6
24: ; preds = %10
%25 = load double, ptr %5, align 8
ret double %25
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsgl9ucgt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @sum(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca double, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store double 0.000000e+00, ptr %5, align 8
%7 = load i64, ptr %4, align 8
%8 = sub i64 %7, 1
%9 = trunc i64 %8 to i32
store i32 %9, ptr %6, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp sge i32 %10, 0
br i1 %11, label %.lr.ph, label %25
.lr.ph: ; preds = %2
br label %12
12: ; preds = %.lr.ph, %20
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %6, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds double, ptr %13, i64 %15
%17 = load double, ptr %16, align 8
%18 = load double, ptr %5, align 8
%19 = fadd double %18, %17
store double %19, ptr %5, align 8
br label %20
20: ; preds = %12
%21 = load i32, ptr %6, align 4
%22 = add nsw i32 %21, -1
store i32 %22, ptr %6, align 4
%23 = load i32, ptr %6, align 4
%24 = icmp sge i32 %23, 0
br i1 %24, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %25
25: ; preds = %._crit_edge, %2
%26 = load double, ptr %5, align 8
ret double %26
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp85jbblxz.c'
source_filename = "/tmp/tmp85jbblxz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %2, align 4
br label %4
4: ; preds = %20, %0
%5 = load i32, ptr %2, align 4
%6 = icmp slt i32 %5, 10
br i1 %6, label %7, label %23
7: ; preds = %4
%8 = load i32, ptr %2, align 4
%9 = srem i32 %8, 2
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %7
%12 = load i32, ptr %2, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %2, align 4
br label %14
14: ; preds = %11, %7
%15 = load i32, ptr %2, align 4
%16 = load i32, ptr %3, align 4
%17 = add nsw i32 %16, %15
store i32 %17, ptr %3, align 4
%18 = load i32, ptr %3, align 4
%19 = call i32 @printf(ptr noundef @.str, i32 noundef %18)
br label %20
20: ; preds = %14
%21 = load i32, ptr %2, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %2, align 4
br label %4, !llvm.loop !6
23: ; preds = %4
%24 = load i32, ptr %3, align 4
%25 = call i32 @printf(ptr noundef @.str, i32 noundef %24)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp85jbblxz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 10
br i1 %5, label %.lr.ph, label %24
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %19
%7 = load i32, ptr %2, align 4
%8 = srem i32 %7, 2
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %6
%11 = load i32, ptr %2, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %2, align 4
br label %13
13: ; preds = %10, %6
%14 = load i32, ptr %2, align 4
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, %14
store i32 %16, ptr %3, align 4
%17 = load i32, ptr %3, align 4
%18 = call i32 @printf(ptr noundef @.str, i32 noundef %17)
br label %19
19: ; preds = %13
%20 = load i32, ptr %2, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %2, align 4
%22 = load i32, ptr %2, align 4
%23 = icmp slt i32 %22, 10
br i1 %23, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %24
24: ; preds = %._crit_edge, %0
%25 = load i32, ptr %3, align 4
%26 = call i32 @printf(ptr noundef @.str, i32 noundef %25)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpaqh6ud5_.c'
source_filename = "/tmp/tmpaqh6ud5_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dup_usmatrix(ptr noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
store ptr %0, ptr %7, align 8
store i64 %1, ptr %8, align 8
store i64 %2, ptr %9, align 8
store i64 %3, ptr %10, align 8
store i64 %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%17 = load i64, ptr %8, align 8
%18 = trunc i64 %17 to i32
store i32 %18, ptr %13, align 4
br label %19
19: ; preds = %56, %6
%20 = load i32, ptr %13, align 4
%21 = sext i32 %20 to i64
%22 = load i64, ptr %9, align 8
%23 = icmp sle i64 %21, %22
br i1 %23, label %24, label %59
24: ; preds = %19
%25 = load ptr, ptr %7, align 8
%26 = load i32, ptr %13, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds ptr, ptr %25, i64 %27
%29 = load ptr, ptr %28, align 8
store ptr %29, ptr %15, align 8
%30 = load ptr, ptr %12, align 8
%31 = load i32, ptr %13, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds ptr, ptr %30, i64 %32
%34 = load ptr, ptr %33, align 8
store ptr %34, ptr %16, align 8
%35 = load i64, ptr %10, align 8
%36 = trunc i64 %35 to i32
store i32 %36, ptr %14, align 4
br label %37
37: ; preds = %52, %24
%38 = load i32, ptr %14, align 4
%39 = sext i32 %38 to i64
%40 = load i64, ptr %11, align 8
%41 = icmp sle i64 %39, %40
br i1 %41, label %42, label %55
42: ; preds = %37
%43 = load ptr, ptr %15, 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 ptr, ptr %16, align 8
%49 = load i32, ptr %14, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i32, ptr %48, i64 %50
store i32 %47, ptr %51, align 4
br label %52
52: ; preds = %42
%53 = load i32, ptr %14, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %14, align 4
br label %37, !llvm.loop !6
55: ; preds = %37
br label %56
56: ; preds = %55
%57 = load i32, ptr %13, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %13, align 4
br label %19, !llvm.loop !8
59: ; preds = %19
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpaqh6ud5_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dup_usmatrix(ptr noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
store ptr %0, ptr %7, align 8
store i64 %1, ptr %8, align 8
store i64 %2, ptr %9, align 8
store i64 %3, ptr %10, align 8
store i64 %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%17 = load i64, ptr %8, align 8
%18 = trunc i64 %17 to i32
store i32 %18, ptr %13, align 4
%19 = load i32, ptr %13, align 4
%20 = sext i32 %19 to i64
%21 = load i64, ptr %9, align 8
%22 = icmp sle i64 %20, %21
br i1 %22, label %.lr.ph2, label %65
.lr.ph2: ; preds = %6
br label %23
23: ; preds = %.lr.ph2, %58
%24 = load ptr, ptr %7, align 8
%25 = load i32, ptr %13, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %24, i64 %26
%28 = load ptr, ptr %27, align 8
store ptr %28, ptr %15, align 8
%29 = load ptr, ptr %12, align 8
%30 = load i32, ptr %13, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds ptr, ptr %29, i64 %31
%33 = load ptr, ptr %32, align 8
store ptr %33, ptr %16, align 8
%34 = load i64, ptr %10, align 8
%35 = trunc i64 %34 to i32
store i32 %35, ptr %14, align 4
%36 = load i32, ptr %14, align 4
%37 = sext i32 %36 to i64
%38 = load i64, ptr %11, align 8
%39 = icmp sle i64 %37, %38
br i1 %39, label %.lr.ph, label %57
.lr.ph: ; preds = %23
br label %40
40: ; preds = %.lr.ph, %50
%41 = load ptr, ptr %15, 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 ptr, ptr %16, align 8
%47 = load i32, ptr %14, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i32, ptr %46, i64 %48
store i32 %45, ptr %49, align 4
br label %50
50: ; preds = %40
%51 = load i32, ptr %14, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %14, align 4
%53 = load i32, ptr %14, align 4
%54 = sext i32 %53 to i64
%55 = load i64, ptr %11, align 8
%56 = icmp sle i64 %54, %55
br i1 %56, label %40, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %50
br label %57
57: ; preds = %._crit_edge, %23
br label %58
58: ; preds = %57
%59 = load i32, ptr %13, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %13, align 4
%61 = load i32, ptr %13, align 4
%62 = sext i32 %61 to i64
%63 = load i64, ptr %9, align 8
%64 = icmp sle i64 %62, %63
br i1 %64, label %23, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %58
br label %65
65: ; preds = %._crit_edge3, %6
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmppdp72wh8.c'
source_filename = "/tmp/tmppdp72wh8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"analyze\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [41 x i8] c"Provide a pcap file as second argument.\0A\00", align 1
@.str.3 = private unnamed_addr constant [104 x i8] c"%s will try to find RTP media streams in the pcap file and display some info including the SSRC value.\0A\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.5 = private unnamed_addr constant [31 x i8] c"Example:\0A%s analyze file.pcap\0A\00", align 1
@.str.6 = private unnamed_addr constant [8 x i8] c"decrypt\00", align 1
@.str.7 = private unnamed_addr constant [106 x i8] c"Provide the SSRC value of the SRTP stream to decrypt as second argument in Hex notation with leading 0x.\0A\00", align 1
@.str.8 = private unnamed_addr constant [100 x i8] c"Provide the key material to be used for decryption as third argument as 40 character base64 value.\0A\00", align 1
@.str.9 = private unnamed_addr constant [74 x i8] c"Provide the pcap file that contains the SRTP stream as fourth argument.\0A\0A\00", align 1
@.str.10 = private unnamed_addr constant [71 x i8] c"%s will create an output file that contains the decrypted audio data.\0A\00", align 1
@.str.11 = private unnamed_addr constant [44 x i8] c"For further information run %s help info.\0A\0A\00", align 1
@.str.12 = private unnamed_addr constant [83 x i8] c"Example:\0A%s decrypt 0x72c4827b CXL0YTLiYrsKYDAsxAJKTWqQaBg1PQhUH9iFwPAp file.pcap\0A\00", align 1
@.str.13 = private unnamed_addr constant [5 x i8] c"info\00", align 1
@.str.14 = private unnamed_addr constant [88 x i8] c"To decrypt an SRTP audio stream you need the key material that was used to encrypt it. \00", align 1
@.str.15 = private unnamed_addr constant [45 x i8] c"Get it from a SIP trace or from a log file. \00", align 1
@.str.16 = private unnamed_addr constant [103 x i8] c"The key material is a 40 byte character string, for example CXL0YTLiYrsKYDAsxAJKTWqQaBg1PQhUH9iFwPAp.\0A\00", align 1
@.str.17 = private unnamed_addr constant [108 x i8] c"You also need the SSRC value of the SRTP audio stream. One way of doing this is by running %s analyze.\0A\0A\0A\0A\0A\00", align 1
@.str.18 = private unnamed_addr constant [93 x i8] c"For a G.711 RTP stream (PCMU or PCMA) %s creates a .wav file that can be played directly.\0A\0A\0A\00", align 1
@.str.19 = private unnamed_addr constant [91 x i8] c"For a G.722 RTP stream %s creates a RAW file with .g722 extension. Use ffmpeg to convert:\0A\00", align 1
@.str.20 = private unnamed_addr constant [32 x i8] c"ffmpeg -i file.g722 file.wav\0A\0A\0A\00", align 1
@.str.21 = private unnamed_addr constant [92 x i8] c"For a SILK 8KHz RTP stream %s creates a SILK SDK file with .bin extension. To convert use:\0A\00", align 1
@.str.22 = private unnamed_addr constant [53 x i8] c"decoder.exe file-SILK8000.bin help.pcm -Fs_API 8000\0A\00", align 1
@.str.23 = private unnamed_addr constant [52 x i8] c"ffmpeg.exe -f s16le -ar 8000 -i help.pcm out.wav\0A\0A\0A\00", align 1
@.str.24 = private unnamed_addr constant [93 x i8] c"For a SILK 16KHz RTP stream %s creates a SILK SDK file with .bin extension. To convert use:\0A\00", align 1
@.str.25 = private unnamed_addr constant [55 x i8] c"decoder.exe file-SILK16000.bin help.pcm -Fs_API 16000\0A\00", align 1
@.str.26 = private unnamed_addr constant [54 x i8] c"ffmpeg.exe -f s16le -ar 16000 -i help.pcm out.wav\0A\0A\0A\0A\00", align 1
@.str.27 = private unnamed_addr constant [77 x i8] c"Codecs other than G.711, G.722, SILK/8000 and SILK/16000 are not supported.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @help(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %5, align 8
%7 = call i32 @strcmp(ptr noundef @.str, ptr noundef %6)
%8 = icmp ne i32 %7, 0
br i1 %8, label %18, label %9
9: ; preds = %2
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%12 = load ptr, ptr %4, align 8
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %12)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%15 = load ptr, ptr %4, align 8
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %15)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %3, align 4
br label %61
18: ; preds = %2
%19 = load ptr, ptr %5, align 8
%20 = call i32 @strcmp(ptr noundef @.str.6, ptr noundef %19)
%21 = icmp ne i32 %20, 0
br i1 %21, label %34, label %22
22: ; preds = %18
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%27 = load ptr, ptr %4, align 8
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, ptr noundef %27)
%29 = load ptr, ptr %4, align 8
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, ptr noundef %29)
%31 = load ptr, ptr %4, align 8
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, ptr noundef %31)
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %3, align 4
br label %61
34: ; preds = %18
%35 = load ptr, ptr %5, align 8
%36 = call i32 @strcmp(ptr noundef @.str.13, ptr noundef %35)
%37 = icmp ne i32 %36, 0
br i1 %37, label %60, label %38
38: ; preds = %34
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
%43 = load ptr, ptr %4, align 8
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, ptr noundef %43)
%45 = load ptr, ptr %4, align 8
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, ptr noundef %45)
%47 = load ptr, ptr %4, align 8
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.19, ptr noundef %47)
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.20)
%50 = load ptr, ptr %4, align 8
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, ptr noundef %50)
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.22)
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.23)
%54 = load ptr, ptr %4, align 8
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.24, ptr noundef %54)
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.25)
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.26)
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.27)
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %3, align 4
br label %61
60: ; preds = %34
store i32 -1, ptr %3, align 4
br label %61
61: ; preds = %60, %38, %22, %9
%62 = load i32, ptr %3, align 4
ret i32 %62
}
declare i32 @strcmp(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/tmppdp72wh8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"analyze\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [41 x i8] c"Provide a pcap file as second argument.\0A\00", align 1
@.str.3 = private unnamed_addr constant [104 x i8] c"%s will try to find RTP media streams in the pcap file and display some info including the SSRC value.\0A\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.5 = private unnamed_addr constant [31 x i8] c"Example:\0A%s analyze file.pcap\0A\00", align 1
@.str.6 = private unnamed_addr constant [8 x i8] c"decrypt\00", align 1
@.str.7 = private unnamed_addr constant [106 x i8] c"Provide the SSRC value of the SRTP stream to decrypt as second argument in Hex notation with leading 0x.\0A\00", align 1
@.str.8 = private unnamed_addr constant [100 x i8] c"Provide the key material to be used for decryption as third argument as 40 character base64 value.\0A\00", align 1
@.str.9 = private unnamed_addr constant [74 x i8] c"Provide the pcap file that contains the SRTP stream as fourth argument.\0A\0A\00", align 1
@.str.10 = private unnamed_addr constant [71 x i8] c"%s will create an output file that contains the decrypted audio data.\0A\00", align 1
@.str.11 = private unnamed_addr constant [44 x i8] c"For further information run %s help info.\0A\0A\00", align 1
@.str.12 = private unnamed_addr constant [83 x i8] c"Example:\0A%s decrypt 0x72c4827b CXL0YTLiYrsKYDAsxAJKTWqQaBg1PQhUH9iFwPAp file.pcap\0A\00", align 1
@.str.13 = private unnamed_addr constant [5 x i8] c"info\00", align 1
@.str.14 = private unnamed_addr constant [88 x i8] c"To decrypt an SRTP audio stream you need the key material that was used to encrypt it. \00", align 1
@.str.15 = private unnamed_addr constant [45 x i8] c"Get it from a SIP trace or from a log file. \00", align 1
@.str.16 = private unnamed_addr constant [103 x i8] c"The key material is a 40 byte character string, for example CXL0YTLiYrsKYDAsxAJKTWqQaBg1PQhUH9iFwPAp.\0A\00", align 1
@.str.17 = private unnamed_addr constant [108 x i8] c"You also need the SSRC value of the SRTP audio stream. One way of doing this is by running %s analyze.\0A\0A\0A\0A\0A\00", align 1
@.str.18 = private unnamed_addr constant [93 x i8] c"For a G.711 RTP stream (PCMU or PCMA) %s creates a .wav file that can be played directly.\0A\0A\0A\00", align 1
@.str.19 = private unnamed_addr constant [91 x i8] c"For a G.722 RTP stream %s creates a RAW file with .g722 extension. Use ffmpeg to convert:\0A\00", align 1
@.str.20 = private unnamed_addr constant [32 x i8] c"ffmpeg -i file.g722 file.wav\0A\0A\0A\00", align 1
@.str.21 = private unnamed_addr constant [92 x i8] c"For a SILK 8KHz RTP stream %s creates a SILK SDK file with .bin extension. To convert use:\0A\00", align 1
@.str.22 = private unnamed_addr constant [53 x i8] c"decoder.exe file-SILK8000.bin help.pcm -Fs_API 8000\0A\00", align 1
@.str.23 = private unnamed_addr constant [52 x i8] c"ffmpeg.exe -f s16le -ar 8000 -i help.pcm out.wav\0A\0A\0A\00", align 1
@.str.24 = private unnamed_addr constant [93 x i8] c"For a SILK 16KHz RTP stream %s creates a SILK SDK file with .bin extension. To convert use:\0A\00", align 1
@.str.25 = private unnamed_addr constant [55 x i8] c"decoder.exe file-SILK16000.bin help.pcm -Fs_API 16000\0A\00", align 1
@.str.26 = private unnamed_addr constant [54 x i8] c"ffmpeg.exe -f s16le -ar 16000 -i help.pcm out.wav\0A\0A\0A\0A\00", align 1
@.str.27 = private unnamed_addr constant [77 x i8] c"Codecs other than G.711, G.722, SILK/8000 and SILK/16000 are not supported.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @help(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %5, align 8
%7 = call i32 @strcmp(ptr noundef @.str, ptr noundef %6)
%8 = icmp ne i32 %7, 0
br i1 %8, label %18, label %9
9: ; preds = %2
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%12 = load ptr, ptr %4, align 8
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %12)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%15 = load ptr, ptr %4, align 8
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %15)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %3, align 4
br label %61
18: ; preds = %2
%19 = load ptr, ptr %5, align 8
%20 = call i32 @strcmp(ptr noundef @.str.6, ptr noundef %19)
%21 = icmp ne i32 %20, 0
br i1 %21, label %34, label %22
22: ; preds = %18
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%27 = load ptr, ptr %4, align 8
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, ptr noundef %27)
%29 = load ptr, ptr %4, align 8
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, ptr noundef %29)
%31 = load ptr, ptr %4, align 8
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, ptr noundef %31)
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %3, align 4
br label %61
34: ; preds = %18
%35 = load ptr, ptr %5, align 8
%36 = call i32 @strcmp(ptr noundef @.str.13, ptr noundef %35)
%37 = icmp ne i32 %36, 0
br i1 %37, label %60, label %38
38: ; preds = %34
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
%43 = load ptr, ptr %4, align 8
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, ptr noundef %43)
%45 = load ptr, ptr %4, align 8
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, ptr noundef %45)
%47 = load ptr, ptr %4, align 8
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.19, ptr noundef %47)
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.20)
%50 = load ptr, ptr %4, align 8
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, ptr noundef %50)
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.22)
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.23)
%54 = load ptr, ptr %4, align 8
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.24, ptr noundef %54)
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.25)
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.26)
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.27)
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %3, align 4
br label %61
60: ; preds = %34
store i32 -1, ptr %3, align 4
br label %61
61: ; preds = %60, %38, %22, %9
%62 = load i32, ptr %3, align 4
ret i32 %62
}
declare i32 @strcmp(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/tmp4nebe543.c'
source_filename = "/tmp/tmp4nebe543.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @initscr()
%3 = call i32 (...) @draw()
%4 = call i32 (...) @endwin()
ret i32 0
}
declare i32 @initscr(...) #1
declare i32 @draw(...) #1
declare i32 @endwin(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4nebe543.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @initscr()
%3 = call i32 (...) @draw()
%4 = call i32 (...) @endwin()
ret i32 0
}
declare i32 @initscr(...) #1
declare i32 @draw(...) #1
declare i32 @endwin(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_l13kail.c'
source_filename = "/tmp/tmp_l13kail.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PATH_MAX = dso_local global i32 0, align 4
@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/tmp_l13kail.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PATH_MAX = dso_local global i32 0, align 4
@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/tmp0m5gbn9j.c'
source_filename = "/tmp/tmp0m5gbn9j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [65 x i8] c"%s has done as much %s Programming as I could fit into %d days.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @congratulatesStudent(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 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = call i32 @printf(ptr noundef @.str, ptr noundef %7, ptr noundef %8, i32 noundef %9)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0m5gbn9j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [65 x i8] c"%s has done as much %s Programming as I could fit into %d days.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @congratulatesStudent(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 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = call i32 @printf(ptr noundef @.str, ptr noundef %7, ptr noundef %8, i32 noundef %9)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwq8fzrol.c'
source_filename = "/tmp/tmpwq8fzrol.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @malloc(i32 noundef 4)
ret i32 0
}
declare i32 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwq8fzrol.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @malloc(i32 noundef 4)
ret i32 0
}
declare i32 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyfvt4vy1.c'
source_filename = "/tmp/tmpyfvt4vy1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_iscntrl.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"iscntrl should be 0 for 0xad\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_iscntrl_0xad() #0 {
%1 = call i64 @iscntrl(i32 noundef 173)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 870, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @iscntrl(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/tmpyfvt4vy1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_iscntrl.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"iscntrl should be 0 for 0xad\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_iscntrl_0xad() #0 {
%1 = call i64 @iscntrl(i32 noundef 173)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 870, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @iscntrl(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/tmpnljammud.c'
source_filename = "/tmp/tmpnljammud.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@OTHERNAME_it = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @OTHERNAME_new() #0 {
%1 = call i64 @ASN1_item_new(ptr noundef @OTHERNAME_it)
%2 = inttoptr i64 %1 to ptr
ret ptr %2
}
declare i64 @ASN1_item_new(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnljammud.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@OTHERNAME_it = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @OTHERNAME_new() #0 {
%1 = call i64 @ASN1_item_new(ptr noundef @OTHERNAME_it)
%2 = inttoptr i64 %1 to ptr
ret ptr %2
}
declare i64 @ASN1_item_new(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpuqihgfoh.c'
source_filename = "/tmp/tmpuqihgfoh.c"
target datalayout = "e-m:e-p270: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/tmpuqihgfoh.c"
target datalayout = "e-m:e-p270: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/tmpw0w8g5jv.c'
source_filename = "/tmp/tmpw0w8g5jv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"Constructing array of values\0A\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"\0A\0AArray of values constructed\0A\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fillSearchedValues(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %4, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
br label %7
7: ; preds = %15, %1
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 100
br i1 %9, label %10, label %13
10: ; preds = %7
%11 = load i32, ptr %3, align 4
%12 = icmp ne i32 %11, 0
br label %13
13: ; preds = %10, %7
%14 = phi i1 [ false, %7 ], [ %12, %10 ]
br i1 %14, label %15, label %24
15: ; preds = %13
%16 = load i32, ptr %3, align 4
%17 = load ptr, ptr %2, align 8
%18 = load i32, ptr %4, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %17, i64 %19
store i32 %16, ptr %20, align 4
%21 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%22 = load i32, ptr %4, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %4, align 4
br label %7, !llvm.loop !6
24: ; preds = %13
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret void
}
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/tmpw0w8g5jv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"Constructing array of values\0A\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"\0A\0AArray of values constructed\0A\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fillSearchedValues(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %4, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
br label %7
7: ; preds = %15, %1
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 100
br i1 %9, label %10, label %13
10: ; preds = %7
%11 = load i32, ptr %3, align 4
%12 = icmp ne i32 %11, 0
br label %13
13: ; preds = %10, %7
%14 = phi i1 [ false, %7 ], [ %12, %10 ]
br i1 %14, label %15, label %24
15: ; preds = %13
%16 = load i32, ptr %3, align 4
%17 = load ptr, ptr %2, align 8
%18 = load i32, ptr %4, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %17, i64 %19
store i32 %16, ptr %20, align 4
%21 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%22 = load i32, ptr %4, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %4, align 4
br label %7, !llvm.loop !6
24: ; preds = %13
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret void
}
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/tmpr2rznac7.c'
source_filename = "/tmp/tmpr2rznac7.c"
target datalayout = "e-m:e-p270: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/tmpr2rznac7.c"
target datalayout = "e-m:e-p270: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.