llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmpgwfqwxku.c'
source_filename = "/tmp/tmpgwfqwxku.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"trimf\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"trapmf\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"gaussmf\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"gauss2mf\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"sigmf\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"dsigmf\00", align 1
@.str.6 = private unnamed_addr constant [7 x i8] c"psigmf\00", align 1
@.str.7 = private unnamed_addr constant [8 x i8] c"gbellmf\00", align 1
@.str.8 = private unnamed_addr constant [4 x i8] c"smf\00", align 1
@.str.9 = private unnamed_addr constant [4 x i8] c"zmf\00", align 1
@.str.10 = private unnamed_addr constant [5 x i8] c"pimf\00", align 1
@.str.11 = private unnamed_addr constant [32 x i8] c"Given MF type (%s) is unknown.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fisGetMfParaN(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = call i64 @strcmp(ptr noundef %4, ptr noundef @.str)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 3, ptr %2, align 4
br label %62
8: ; preds = %1
%9 = load ptr, ptr %3, align 8
%10 = call i64 @strcmp(ptr noundef %9, ptr noundef @.str.1)
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %8
store i32 4, ptr %2, align 4
br label %62
13: ; preds = %8
%14 = load ptr, ptr %3, align 8
%15 = call i64 @strcmp(ptr noundef %14, ptr noundef @.str.2)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %13
store i32 2, ptr %2, align 4
br label %62
18: ; preds = %13
%19 = load ptr, ptr %3, align 8
%20 = call i64 @strcmp(ptr noundef %19, ptr noundef @.str.3)
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %18
store i32 4, ptr %2, align 4
br label %62
23: ; preds = %18
%24 = load ptr, ptr %3, align 8
%25 = call i64 @strcmp(ptr noundef %24, ptr noundef @.str.4)
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %23
store i32 2, ptr %2, align 4
br label %62
28: ; preds = %23
%29 = load ptr, ptr %3, align 8
%30 = call i64 @strcmp(ptr noundef %29, ptr noundef @.str.5)
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %33
32: ; preds = %28
store i32 4, ptr %2, align 4
br label %62
33: ; preds = %28
%34 = load ptr, ptr %3, align 8
%35 = call i64 @strcmp(ptr noundef %34, ptr noundef @.str.6)
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %33
store i32 4, ptr %2, align 4
br label %62
38: ; preds = %33
%39 = load ptr, ptr %3, align 8
%40 = call i64 @strcmp(ptr noundef %39, ptr noundef @.str.7)
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %43
42: ; preds = %38
store i32 3, ptr %2, align 4
br label %62
43: ; preds = %38
%44 = load ptr, ptr %3, align 8
%45 = call i64 @strcmp(ptr noundef %44, ptr noundef @.str.8)
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %48
47: ; preds = %43
store i32 2, ptr %2, align 4
br label %62
48: ; preds = %43
%49 = load ptr, ptr %3, align 8
%50 = call i64 @strcmp(ptr noundef %49, ptr noundef @.str.9)
%51 = icmp eq i64 %50, 0
br i1 %51, label %52, label %53
52: ; preds = %48
store i32 2, ptr %2, align 4
br label %62
53: ; preds = %48
%54 = load ptr, ptr %3, align 8
%55 = call i64 @strcmp(ptr noundef %54, ptr noundef @.str.10)
%56 = icmp eq i64 %55, 0
br i1 %56, label %57, label %58
57: ; preds = %53
store i32 4, ptr %2, align 4
br label %62
58: ; preds = %53
%59 = load ptr, ptr %3, align 8
%60 = call i32 @printf(ptr noundef @.str.11, ptr noundef %59)
%61 = call i32 @exit(i32 noundef 1) #3
unreachable
62: ; preds = %57, %52, %47, %42, %37, %32, %27, %22, %17, %12, %7
%63 = load i32, ptr %2, align 4
ret i32 %63
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgwfqwxku.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"trimf\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"trapmf\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"gaussmf\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"gauss2mf\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"sigmf\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"dsigmf\00", align 1
@.str.6 = private unnamed_addr constant [7 x i8] c"psigmf\00", align 1
@.str.7 = private unnamed_addr constant [8 x i8] c"gbellmf\00", align 1
@.str.8 = private unnamed_addr constant [4 x i8] c"smf\00", align 1
@.str.9 = private unnamed_addr constant [4 x i8] c"zmf\00", align 1
@.str.10 = private unnamed_addr constant [5 x i8] c"pimf\00", align 1
@.str.11 = private unnamed_addr constant [32 x i8] c"Given MF type (%s) is unknown.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fisGetMfParaN(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = call i64 @strcmp(ptr noundef %4, ptr noundef @.str)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 3, ptr %2, align 4
br label %62
8: ; preds = %1
%9 = load ptr, ptr %3, align 8
%10 = call i64 @strcmp(ptr noundef %9, ptr noundef @.str.1)
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %8
store i32 4, ptr %2, align 4
br label %62
13: ; preds = %8
%14 = load ptr, ptr %3, align 8
%15 = call i64 @strcmp(ptr noundef %14, ptr noundef @.str.2)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %13
store i32 2, ptr %2, align 4
br label %62
18: ; preds = %13
%19 = load ptr, ptr %3, align 8
%20 = call i64 @strcmp(ptr noundef %19, ptr noundef @.str.3)
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %18
store i32 4, ptr %2, align 4
br label %62
23: ; preds = %18
%24 = load ptr, ptr %3, align 8
%25 = call i64 @strcmp(ptr noundef %24, ptr noundef @.str.4)
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %23
store i32 2, ptr %2, align 4
br label %62
28: ; preds = %23
%29 = load ptr, ptr %3, align 8
%30 = call i64 @strcmp(ptr noundef %29, ptr noundef @.str.5)
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %33
32: ; preds = %28
store i32 4, ptr %2, align 4
br label %62
33: ; preds = %28
%34 = load ptr, ptr %3, align 8
%35 = call i64 @strcmp(ptr noundef %34, ptr noundef @.str.6)
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %33
store i32 4, ptr %2, align 4
br label %62
38: ; preds = %33
%39 = load ptr, ptr %3, align 8
%40 = call i64 @strcmp(ptr noundef %39, ptr noundef @.str.7)
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %43
42: ; preds = %38
store i32 3, ptr %2, align 4
br label %62
43: ; preds = %38
%44 = load ptr, ptr %3, align 8
%45 = call i64 @strcmp(ptr noundef %44, ptr noundef @.str.8)
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %48
47: ; preds = %43
store i32 2, ptr %2, align 4
br label %62
48: ; preds = %43
%49 = load ptr, ptr %3, align 8
%50 = call i64 @strcmp(ptr noundef %49, ptr noundef @.str.9)
%51 = icmp eq i64 %50, 0
br i1 %51, label %52, label %53
52: ; preds = %48
store i32 2, ptr %2, align 4
br label %62
53: ; preds = %48
%54 = load ptr, ptr %3, align 8
%55 = call i64 @strcmp(ptr noundef %54, ptr noundef @.str.10)
%56 = icmp eq i64 %55, 0
br i1 %56, label %57, label %58
57: ; preds = %53
store i32 4, ptr %2, align 4
br label %62
58: ; preds = %53
%59 = load ptr, ptr %3, align 8
%60 = call i32 @printf(ptr noundef @.str.11, ptr noundef %59)
%61 = call i32 @exit(i32 noundef 1) #3
unreachable
62: ; preds = %57, %52, %47, %42, %37, %32, %27, %22, %17, %12, %7
%63 = load i32, ptr %2, align 4
ret i32 %63
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpytzzkw1t.c'
source_filename = "/tmp/tmpytzzkw1t.c"
target datalayout = "e-m:e-p270: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/tmpytzzkw1t.c"
target datalayout = "e-m:e-p270: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/tmpvt2zxgur.c'
source_filename = "/tmp/tmpvt2zxgur.c"
target datalayout = "e-m:e-p270: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.tab2 = private unnamed_addr constant [2 x double] [double 1.500000e+00, double 2.500000e+00], align 16
@__const.main.tab3 = private unnamed_addr constant [3 x double] [double 3.500000e+00, double 4.500000e+00, double 5.500000e+00], align 16
@.str = private unnamed_addr constant [7 x i8] c"%.2lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [2 x double], align 16
%3 = alloca [3 x double], align 16
%4 = alloca [2 x ptr], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.tab2, i64 16, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main.tab3, i64 24, i1 false)
%5 = getelementptr inbounds [2 x ptr], ptr %4, i64 0, i64 0
%6 = getelementptr inbounds [2 x double], ptr %2, i64 0, i64 0
store ptr %6, ptr %5, align 8
%7 = getelementptr inbounds ptr, ptr %5, i64 1
%8 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
store ptr %8, ptr %7, align 8
%9 = getelementptr inbounds [2 x ptr], ptr %4, i64 0, i64 0
%10 = load ptr, ptr %9, align 16
%11 = getelementptr inbounds double, ptr %10, i64 1
%12 = load double, ptr %11, align 8
%13 = call i32 @printf(ptr noundef @.str, double noundef %12)
%14 = getelementptr inbounds [2 x ptr], ptr %4, i64 0, i64 0
%15 = load ptr, ptr %14, align 16
%16 = load double, ptr %15, align 8
%17 = call i32 @printf(ptr noundef @.str, double noundef %16)
%18 = getelementptr inbounds [2 x ptr], ptr %4, i64 0, i64 0
%19 = getelementptr inbounds ptr, ptr %18, i64 1
%20 = load ptr, ptr %19, align 8
%21 = getelementptr inbounds double, ptr %20, i64 1
%22 = load double, ptr %21, align 8
%23 = call i32 @printf(ptr noundef @.str, double noundef %22)
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, double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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/tmpvt2zxgur.c"
target datalayout = "e-m:e-p270: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.tab2 = private unnamed_addr constant [2 x double] [double 1.500000e+00, double 2.500000e+00], align 16
@__const.main.tab3 = private unnamed_addr constant [3 x double] [double 3.500000e+00, double 4.500000e+00, double 5.500000e+00], align 16
@.str = private unnamed_addr constant [7 x i8] c"%.2lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [2 x double], align 16
%3 = alloca [3 x double], align 16
%4 = alloca [2 x ptr], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.tab2, i64 16, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main.tab3, i64 24, i1 false)
%5 = getelementptr inbounds [2 x ptr], ptr %4, i64 0, i64 0
%6 = getelementptr inbounds [2 x double], ptr %2, i64 0, i64 0
store ptr %6, ptr %5, align 8
%7 = getelementptr inbounds ptr, ptr %5, i64 1
%8 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
store ptr %8, ptr %7, align 8
%9 = getelementptr inbounds [2 x ptr], ptr %4, i64 0, i64 0
%10 = load ptr, ptr %9, align 16
%11 = getelementptr inbounds double, ptr %10, i64 1
%12 = load double, ptr %11, align 8
%13 = call i32 @printf(ptr noundef @.str, double noundef %12)
%14 = getelementptr inbounds [2 x ptr], ptr %4, i64 0, i64 0
%15 = load ptr, ptr %14, align 16
%16 = load double, ptr %15, align 8
%17 = call i32 @printf(ptr noundef @.str, double noundef %16)
%18 = getelementptr inbounds [2 x ptr], ptr %4, i64 0, i64 0
%19 = getelementptr inbounds ptr, ptr %18, i64 1
%20 = load ptr, ptr %19, align 8
%21 = getelementptr inbounds double, ptr %20, i64 1
%22 = load double, ptr %21, align 8
%23 = call i32 @printf(ptr noundef @.str, double noundef %22)
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, double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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/tmpmfkl6unc.c'
source_filename = "/tmp/tmpmfkl6unc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sort(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 ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i8, align 1
store ptr %0, ptr %2, align 8
store i32 0, ptr %4, align 4
%9 = load ptr, ptr %2, align 8
%10 = call i32 @strlen(ptr noundef %9)
store i32 %10, ptr %5, align 4
%11 = load i32, ptr %5, align 4
%12 = add nsw i32 %11, 1
%13 = call i64 @malloc(i32 noundef %12)
%14 = inttoptr i64 %13 to ptr
store ptr %14, ptr %7, align 8
%15 = load ptr, ptr %2, align 8
store ptr %15, ptr %6, align 8
store i8 97, ptr %8, align 1
br label %16
16: ; preds = %49, %1
%17 = load i8, ptr %8, align 1
%18 = sext i8 %17 to i32
%19 = icmp sle i32 %18, 122
br i1 %19, label %20, label %52
20: ; preds = %16
store i32 0, ptr %3, align 4
br label %21
21: ; preds = %44, %20
%22 = load i32, ptr %3, align 4
%23 = load i32, ptr %5, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %47
25: ; preds = %21
%26 = load ptr, ptr %6, align 8
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = load i8, ptr %8, align 1
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %28, %30
br i1 %31, label %32, label %41
32: ; preds = %25
%33 = load ptr, ptr %6, align 8
%34 = load i8, ptr %33, align 1
%35 = load ptr, ptr %7, align 8
%36 = load i32, ptr %4, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %35, i64 %37
store i8 %34, ptr %38, align 1
%39 = load i32, ptr %4, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %4, align 4
br label %41
41: ; preds = %32, %25
%42 = load ptr, ptr %6, align 8
%43 = getelementptr inbounds i8, ptr %42, i32 1
store ptr %43, ptr %6, align 8
br label %44
44: ; preds = %41
%45 = load i32, ptr %3, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %3, align 4
br label %21, !llvm.loop !6
47: ; preds = %21
%48 = load ptr, ptr %2, align 8
store ptr %48, ptr %6, align 8
br label %49
49: ; preds = %47
%50 = load i8, ptr %8, align 1
%51 = add i8 %50, 1
store i8 %51, ptr %8, align 1
br label %16, !llvm.loop !8
52: ; preds = %16
%53 = load ptr, ptr %7, align 8
%54 = load i32, ptr %4, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8, ptr %53, i64 %55
store i8 0, ptr %56, align 1
%57 = load ptr, ptr %2, align 8
%58 = load ptr, ptr %7, align 8
%59 = call i32 @strcpy(ptr noundef %57, ptr noundef %58)
%60 = load ptr, ptr %7, align 8
%61 = call i32 @free(ptr noundef %60)
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmfkl6unc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sort(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 ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i8, align 1
store ptr %0, ptr %2, align 8
store i32 0, ptr %4, align 4
%9 = load ptr, ptr %2, align 8
%10 = call i32 @strlen(ptr noundef %9)
store i32 %10, ptr %5, align 4
%11 = load i32, ptr %5, align 4
%12 = add nsw i32 %11, 1
%13 = call i64 @malloc(i32 noundef %12)
%14 = inttoptr i64 %13 to ptr
store ptr %14, ptr %7, align 8
%15 = load ptr, ptr %2, align 8
store ptr %15, ptr %6, align 8
store i8 97, ptr %8, align 1
%16 = load i8, ptr %8, align 1
%17 = sext i8 %16 to i32
%18 = icmp sle i32 %17, 122
br i1 %18, label %.lr.ph2, label %56
.lr.ph2: ; preds = %1
br label %19
19: ; preds = %.lr.ph2, %50
store i32 0, ptr %3, align 4
%20 = load i32, ptr %3, align 4
%21 = load i32, ptr %5, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %.lr.ph, label %48
.lr.ph: ; preds = %19
br label %23
23: ; preds = %.lr.ph, %42
%24 = load ptr, ptr %6, align 8
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = load i8, ptr %8, align 1
%28 = sext i8 %27 to i32
%29 = icmp eq i32 %26, %28
br i1 %29, label %30, label %39
30: ; preds = %23
%31 = load ptr, ptr %6, align 8
%32 = load i8, ptr %31, align 1
%33 = load ptr, ptr %7, align 8
%34 = load i32, ptr %4, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
store i8 %32, ptr %36, align 1
%37 = load i32, ptr %4, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %4, align 4
br label %39
39: ; preds = %30, %23
%40 = load ptr, ptr %6, align 8
%41 = getelementptr inbounds i8, ptr %40, i32 1
store ptr %41, ptr %6, align 8
br label %42
42: ; preds = %39
%43 = load i32, ptr %3, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %3, align 4
%45 = load i32, ptr %3, align 4
%46 = load i32, ptr %5, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %23, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %42
br label %48
48: ; preds = %._crit_edge, %19
%49 = load ptr, ptr %2, align 8
store ptr %49, ptr %6, align 8
br label %50
50: ; preds = %48
%51 = load i8, ptr %8, align 1
%52 = add i8 %51, 1
store i8 %52, ptr %8, align 1
%53 = load i8, ptr %8, align 1
%54 = sext i8 %53 to i32
%55 = icmp sle i32 %54, 122
br i1 %55, label %19, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %50
br label %56
56: ; preds = %._crit_edge3, %1
%57 = load ptr, ptr %7, align 8
%58 = load i32, ptr %4, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i8, ptr %57, i64 %59
store i8 0, ptr %60, align 1
%61 = load ptr, ptr %2, align 8
%62 = load ptr, ptr %7, align 8
%63 = call i32 @strcpy(ptr noundef %61, ptr noundef %62)
%64 = load ptr, ptr %7, align 8
%65 = call i32 @free(ptr noundef %64)
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpep35fc7b.c'
source_filename = "/tmp/tmpep35fc7b.c"
target datalayout = "e-m:e-p270: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/tmpep35fc7b.c"
target datalayout = "e-m:e-p270: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/tmp1e9qarn6.c'
source_filename = "/tmp/tmp1e9qarn6.c"
target datalayout = "e-m:e-p270: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
@.str = private unnamed_addr constant [2 x i8] c"_\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i32 50, ptr %2, align 4
store i32 50, ptr %3, align 4
%9 = load i32, ptr %3, align 4
%10 = zext i32 %9 to i64
%11 = call ptr @llvm.stacksave()
store ptr %11, ptr %7, align 8
%12 = alloca i32, i64 %10, align 16
store i64 %10, ptr %8, align 8
store i32 0, ptr %4, align 4
br label %13
13: ; preds = %21, %0
%14 = load i32, ptr %4, align 4
%15 = load i32, ptr %3, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %24
17: ; preds = %13
%18 = load i32, ptr %4, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %12, i64 %19
store i32 0, ptr %20, align 4
br label %21
21: ; preds = %17
%22 = load i32, ptr %4, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %4, align 4
br label %13, !llvm.loop !6
24: ; preds = %13
br label %25
25: ; preds = %47, %24
%26 = call i32 (...) @getchar()
store i32 %26, ptr %5, align 4
%27 = load i32, ptr @EOF, align 4
%28 = icmp ne i32 %26, %27
br i1 %28, label %29, label %48
29: ; preds = %25
%30 = load i32, ptr %5, align 4
%31 = icmp eq i32 %30, 32
br i1 %31, label %38, label %32
32: ; preds = %29
%33 = load i32, ptr %5, align 4
%34 = icmp eq i32 %33, 9
br i1 %34, label %38, label %35
35: ; preds = %32
%36 = load i32, ptr %5, align 4
%37 = icmp eq i32 %36, 10
br i1 %37, label %38, label %41
38: ; preds = %35, %32, %29
%39 = load i32, ptr %6, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %6, align 4
br label %47
41: ; preds = %35
%42 = load i32, ptr %6, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %12, i64 %43
%45 = load i32, ptr %44, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %44, align 4
br label %47
47: ; preds = %41, %38
br label %25, !llvm.loop !8
48: ; preds = %25
%49 = load i32, ptr %2, align 4
store i32 %49, ptr %4, align 4
br label %50
50: ; preds = %75, %48
%51 = load i32, ptr %4, align 4
%52 = icmp sgt i32 %51, 0
br i1 %52, label %53, label %78
53: ; preds = %50
store i32 0, ptr %6, align 4
br label %54
54: ; preds = %70, %53
%55 = load i32, ptr %6, align 4
%56 = load i32, ptr %3, align 4
%57 = icmp slt i32 %55, %56
br i1 %57, label %58, label %73
58: ; preds = %54
%59 = load i32, ptr %6, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i32, ptr %12, i64 %60
%62 = load i32, ptr %61, align 4
%63 = load i32, ptr %4, align 4
%64 = icmp sge i32 %62, %63
br i1 %64, label %65, label %67
65: ; preds = %58
%66 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %69
67: ; preds = %58
%68 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %69
69: ; preds = %67, %65
br label %70
70: ; preds = %69
%71 = load i32, ptr %6, align 4
%72 = add nsw i32 %71, 1
store i32 %72, ptr %6, align 4
br label %54, !llvm.loop !9
73: ; preds = %54
%74 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %75
75: ; preds = %73
%76 = load i32, ptr %4, align 4
%77 = add nsw i32 %76, -1
store i32 %77, ptr %4, align 4
br label %50, !llvm.loop !10
78: ; preds = %50
store i32 0, ptr %4, align 4
br label %79
79: ; preds = %89, %78
%80 = load i32, ptr %4, align 4
%81 = load i32, ptr %3, align 4
%82 = icmp slt i32 %80, %81
br i1 %82, label %83, label %92
83: ; preds = %79
%84 = load i32, ptr %4, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i32, ptr %12, i64 %85
%87 = load i32, ptr %86, align 4
%88 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %87)
br label %89
89: ; preds = %83
%90 = load i32, ptr %4, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %4, align 4
br label %79, !llvm.loop !11
92: ; preds = %79
%93 = load ptr, ptr %7, align 8
call void @llvm.stackrestore(ptr %93)
%94 = load i32, ptr %1, align 4
ret i32 %94
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @getchar(...) #2
declare i32 @printf(ptr noundef, ...) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1e9qarn6.c"
target datalayout = "e-m:e-p270: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
@.str = private unnamed_addr constant [2 x i8] c"_\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i32 50, ptr %2, align 4
store i32 50, ptr %3, align 4
%9 = load i32, ptr %3, align 4
%10 = zext i32 %9 to i64
%11 = call ptr @llvm.stacksave()
store ptr %11, ptr %7, align 8
%12 = alloca i32, i64 %10, align 16
store i64 %10, ptr %8, align 8
store i32 0, ptr %4, align 4
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr %3, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph, label %26
.lr.ph: ; preds = %0
br label %16
16: ; preds = %.lr.ph, %20
%17 = load i32, ptr %4, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i32, ptr %12, i64 %18
store i32 0, ptr %19, align 4
br label %20
20: ; preds = %16
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %4, align 4
%23 = load i32, ptr %4, align 4
%24 = load i32, ptr %3, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %26
26: ; preds = %._crit_edge, %0
%27 = call i32 (...) @getchar()
store i32 %27, ptr %5, align 4
%28 = load i32, ptr @EOF, align 4
%29 = icmp ne i32 %27, %28
br i1 %29, label %.lr.ph2, label %52
.lr.ph2: ; preds = %26
br label %30
30: ; preds = %.lr.ph2, %48
%31 = load i32, ptr %5, align 4
%32 = icmp eq i32 %31, 32
br i1 %32, label %39, label %33
33: ; preds = %30
%34 = load i32, ptr %5, align 4
%35 = icmp eq i32 %34, 9
br i1 %35, label %39, label %36
36: ; preds = %33
%37 = load i32, ptr %5, align 4
%38 = icmp eq i32 %37, 10
br i1 %38, label %39, label %42
39: ; preds = %36, %33, %30
%40 = load i32, ptr %6, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %6, align 4
br label %48
42: ; preds = %36
%43 = load i32, ptr %6, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i32, ptr %12, i64 %44
%46 = load i32, ptr %45, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %45, align 4
br label %48
48: ; preds = %42, %39
%49 = call i32 (...) @getchar()
store i32 %49, ptr %5, align 4
%50 = load i32, ptr @EOF, align 4
%51 = icmp ne i32 %49, %50
br i1 %51, label %30, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %48
br label %52
52: ; preds = %._crit_edge3, %26
%53 = load i32, ptr %2, align 4
store i32 %53, ptr %4, align 4
%54 = load i32, ptr %4, align 4
%55 = icmp sgt i32 %54, 0
br i1 %55, label %.lr.ph8, label %85
.lr.ph8: ; preds = %52
br label %56
56: ; preds = %.lr.ph8, %80
store i32 0, ptr %6, align 4
%57 = load i32, ptr %6, align 4
%58 = load i32, ptr %3, align 4
%59 = icmp slt i32 %57, %58
br i1 %59, label %.lr.ph5, label %78
.lr.ph5: ; preds = %56
br label %60
60: ; preds = %.lr.ph5, %72
%61 = load i32, ptr %6, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i32, ptr %12, i64 %62
%64 = load i32, ptr %63, align 4
%65 = load i32, ptr %4, align 4
%66 = icmp sge i32 %64, %65
br i1 %66, label %67, label %69
67: ; preds = %60
%68 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %71
69: ; preds = %60
%70 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %71
71: ; preds = %69, %67
br label %72
72: ; preds = %71
%73 = load i32, ptr %6, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %6, align 4
%75 = load i32, ptr %6, align 4
%76 = load i32, ptr %3, align 4
%77 = icmp slt i32 %75, %76
br i1 %77, label %60, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %72
br label %78
78: ; preds = %._crit_edge6, %56
%79 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %80
80: ; preds = %78
%81 = load i32, ptr %4, align 4
%82 = add nsw i32 %81, -1
store i32 %82, ptr %4, align 4
%83 = load i32, ptr %4, align 4
%84 = icmp sgt i32 %83, 0
br i1 %84, label %56, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %80
br label %85
85: ; preds = %._crit_edge9, %52
store i32 0, ptr %4, align 4
%86 = load i32, ptr %4, align 4
%87 = load i32, ptr %3, align 4
%88 = icmp slt i32 %86, %87
br i1 %88, label %.lr.ph11, label %101
.lr.ph11: ; preds = %85
br label %89
89: ; preds = %.lr.ph11, %95
%90 = load i32, ptr %4, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds i32, ptr %12, i64 %91
%93 = load i32, ptr %92, align 4
%94 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %93)
br label %95
95: ; preds = %89
%96 = load i32, ptr %4, align 4
%97 = add nsw i32 %96, 1
store i32 %97, ptr %4, align 4
%98 = load i32, ptr %4, align 4
%99 = load i32, ptr %3, align 4
%100 = icmp slt i32 %98, %99
br i1 %100, label %89, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %95
br label %101
101: ; preds = %._crit_edge12, %85
%102 = load ptr, ptr %7, align 8
call void @llvm.stackrestore(ptr %102)
%103 = load i32, ptr %1, align 4
ret i32 %103
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @getchar(...) #2
declare i32 @printf(ptr noundef, ...) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '/tmp/tmp5dh0brr0.c'
source_filename = "/tmp/tmp5dh0brr0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [141 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/grantdick/libgsgp/refs/heads/master/src/ensemble.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @gsgp_extract_model(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, 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
store i32 10000, ptr %10, align 4
%12 = load i32, ptr %10, align 4
%13 = call ptr @reallocate(ptr noundef null, i32 noundef %12, i32 noundef 8, ptr noundef @.str, i32 noundef 55, i32 noundef 0)
store ptr %13, ptr %11, align 8
%14 = load ptr, ptr %5, align 8
%15 = call i32 @extract_models(ptr noundef %14, ptr noundef %11, i32 noundef 0, ptr noundef %10)
store i32 %15, ptr %9, align 4
%16 = load ptr, ptr %6, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %18, label %24
18: ; preds = %4
%19 = load ptr, ptr %5, align 8
%20 = load ptr, ptr %11, align 8
%21 = load i32, ptr %9, align 4
%22 = call ptr @extract_coef(ptr noundef %19, ptr noundef %20, i32 noundef %21)
%23 = load ptr, ptr %6, align 8
store ptr %22, ptr %23, align 8
br label %24
24: ; preds = %18, %4
%25 = load ptr, ptr %7, align 8
%26 = icmp ne ptr %25, null
br i1 %26, label %27, label %32
27: ; preds = %24
%28 = load ptr, ptr %11, align 8
%29 = load i32, ptr %9, align 4
%30 = call ptr @reallocate(ptr noundef %28, i32 noundef %29, i32 noundef 8, ptr noundef @.str, i32 noundef 61, i32 noundef 0)
%31 = load ptr, ptr %7, align 8
store ptr %30, ptr %31, align 8
br label %35
32: ; preds = %24
%33 = load ptr, ptr %11, align 8
%34 = call i32 @free(ptr noundef %33)
br label %35
35: ; preds = %32, %27
%36 = load i32, ptr %9, align 4
ret i32 %36
}
declare ptr @reallocate(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @extract_models(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare ptr @extract_coef(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5dh0brr0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [141 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/grantdick/libgsgp/refs/heads/master/src/ensemble.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @gsgp_extract_model(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, 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
store i32 10000, ptr %10, align 4
%12 = load i32, ptr %10, align 4
%13 = call ptr @reallocate(ptr noundef null, i32 noundef %12, i32 noundef 8, ptr noundef @.str, i32 noundef 55, i32 noundef 0)
store ptr %13, ptr %11, align 8
%14 = load ptr, ptr %5, align 8
%15 = call i32 @extract_models(ptr noundef %14, ptr noundef %11, i32 noundef 0, ptr noundef %10)
store i32 %15, ptr %9, align 4
%16 = load ptr, ptr %6, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %18, label %24
18: ; preds = %4
%19 = load ptr, ptr %5, align 8
%20 = load ptr, ptr %11, align 8
%21 = load i32, ptr %9, align 4
%22 = call ptr @extract_coef(ptr noundef %19, ptr noundef %20, i32 noundef %21)
%23 = load ptr, ptr %6, align 8
store ptr %22, ptr %23, align 8
br label %24
24: ; preds = %18, %4
%25 = load ptr, ptr %7, align 8
%26 = icmp ne ptr %25, null
br i1 %26, label %27, label %32
27: ; preds = %24
%28 = load ptr, ptr %11, align 8
%29 = load i32, ptr %9, align 4
%30 = call ptr @reallocate(ptr noundef %28, i32 noundef %29, i32 noundef 8, ptr noundef @.str, i32 noundef 61, i32 noundef 0)
%31 = load ptr, ptr %7, align 8
store ptr %30, ptr %31, align 8
br label %35
32: ; preds = %24
%33 = load ptr, ptr %11, align 8
%34 = call i32 @free(ptr noundef %33)
br label %35
35: ; preds = %32, %27
%36 = load i32, ptr %9, align 4
ret i32 %36
}
declare ptr @reallocate(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @extract_models(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare ptr @extract_coef(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4uk8kdjg.c'
source_filename = "/tmp/tmp4uk8kdjg.c"
target datalayout = "e-m:e-p270: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/tmp4uk8kdjg.c"
target datalayout = "e-m:e-p270: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/tmp8ree4qf5.c'
source_filename = "/tmp/tmp8ree4qf5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 = call i32 (...) @InitApp()
%2 = call i32 (...) @Run_Game_Tasks()
ret i32 0
}
declare i32 @InitApp(...) #1
declare i32 @Run_Game_Tasks(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8ree4qf5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 = call i32 (...) @InitApp()
%2 = call i32 (...) @Run_Game_Tasks()
ret i32 0
}
declare i32 @InitApp(...) #1
declare i32 @Run_Game_Tasks(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpj2v8ey46.c'
source_filename = "/tmp/tmpj2v8ey46.c"
target datalayout = "e-m:e-p270: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/tmpj2v8ey46.c"
target datalayout = "e-m:e-p270: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/tmpkbyq921n.c'
source_filename = "/tmp/tmpkbyq921n.c"
target datalayout = "e-m:e-p270: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/tmpkbyq921n.c"
target datalayout = "e-m:e-p270: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/tmp3n6cygim.c'
source_filename = "/tmp/tmp3n6cygim.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Search_in_File(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca [512 x i8], align 16
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 1, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
%11 = load ptr, ptr %4, align 8
%12 = call ptr @fopen(ptr noundef %11, ptr noundef @.str)
store ptr %12, ptr %6, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %15
14: ; preds = %2
store i32 -1, ptr %3, align 4
br label %41
15: ; preds = %2
br label %16
16: ; preds = %30, %15
%17 = getelementptr inbounds [512 x i8], ptr %10, i64 0, i64 0
%18 = load ptr, ptr %6, align 8
%19 = call ptr @fgets(ptr noundef %17, i32 noundef 512, ptr noundef %18)
%20 = icmp ne ptr %19, null
br i1 %20, label %21, label %33
21: ; preds = %16
%22 = getelementptr inbounds [512 x i8], ptr %10, i64 0, i64 0
%23 = load ptr, ptr %5, align 8
%24 = call ptr @strstr(ptr noundef %22, ptr noundef %23)
%25 = icmp ne ptr %24, null
br i1 %25, label %26, label %30
26: ; preds = %21
%27 = load i32, ptr %8, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %8, align 4
%29 = load i32, ptr %7, align 4
store i32 %29, ptr %9, align 4
br label %30
30: ; preds = %26, %21
%31 = load i32, ptr %7, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %7, align 4
br label %16, !llvm.loop !6
33: ; preds = %16
%34 = load ptr, ptr %6, align 8
%35 = icmp ne ptr %34, null
br i1 %35, label %36, label %39
36: ; preds = %33
%37 = load ptr, ptr %6, align 8
%38 = call i32 @fclose(ptr noundef %37)
br label %39
39: ; preds = %36, %33
%40 = load i32, ptr %9, align 4
store i32 %40, ptr %3, align 4
br label %41
41: ; preds = %39, %14
%42 = load i32, ptr %3, align 4
ret i32 %42
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3n6cygim.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Search_in_File(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca [512 x i8], align 16
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 1, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
%11 = load ptr, ptr %4, align 8
%12 = call ptr @fopen(ptr noundef %11, ptr noundef @.str)
store ptr %12, ptr %6, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %15
14: ; preds = %2
store i32 -1, ptr %3, align 4
br label %43
15: ; preds = %2
%16 = getelementptr inbounds [512 x i8], ptr %10, i64 0, i64 0
%17 = load ptr, ptr %6, align 8
%18 = call ptr @fgets(ptr noundef %16, i32 noundef 512, ptr noundef %17)
%19 = icmp ne ptr %18, null
br i1 %19, label %.lr.ph, label %35
.lr.ph: ; preds = %15
br label %20
20: ; preds = %.lr.ph, %29
%21 = getelementptr inbounds [512 x i8], ptr %10, i64 0, i64 0
%22 = load ptr, ptr %5, align 8
%23 = call ptr @strstr(ptr noundef %21, ptr noundef %22)
%24 = icmp ne ptr %23, null
br i1 %24, label %25, label %29
25: ; preds = %20
%26 = load i32, ptr %8, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %8, align 4
%28 = load i32, ptr %7, align 4
store i32 %28, ptr %9, align 4
br label %29
29: ; preds = %25, %20
%30 = load i32, ptr %7, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %7, align 4
%32 = load ptr, ptr %6, align 8
%33 = call ptr @fgets(ptr noundef %16, i32 noundef 512, ptr noundef %32)
%34 = icmp ne ptr %33, null
br i1 %34, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %35
35: ; preds = %._crit_edge, %15
%36 = load ptr, ptr %6, align 8
%37 = icmp ne ptr %36, null
br i1 %37, label %38, label %41
38: ; preds = %35
%39 = load ptr, ptr %6, align 8
%40 = call i32 @fclose(ptr noundef %39)
br label %41
41: ; preds = %38, %35
%42 = load i32, ptr %9, align 4
store i32 %42, ptr %3, align 4
br label %43
43: ; preds = %41, %14
%44 = load i32, ptr %3, align 4
ret i32 %44
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpk68w_0i0.c'
source_filename = "/tmp/tmpk68w_0i0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @stdlib_strided_snanvariancewd(i64 noundef %0, float noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca float, align 4
%6 = alloca i64, align 8
%7 = alloca float, align 4
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca float, align 4
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca float, align 4
%16 = alloca float, align 4
%17 = alloca float, align 4
store i64 %0, ptr %6, align 8
store float %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store i64 %3, ptr %9, align 8
%18 = load i64, ptr %6, align 8
%19 = icmp sle i64 %18, 0
br i1 %19, label %20, label %21
20: ; preds = %4
store float 0x7FF8000000000000, ptr %5, align 4
br label %105
21: ; preds = %4
%22 = load i64, ptr %6, align 8
%23 = icmp eq i64 %22, 1
br i1 %23, label %27, label %24
24: ; preds = %21
%25 = load i64, ptr %9, align 8
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %43
27: ; preds = %24, %21
%28 = load ptr, ptr %8, align 8
%29 = getelementptr inbounds float, ptr %28, i64 0
%30 = load float, ptr %29, align 4
store float %30, ptr %17, align 4
%31 = load float, ptr %17, align 4
%32 = load float, ptr %17, align 4
%33 = fcmp oeq float %31, %32
br i1 %33, label %34, label %42
34: ; preds = %27
%35 = load i64, ptr %6, align 8
%36 = sitofp i64 %35 to double
%37 = load float, ptr %7, align 4
%38 = fpext float %37 to double
%39 = fsub double %36, %38
%40 = fcmp ogt double %39, 0.000000e+00
br i1 %40, label %41, label %42
41: ; preds = %34
store float 0.000000e+00, ptr %5, align 4
br label %105
42: ; preds = %34, %27
store float 0x7FF8000000000000, ptr %5, align 4
br label %105
43: ; preds = %24
%44 = load i64, ptr %9, align 8
%45 = icmp slt i64 %44, 0
br i1 %45, label %46, label %51
46: ; preds = %43
%47 = load i64, ptr %6, align 8
%48 = sub nsw i64 1, %47
%49 = load i64, ptr %9, align 8
%50 = mul nsw i64 %48, %49
store i64 %50, ptr %11, align 8
br label %52
51: ; preds = %43
store i64 0, ptr %11, align 8
br label %52
52: ; preds = %51, %46
store float 0.000000e+00, ptr %15, align 4
store float 0.000000e+00, ptr %16, align 4
store double 0.000000e+00, ptr %14, align 8
store i64 0, ptr %12, align 8
br label %53
53: ; preds = %88, %52
%54 = load i64, ptr %12, align 8
%55 = load i64, ptr %6, align 8
%56 = icmp slt i64 %54, %55
br i1 %56, label %57, label %91
57: ; preds = %53
%58 = load ptr, ptr %8, align 8
%59 = load i64, ptr %11, align 8
%60 = getelementptr inbounds float, ptr %58, i64 %59
%61 = load float, ptr %60, align 4
store float %61, ptr %17, align 4
%62 = load float, ptr %17, align 4
%63 = load float, ptr %17, align 4
%64 = fcmp oeq float %62, %63
br i1 %64, label %65, label %84
65: ; preds = %57
%66 = load float, ptr %17, align 4
%67 = load float, ptr %16, align 4
%68 = fsub float %66, %67
store float %68, ptr %10, align 4
%69 = load double, ptr %14, align 8
%70 = fadd double %69, 1.000000e+00
store double %70, ptr %14, align 8
%71 = load float, ptr %10, align 4
%72 = fpext float %71 to double
%73 = load double, ptr %14, align 8
%74 = fdiv double %72, %73
%75 = fptrunc double %74 to float
%76 = load float, ptr %16, align 4
%77 = fadd float %76, %75
store float %77, ptr %16, align 4
%78 = load float, ptr %10, align 4
%79 = load float, ptr %17, align 4
%80 = load float, ptr %16, align 4
%81 = fsub float %79, %80
%82 = load float, ptr %15, align 4
%83 = call float @llvm.fmuladd.f32(float %78, float %81, float %82)
store float %83, ptr %15, align 4
br label %84
84: ; preds = %65, %57
%85 = load i64, ptr %9, align 8
%86 = load i64, ptr %11, align 8
%87 = add nsw i64 %86, %85
store i64 %87, ptr %11, align 8
br label %88
88: ; preds = %84
%89 = load i64, ptr %12, align 8
%90 = add nsw i64 %89, 1
store i64 %90, ptr %12, align 8
br label %53, !llvm.loop !6
91: ; preds = %53
%92 = load double, ptr %14, align 8
%93 = load float, ptr %7, align 4
%94 = fpext float %93 to double
%95 = fsub double %92, %94
store double %95, ptr %13, align 8
%96 = load double, ptr %13, align 8
%97 = fcmp ole double %96, 0.000000e+00
br i1 %97, label %98, label %99
98: ; preds = %91
store float 0x7FF8000000000000, ptr %5, align 4
br label %105
99: ; preds = %91
%100 = load float, ptr %15, align 4
%101 = fpext float %100 to double
%102 = load double, ptr %13, align 8
%103 = fdiv double %101, %102
%104 = fptrunc double %103 to float
store float %104, ptr %5, align 4
br label %105
105: ; preds = %99, %98, %42, %41, %20
%106 = load float, ptr %5, align 4
ret float %106
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpk68w_0i0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @stdlib_strided_snanvariancewd(i64 noundef %0, float noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca float, align 4
%6 = alloca i64, align 8
%7 = alloca float, align 4
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca float, align 4
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca float, align 4
%16 = alloca float, align 4
%17 = alloca float, align 4
store i64 %0, ptr %6, align 8
store float %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store i64 %3, ptr %9, align 8
%18 = load i64, ptr %6, align 8
%19 = icmp sle i64 %18, 0
br i1 %19, label %20, label %21
20: ; preds = %4
store float 0x7FF8000000000000, ptr %5, align 4
br label %107
21: ; preds = %4
%22 = load i64, ptr %6, align 8
%23 = icmp eq i64 %22, 1
br i1 %23, label %27, label %24
24: ; preds = %21
%25 = load i64, ptr %9, align 8
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %43
27: ; preds = %24, %21
%28 = load ptr, ptr %8, align 8
%29 = getelementptr inbounds float, ptr %28, i64 0
%30 = load float, ptr %29, align 4
store float %30, ptr %17, align 4
%31 = load float, ptr %17, align 4
%32 = load float, ptr %17, align 4
%33 = fcmp oeq float %31, %32
br i1 %33, label %34, label %42
34: ; preds = %27
%35 = load i64, ptr %6, align 8
%36 = sitofp i64 %35 to double
%37 = load float, ptr %7, align 4
%38 = fpext float %37 to double
%39 = fsub double %36, %38
%40 = fcmp ogt double %39, 0.000000e+00
br i1 %40, label %41, label %42
41: ; preds = %34
store float 0.000000e+00, ptr %5, align 4
br label %107
42: ; preds = %34, %27
store float 0x7FF8000000000000, ptr %5, align 4
br label %107
43: ; preds = %24
%44 = load i64, ptr %9, align 8
%45 = icmp slt i64 %44, 0
br i1 %45, label %46, label %51
46: ; preds = %43
%47 = load i64, ptr %6, align 8
%48 = sub nsw i64 1, %47
%49 = load i64, ptr %9, align 8
%50 = mul nsw i64 %48, %49
store i64 %50, ptr %11, align 8
br label %52
51: ; preds = %43
store i64 0, ptr %11, align 8
br label %52
52: ; preds = %51, %46
store float 0.000000e+00, ptr %15, align 4
store float 0.000000e+00, ptr %16, align 4
store double 0.000000e+00, ptr %14, align 8
store i64 0, ptr %12, align 8
%53 = load i64, ptr %12, align 8
%54 = load i64, ptr %6, align 8
%55 = icmp slt i64 %53, %54
br i1 %55, label %.lr.ph, label %93
.lr.ph: ; preds = %52
br label %56
56: ; preds = %.lr.ph, %87
%57 = load ptr, ptr %8, align 8
%58 = load i64, ptr %11, align 8
%59 = getelementptr inbounds float, ptr %57, i64 %58
%60 = load float, ptr %59, align 4
store float %60, ptr %17, align 4
%61 = load float, ptr %17, align 4
%62 = load float, ptr %17, align 4
%63 = fcmp oeq float %61, %62
br i1 %63, label %64, label %83
64: ; preds = %56
%65 = load float, ptr %17, align 4
%66 = load float, ptr %16, align 4
%67 = fsub float %65, %66
store float %67, ptr %10, align 4
%68 = load double, ptr %14, align 8
%69 = fadd double %68, 1.000000e+00
store double %69, ptr %14, align 8
%70 = load float, ptr %10, align 4
%71 = fpext float %70 to double
%72 = load double, ptr %14, align 8
%73 = fdiv double %71, %72
%74 = fptrunc double %73 to float
%75 = load float, ptr %16, align 4
%76 = fadd float %75, %74
store float %76, ptr %16, align 4
%77 = load float, ptr %10, align 4
%78 = load float, ptr %17, align 4
%79 = load float, ptr %16, align 4
%80 = fsub float %78, %79
%81 = load float, ptr %15, align 4
%82 = call float @llvm.fmuladd.f32(float %77, float %80, float %81)
store float %82, ptr %15, align 4
br label %83
83: ; preds = %64, %56
%84 = load i64, ptr %9, align 8
%85 = load i64, ptr %11, align 8
%86 = add nsw i64 %85, %84
store i64 %86, ptr %11, align 8
br label %87
87: ; preds = %83
%88 = load i64, ptr %12, align 8
%89 = add nsw i64 %88, 1
store i64 %89, ptr %12, align 8
%90 = load i64, ptr %12, align 8
%91 = load i64, ptr %6, align 8
%92 = icmp slt i64 %90, %91
br i1 %92, label %56, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %87
br label %93
93: ; preds = %._crit_edge, %52
%94 = load double, ptr %14, align 8
%95 = load float, ptr %7, align 4
%96 = fpext float %95 to double
%97 = fsub double %94, %96
store double %97, ptr %13, align 8
%98 = load double, ptr %13, align 8
%99 = fcmp ole double %98, 0.000000e+00
br i1 %99, label %100, label %101
100: ; preds = %93
store float 0x7FF8000000000000, ptr %5, align 4
br label %107
101: ; preds = %93
%102 = load float, ptr %15, align 4
%103 = fpext float %102 to double
%104 = load double, ptr %13, align 8
%105 = fdiv double %103, %104
%106 = fptrunc double %105 to float
store float %106, ptr %5, align 4
br label %107
107: ; preds = %101, %100, %42, %41, %20
%108 = load float, ptr %5, align 4
ret float %108
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpuei9rbje.c'
source_filename = "/tmp/tmpuei9rbje.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sample_Mult_labeled_stop(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, double noundef %6, double noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10) #0 {
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca ptr, align 8
%21 = alloca ptr, align 8
%22 = alloca ptr, align 8
%23 = alloca i32, align 4
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca i32, align 4
%27 = alloca i32, align 4
store i32 %0, ptr %12, align 4
store i32 %1, ptr %13, align 4
store ptr %2, ptr %14, align 8
store ptr %3, ptr %15, align 8
store i32 %4, ptr %16, align 4
store i32 %5, ptr %17, align 4
store double %6, ptr %18, align 8
store double %7, ptr %19, align 8
store ptr %8, ptr %20, align 8
store ptr %9, ptr %21, align 8
store ptr %10, ptr %22, align 8
store i32 0, ptr %23, align 4
store i32 0, ptr %25, align 4
store i32 1, ptr %24, align 4
br label %28
28: ; preds = %94, %11
%29 = load i32, ptr %24, align 4
%30 = load i32, ptr %17, align 4
%31 = icmp sle i32 %29, %30
br i1 %31, label %32, label %97
32: ; preds = %28
%33 = load ptr, ptr %20, align 8
%34 = load i32, ptr %24, align 4
%35 = sub nsw i32 %34, 1
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %33, i64 %36
%38 = load i32, ptr %37, align 4
%39 = icmp ne i32 %38, 0
br i1 %39, label %40, label %93
40: ; preds = %32
%41 = load i32, ptr %24, align 4
%42 = load ptr, ptr %21, align 8
%43 = load i32, ptr %25, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i32, ptr %42, i64 %44
store i32 %41, ptr %45, align 4
%46 = load i32, ptr %13, align 4
%47 = icmp eq i32 %46, 1
br i1 %47, label %48, label %69
48: ; preds = %40
%49 = load double, ptr %19, align 8
%50 = load i32, ptr %12, align 4
%51 = load ptr, ptr %14, align 8
%52 = load i32, ptr %24, align 4
%53 = sub nsw i32 %52, 1
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds ptr, ptr %51, i64 %54
%56 = load ptr, ptr %55, align 8
%57 = load i32, ptr %16, align 4
%58 = call double @ldf_Mult_smooth(i32 noundef 0, double noundef %49, i32 noundef %50, ptr noundef %56, i32 noundef 1, i32 noundef %57)
%59 = load double, ptr %18, align 8
%60 = load i32, ptr %24, align 4
%61 = load ptr, ptr %15, align 8
%62 = load i32, ptr %17, align 4
%63 = call double @ldf_Mult_smooth(i32 noundef 0, double noundef %59, i32 noundef %60, ptr noundef %61, i32 noundef 1, i32 noundef %62)
%64 = fadd double %58, %63
%65 = load ptr, ptr %22, align 8
%66 = load i32, ptr %25, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds double, ptr %65, i64 %67
store double %64, ptr %68, align 8
br label %90
69: ; preds = %40
%70 = load i32, ptr %13, align 4
%71 = icmp eq i32 %70, 2
br i1 %71, label %72, label %87
72: ; preds = %69
%73 = load double, ptr %19, align 8
%74 = load i32, ptr %12, align 4
%75 = load ptr, ptr %14, align 8
%76 = load i32, ptr %24, align 4
%77 = sub nsw i32 %76, 1
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds ptr, ptr %75, i64 %78
%80 = load ptr, ptr %79, align 8
%81 = load i32, ptr %16, align 4
%82 = call double @ldf_Mult_smooth(i32 noundef 0, double noundef %73, i32 noundef %74, ptr noundef %80, i32 noundef 1, i32 noundef %81)
%83 = load ptr, ptr %22, align 8
%84 = load i32, ptr %25, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds double, ptr %83, i64 %85
store double %82, ptr %86, align 8
br label %89
87: ; preds = %69
%88 = call i32 @exit(i32 noundef 1) #3
unreachable
89: ; preds = %72
br label %90
90: ; preds = %89, %48
%91 = load i32, ptr %25, align 4
%92 = add nsw i32 %91, 1
store i32 %92, ptr %25, align 4
br label %93
93: ; preds = %90, %32
br label %94
94: ; preds = %93
%95 = load i32, ptr %24, align 4
%96 = add nsw i32 %95, 1
store i32 %96, ptr %24, align 4
br label %28, !llvm.loop !6
97: ; preds = %28
%98 = load ptr, ptr %22, align 8
%99 = load i32, ptr %25, align 4
%100 = call i32 @normalizeLog(ptr noundef %98, i32 noundef 1, i32 noundef %99)
%101 = load ptr, ptr %22, align 8
%102 = load i32, ptr %25, align 4
%103 = call i32 @sample_Mult(ptr noundef %101, i32 noundef 1, i32 noundef %102)
store i32 %103, ptr %26, align 4
%104 = load ptr, ptr %21, align 8
%105 = load i32, ptr %26, align 4
%106 = sub nsw i32 %105, 1
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds i32, ptr %104, i64 %107
%109 = load i32, ptr %108, align 4
store i32 %109, ptr %27, align 4
%110 = load i32, ptr %27, align 4
ret i32 %110
}
declare double @ldf_Mult_smooth(i32 noundef, double noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @normalizeLog(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @sample_Mult(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" }
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/tmpuei9rbje.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sample_Mult_labeled_stop(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, double noundef %6, double noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10) #0 {
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca ptr, align 8
%21 = alloca ptr, align 8
%22 = alloca ptr, align 8
%23 = alloca i32, align 4
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca i32, align 4
%27 = alloca i32, align 4
store i32 %0, ptr %12, align 4
store i32 %1, ptr %13, align 4
store ptr %2, ptr %14, align 8
store ptr %3, ptr %15, align 8
store i32 %4, ptr %16, align 4
store i32 %5, ptr %17, align 4
store double %6, ptr %18, align 8
store double %7, ptr %19, align 8
store ptr %8, ptr %20, align 8
store ptr %9, ptr %21, align 8
store ptr %10, ptr %22, align 8
store i32 0, ptr %23, align 4
store i32 0, ptr %25, align 4
store i32 1, ptr %24, align 4
%28 = load i32, ptr %24, align 4
%29 = load i32, ptr %17, align 4
%30 = icmp sle i32 %28, %29
br i1 %30, label %.lr.ph, label %99
.lr.ph: ; preds = %11
br label %31
31: ; preds = %.lr.ph, %93
%32 = load ptr, ptr %20, align 8
%33 = load i32, ptr %24, align 4
%34 = sub nsw i32 %33, 1
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i32, ptr %32, i64 %35
%37 = load i32, ptr %36, align 4
%38 = icmp ne i32 %37, 0
br i1 %38, label %39, label %92
39: ; preds = %31
%40 = load i32, ptr %24, align 4
%41 = load ptr, ptr %21, align 8
%42 = load i32, ptr %25, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %41, i64 %43
store i32 %40, ptr %44, align 4
%45 = load i32, ptr %13, align 4
%46 = icmp eq i32 %45, 1
br i1 %46, label %47, label %68
47: ; preds = %39
%48 = load double, ptr %19, align 8
%49 = load i32, ptr %12, align 4
%50 = load ptr, ptr %14, align 8
%51 = load i32, ptr %24, align 4
%52 = sub nsw i32 %51, 1
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds ptr, ptr %50, i64 %53
%55 = load ptr, ptr %54, align 8
%56 = load i32, ptr %16, align 4
%57 = call double @ldf_Mult_smooth(i32 noundef 0, double noundef %48, i32 noundef %49, ptr noundef %55, i32 noundef 1, i32 noundef %56)
%58 = load double, ptr %18, align 8
%59 = load i32, ptr %24, align 4
%60 = load ptr, ptr %15, align 8
%61 = load i32, ptr %17, align 4
%62 = call double @ldf_Mult_smooth(i32 noundef 0, double noundef %58, i32 noundef %59, ptr noundef %60, i32 noundef 1, i32 noundef %61)
%63 = fadd double %57, %62
%64 = load ptr, ptr %22, align 8
%65 = load i32, ptr %25, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds double, ptr %64, i64 %66
store double %63, ptr %67, align 8
br label %89
68: ; preds = %39
%69 = load i32, ptr %13, align 4
%70 = icmp eq i32 %69, 2
br i1 %70, label %71, label %86
71: ; preds = %68
%72 = load double, ptr %19, align 8
%73 = load i32, ptr %12, align 4
%74 = load ptr, ptr %14, align 8
%75 = load i32, ptr %24, align 4
%76 = sub nsw i32 %75, 1
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds ptr, ptr %74, i64 %77
%79 = load ptr, ptr %78, align 8
%80 = load i32, ptr %16, align 4
%81 = call double @ldf_Mult_smooth(i32 noundef 0, double noundef %72, i32 noundef %73, ptr noundef %79, i32 noundef 1, i32 noundef %80)
%82 = load ptr, ptr %22, align 8
%83 = load i32, ptr %25, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds double, ptr %82, i64 %84
store double %81, ptr %85, align 8
br label %88
86: ; preds = %68
%87 = call i32 @exit(i32 noundef 1) #3
unreachable
88: ; preds = %71
br label %89
89: ; preds = %88, %47
%90 = load i32, ptr %25, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %25, align 4
br label %92
92: ; preds = %89, %31
br label %93
93: ; preds = %92
%94 = load i32, ptr %24, align 4
%95 = add nsw i32 %94, 1
store i32 %95, ptr %24, align 4
%96 = load i32, ptr %24, align 4
%97 = load i32, ptr %17, align 4
%98 = icmp sle i32 %96, %97
br i1 %98, label %31, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %93
br label %99
99: ; preds = %._crit_edge, %11
%100 = load ptr, ptr %22, align 8
%101 = load i32, ptr %25, align 4
%102 = call i32 @normalizeLog(ptr noundef %100, i32 noundef 1, i32 noundef %101)
%103 = load ptr, ptr %22, align 8
%104 = load i32, ptr %25, align 4
%105 = call i32 @sample_Mult(ptr noundef %103, i32 noundef 1, i32 noundef %104)
store i32 %105, ptr %26, align 4
%106 = load ptr, ptr %21, align 8
%107 = load i32, ptr %26, align 4
%108 = sub nsw i32 %107, 1
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds i32, ptr %106, i64 %109
%111 = load i32, ptr %110, align 4
store i32 %111, ptr %27, align 4
%112 = load i32, ptr %27, align 4
ret i32 %112
}
declare double @ldf_Mult_smooth(i32 noundef, double noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @normalizeLog(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @sample_Mult(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" }
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/tmpd8sbd2yf.c'
source_filename = "/tmp/tmpd8sbd2yf.c"
target datalayout = "e-m:e-p270: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 [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @error(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr @stderr, align 4
%6 = load ptr, ptr %3, align 8
%7 = call i32 @fprintf(i32 noundef %5, ptr noundef @.str, ptr noundef %6)
%8 = load i32, ptr %4, align 4
%9 = call i32 @exit(i32 noundef %8) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpd8sbd2yf.c"
target datalayout = "e-m:e-p270: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 [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @error(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr @stderr, align 4
%6 = load ptr, ptr %3, align 8
%7 = call i32 @fprintf(i32 noundef %5, ptr noundef @.str, ptr noundef %6)
%8 = load i32, ptr %4, align 4
%9 = call i32 @exit(i32 noundef %8) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp44n74l5h.c'
source_filename = "/tmp/tmp44n74l5h.c"
target datalayout = "e-m:e-p270: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/tmp44n74l5h.c"
target datalayout = "e-m:e-p270: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/tmpv_a_389_.c'
source_filename = "/tmp/tmpv_a_389_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\09<head>\0A\00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"\09\09<title>Resources</title>\0A\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"\09</head>\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @rw_head() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 (...) @rw_css()
%3 = call i32 @printf(ptr noundef @.str.1)
%4 = call i32 @printf(ptr noundef @.str.2)
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @rw_css(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv_a_389_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\09<head>\0A\00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"\09\09<title>Resources</title>\0A\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"\09</head>\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @rw_head() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 (...) @rw_css()
%3 = call i32 @printf(ptr noundef @.str.1)
%4 = call i32 @printf(ptr noundef @.str.2)
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @rw_css(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnb6csz2j.c'
source_filename = "/tmp/tmpnb6csz2j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"[\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c" %d\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c" ]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @PrintVetor(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %5, align 4
br label %7
7: ; preds = %18, %2
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %21
11: ; preds = %7
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %5, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i32, ptr %12, i64 %14
%16 = load i32, ptr %15, align 4
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %16)
br label %18
18: ; preds = %11
%19 = load i32, ptr %5, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %5, align 4
br label %7, !llvm.loop !6
21: ; preds = %7
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnb6csz2j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"[\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c" %d\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c" ]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @PrintVetor(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %.lr.ph, label %23
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %17
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i32, ptr %11, i64 %13
%15 = load i32, ptr %14, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %15)
br label %17
17: ; preds = %10
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %5, align 4
%20 = load i32, ptr %5, 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
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp7peigrde.c'
source_filename = "/tmp/tmp7peigrde.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cdb_hash(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 5381, ptr %5, align 4
br label %6
6: ; preds = %10, %2
%7 = load i32, ptr %4, align 4
%8 = add i32 %7, -1
store i32 %8, ptr %4, align 4
%9 = icmp ne i32 %7, 0
br i1 %9, label %10, label %17
10: ; preds = %6
%11 = load i32, ptr %5, align 4
%12 = load ptr, ptr %3, align 8
%13 = getelementptr inbounds i8, ptr %12, i32 1
store ptr %13, ptr %3, align 8
%14 = load i8, ptr %12, align 1
%15 = sext i8 %14 to i32
%16 = call i32 @cdb_hashadd(i32 noundef %11, i32 noundef %15)
store i32 %16, ptr %5, align 4
br label %6, !llvm.loop !6
17: ; preds = %6
%18 = load i32, ptr %5, align 4
ret i32 %18
}
declare i32 @cdb_hashadd(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/tmp7peigrde.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cdb_hash(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 5381, ptr %5, align 4
%6 = load i32, ptr %4, align 4
%7 = add i32 %6, -1
store i32 %7, ptr %4, align 4
%8 = icmp ne i32 %6, 0
br i1 %8, label %.lr.ph, label %19
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %9
%10 = load i32, ptr %5, align 4
%11 = load ptr, ptr %3, align 8
%12 = getelementptr inbounds i8, ptr %11, i32 1
store ptr %12, ptr %3, align 8
%13 = load i8, ptr %11, align 1
%14 = sext i8 %13 to i32
%15 = call i32 @cdb_hashadd(i32 noundef %10, i32 noundef %14)
store i32 %15, ptr %5, align 4
%16 = load i32, ptr %4, align 4
%17 = add i32 %16, -1
store i32 %17, ptr %4, align 4
%18 = icmp ne i32 %16, 0
br i1 %18, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %9
br label %19
19: ; preds = %._crit_edge, %2
%20 = load i32, ptr %5, align 4
ret i32 %20
}
declare i32 @cdb_hashadd(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/tmp873rnzoh.c'
source_filename = "/tmp/tmp873rnzoh.c"
target datalayout = "e-m:e-p270: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
@.str = private unnamed_addr constant [12 x i8] c"Branco: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [50 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
%5 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%6 = load i32, ptr @stdin, align 4
%7 = call i32 @fgets(ptr noundef %5, i32 noundef 50, i32 noundef %6)
store i32 0, ptr %3, align 4
br label %8
8: ; preds = %24, %0
%9 = load i32, ptr %3, align 4
%10 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%11 = call i32 @strlen(ptr noundef %10)
%12 = icmp slt i32 %9, %11
br i1 %12, label %13, label %27
13: ; preds = %8
%14 = load i32, ptr %3, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %15
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 32
br i1 %19, label %20, label %23
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 %23
23: ; preds = %20, %13
br label %24
24: ; preds = %23
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %3, align 4
br label %8, !llvm.loop !6
27: ; preds = %8
%28 = load i32, ptr %4, align 4
%29 = call i32 @printf(ptr noundef @.str, i32 noundef %28)
ret i32 0
}
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp873rnzoh.c"
target datalayout = "e-m:e-p270: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
@.str = private unnamed_addr constant [12 x i8] c"Branco: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [50 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
%5 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%6 = load i32, ptr @stdin, align 4
%7 = call i32 @fgets(ptr noundef %5, i32 noundef 50, i32 noundef %6)
store i32 0, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%10 = call i32 @strlen(ptr noundef %9)
%11 = icmp slt i32 %8, %10
br i1 %11, label %.lr.ph, label %29
.lr.ph: ; preds = %0
br label %12
12: ; preds = %.lr.ph, %23
%13 = load i32, ptr %3, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %14
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 32
br i1 %18, label %19, label %22
19: ; preds = %12
%20 = load i32, ptr %4, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %4, align 4
br label %22
22: ; preds = %19, %12
br label %23
23: ; preds = %22
%24 = load i32, ptr %3, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %3, align 4
%26 = load i32, ptr %3, align 4
%27 = call i32 @strlen(ptr noundef %9)
%28 = icmp slt i32 %26, %27
br i1 %28, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %29
29: ; preds = %._crit_edge, %0
%30 = load i32, ptr %4, align 4
%31 = call i32 @printf(ptr noundef @.str, i32 noundef %30)
ret i32 0
}
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp2x_4jxg4.c'
source_filename = "/tmp/tmp2x_4jxg4.c"
target datalayout = "e-m:e-p270: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/tmp2x_4jxg4.c"
target datalayout = "e-m:e-p270: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/tmp23n70ood.c'
source_filename = "/tmp/tmp23n70ood.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"Running HWID Creator.\0A\00", align 1
@.str.1 = private unnamed_addr constant [91 x i8] c"Be sure to run this from the machine that will be running the checker, and the same user.\0A\00", align 1
@.str.2 = private unnamed_addr constant [38 x i8] c"Error when running first breakpoint.\0A\00", align 1
@.str.3 = private unnamed_addr constant [38 x i8] c"Error when running third breakpoint.\0A\00", align 1
@__const.main.chr = private unnamed_addr constant [27 x i8] c"c\07\03,Qh\0F\13\04%\09\0E\1D\15\02/@Bq\04w\00OW|T\00", align 16
@.str.4 = private unnamed_addr constant [16 x i8] c"LolA4GbvcDdosfg\00", align 1
@.str.5 = private unnamed_addr constant [38 x i8] c"Error when running second breakpoint\0A\00", align 1
@.str.6 = private unnamed_addr constant [43 x i8] c"Error when running fourth breakpoint.(%s)\0A\00", align 1
@errno = dso_local global i32 0, align 4
@__const.main.chr.7 = private unnamed_addr constant [27 x i8] c"c\07\03,Qh\0F\13\04%\09\0E\1D\15\02/@Bq\04w\00OW|T\00", align 16
@MD5_DIGEST_LENGTH = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [13 x i8] c"\0AHWID IS: \0A\0A\00", align 1
@.str.9 = private unnamed_addr constant [5 x i8] c"%02x\00", align 1
@.str.10 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca [27 x i8], align 16
%5 = alloca [65 x i8], align 16
%6 = alloca i32, align 4
%7 = alloca [27 x i8], align 16
%8 = alloca [216 x i8], align 16
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca [1024 x i8], align 16
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i32 0, ptr %1, align 4
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%17 = call ptr (...) @getRand()
store ptr %17, ptr %2, align 8
%18 = load ptr, ptr %2, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %23, label %20
20: ; preds = %0
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%22 = call i32 @exit(i32 noundef 2) #6
unreachable
23: ; preds = %0
%24 = load ptr, ptr %2, align 8
%25 = call i32 @doCRFile(ptr noundef %24)
%26 = icmp ne i32 %25, 0
br i1 %26, label %30, label %27
27: ; preds = %23
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%29 = call i32 @exit(i32 noundef 2) #6
unreachable
30: ; preds = %23
%31 = call ptr (...) @getmID()
store ptr %31, ptr %3, align 8
%32 = load ptr, ptr %3, align 8
%33 = icmp ne ptr %32, null
br i1 %33, label %43, label %34
34: ; preds = %30
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.main.chr, i64 27, i1 false)
%35 = getelementptr inbounds [27 x i8], ptr %4, i64 0, i64 0
%36 = call i32 @xor_decrypt(ptr noundef %35, ptr noundef @.str.4, i32 noundef 26)
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%38 = getelementptr inbounds [27 x i8], ptr %4, i64 0, i64 0
%39 = call i32 @unlink(ptr noundef %38)
%40 = load ptr, ptr %2, align 8
%41 = call i32 @free(ptr noundef %40)
%42 = call i32 @exit(i32 noundef 2) #6
unreachable
43: ; preds = %30
%44 = getelementptr inbounds [65 x i8], ptr %5, i64 0, i64 0
%45 = call i32 @gethostname(ptr noundef %44, i32 noundef 64)
store i32 %45, ptr %6, align 4
%46 = getelementptr inbounds [65 x i8], ptr %5, i64 0, i64 64
store i8 0, ptr %46, align 16
%47 = load i32, ptr %6, align 4
%48 = icmp eq i32 %47, -1
br i1 %48, label %49, label %62
49: ; preds = %43
%50 = load i32, ptr @errno, align 4
%51 = call ptr @strerror(i32 noundef %50)
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %51)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 @__const.main.chr.7, i64 27, i1 false)
%53 = getelementptr inbounds [27 x i8], ptr %7, i64 0, i64 0
%54 = call i32 @xor_decrypt(ptr noundef %53, ptr noundef @.str.4, i32 noundef 26)
%55 = getelementptr inbounds [27 x i8], ptr %7, i64 0, i64 0
%56 = call i32 @unlink(ptr noundef %55)
%57 = load ptr, ptr %2, align 8
%58 = call i32 @free(ptr noundef %57)
%59 = load ptr, ptr %3, align 8
%60 = call i32 @free(ptr noundef %59)
%61 = call i32 @exit(i32 noundef 2) #6
unreachable
62: ; preds = %43
call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 216, i1 false)
%63 = getelementptr inbounds [216 x i8], ptr %8, i64 0, i64 0
%64 = load ptr, ptr %2, align 8
%65 = call i32 @strncat(ptr noundef %63, ptr noundef %64, i32 noundef 120)
%66 = getelementptr inbounds [216 x i8], ptr %8, i64 0, i64 0
%67 = load ptr, ptr %3, align 8
%68 = call i32 @strncat(ptr noundef %66, ptr noundef %67, i32 noundef 32)
%69 = getelementptr inbounds [216 x i8], ptr %8, i64 0, i64 0
%70 = getelementptr inbounds [65 x i8], ptr %5, i64 0, i64 0
%71 = call i32 @strncat(ptr noundef %69, ptr noundef %70, i32 noundef 64)
%72 = load i32, ptr @MD5_DIGEST_LENGTH, align 4
%73 = zext i32 %72 to i64
%74 = call ptr @llvm.stacksave()
store ptr %74, ptr %9, align 8
%75 = alloca i8, i64 %73, align 16
store i64 %73, ptr %10, align 8
%76 = call i32 @MD5_Init(ptr noundef %13)
%77 = getelementptr inbounds [216 x i8], ptr %8, i64 0, i64 0
%78 = getelementptr inbounds [216 x i8], ptr %8, i64 0, i64 0
%79 = call i32 @strlen(ptr noundef %78)
%80 = call i32 @MD5_Update(ptr noundef %13, ptr noundef %77, i32 noundef %79)
%81 = call i32 @MD5_Final(ptr noundef %75, ptr noundef %13)
%82 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
store i32 0, ptr %14, align 4
br label %83
83: ; preds = %94, %62
%84 = load i32, ptr %14, align 4
%85 = load i32, ptr @MD5_DIGEST_LENGTH, align 4
%86 = icmp slt i32 %84, %85
br i1 %86, label %87, label %97
87: ; preds = %83
%88 = load i32, ptr %14, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i8, ptr %75, i64 %89
%91 = load i8, ptr %90, align 1
%92 = zext i8 %91 to i32
%93 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %92)
br label %94
94: ; preds = %87
%95 = load i32, ptr %14, align 4
%96 = add nsw i32 %95, 1
store i32 %96, ptr %14, align 4
br label %83, !llvm.loop !6
97: ; preds = %83
%98 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%99 = load ptr, ptr %2, align 8
%100 = call i32 @free(ptr noundef %99)
%101 = load ptr, ptr %3, align 8
%102 = call i32 @free(ptr noundef %101)
%103 = call i32 @exit(i32 noundef 0) #6
unreachable
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @getRand(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @doCRFile(ptr noundef) #1
declare ptr @getmID(...) #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) #3
declare i32 @xor_decrypt(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @unlink(ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @gethostname(ptr noundef, i32 noundef) #1
declare ptr @strerror(i32 noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4
declare i32 @strncat(ptr noundef, ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #5
declare i32 @MD5_Init(ptr noundef) #1
declare i32 @MD5_Update(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @MD5_Final(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nocallback nofree nosync nounwind willreturn }
attributes #6 = { 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/tmp23n70ood.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"Running HWID Creator.\0A\00", align 1
@.str.1 = private unnamed_addr constant [91 x i8] c"Be sure to run this from the machine that will be running the checker, and the same user.\0A\00", align 1
@.str.2 = private unnamed_addr constant [38 x i8] c"Error when running first breakpoint.\0A\00", align 1
@.str.3 = private unnamed_addr constant [38 x i8] c"Error when running third breakpoint.\0A\00", align 1
@__const.main.chr = private unnamed_addr constant [27 x i8] c"c\07\03,Qh\0F\13\04%\09\0E\1D\15\02/@Bq\04w\00OW|T\00", align 16
@.str.4 = private unnamed_addr constant [16 x i8] c"LolA4GbvcDdosfg\00", align 1
@.str.5 = private unnamed_addr constant [38 x i8] c"Error when running second breakpoint\0A\00", align 1
@.str.6 = private unnamed_addr constant [43 x i8] c"Error when running fourth breakpoint.(%s)\0A\00", align 1
@errno = dso_local global i32 0, align 4
@__const.main.chr.7 = private unnamed_addr constant [27 x i8] c"c\07\03,Qh\0F\13\04%\09\0E\1D\15\02/@Bq\04w\00OW|T\00", align 16
@MD5_DIGEST_LENGTH = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [13 x i8] c"\0AHWID IS: \0A\0A\00", align 1
@.str.9 = private unnamed_addr constant [5 x i8] c"%02x\00", align 1
@.str.10 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca [27 x i8], align 16
%5 = alloca [65 x i8], align 16
%6 = alloca i32, align 4
%7 = alloca [27 x i8], align 16
%8 = alloca [216 x i8], align 16
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca [1024 x i8], align 16
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i32 0, ptr %1, align 4
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%17 = call ptr (...) @getRand()
store ptr %17, ptr %2, align 8
%18 = load ptr, ptr %2, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %23, label %20
20: ; preds = %0
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%22 = call i32 @exit(i32 noundef 2) #6
unreachable
23: ; preds = %0
%24 = load ptr, ptr %2, align 8
%25 = call i32 @doCRFile(ptr noundef %24)
%26 = icmp ne i32 %25, 0
br i1 %26, label %30, label %27
27: ; preds = %23
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%29 = call i32 @exit(i32 noundef 2) #6
unreachable
30: ; preds = %23
%31 = call ptr (...) @getmID()
store ptr %31, ptr %3, align 8
%32 = load ptr, ptr %3, align 8
%33 = icmp ne ptr %32, null
br i1 %33, label %43, label %34
34: ; preds = %30
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.main.chr, i64 27, i1 false)
%35 = getelementptr inbounds [27 x i8], ptr %4, i64 0, i64 0
%36 = call i32 @xor_decrypt(ptr noundef %35, ptr noundef @.str.4, i32 noundef 26)
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%38 = getelementptr inbounds [27 x i8], ptr %4, i64 0, i64 0
%39 = call i32 @unlink(ptr noundef %38)
%40 = load ptr, ptr %2, align 8
%41 = call i32 @free(ptr noundef %40)
%42 = call i32 @exit(i32 noundef 2) #6
unreachable
43: ; preds = %30
%44 = getelementptr inbounds [65 x i8], ptr %5, i64 0, i64 0
%45 = call i32 @gethostname(ptr noundef %44, i32 noundef 64)
store i32 %45, ptr %6, align 4
%46 = getelementptr inbounds [65 x i8], ptr %5, i64 0, i64 64
store i8 0, ptr %46, align 16
%47 = load i32, ptr %6, align 4
%48 = icmp eq i32 %47, -1
br i1 %48, label %49, label %62
49: ; preds = %43
%50 = load i32, ptr @errno, align 4
%51 = call ptr @strerror(i32 noundef %50)
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %51)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 @__const.main.chr.7, i64 27, i1 false)
%53 = getelementptr inbounds [27 x i8], ptr %7, i64 0, i64 0
%54 = call i32 @xor_decrypt(ptr noundef %53, ptr noundef @.str.4, i32 noundef 26)
%55 = getelementptr inbounds [27 x i8], ptr %7, i64 0, i64 0
%56 = call i32 @unlink(ptr noundef %55)
%57 = load ptr, ptr %2, align 8
%58 = call i32 @free(ptr noundef %57)
%59 = load ptr, ptr %3, align 8
%60 = call i32 @free(ptr noundef %59)
%61 = call i32 @exit(i32 noundef 2) #6
unreachable
62: ; preds = %43
call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 216, i1 false)
%63 = getelementptr inbounds [216 x i8], ptr %8, i64 0, i64 0
%64 = load ptr, ptr %2, align 8
%65 = call i32 @strncat(ptr noundef %63, ptr noundef %64, i32 noundef 120)
%66 = getelementptr inbounds [216 x i8], ptr %8, i64 0, i64 0
%67 = load ptr, ptr %3, align 8
%68 = call i32 @strncat(ptr noundef %66, ptr noundef %67, i32 noundef 32)
%69 = getelementptr inbounds [216 x i8], ptr %8, i64 0, i64 0
%70 = getelementptr inbounds [65 x i8], ptr %5, i64 0, i64 0
%71 = call i32 @strncat(ptr noundef %69, ptr noundef %70, i32 noundef 64)
%72 = load i32, ptr @MD5_DIGEST_LENGTH, align 4
%73 = zext i32 %72 to i64
%74 = call ptr @llvm.stacksave()
store ptr %74, ptr %9, align 8
%75 = alloca i8, i64 %73, align 16
store i64 %73, ptr %10, align 8
%76 = call i32 @MD5_Init(ptr noundef %13)
%77 = getelementptr inbounds [216 x i8], ptr %8, i64 0, i64 0
%78 = getelementptr inbounds [216 x i8], ptr %8, i64 0, i64 0
%79 = call i32 @strlen(ptr noundef %78)
%80 = call i32 @MD5_Update(ptr noundef %13, ptr noundef %77, i32 noundef %79)
%81 = call i32 @MD5_Final(ptr noundef %75, ptr noundef %13)
%82 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
store i32 0, ptr %14, align 4
%83 = load i32, ptr %14, align 4
%84 = load i32, ptr @MD5_DIGEST_LENGTH, align 4
%85 = icmp slt i32 %83, %84
br i1 %85, label %.lr.ph, label %99
.lr.ph: ; preds = %62
br label %86
86: ; preds = %.lr.ph, %93
%87 = load i32, ptr %14, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i8, ptr %75, i64 %88
%90 = load i8, ptr %89, align 1
%91 = zext i8 %90 to i32
%92 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %91)
br label %93
93: ; preds = %86
%94 = load i32, ptr %14, align 4
%95 = add nsw i32 %94, 1
store i32 %95, ptr %14, align 4
%96 = load i32, ptr %14, align 4
%97 = load i32, ptr @MD5_DIGEST_LENGTH, align 4
%98 = icmp slt i32 %96, %97
br i1 %98, label %86, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %93
br label %99
99: ; preds = %._crit_edge, %62
%100 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%101 = load ptr, ptr %2, align 8
%102 = call i32 @free(ptr noundef %101)
%103 = load ptr, ptr %3, align 8
%104 = call i32 @free(ptr noundef %103)
%105 = call i32 @exit(i32 noundef 0) #6
unreachable
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @getRand(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @doCRFile(ptr noundef) #1
declare ptr @getmID(...) #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) #3
declare i32 @xor_decrypt(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @unlink(ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @gethostname(ptr noundef, i32 noundef) #1
declare ptr @strerror(i32 noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4
declare i32 @strncat(ptr noundef, ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #5
declare i32 @MD5_Init(ptr noundef) #1
declare i32 @MD5_Update(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @MD5_Final(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nocallback nofree nosync nounwind willreturn }
attributes #6 = { 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/tmp_p61ep1o.c'
source_filename = "/tmp/tmp_p61ep1o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @execute_option(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
%9 = load i32, ptr %5, align 4
%10 = and i32 %9, 32
%11 = icmp eq i32 %10, 32
br i1 %11, label %12, label %17
12: ; preds = %3
%13 = load ptr, ptr %7, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 0
%15 = load ptr, ptr %14, align 8
%16 = call i32 @show_version(ptr noundef %15)
br label %17
17: ; preds = %12, %3
%18 = load i32, ptr %5, align 4
%19 = and i32 %18, 16
%20 = icmp eq i32 %19, 16
br i1 %20, label %21, label %26
21: ; preds = %17
%22 = load ptr, ptr %7, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 0
%24 = load ptr, ptr %23, align 8
%25 = call i32 @show_help(ptr noundef %24)
br label %26
26: ; preds = %21, %17
%27 = load i32, ptr %5, align 4
%28 = and i32 %27, 48
%29 = icmp ne i32 %28, 0
br i1 %29, label %30, label %31
30: ; preds = %26
store i32 0, ptr %4, align 4
br label %82
31: ; preds = %26
%32 = load i32, ptr %5, align 4
%33 = and i32 %32, 1
%34 = icmp eq i32 %33, 1
br i1 %34, label %35, label %37
35: ; preds = %31
%36 = call i32 (...) @list_versions()
store i32 %36, ptr %4, align 4
br label %82
37: ; preds = %31
%38 = load i32, ptr %5, align 4
%39 = and i32 %38, 2
%40 = icmp eq i32 %39, 2
br i1 %40, label %41, label %67
41: ; preds = %37
store i32 1, ptr %8, align 4
br label %42
42: ; preds = %63, %41
%43 = load i32, ptr %8, align 4
%44 = load i32, ptr %6, align 4
%45 = icmp slt i32 %43, %44
br i1 %45, label %46, label %66
46: ; preds = %42
%47 = load ptr, ptr %7, align 8
%48 = load i32, ptr %8, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds ptr, ptr %47, i64 %49
%51 = load ptr, ptr %50, align 8
%52 = load i8, ptr %51, align 1
%53 = sext i8 %52 to i32
%54 = icmp ne i32 %53, 45
br i1 %54, label %55, label %62
55: ; preds = %46
%56 = load ptr, ptr %7, align 8
%57 = load i32, ptr %8, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds ptr, ptr %56, i64 %58
%60 = load ptr, ptr %59, align 8
%61 = call i32 @change_version(ptr noundef %60)
store i32 %61, ptr %4, align 4
br label %82
62: ; preds = %46
br label %63
63: ; preds = %62
%64 = load i32, ptr %8, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %8, align 4
br label %42, !llvm.loop !6
66: ; preds = %42
br label %80
67: ; preds = %37
%68 = load i32, ptr %5, align 4
%69 = and i32 %68, 4
%70 = icmp eq i32 %69, 4
br i1 %70, label %71, label %73
71: ; preds = %67
%72 = call i32 (...) @init_env()
br label %73
73: ; preds = %71, %67
%74 = load i32, ptr %5, align 4
%75 = and i32 %74, 8
%76 = icmp eq i32 %75, 8
br i1 %76, label %77, label %79
77: ; preds = %73
%78 = call i32 (...) @init_jdks()
br label %79
79: ; preds = %77, %73
br label %80
80: ; preds = %79, %66
br label %81
81: ; preds = %80
store i32 1, ptr %4, align 4
br label %82
82: ; preds = %81, %55, %35, %30
%83 = load i32, ptr %4, align 4
ret i32 %83
}
declare i32 @show_version(ptr noundef) #1
declare i32 @show_help(ptr noundef) #1
declare i32 @list_versions(...) #1
declare i32 @change_version(ptr noundef) #1
declare i32 @init_env(...) #1
declare i32 @init_jdks(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_p61ep1o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @execute_option(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
%9 = load i32, ptr %5, align 4
%10 = and i32 %9, 32
%11 = icmp eq i32 %10, 32
br i1 %11, label %12, label %17
12: ; preds = %3
%13 = load ptr, ptr %7, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 0
%15 = load ptr, ptr %14, align 8
%16 = call i32 @show_version(ptr noundef %15)
br label %17
17: ; preds = %12, %3
%18 = load i32, ptr %5, align 4
%19 = and i32 %18, 16
%20 = icmp eq i32 %19, 16
br i1 %20, label %21, label %26
21: ; preds = %17
%22 = load ptr, ptr %7, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 0
%24 = load ptr, ptr %23, align 8
%25 = call i32 @show_help(ptr noundef %24)
br label %26
26: ; preds = %21, %17
%27 = load i32, ptr %5, align 4
%28 = and i32 %27, 48
%29 = icmp ne i32 %28, 0
br i1 %29, label %30, label %31
30: ; preds = %26
store i32 0, ptr %4, align 4
br label %84
31: ; preds = %26
%32 = load i32, ptr %5, align 4
%33 = and i32 %32, 1
%34 = icmp eq i32 %33, 1
br i1 %34, label %35, label %37
35: ; preds = %31
%36 = call i32 (...) @list_versions()
store i32 %36, ptr %4, align 4
br label %84
37: ; preds = %31
%38 = load i32, ptr %5, align 4
%39 = and i32 %38, 2
%40 = icmp eq i32 %39, 2
br i1 %40, label %41, label %69
41: ; preds = %37
store i32 1, ptr %8, align 4
%42 = load i32, ptr %8, align 4
%43 = load i32, ptr %6, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %.lr.ph, label %68
.lr.ph: ; preds = %41
br label %45
45: ; preds = %.lr.ph, %62
%46 = load ptr, ptr %7, align 8
%47 = load i32, ptr %8, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds ptr, ptr %46, i64 %48
%50 = load ptr, ptr %49, align 8
%51 = load i8, ptr %50, align 1
%52 = sext i8 %51 to i32
%53 = icmp ne i32 %52, 45
br i1 %53, label %54, label %61
54: ; preds = %45
%55 = load ptr, ptr %7, align 8
%56 = load i32, ptr %8, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds ptr, ptr %55, i64 %57
%59 = load ptr, ptr %58, align 8
%60 = call i32 @change_version(ptr noundef %59)
store i32 %60, ptr %4, align 4
br label %84
61: ; preds = %45
br label %62
62: ; preds = %61
%63 = load i32, ptr %8, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %8, align 4
%65 = load i32, ptr %8, align 4
%66 = load i32, ptr %6, align 4
%67 = icmp slt i32 %65, %66
br i1 %67, label %45, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %62
br label %68
68: ; preds = %._crit_edge, %41
br label %82
69: ; preds = %37
%70 = load i32, ptr %5, align 4
%71 = and i32 %70, 4
%72 = icmp eq i32 %71, 4
br i1 %72, label %73, label %75
73: ; preds = %69
%74 = call i32 (...) @init_env()
br label %75
75: ; preds = %73, %69
%76 = load i32, ptr %5, align 4
%77 = and i32 %76, 8
%78 = icmp eq i32 %77, 8
br i1 %78, label %79, label %81
79: ; preds = %75
%80 = call i32 (...) @init_jdks()
br label %81
81: ; preds = %79, %75
br label %82
82: ; preds = %81, %68
br label %83
83: ; preds = %82
store i32 1, ptr %4, align 4
br label %84
84: ; preds = %83, %54, %35, %30
%85 = load i32, ptr %4, align 4
ret i32 %85
}
declare i32 @show_version(ptr noundef) #1
declare i32 @show_help(ptr noundef) #1
declare i32 @list_versions(...) #1
declare i32 @change_version(ptr noundef) #1
declare i32 @init_env(...) #1
declare i32 @init_jdks(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp2ek2l6bt.c'
source_filename = "/tmp/tmp2ek2l6bt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.str = private unnamed_addr constant [10 x i8] c"01:02:03\00\00", align 1
@.str = private unnamed_addr constant [8 x i8] c"x = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [10 x i8], align 1
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %2, ptr align 1 @__const.main.str, i64 10, i1 false)
%5 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 0
%6 = getelementptr inbounds i8, ptr %5, i64 3
store ptr %6, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i32 @atoi(ptr noundef %7)
store i32 %8, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = call i32 @printf(ptr noundef @.str, i32 noundef %9)
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 @atoi(ptr noundef) #2
declare i32 @printf(ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2ek2l6bt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.str = private unnamed_addr constant [10 x i8] c"01:02:03\00\00", align 1
@.str = private unnamed_addr constant [8 x i8] c"x = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [10 x i8], align 1
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %2, ptr align 1 @__const.main.str, i64 10, i1 false)
%5 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 0
%6 = getelementptr inbounds i8, ptr %5, i64 3
store ptr %6, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i32 @atoi(ptr noundef %7)
store i32 %8, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = call i32 @printf(ptr noundef @.str, i32 noundef %9)
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 @atoi(ptr noundef) #2
declare i32 @printf(ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp87pqbamh.c'
source_filename = "/tmp/tmp87pqbamh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CHAR_BIT = dso_local global i32 0, align 4
@UINTMAX_MAX = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @bit_mask2(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = zext i32 %4 to i64
%6 = load i32, ptr @CHAR_BIT, align 4
%7 = sext i32 %6 to i64
%8 = mul i64 %7, 4
%9 = icmp uge i64 %5, %8
br i1 %9, label %10, label %12
10: ; preds = %1
%11 = call i32 @UINTMAX_C(i32 noundef -1)
store i32 %11, ptr %2, align 4
br label %17
12: ; preds = %1
%13 = load i32, ptr @UINTMAX_MAX, align 4
%14 = load i32, ptr %3, align 4
%15 = shl i32 %13, %14
%16 = xor i32 %15, -1
store i32 %16, ptr %2, align 4
br label %17
17: ; preds = %12, %10
%18 = load i32, ptr %2, align 4
ret i32 %18
}
declare i32 @UINTMAX_C(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/tmp87pqbamh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CHAR_BIT = dso_local global i32 0, align 4
@UINTMAX_MAX = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @bit_mask2(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = zext i32 %4 to i64
%6 = load i32, ptr @CHAR_BIT, align 4
%7 = sext i32 %6 to i64
%8 = mul i64 %7, 4
%9 = icmp uge i64 %5, %8
br i1 %9, label %10, label %12
10: ; preds = %1
%11 = call i32 @UINTMAX_C(i32 noundef -1)
store i32 %11, ptr %2, align 4
br label %17
12: ; preds = %1
%13 = load i32, ptr @UINTMAX_MAX, align 4
%14 = load i32, ptr %3, align 4
%15 = shl i32 %13, %14
%16 = xor i32 %15, -1
store i32 %16, ptr %2, align 4
br label %17
17: ; preds = %12, %10
%18 = load i32, ptr %2, align 4
ret i32 %18
}
declare i32 @UINTMAX_C(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/tmp4b7u11zq.c'
source_filename = "/tmp/tmp4b7u11zq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [178 x i8] c"Usage:\0A\09simuBestop numSimulations processOrNot numProcess\0A\09eg. Simulate 1234 with 4 processes\0A\09simuBestop 1234 p 4\0A\09eg. Simulate 1234 sequentially (1 process)\0A\09simuBestop 1234 s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printUsage() #0 {
%1 = call i32 @puts(ptr noundef @.str)
ret void
}
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/tmp4b7u11zq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [178 x i8] c"Usage:\0A\09simuBestop numSimulations processOrNot numProcess\0A\09eg. Simulate 1234 with 4 processes\0A\09simuBestop 1234 p 4\0A\09eg. Simulate 1234 sequentially (1 process)\0A\09simuBestop 1234 s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printUsage() #0 {
%1 = call i32 @puts(ptr noundef @.str)
ret void
}
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/tmpx69fk0jk.c'
source_filename = "/tmp/tmpx69fk0jk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%F %T\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"%Y%m%d %T\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"%y%m%d %T\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @parse_date_time(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @memset(ptr noundef %6, i8 noundef signext 0, i32 noundef 4)
%8 = load ptr, ptr %3, align 8
%9 = load ptr, ptr %4, align 8
%10 = call ptr @strptime(ptr noundef %8, ptr noundef @.str, ptr noundef %9)
store ptr %10, ptr %5, align 8
%11 = load ptr, ptr %5, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %17
13: ; preds = %2
%14 = load ptr, ptr %3, align 8
%15 = load ptr, ptr %4, align 8
%16 = call ptr @strptime(ptr noundef %14, ptr noundef @.str.1, ptr noundef %15)
store ptr %16, ptr %5, align 8
br label %17
17: ; preds = %13, %2
%18 = load ptr, ptr %5, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %20, label %24
20: ; preds = %17
%21 = load ptr, ptr %3, align 8
%22 = load ptr, ptr %4, align 8
%23 = call ptr @strptime(ptr noundef %21, ptr noundef @.str.2, ptr noundef %22)
store ptr %23, ptr %5, align 8
br label %24
24: ; preds = %20, %17
%25 = load ptr, ptr %5, align 8
%26 = icmp eq ptr %25, null
br i1 %26, label %27, label %31
27: ; preds = %24
%28 = load ptr, ptr %3, align 8
%29 = load ptr, ptr %4, align 8
%30 = call ptr @strptime(ptr noundef %28, ptr noundef @.str.3, ptr noundef %29)
store ptr %30, ptr %5, align 8
br label %31
31: ; preds = %27, %24
%32 = load ptr, ptr %5, align 8
ret ptr %32
}
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare ptr @strptime(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/tmpx69fk0jk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%F %T\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"%Y%m%d %T\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"%y%m%d %T\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @parse_date_time(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @memset(ptr noundef %6, i8 noundef signext 0, i32 noundef 4)
%8 = load ptr, ptr %3, align 8
%9 = load ptr, ptr %4, align 8
%10 = call ptr @strptime(ptr noundef %8, ptr noundef @.str, ptr noundef %9)
store ptr %10, ptr %5, align 8
%11 = load ptr, ptr %5, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %17
13: ; preds = %2
%14 = load ptr, ptr %3, align 8
%15 = load ptr, ptr %4, align 8
%16 = call ptr @strptime(ptr noundef %14, ptr noundef @.str.1, ptr noundef %15)
store ptr %16, ptr %5, align 8
br label %17
17: ; preds = %13, %2
%18 = load ptr, ptr %5, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %20, label %24
20: ; preds = %17
%21 = load ptr, ptr %3, align 8
%22 = load ptr, ptr %4, align 8
%23 = call ptr @strptime(ptr noundef %21, ptr noundef @.str.2, ptr noundef %22)
store ptr %23, ptr %5, align 8
br label %24
24: ; preds = %20, %17
%25 = load ptr, ptr %5, align 8
%26 = icmp eq ptr %25, null
br i1 %26, label %27, label %31
27: ; preds = %24
%28 = load ptr, ptr %3, align 8
%29 = load ptr, ptr %4, align 8
%30 = call ptr @strptime(ptr noundef %28, ptr noundef @.str.3, ptr noundef %29)
store ptr %30, ptr %5, align 8
br label %31
31: ; preds = %27, %24
%32 = load ptr, ptr %5, align 8
ret ptr %32
}
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare ptr @strptime(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/tmp2raf3yds.c'
source_filename = "/tmp/tmp2raf3yds.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @distance(double noundef %0, double noundef %1, double noundef %2, double noundef %3) #0 {
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
store double %0, ptr %5, align 8
store double %1, ptr %6, align 8
store double %2, ptr %7, align 8
store double %3, ptr %8, align 8
%10 = load double, ptr %5, align 8
%11 = load double, ptr %7, align 8
%12 = fsub double %10, %11
%13 = load double, ptr %5, align 8
%14 = load double, ptr %7, align 8
%15 = fsub double %13, %14
%16 = load double, ptr %6, align 8
%17 = load double, ptr %8, align 8
%18 = fsub double %16, %17
%19 = load double, ptr %6, align 8
%20 = load double, ptr %8, align 8
%21 = fsub double %19, %20
%22 = fmul double %18, %21
%23 = call double @llvm.fmuladd.f64(double %12, double %15, double %22)
%24 = call double @sqrt(double noundef %23) #3
store double %24, ptr %9, align 8
%25 = load double, ptr %9, align 8
%26 = call double @llvm.fabs.f64(double %25)
store double %26, ptr %9, align 8
%27 = load double, ptr %9, align 8
ret double %27
}
; Function Attrs: nounwind
declare double @sqrt(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2raf3yds.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @distance(double noundef %0, double noundef %1, double noundef %2, double noundef %3) #0 {
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
store double %0, ptr %5, align 8
store double %1, ptr %6, align 8
store double %2, ptr %7, align 8
store double %3, ptr %8, align 8
%10 = load double, ptr %5, align 8
%11 = load double, ptr %7, align 8
%12 = fsub double %10, %11
%13 = load double, ptr %5, align 8
%14 = load double, ptr %7, align 8
%15 = fsub double %13, %14
%16 = load double, ptr %6, align 8
%17 = load double, ptr %8, align 8
%18 = fsub double %16, %17
%19 = load double, ptr %6, align 8
%20 = load double, ptr %8, align 8
%21 = fsub double %19, %20
%22 = fmul double %18, %21
%23 = call double @llvm.fmuladd.f64(double %12, double %15, double %22)
%24 = call double @sqrt(double noundef %23) #3
store double %24, ptr %9, align 8
%25 = load double, ptr %9, align 8
%26 = call double @llvm.fabs.f64(double %25)
store double %26, ptr %9, align 8
%27 = load double, ptr %9, align 8
ret double %27
}
; Function Attrs: nounwind
declare double @sqrt(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1uvak01d.c'
source_filename = "/tmp/tmp1uvak01d.c"
target datalayout = "e-m:e-p270: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 [22 x i8] c"Syntax: %s tracefile\0A\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [20 x i8] c"Error opening file\0A\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"%05x\0A\00", align 1
@SEEK_CUR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [4096 x i8], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr %4, align 4
%12 = icmp ne i32 %11, 2
br i1 %12, label %13, label %19
13: ; preds = %2
%14 = load i32, ptr @stderr, align 4
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 0
%17 = load ptr, ptr %16, align 8
%18 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %14, ptr noundef @.str, ptr noundef %17)
br label %19
19: ; preds = %13, %2
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
%23 = load i32, ptr @O_RDONLY, align 4
%24 = call i32 @open(ptr noundef %22, i32 noundef %23)
store i32 %24, ptr %9, align 4
%25 = load i32, ptr %9, align 4
%26 = icmp slt i32 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %19
%28 = load i32, ptr @stderr, align 4
%29 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %28, ptr noundef @.str.1)
store i32 1, ptr %3, align 4
br label %105
30: ; preds = %19
br label %31
31: ; preds = %30, %103
%32 = load i32, ptr %9, align 4
%33 = call i32 @read(i32 noundef %32, ptr noundef %6, i32 noundef 4096)
store i32 %33, ptr %8, align 4
store i32 2, ptr %10, align 4
br label %34
34: ; preds = %78, %31
%35 = load i32, ptr %10, align 4
%36 = load i32, ptr %8, align 4
%37 = icmp slt i32 %35, %36
br i1 %37, label %38, label %81
38: ; preds = %34
%39 = load i32, ptr %10, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 %40
%42 = load i8, ptr %41, align 1
%43 = sext i8 %42 to i32
%44 = and i32 %43, 192
%45 = icmp eq i32 %44, 192
br i1 %45, label %46, label %77
46: ; preds = %38
%47 = load i32, ptr %10, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 %48
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = and i32 %51, 63
store i32 %52, ptr %7, align 4
%53 = load i32, ptr %7, align 4
%54 = shl i32 %53, 7
%55 = load i32, ptr %10, align 4
%56 = sub nsw i32 %55, 1
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 %57
%59 = load i8, ptr %58, align 1
%60 = sext i8 %59 to i32
%61 = and i32 %60, 127
%62 = or i32 %54, %61
store i32 %62, ptr %7, align 4
%63 = load i32, ptr %7, align 4
%64 = shl i32 %63, 7
%65 = load i32, ptr %10, align 4
%66 = sub nsw i32 %65, 2
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 %67
%69 = load i8, ptr %68, align 1
%70 = sext i8 %69 to i32
%71 = and i32 %70, 127
%72 = or i32 %64, %71
store i32 %72, ptr %7, align 4
%73 = load i32, ptr %7, align 4
%74 = call i32 @printf(ptr noundef @.str.2, i32 noundef %73)
%75 = load i32, ptr %10, align 4
%76 = add nsw i32 %75, 2
store i32 %76, ptr %10, align 4
br label %77
77: ; preds = %46, %38
br label %78
78: ; preds = %77
%79 = load i32, ptr %10, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %10, align 4
br label %34, !llvm.loop !6
81: ; preds = %34
%82 = load i32, ptr %10, align 4
%83 = load i32, ptr %8, align 4
%84 = add nsw i32 %83, 1
%85 = icmp eq i32 %82, %84
br i1 %85, label %86, label %90
86: ; preds = %81
%87 = load i32, ptr %9, align 4
%88 = load i32, ptr @SEEK_CUR, align 4
%89 = call i32 @lseek(i32 noundef %87, i32 noundef -1, i32 noundef %88)
br label %99
90: ; preds = %81
%91 = load i32, ptr %10, align 4
%92 = load i32, ptr %8, align 4
%93 = icmp eq i32 %91, %92
br i1 %93, label %94, label %98
94: ; preds = %90
%95 = load i32, ptr %9, align 4
%96 = load i32, ptr @SEEK_CUR, align 4
%97 = call i32 @lseek(i32 noundef %95, i32 noundef 2, i32 noundef %96)
br label %98
98: ; preds = %94, %90
br label %99
99: ; preds = %98, %86
%100 = load i32, ptr %8, align 4
%101 = icmp slt i32 %100, 4096
br i1 %101, label %102, label %103
102: ; preds = %99
br label %104
103: ; preds = %99
br label %31
104: ; preds = %102
store i32 0, ptr %3, align 4
br label %105
105: ; preds = %104, %27
%106 = load i32, ptr %3, align 4
ret i32 %106
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @lseek(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1uvak01d.c"
target datalayout = "e-m:e-p270: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 [22 x i8] c"Syntax: %s tracefile\0A\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [20 x i8] c"Error opening file\0A\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"%05x\0A\00", align 1
@SEEK_CUR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [4096 x i8], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr %4, align 4
%12 = icmp ne i32 %11, 2
br i1 %12, label %13, label %19
13: ; preds = %2
%14 = load i32, ptr @stderr, align 4
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 0
%17 = load ptr, ptr %16, align 8
%18 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %14, ptr noundef @.str, ptr noundef %17)
br label %19
19: ; preds = %13, %2
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
%23 = load i32, ptr @O_RDONLY, align 4
%24 = call i32 @open(ptr noundef %22, i32 noundef %23)
store i32 %24, ptr %9, align 4
%25 = load i32, ptr %9, align 4
%26 = icmp slt i32 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %19
%28 = load i32, ptr @stderr, align 4
%29 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %28, ptr noundef @.str.1)
store i32 1, ptr %3, align 4
br label %106
30: ; preds = %19
br label %31
31: ; preds = %101, %30
%32 = load i32, ptr %9, align 4
%33 = call i32 @read(i32 noundef %32, ptr noundef %6, i32 noundef 4096)
store i32 %33, ptr %8, align 4
store i32 2, ptr %10, align 4
%34 = load i32, ptr %10, align 4
%35 = load i32, ptr %8, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %.lr.ph, label %83
.lr.ph: ; preds = %31
br label %37
37: ; preds = %.lr.ph, %77
%38 = load i32, ptr %10, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 %39
%41 = load i8, ptr %40, align 1
%42 = sext i8 %41 to i32
%43 = and i32 %42, 192
%44 = icmp eq i32 %43, 192
br i1 %44, label %45, label %76
45: ; preds = %37
%46 = load i32, ptr %10, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 %47
%49 = load i8, ptr %48, align 1
%50 = sext i8 %49 to i32
%51 = and i32 %50, 63
store i32 %51, ptr %7, align 4
%52 = load i32, ptr %7, align 4
%53 = shl i32 %52, 7
%54 = load i32, ptr %10, align 4
%55 = sub nsw i32 %54, 1
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 %56
%58 = load i8, ptr %57, align 1
%59 = sext i8 %58 to i32
%60 = and i32 %59, 127
%61 = or i32 %53, %60
store i32 %61, ptr %7, align 4
%62 = load i32, ptr %7, align 4
%63 = shl i32 %62, 7
%64 = load i32, ptr %10, align 4
%65 = sub nsw i32 %64, 2
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 %66
%68 = load i8, ptr %67, align 1
%69 = sext i8 %68 to i32
%70 = and i32 %69, 127
%71 = or i32 %63, %70
store i32 %71, ptr %7, align 4
%72 = load i32, ptr %7, align 4
%73 = call i32 @printf(ptr noundef @.str.2, i32 noundef %72)
%74 = load i32, ptr %10, align 4
%75 = add nsw i32 %74, 2
store i32 %75, ptr %10, align 4
br label %76
76: ; preds = %45, %37
br label %77
77: ; preds = %76
%78 = load i32, ptr %10, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %10, align 4
%80 = load i32, ptr %10, align 4
%81 = load i32, ptr %8, align 4
%82 = icmp slt i32 %80, %81
br i1 %82, label %37, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %77
br label %83
83: ; preds = %._crit_edge, %31
%84 = load i32, ptr %10, align 4
%85 = load i32, ptr %8, align 4
%86 = add nsw i32 %85, 1
%87 = icmp eq i32 %84, %86
br i1 %87, label %88, label %92
88: ; preds = %83
%89 = load i32, ptr %9, align 4
%90 = load i32, ptr @SEEK_CUR, align 4
%91 = call i32 @lseek(i32 noundef %89, i32 noundef -1, i32 noundef %90)
br label %101
92: ; preds = %83
%93 = load i32, ptr %10, align 4
%94 = load i32, ptr %8, align 4
%95 = icmp eq i32 %93, %94
br i1 %95, label %96, label %100
96: ; preds = %92
%97 = load i32, ptr %9, align 4
%98 = load i32, ptr @SEEK_CUR, align 4
%99 = call i32 @lseek(i32 noundef %97, i32 noundef 2, i32 noundef %98)
br label %100
100: ; preds = %96, %92
br label %101
101: ; preds = %100, %88
%102 = load i32, ptr %8, align 4
%103 = icmp slt i32 %102, 4096
br i1 %103, label %104, label %31
104: ; preds = %101
br label %105
105: ; preds = %104
store i32 0, ptr %3, align 4
br label %106
106: ; preds = %105, %27
%107 = load i32, ptr %3, align 4
ret i32 %107
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @lseek(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp_mav3o95.c'
source_filename = "/tmp/tmp_mav3o95.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @queryall(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %9
9: ; preds = %24, %3
%10 = load i32, ptr %8, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %27
13: ; preds = %9
%14 = load ptr, ptr %6, align 8
%15 = load i32, ptr %8, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i32, ptr %14, i64 %16
%18 = load i32, ptr %17, align 4
%19 = load i32, ptr %7, align 4
%20 = call i64 @querycns(i32 noundef 2, i32 noundef %18, i32 noundef %19, i32 noundef 0, ptr noundef null)
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %13
store i32 -1, ptr %4, align 4
br label %28
23: ; preds = %13
br label %24
24: ; preds = %23
%25 = load i32, ptr %8, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %8, align 4
br label %9, !llvm.loop !6
27: ; preds = %9
store i32 0, ptr %4, align 4
br label %28
28: ; preds = %27, %22
%29 = load i32, ptr %4, align 4
ret i32 %29
}
declare i64 @querycns(i32 noundef, i32 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_mav3o95.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @queryall(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
%9 = load i32, ptr %8, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph, label %29
.lr.ph: ; preds = %3
br label %12
12: ; preds = %.lr.ph, %23
%13 = load ptr, ptr %6, align 8
%14 = load i32, ptr %8, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i32, ptr %13, i64 %15
%17 = load i32, ptr %16, align 4
%18 = load i32, ptr %7, align 4
%19 = call i64 @querycns(i32 noundef 2, i32 noundef %17, i32 noundef %18, i32 noundef 0, ptr noundef null)
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %12
store i32 -1, ptr %4, align 4
br label %30
22: ; preds = %12
br label %23
23: ; preds = %22
%24 = load i32, ptr %8, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %8, align 4
%26 = load i32, ptr %8, align 4
%27 = load i32, ptr %5, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %29
29: ; preds = %._crit_edge, %3
store i32 0, ptr %4, align 4
br label %30
30: ; preds = %29, %21
%31 = load i32, ptr %4, align 4
ret i32 %31
}
declare i64 @querycns(i32 noundef, i32 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpre1gki4b.c'
source_filename = "/tmp/tmpre1gki4b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"YES\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"yes\00", align 1
@.str.2 = private unnamed_addr constant [53 x i8] c"\09 \09 \1B[31m List of the File Formats \1B[0m \0A\00", align 1
@.str.3 = private unnamed_addr constant [67 x i8] c"\0A\09 \09file format type abbre. index | file format type abbre. index\00", align 1
@.str.4 = private unnamed_addr constant [68 x i8] c"\0A\09\09--------------------------------------------------------------- \00", align 1
@.str.5 = private unnamed_addr constant [66 x i8] c"\0A\09\09Antechamber ac 1 | Sybyl Mol2 mol2 2 \00", align 1
@.str.6 = private unnamed_addr constant [66 x i8] c"\0A\09\09PDB pdb 3 | Modified PDB mpdb 4 \00", align 1
@.str.7 = private unnamed_addr constant [66 x i8] c"\0A\09\09AMBER PREP (int) prepi 5 | AMBER PREP (car) prepc 6 \00", align 1
@.str.8 = private unnamed_addr constant [66 x i8] c"\0A\09\09Gaussian Z-Matrix gzmat 7 | Gaussian Cartesian gcrt 8 \00", align 1
@.str.9 = private unnamed_addr constant [66 x i8] c"\0A\09\09Mopac Internal mopint 9 | Mopac Cartesian mopcrt 10 \00", align 1
@.str.10 = private unnamed_addr constant [66 x i8] c"\0A\09\09Gaussian Output gout 11 | Mopac Output mopout 12 \00", align 1
@.str.11 = private unnamed_addr constant [66 x i8] c"\0A\09\09Alchemy alc 13 | CSD csd 14 \00", align 1
@.str.12 = private unnamed_addr constant [66 x i8] c"\0A\09\09MDL mdl 15 | Hyper hin 16 \00", align 1
@.str.13 = private unnamed_addr constant [66 x i8] c"\0A\09\09AMBER Restart rst 17 | Jaguar Cartesian jcrt 18 \00", align 1
@.str.14 = private unnamed_addr constant [65 x i8] c"\0A\09\09Jaguar Z-Matrix jzmat 19 | Jaguar Output jout 20\00", align 1
@.str.15 = private unnamed_addr constant [65 x i8] c"\0A\09\09Divcon Input divcrt 21 | Divcon Output divout 22\00", align 1
@.str.16 = private unnamed_addr constant [65 x i8] c"\0A\09\09SQM Input sqmcrt 23 | SQM Output sqmout 24\00", align 1
@.str.17 = private unnamed_addr constant [65 x i8] c"\0A\09\09Charmm charmm 25 | Gaussian ESP gesp 26\00", align 1
@.str.18 = private unnamed_addr constant [65 x i8] c"\0A\09\09Component cif ccif 27 | \00", align 1
@.str.19 = private unnamed_addr constant [67 x i8] c"\0A\09\09--------------------------------------------------------------\0A\00", align 1
@.str.20 = private unnamed_addr constant [76 x i8] c" AMBER restart file can only be read in as additional file.\0A\00", align 1
@.str.21 = private unnamed_addr constant [56 x i8] c"\0A\09 \09 \1B[31m List of the Charge Methods \1B[0m \0A\00", align 1
@.str.22 = private unnamed_addr constant [67 x i8] c"\0A\09\09charge method abbre. index | charge method abbre. index\00", align 1
@.str.23 = private unnamed_addr constant [70 x i8] c"\0A\09\09---------------------------------------------------------------- \00", align 1
@.str.24 = private unnamed_addr constant [66 x i8] c"\0A\09\09RESP resp 1 | AM1-BCC bcc 2\00", align 1
@.str.25 = private unnamed_addr constant [66 x i8] c"\0A\09\09CM1 cm1 3 | CM2 cm2 4\00", align 1
@.str.26 = private unnamed_addr constant [66 x i8] c"\0A\09\09ESP (Kollman) esp 5 | Mulliken mul 6\00", align 1
@.str.27 = private unnamed_addr constant [66 x i8] c"\0A\09\09Gasteiger gas 7 | Read in charge rc 8\00", align 1
@.str.28 = private unnamed_addr constant [66 x i8] c"\0A\09\09Write out charge wc 9 | Delete Charge dc 10\00", align 1
@.str.29 = private unnamed_addr constant [69 x i8] c"\0A\09\09----------------------------------------------------------------\0A\00", align 1
@.str.30 = private unnamed_addr constant [43 x i8] c"\09 \09 List of the File Formats \0A\00", align 1
@.str.31 = private unnamed_addr constant [46 x i8] c"\0A\09 \09 List of the Charge Methods \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @list() #0 {
%1 = call i64 @strcmp(ptr noundef @.str, ptr noundef @.str)
%2 = icmp eq i64 %1, 0
br i1 %2, label %6, label %3
3: ; preds = %0
%4 = call i64 @strcmp(ptr noundef @.str, ptr noundef @.str.1)
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %35
6: ; preds = %3, %0
%7 = call i32 @printf(ptr noundef @.str.2)
%8 = call i32 @printf(ptr noundef @.str.3)
%9 = call i32 @printf(ptr noundef @.str.4)
%10 = call i32 @printf(ptr noundef @.str.5)
%11 = call i32 @printf(ptr noundef @.str.6)
%12 = call i32 @printf(ptr noundef @.str.7)
%13 = call i32 @printf(ptr noundef @.str.8)
%14 = call i32 @printf(ptr noundef @.str.9)
%15 = call i32 @printf(ptr noundef @.str.10)
%16 = call i32 @printf(ptr noundef @.str.11)
%17 = call i32 @printf(ptr noundef @.str.12)
%18 = call i32 @printf(ptr noundef @.str.13)
%19 = call i32 @printf(ptr noundef @.str.14)
%20 = call i32 @printf(ptr noundef @.str.15)
%21 = call i32 @printf(ptr noundef @.str.16)
%22 = call i32 @printf(ptr noundef @.str.17)
%23 = call i32 @printf(ptr noundef @.str.18)
%24 = call i32 @printf(ptr noundef @.str.19)
%25 = call i32 @printf(ptr noundef @.str.20)
%26 = call i32 @printf(ptr noundef @.str.21)
%27 = call i32 @printf(ptr noundef @.str.22)
%28 = call i32 @printf(ptr noundef @.str.23)
%29 = call i32 @printf(ptr noundef @.str.24)
%30 = call i32 @printf(ptr noundef @.str.25)
%31 = call i32 @printf(ptr noundef @.str.26)
%32 = call i32 @printf(ptr noundef @.str.27)
%33 = call i32 @printf(ptr noundef @.str.28)
%34 = call i32 @printf(ptr noundef @.str.29)
br label %64
35: ; preds = %3
%36 = call i32 @printf(ptr noundef @.str.30)
%37 = call i32 @printf(ptr noundef @.str.3)
%38 = call i32 @printf(ptr noundef @.str.4)
%39 = call i32 @printf(ptr noundef @.str.5)
%40 = call i32 @printf(ptr noundef @.str.6)
%41 = call i32 @printf(ptr noundef @.str.7)
%42 = call i32 @printf(ptr noundef @.str.8)
%43 = call i32 @printf(ptr noundef @.str.9)
%44 = call i32 @printf(ptr noundef @.str.10)
%45 = call i32 @printf(ptr noundef @.str.11)
%46 = call i32 @printf(ptr noundef @.str.12)
%47 = call i32 @printf(ptr noundef @.str.13)
%48 = call i32 @printf(ptr noundef @.str.14)
%49 = call i32 @printf(ptr noundef @.str.15)
%50 = call i32 @printf(ptr noundef @.str.16)
%51 = call i32 @printf(ptr noundef @.str.17)
%52 = call i32 @printf(ptr noundef @.str.18)
%53 = call i32 @printf(ptr noundef @.str.19)
%54 = call i32 @printf(ptr noundef @.str.20)
%55 = call i32 @printf(ptr noundef @.str.31)
%56 = call i32 @printf(ptr noundef @.str.22)
%57 = call i32 @printf(ptr noundef @.str.23)
%58 = call i32 @printf(ptr noundef @.str.24)
%59 = call i32 @printf(ptr noundef @.str.25)
%60 = call i32 @printf(ptr noundef @.str.26)
%61 = call i32 @printf(ptr noundef @.str.27)
%62 = call i32 @printf(ptr noundef @.str.28)
%63 = call i32 @printf(ptr noundef @.str.29)
br label %64
64: ; preds = %35, %6
ret void
}
declare i64 @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/tmpre1gki4b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"YES\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"yes\00", align 1
@.str.2 = private unnamed_addr constant [53 x i8] c"\09 \09 \1B[31m List of the File Formats \1B[0m \0A\00", align 1
@.str.3 = private unnamed_addr constant [67 x i8] c"\0A\09 \09file format type abbre. index | file format type abbre. index\00", align 1
@.str.4 = private unnamed_addr constant [68 x i8] c"\0A\09\09--------------------------------------------------------------- \00", align 1
@.str.5 = private unnamed_addr constant [66 x i8] c"\0A\09\09Antechamber ac 1 | Sybyl Mol2 mol2 2 \00", align 1
@.str.6 = private unnamed_addr constant [66 x i8] c"\0A\09\09PDB pdb 3 | Modified PDB mpdb 4 \00", align 1
@.str.7 = private unnamed_addr constant [66 x i8] c"\0A\09\09AMBER PREP (int) prepi 5 | AMBER PREP (car) prepc 6 \00", align 1
@.str.8 = private unnamed_addr constant [66 x i8] c"\0A\09\09Gaussian Z-Matrix gzmat 7 | Gaussian Cartesian gcrt 8 \00", align 1
@.str.9 = private unnamed_addr constant [66 x i8] c"\0A\09\09Mopac Internal mopint 9 | Mopac Cartesian mopcrt 10 \00", align 1
@.str.10 = private unnamed_addr constant [66 x i8] c"\0A\09\09Gaussian Output gout 11 | Mopac Output mopout 12 \00", align 1
@.str.11 = private unnamed_addr constant [66 x i8] c"\0A\09\09Alchemy alc 13 | CSD csd 14 \00", align 1
@.str.12 = private unnamed_addr constant [66 x i8] c"\0A\09\09MDL mdl 15 | Hyper hin 16 \00", align 1
@.str.13 = private unnamed_addr constant [66 x i8] c"\0A\09\09AMBER Restart rst 17 | Jaguar Cartesian jcrt 18 \00", align 1
@.str.14 = private unnamed_addr constant [65 x i8] c"\0A\09\09Jaguar Z-Matrix jzmat 19 | Jaguar Output jout 20\00", align 1
@.str.15 = private unnamed_addr constant [65 x i8] c"\0A\09\09Divcon Input divcrt 21 | Divcon Output divout 22\00", align 1
@.str.16 = private unnamed_addr constant [65 x i8] c"\0A\09\09SQM Input sqmcrt 23 | SQM Output sqmout 24\00", align 1
@.str.17 = private unnamed_addr constant [65 x i8] c"\0A\09\09Charmm charmm 25 | Gaussian ESP gesp 26\00", align 1
@.str.18 = private unnamed_addr constant [65 x i8] c"\0A\09\09Component cif ccif 27 | \00", align 1
@.str.19 = private unnamed_addr constant [67 x i8] c"\0A\09\09--------------------------------------------------------------\0A\00", align 1
@.str.20 = private unnamed_addr constant [76 x i8] c" AMBER restart file can only be read in as additional file.\0A\00", align 1
@.str.21 = private unnamed_addr constant [56 x i8] c"\0A\09 \09 \1B[31m List of the Charge Methods \1B[0m \0A\00", align 1
@.str.22 = private unnamed_addr constant [67 x i8] c"\0A\09\09charge method abbre. index | charge method abbre. index\00", align 1
@.str.23 = private unnamed_addr constant [70 x i8] c"\0A\09\09---------------------------------------------------------------- \00", align 1
@.str.24 = private unnamed_addr constant [66 x i8] c"\0A\09\09RESP resp 1 | AM1-BCC bcc 2\00", align 1
@.str.25 = private unnamed_addr constant [66 x i8] c"\0A\09\09CM1 cm1 3 | CM2 cm2 4\00", align 1
@.str.26 = private unnamed_addr constant [66 x i8] c"\0A\09\09ESP (Kollman) esp 5 | Mulliken mul 6\00", align 1
@.str.27 = private unnamed_addr constant [66 x i8] c"\0A\09\09Gasteiger gas 7 | Read in charge rc 8\00", align 1
@.str.28 = private unnamed_addr constant [66 x i8] c"\0A\09\09Write out charge wc 9 | Delete Charge dc 10\00", align 1
@.str.29 = private unnamed_addr constant [69 x i8] c"\0A\09\09----------------------------------------------------------------\0A\00", align 1
@.str.30 = private unnamed_addr constant [43 x i8] c"\09 \09 List of the File Formats \0A\00", align 1
@.str.31 = private unnamed_addr constant [46 x i8] c"\0A\09 \09 List of the Charge Methods \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @list() #0 {
%1 = call i64 @strcmp(ptr noundef @.str, ptr noundef @.str)
%2 = icmp eq i64 %1, 0
br i1 %2, label %6, label %3
3: ; preds = %0
%4 = call i64 @strcmp(ptr noundef @.str, ptr noundef @.str.1)
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %35
6: ; preds = %3, %0
%7 = call i32 @printf(ptr noundef @.str.2)
%8 = call i32 @printf(ptr noundef @.str.3)
%9 = call i32 @printf(ptr noundef @.str.4)
%10 = call i32 @printf(ptr noundef @.str.5)
%11 = call i32 @printf(ptr noundef @.str.6)
%12 = call i32 @printf(ptr noundef @.str.7)
%13 = call i32 @printf(ptr noundef @.str.8)
%14 = call i32 @printf(ptr noundef @.str.9)
%15 = call i32 @printf(ptr noundef @.str.10)
%16 = call i32 @printf(ptr noundef @.str.11)
%17 = call i32 @printf(ptr noundef @.str.12)
%18 = call i32 @printf(ptr noundef @.str.13)
%19 = call i32 @printf(ptr noundef @.str.14)
%20 = call i32 @printf(ptr noundef @.str.15)
%21 = call i32 @printf(ptr noundef @.str.16)
%22 = call i32 @printf(ptr noundef @.str.17)
%23 = call i32 @printf(ptr noundef @.str.18)
%24 = call i32 @printf(ptr noundef @.str.19)
%25 = call i32 @printf(ptr noundef @.str.20)
%26 = call i32 @printf(ptr noundef @.str.21)
%27 = call i32 @printf(ptr noundef @.str.22)
%28 = call i32 @printf(ptr noundef @.str.23)
%29 = call i32 @printf(ptr noundef @.str.24)
%30 = call i32 @printf(ptr noundef @.str.25)
%31 = call i32 @printf(ptr noundef @.str.26)
%32 = call i32 @printf(ptr noundef @.str.27)
%33 = call i32 @printf(ptr noundef @.str.28)
%34 = call i32 @printf(ptr noundef @.str.29)
br label %64
35: ; preds = %3
%36 = call i32 @printf(ptr noundef @.str.30)
%37 = call i32 @printf(ptr noundef @.str.3)
%38 = call i32 @printf(ptr noundef @.str.4)
%39 = call i32 @printf(ptr noundef @.str.5)
%40 = call i32 @printf(ptr noundef @.str.6)
%41 = call i32 @printf(ptr noundef @.str.7)
%42 = call i32 @printf(ptr noundef @.str.8)
%43 = call i32 @printf(ptr noundef @.str.9)
%44 = call i32 @printf(ptr noundef @.str.10)
%45 = call i32 @printf(ptr noundef @.str.11)
%46 = call i32 @printf(ptr noundef @.str.12)
%47 = call i32 @printf(ptr noundef @.str.13)
%48 = call i32 @printf(ptr noundef @.str.14)
%49 = call i32 @printf(ptr noundef @.str.15)
%50 = call i32 @printf(ptr noundef @.str.16)
%51 = call i32 @printf(ptr noundef @.str.17)
%52 = call i32 @printf(ptr noundef @.str.18)
%53 = call i32 @printf(ptr noundef @.str.19)
%54 = call i32 @printf(ptr noundef @.str.20)
%55 = call i32 @printf(ptr noundef @.str.31)
%56 = call i32 @printf(ptr noundef @.str.22)
%57 = call i32 @printf(ptr noundef @.str.23)
%58 = call i32 @printf(ptr noundef @.str.24)
%59 = call i32 @printf(ptr noundef @.str.25)
%60 = call i32 @printf(ptr noundef @.str.26)
%61 = call i32 @printf(ptr noundef @.str.27)
%62 = call i32 @printf(ptr noundef @.str.28)
%63 = call i32 @printf(ptr noundef @.str.29)
br label %64
64: ; preds = %35, %6
ret void
}
declare i64 @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/tmpc1x8l5qi.c'
source_filename = "/tmp/tmpc1x8l5qi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @io_get_interrupt_polarity() #0 {
%1 = call i32 @read_byte_data(i32 noundef 32, i32 noundef 10)
%2 = call i32 @checkbit(i32 noundef %1, i32 noundef 1)
ret i32 %2
}
declare i32 @checkbit(i32 noundef, i32 noundef) #1
declare i32 @read_byte_data(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/tmpc1x8l5qi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @io_get_interrupt_polarity() #0 {
%1 = call i32 @read_byte_data(i32 noundef 32, i32 noundef 10)
%2 = call i32 @checkbit(i32 noundef %1, i32 noundef 1)
ret i32 %2
}
declare i32 @checkbit(i32 noundef, i32 noundef) #1
declare i32 @read_byte_data(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/tmpy8k4t_ns.c'
source_filename = "/tmp/tmpy8k4t_ns.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @closeConnection(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @close(i32 noundef %3)
ret void
}
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy8k4t_ns.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @closeConnection(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @close(i32 noundef %3)
ret void
}
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyqsmh7p7.c'
source_filename = "/tmp/tmpyqsmh7p7.c"
target datalayout = "e-m:e-p270: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/tmpyqsmh7p7.c"
target datalayout = "e-m:e-p270: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/tmpbgxjlxc8.c'
source_filename = "/tmp/tmpbgxjlxc8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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%c%c%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print4CharCode(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%7 = load i32, ptr %2, align 4
%8 = and i32 %7, -16777216
%9 = lshr i32 %8, 24
store i32 %9, ptr %3, align 4
%10 = load i32, ptr %2, align 4
%11 = and i32 %10, 16711680
%12 = ashr i32 %11, 16
store i32 %12, ptr %4, align 4
%13 = load i32, ptr %2, align 4
%14 = and i32 %13, 65280
%15 = ashr i32 %14, 8
store i32 %15, ptr %5, align 4
%16 = load i32, ptr %2, align 4
%17 = and i32 %16, 255
store i32 %17, ptr %6, align 4
%18 = load i32, ptr %3, align 4
%19 = load i32, ptr %4, align 4
%20 = load i32, ptr %5, align 4
%21 = load i32, ptr %6, align 4
%22 = call i32 @printf(ptr noundef @.str, i32 noundef %18, i32 noundef %19, i32 noundef %20, i32 noundef %21)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbgxjlxc8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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%c%c%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print4CharCode(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%7 = load i32, ptr %2, align 4
%8 = and i32 %7, -16777216
%9 = lshr i32 %8, 24
store i32 %9, ptr %3, align 4
%10 = load i32, ptr %2, align 4
%11 = and i32 %10, 16711680
%12 = ashr i32 %11, 16
store i32 %12, ptr %4, align 4
%13 = load i32, ptr %2, align 4
%14 = and i32 %13, 65280
%15 = ashr i32 %14, 8
store i32 %15, ptr %5, align 4
%16 = load i32, ptr %2, align 4
%17 = and i32 %16, 255
store i32 %17, ptr %6, align 4
%18 = load i32, ptr %3, align 4
%19 = load i32, ptr %4, align 4
%20 = load i32, ptr %5, align 4
%21 = load i32, ptr %6, align 4
%22 = call i32 @printf(ptr noundef @.str, i32 noundef %18, i32 noundef %19, i32 noundef %20, i32 noundef %21)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_t87hitb.c'
source_filename = "/tmp/tmp_t87hitb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_t87hitb.c"
target datalayout = "e-m:e-p270: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/tmpb665bqsi.c'
source_filename = "/tmp/tmpb665bqsi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @uart_send(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
br label %3
3: ; preds = %1, %8
%4 = call i32 @GET32(i32 noundef 1059147860)
%5 = and i32 %4, 32
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %3
br label %9
8: ; preds = %3
br label %3
9: ; preds = %7
%10 = load i32, ptr %2, align 4
%11 = call i32 @PUT32(i32 noundef 1059147840, i32 noundef %10)
ret void
}
declare i32 @GET32(i32 noundef) #1
declare i32 @PUT32(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/tmpb665bqsi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @uart_send(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
br label %3
3: ; preds = %3, %1
%4 = call i32 @GET32(i32 noundef 1059147860)
%5 = and i32 %4, 32
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %3
7: ; preds = %3
br label %8
8: ; preds = %7
%9 = load i32, ptr %2, align 4
%10 = call i32 @PUT32(i32 noundef 1059147840, i32 noundef %9)
ret void
}
declare i32 @GET32(i32 noundef) #1
declare i32 @PUT32(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/tmpsid10bg3.c'
source_filename = "/tmp/tmpsid10bg3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"tata\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 @fopen(ptr noundef @.str, ptr noundef @.str.1)
ret i32 0
}
declare i32 @fopen(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/tmpsid10bg3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"tata\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 @fopen(ptr noundef @.str, ptr noundef @.str.1)
ret i32 0
}
declare i32 @fopen(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/tmpg7bm4w_o.c'
source_filename = "/tmp/tmpg7bm4w_o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"Problem connecting socket: %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_error() #0 {
%1 = load i32, ptr @errno, align 4
%2 = call ptr @strerror(i32 noundef %1)
%3 = call i32 @printf(ptr noundef @.str, ptr noundef %2)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpg7bm4w_o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"Problem connecting socket: %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_error() #0 {
%1 = load i32, ptr @errno, align 4
%2 = call ptr @strerror(i32 noundef %1)
%3 = call i32 @printf(ptr noundef @.str, ptr noundef %2)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9kbnpbtt.c'
source_filename = "/tmp/tmp9kbnpbtt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @str_array_resize(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = mul nsw i32 %7, 2
%9 = call ptr @str_array_create(i32 noundef %8)
store ptr %9, ptr %5, align 8
store i32 0, ptr %6, align 4
br label %10
10: ; preds = %24, %2
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %27
14: ; preds = %10
%15 = load ptr, ptr %3, align 8
%16 = load i32, ptr %6, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds ptr, ptr %15, i64 %17
%19 = load ptr, ptr %18, align 8
%20 = load ptr, ptr %5, align 8
%21 = load i32, ptr %6, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds ptr, ptr %20, i64 %22
store ptr %19, ptr %23, align 8
br label %24
24: ; preds = %14
%25 = load i32, ptr %6, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %6, align 4
br label %10, !llvm.loop !6
27: ; preds = %10
%28 = load ptr, ptr %5, align 8
ret ptr %28
}
declare ptr @str_array_create(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/tmp9kbnpbtt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @str_array_resize(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = mul nsw i32 %7, 2
%9 = call ptr @str_array_create(i32 noundef %8)
store ptr %9, ptr %5, align 8
store i32 0, ptr %6, align 4
%10 = load i32, ptr %6, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %.lr.ph, label %29
.lr.ph: ; preds = %2
br label %13
13: ; preds = %.lr.ph, %23
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %6, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds ptr, ptr %14, i64 %16
%18 = load ptr, ptr %17, align 8
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %6, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds ptr, ptr %19, i64 %21
store ptr %18, ptr %22, align 8
br label %23
23: ; preds = %13
%24 = load i32, ptr %6, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %6, align 4
%26 = load i32, ptr %6, align 4
%27 = load i32, ptr %4, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %29
29: ; preds = %._crit_edge, %2
%30 = load ptr, ptr %5, align 8
ret ptr %30
}
declare ptr @str_array_create(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/tmpi8d6gw3j.c'
source_filename = "/tmp/tmpi8d6gw3j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isspace.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isspace should be 0 for 0xab\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isspace_0xab() #0 {
%1 = call i64 @isspace(i32 noundef 171)
%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 860, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isspace(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi8d6gw3j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isspace.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isspace should be 0 for 0xab\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isspace_0xab() #0 {
%1 = call i64 @isspace(i32 noundef 171)
%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 860, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isspace(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwhxtahrz.c'
source_filename = "/tmp/tmpwhxtahrz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@LOG_NOTICE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [22 x i8] c"First daemon started.\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"daemon working\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @skeleton_daemon()
%3 = load i32, ptr @LOG_NOTICE, align 4
%4 = call i32 @syslog(i32 noundef %3, ptr noundef @.str)
br label %5
5: ; preds = %0, %5
%6 = load i32, ptr @LOG_NOTICE, align 4
%7 = call i32 @syslog(i32 noundef %6, ptr noundef @.str.1)
%8 = call i32 @sleep(i32 noundef 4)
br label %5
}
declare i32 @skeleton_daemon(...) #1
declare i32 @syslog(i32 noundef, ptr noundef) #1
declare i32 @sleep(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/tmpwhxtahrz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@LOG_NOTICE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [22 x i8] c"First daemon started.\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"daemon working\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @skeleton_daemon()
%3 = load i32, ptr @LOG_NOTICE, align 4
%4 = call i32 @syslog(i32 noundef %3, ptr noundef @.str)
br label %5
5: ; preds = %5, %0
%6 = load i32, ptr @LOG_NOTICE, align 4
%7 = call i32 @syslog(i32 noundef %6, ptr noundef @.str.1)
%8 = call i32 @sleep(i32 noundef 4)
br label %5
}
declare i32 @skeleton_daemon(...) #1
declare i32 @syslog(i32 noundef, ptr noundef) #1
declare i32 @sleep(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/tmpgm4kqca8.c'
source_filename = "/tmp/tmpgm4kqca8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mov_reg32_preg64x4pimm32(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = call i32 @put8(i32 noundef 139)
%8 = load i32, ptr %4, align 4
%9 = shl i32 %8, 3
%10 = or i32 %9, 4
%11 = call i32 @put8(i32 noundef %10)
%12 = load i32, ptr %5, align 4
%13 = shl i32 %12, 3
%14 = or i32 128, %13
%15 = or i32 %14, 5
%16 = call i32 @put8(i32 noundef %15)
%17 = load i32, ptr %6, align 4
%18 = call i32 @put32(i32 noundef %17)
ret void
}
declare i32 @put8(i32 noundef) #1
declare i32 @put32(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/tmpgm4kqca8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mov_reg32_preg64x4pimm32(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = call i32 @put8(i32 noundef 139)
%8 = load i32, ptr %4, align 4
%9 = shl i32 %8, 3
%10 = or i32 %9, 4
%11 = call i32 @put8(i32 noundef %10)
%12 = load i32, ptr %5, align 4
%13 = shl i32 %12, 3
%14 = or i32 128, %13
%15 = or i32 %14, 5
%16 = call i32 @put8(i32 noundef %15)
%17 = load i32, ptr %6, align 4
%18 = call i32 @put32(i32 noundef %17)
ret void
}
declare i32 @put8(i32 noundef) #1
declare i32 @put32(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpu_il3gsx.c'
source_filename = "/tmp/tmpu_il3gsx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [34 x i8] c"Non-positive number of tab stops.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @utf8_strsw_with_tabs(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i64 0, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp sgt i32 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %2
br label %11
11: ; preds = %10, %2
%12 = phi i1 [ false, %2 ], [ true, %10 ]
%13 = zext i1 %12 to i32
%14 = call i32 @assert(i32 noundef %13)
br label %15
15: ; preds = %42, %11
%16 = load ptr, ptr %3, align 8
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %49
20: ; preds = %15
%21 = load ptr, ptr %3, align 8
%22 = call i64 @utf8_chrw(ptr noundef %21)
store i64 %22, ptr %7, align 8
%23 = load i64, ptr %7, align 8
%24 = icmp eq i64 %23, 1
br i1 %24, label %25, label %38
25: ; preds = %20
%26 = load ptr, ptr %3, align 8
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp eq i32 %28, 9
br i1 %29, label %30, label %38
30: ; preds = %25
%31 = load i32, ptr %4, align 4
%32 = sext i32 %31 to i64
%33 = load i64, ptr %5, align 8
%34 = load i32, ptr %4, align 4
%35 = sext i32 %34 to i64
%36 = urem i64 %33, %35
%37 = sub i64 %32, %36
store i64 %37, ptr %6, align 8
br label %42
38: ; preds = %25, %20
%39 = load ptr, ptr %3, align 8
%40 = load i64, ptr %7, align 8
%41 = call i64 @chrsw(ptr noundef %39, i64 noundef %40)
store i64 %41, ptr %6, align 8
br label %42
42: ; preds = %38, %30
%43 = load i64, ptr %7, align 8
%44 = load ptr, ptr %3, align 8
%45 = getelementptr inbounds i8, ptr %44, i64 %43
store ptr %45, ptr %3, align 8
%46 = load i64, ptr %6, align 8
%47 = load i64, ptr %5, align 8
%48 = add i64 %47, %46
store i64 %48, ptr %5, align 8
br label %15, !llvm.loop !6
49: ; preds = %15
%50 = load i64, ptr %5, align 8
ret i64 %50
}
declare i32 @assert(i32 noundef) #1
declare i64 @utf8_chrw(ptr noundef) #1
declare i64 @chrsw(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu_il3gsx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [34 x i8] c"Non-positive number of tab stops.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @utf8_strsw_with_tabs(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i64 0, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp sgt i32 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %2
br label %11
11: ; preds = %10, %2
%12 = phi i1 [ false, %2 ], [ true, %10 ]
%13 = zext i1 %12 to i32
%14 = call i32 @assert(i32 noundef %13)
%15 = load ptr, ptr %3, 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 %.lr.ph, label %52
.lr.ph: ; preds = %11
br label %19
19: ; preds = %.lr.ph, %41
%20 = load ptr, ptr %3, align 8
%21 = call i64 @utf8_chrw(ptr noundef %20)
store i64 %21, ptr %7, align 8
%22 = load i64, ptr %7, align 8
%23 = icmp eq i64 %22, 1
br i1 %23, label %24, label %37
24: ; preds = %19
%25 = load ptr, ptr %3, align 8
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 9
br i1 %28, label %29, label %37
29: ; preds = %24
%30 = load i32, ptr %4, align 4
%31 = sext i32 %30 to i64
%32 = load i64, ptr %5, align 8
%33 = load i32, ptr %4, align 4
%34 = sext i32 %33 to i64
%35 = urem i64 %32, %34
%36 = sub i64 %31, %35
store i64 %36, ptr %6, align 8
br label %41
37: ; preds = %24, %19
%38 = load ptr, ptr %3, align 8
%39 = load i64, ptr %7, align 8
%40 = call i64 @chrsw(ptr noundef %38, i64 noundef %39)
store i64 %40, ptr %6, align 8
br label %41
41: ; preds = %37, %29
%42 = load i64, ptr %7, align 8
%43 = load ptr, ptr %3, align 8
%44 = getelementptr inbounds i8, ptr %43, i64 %42
store ptr %44, ptr %3, align 8
%45 = load i64, ptr %6, align 8
%46 = load i64, ptr %5, align 8
%47 = add i64 %46, %45
store i64 %47, ptr %5, align 8
%48 = load ptr, ptr %3, align 8
%49 = load i8, ptr %48, align 1
%50 = sext i8 %49 to i32
%51 = icmp ne i32 %50, 0
br i1 %51, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %41
br label %52
52: ; preds = %._crit_edge, %11
%53 = load i64, ptr %5, align 8
ret i64 %53
}
declare i32 @assert(i32 noundef) #1
declare i64 @utf8_chrw(ptr noundef) #1
declare i64 @chrsw(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp_rqeciyn.c'
source_filename = "/tmp/tmp_rqeciyn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.aiocb = type { i32, i32, %struct.TYPE_2__, i64, ptr }
%struct.TYPE_2__ = type { i32 }
@_SC_ASYNCHRONOUS_IO = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [27 x i8] c"/tmp/pts_aio_cancel_4_1_%d\00", align 1
@O_CREAT = dso_local global i32 0, align 4
@O_RDWR = dso_local global i32 0, align 4
@O_EXCL = dso_local global i32 0, align 4
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [38 x i8] c"aio_cancel/4-1.c Error at open(): %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [40 x i8] c"aio_cancel/4-1.c Error at malloc(): %s\0A\00", align 1
@SIGEV_NONE = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [52 x i8] c"aio_cancel/4-1.c loop %d: Error at aio_write(): %s\0A\00", align 1
@.str.4 = private unnamed_addr constant [44 x i8] c"aio_cancel/4-1.c Error at aio_cancel(): %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [43 x i8] c"aio_cancel/4-1.c Error at aio_error(): %s\0A\00", align 1
@EINPROGRESS = dso_local global i32 0, align 4
@ECANCELED = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [13 x i8] c"Test PASSED\0A\00", align 1
@.str.7 = private unnamed_addr constant [39 x i8] c"aio_cancel/4-1.c aio_return is not -1\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [256 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca [128 x ptr], align 16
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = load i32, ptr @_SC_ASYNCHRONOUS_IO, align 4
%9 = call i64 @sysconf(i32 noundef %8)
%10 = icmp slt i64 %9, 200112
br i1 %10, label %11, label %12
11: ; preds = %0
store i32 4, ptr %1, align 4
br label %182
12: ; preds = %0
%13 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%14 = call i32 (...) @getpid()
%15 = call i32 @snprintf(ptr noundef %13, i32 noundef 256, ptr noundef @.str, i32 noundef %14)
%16 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%17 = call i32 @unlink(ptr noundef %16)
%18 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%19 = load i32, ptr @O_CREAT, align 4
%20 = load i32, ptr @O_RDWR, align 4
%21 = or i32 %19, %20
%22 = load i32, ptr @O_EXCL, align 4
%23 = or i32 %21, %22
%24 = load i32, ptr @S_IRUSR, align 4
%25 = load i32, ptr @S_IWUSR, align 4
%26 = or i32 %24, %25
%27 = call i32 @open(ptr noundef %18, i32 noundef %23, i32 noundef %26)
store i32 %27, ptr %3, align 4
%28 = load i32, ptr %3, align 4
%29 = icmp eq i32 %28, -1
br i1 %29, label %30, label %34
30: ; preds = %12
%31 = load i32, ptr @errno, align 4
%32 = call ptr @strerror(i32 noundef %31)
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %32)
store i32 2, ptr %1, align 4
br label %182
34: ; preds = %12
%35 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%36 = call i32 @unlink(ptr noundef %35)
store i32 0, ptr %5, align 4
br label %37
37: ; preds = %101, %34
%38 = load i32, ptr %5, align 4
%39 = icmp slt i32 %38, 128
br i1 %39, label %40, label %104
40: ; preds = %37
%41 = call ptr @malloc(i32 noundef 32)
%42 = load i32, ptr %5, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [128 x ptr], ptr %4, i64 0, i64 %43
store ptr %41, ptr %44, align 8
%45 = load i32, ptr %5, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [128 x ptr], ptr %4, i64 0, i64 %46
%48 = load ptr, ptr %47, align 8
%49 = icmp eq ptr %48, null
br i1 %49, label %50, label %54
50: ; preds = %40
%51 = load i32, ptr @errno, align 4
%52 = call ptr @strerror(i32 noundef %51)
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %52)
store i32 2, ptr %1, align 4
br label %182
54: ; preds = %40
%55 = load i32, ptr %5, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [128 x ptr], ptr %4, i64 0, i64 %56
%58 = load ptr, ptr %57, align 8
%59 = call i32 @memset(ptr noundef %58, i32 noundef 0, i32 noundef 32)
%60 = load i32, ptr %3, align 4
%61 = load i32, ptr %5, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [128 x ptr], ptr %4, i64 0, i64 %62
%64 = load ptr, ptr %63, align 8
%65 = getelementptr inbounds %struct.aiocb, ptr %64, i32 0, i32 0
store i32 %60, ptr %65, align 8
%66 = call ptr @malloc(i32 noundef 1048576)
%67 = load i32, ptr %5, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [128 x ptr], ptr %4, i64 0, i64 %68
%70 = load ptr, ptr %69, align 8
%71 = getelementptr inbounds %struct.aiocb, ptr %70, i32 0, i32 4
store ptr %66, ptr %71, align 8
%72 = load i32, ptr %5, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [128 x ptr], ptr %4, i64 0, i64 %73
%75 = load ptr, ptr %74, align 8
%76 = getelementptr inbounds %struct.aiocb, ptr %75, i32 0, i32 4
%77 = load ptr, ptr %76, align 8
%78 = icmp eq ptr %77, null
br i1 %78, label %79, label %83
79: ; preds = %54
%80 = load i32, ptr @errno, align 4
%81 = call ptr @strerror(i32 noundef %80)
%82 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %81)
store i32 2, ptr %1, align 4
br label %182
83: ; preds = %54
%84 = load i32, ptr %5, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [128 x ptr], ptr %4, i64 0, i64 %85
%87 = load ptr, ptr %86, align 8
%88 = getelementptr inbounds %struct.aiocb, ptr %87, i32 0, i32 1
store i32 1048576, ptr %88, align 4
%89 = load i32, ptr %5, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [128 x ptr], ptr %4, i64 0, i64 %90
%92 = load ptr, ptr %91, align 8
%93 = getelementptr inbounds %struct.aiocb, ptr %92, i32 0, i32 3
store i64 0, ptr %93, align 8
%94 = load i32, ptr @SIGEV_NONE, align 4
%95 = load i32, ptr %5, align 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [128 x ptr], ptr %4, i64 0, i64 %96
%98 = load ptr, ptr %97, align 8
%99 = getelementptr inbounds %struct.aiocb, ptr %98, i32 0, i32 2
%100 = getelementptr inbounds %struct.TYPE_2__, ptr %99, i32 0, i32 0
store i32 %94, ptr %100, align 8
br label %101
101: ; preds = %83
%102 = load i32, ptr %5, align 4
%103 = add nsw i32 %102, 1
store i32 %103, ptr %5, align 4
br label %37, !llvm.loop !6
104: ; preds = %37
store i32 0, ptr %5, align 4
br label %105
105: ; preds = %121, %104
%106 = load i32, ptr %5, align 4
%107 = icmp slt i32 %106, 128
br i1 %107, label %108, label %124
108: ; preds = %105
%109 = load i32, ptr %5, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds [128 x ptr], ptr %4, i64 0, i64 %110
%112 = load ptr, ptr %111, align 8
%113 = call i32 @aio_write(ptr noundef %112)
%114 = icmp eq i32 %113, -1
br i1 %114, label %115, label %120
115: ; preds = %108
%116 = load i32, ptr %5, align 4
%117 = load i32, ptr @errno, align 4
%118 = call ptr @strerror(i32 noundef %117)
%119 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %116, ptr noundef %118)
store i32 1, ptr %1, align 4
br label %182
120: ; preds = %108
br label %121
121: ; preds = %120
%122 = load i32, ptr %5, align 4
%123 = add nsw i32 %122, 1
store i32 %123, ptr %5, align 4
br label %105, !llvm.loop !8
124: ; preds = %105
%125 = load i32, ptr %3, align 4
%126 = call i32 @aio_cancel(i32 noundef %125, ptr noundef null)
%127 = icmp eq i32 %126, -1
br i1 %127, label %128, label %132
128: ; preds = %124
%129 = load i32, ptr @errno, align 4
%130 = call ptr @strerror(i32 noundef %129)
%131 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %130)
store i32 1, ptr %1, align 4
br label %182
132: ; preds = %124
%133 = load i32, ptr %3, align 4
%134 = call i32 @close(i32 noundef %133)
br label %135
135: ; preds = %178, %132
store i32 0, ptr %6, align 4
store i32 0, ptr %5, align 4
br label %136
136: ; preds = %174, %135
%137 = load i32, ptr %5, align 4
%138 = icmp slt i32 %137, 128
br i1 %138, label %139, label %177
139: ; preds = %136
%140 = load i32, ptr %5, align 4
%141 = sext i32 %140 to i64
%142 = getelementptr inbounds [128 x ptr], ptr %4, i64 0, i64 %141
%143 = load ptr, ptr %142, align 8
%144 = call i32 @aio_error(ptr noundef %143)
store i32 %144, ptr %7, align 4
%145 = load i32, ptr %7, align 4
%146 = icmp eq i32 %145, -1
br i1 %146, label %147, label %151
147: ; preds = %139
%148 = load i32, ptr @errno, align 4
%149 = call ptr @strerror(i32 noundef %148)
%150 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %149)
store i32 1, ptr %1, align 4
br label %182
151: ; preds = %139
%152 = load i32, ptr %7, align 4
%153 = load i32, ptr @EINPROGRESS, align 4
%154 = icmp eq i32 %152, %153
br i1 %154, label %155, label %156
155: ; preds = %151
store i32 1, ptr %6, align 4
br label %172
156: ; preds = %151
%157 = load i32, ptr %7, align 4
%158 = load i32, ptr @ECANCELED, align 4
%159 = icmp eq i32 %157, %158
br i1 %159, label %160, label %171
160: ; preds = %156
%161 = load i32, ptr %5, align 4
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds [128 x ptr], ptr %4, i64 0, i64 %162
%164 = load ptr, ptr %163, align 8
%165 = call i32 @aio_return(ptr noundef %164)
%166 = icmp eq i32 %165, -1
br i1 %166, label %167, label %169
167: ; preds = %160
%168 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
store i32 0, ptr %1, align 4
br label %182
169: ; preds = %160
%170 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
store i32 1, ptr %1, align 4
br label %182
171: ; preds = %156
br label %172
172: ; preds = %171, %155
br label %173
173: ; preds = %172
br label %174
174: ; preds = %173
%175 = load i32, ptr %5, align 4
%176 = add nsw i32 %175, 1
store i32 %176, ptr %5, align 4
br label %136, !llvm.loop !9
177: ; preds = %136
br label %178
178: ; preds = %177
%179 = load i32, ptr %6, align 4
%180 = icmp ne i32 %179, 0
br i1 %180, label %135, label %181, !llvm.loop !10
181: ; preds = %178
store i32 2, ptr %1, align 4
br label %182
182: ; preds = %181, %169, %167, %147, %128, %115, %79, %50, %30, %11
%183 = load i32, ptr %1, align 4
ret i32 %183
}
declare i64 @sysconf(i32 noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @getpid(...) #1
declare i32 @unlink(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @strerror(i32 noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @aio_write(ptr noundef) #1
declare i32 @aio_cancel(i32 noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @aio_error(ptr noundef) #1
declare i32 @aio_return(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp_rqeciyn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.aiocb = type { i32, i32, %struct.TYPE_2__, i64, ptr }
%struct.TYPE_2__ = type { i32 }
@_SC_ASYNCHRONOUS_IO = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [27 x i8] c"/tmp/pts_aio_cancel_4_1_%d\00", align 1
@O_CREAT = dso_local global i32 0, align 4
@O_RDWR = dso_local global i32 0, align 4
@O_EXCL = dso_local global i32 0, align 4
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [38 x i8] c"aio_cancel/4-1.c Error at open(): %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [40 x i8] c"aio_cancel/4-1.c Error at malloc(): %s\0A\00", align 1
@SIGEV_NONE = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [52 x i8] c"aio_cancel/4-1.c loop %d: Error at aio_write(): %s\0A\00", align 1
@.str.4 = private unnamed_addr constant [44 x i8] c"aio_cancel/4-1.c Error at aio_cancel(): %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [43 x i8] c"aio_cancel/4-1.c Error at aio_error(): %s\0A\00", align 1
@EINPROGRESS = dso_local global i32 0, align 4
@ECANCELED = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [13 x i8] c"Test PASSED\0A\00", align 1
@.str.7 = private unnamed_addr constant [39 x i8] c"aio_cancel/4-1.c aio_return is not -1\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [256 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca [128 x ptr], align 16
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = load i32, ptr @_SC_ASYNCHRONOUS_IO, align 4
%9 = call i64 @sysconf(i32 noundef %8)
%10 = icmp slt i64 %9, 200112
br i1 %10, label %11, label %12
11: ; preds = %0
store i32 4, ptr %1, align 4
br label %185
12: ; preds = %0
%13 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%14 = call i32 (...) @getpid()
%15 = call i32 @snprintf(ptr noundef %13, i32 noundef 256, ptr noundef @.str, i32 noundef %14)
%16 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%17 = call i32 @unlink(ptr noundef %16)
%18 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%19 = load i32, ptr @O_CREAT, align 4
%20 = load i32, ptr @O_RDWR, align 4
%21 = or i32 %19, %20
%22 = load i32, ptr @O_EXCL, align 4
%23 = or i32 %21, %22
%24 = load i32, ptr @S_IRUSR, align 4
%25 = load i32, ptr @S_IWUSR, align 4
%26 = or i32 %24, %25
%27 = call i32 @open(ptr noundef %18, i32 noundef %23, i32 noundef %26)
store i32 %27, ptr %3, align 4
%28 = load i32, ptr %3, align 4
%29 = icmp eq i32 %28, -1
br i1 %29, label %30, label %34
30: ; preds = %12
%31 = load i32, ptr @errno, align 4
%32 = call ptr @strerror(i32 noundef %31)
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %32)
store i32 2, ptr %1, align 4
br label %185
34: ; preds = %12
%35 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%36 = call i32 @unlink(ptr noundef %35)
store i32 0, ptr %5, align 4
%37 = load i32, ptr %5, align 4
%38 = icmp slt i32 %37, 128
br i1 %38, label %.lr.ph, label %105
.lr.ph: ; preds = %34
br label %39
39: ; preds = %.lr.ph, %100
%40 = call ptr @malloc(i32 noundef 32)
%41 = load i32, ptr %5, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [128 x ptr], ptr %4, i64 0, i64 %42
store ptr %40, ptr %43, align 8
%44 = load i32, ptr %5, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [128 x ptr], ptr %4, i64 0, i64 %45
%47 = load ptr, ptr %46, align 8
%48 = icmp eq ptr %47, null
br i1 %48, label %49, label %53
49: ; preds = %39
%50 = load i32, ptr @errno, align 4
%51 = call ptr @strerror(i32 noundef %50)
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %51)
store i32 2, ptr %1, align 4
br label %185
53: ; preds = %39
%54 = load i32, ptr %5, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [128 x ptr], ptr %4, i64 0, i64 %55
%57 = load ptr, ptr %56, align 8
%58 = call i32 @memset(ptr noundef %57, i32 noundef 0, i32 noundef 32)
%59 = load i32, ptr %3, align 4
%60 = load i32, ptr %5, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [128 x ptr], ptr %4, i64 0, i64 %61
%63 = load ptr, ptr %62, align 8
%64 = getelementptr inbounds %struct.aiocb, ptr %63, i32 0, i32 0
store i32 %59, ptr %64, align 8
%65 = call ptr @malloc(i32 noundef 1048576)
%66 = load i32, ptr %5, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [128 x ptr], ptr %4, i64 0, i64 %67
%69 = load ptr, ptr %68, align 8
%70 = getelementptr inbounds %struct.aiocb, ptr %69, i32 0, i32 4
store ptr %65, ptr %70, align 8
%71 = load i32, ptr %5, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [128 x ptr], ptr %4, i64 0, i64 %72
%74 = load ptr, ptr %73, align 8
%75 = getelementptr inbounds %struct.aiocb, ptr %74, i32 0, i32 4
%76 = load ptr, ptr %75, align 8
%77 = icmp eq ptr %76, null
br i1 %77, label %78, label %82
78: ; preds = %53
%79 = load i32, ptr @errno, align 4
%80 = call ptr @strerror(i32 noundef %79)
%81 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %80)
store i32 2, ptr %1, align 4
br label %185
82: ; preds = %53
%83 = load i32, ptr %5, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds [128 x ptr], ptr %4, i64 0, i64 %84
%86 = load ptr, ptr %85, align 8
%87 = getelementptr inbounds %struct.aiocb, ptr %86, i32 0, i32 1
store i32 1048576, ptr %87, align 4
%88 = load i32, ptr %5, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [128 x ptr], ptr %4, i64 0, i64 %89
%91 = load ptr, ptr %90, align 8
%92 = getelementptr inbounds %struct.aiocb, ptr %91, i32 0, i32 3
store i64 0, ptr %92, align 8
%93 = load i32, ptr @SIGEV_NONE, align 4
%94 = load i32, ptr %5, align 4
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds [128 x ptr], ptr %4, i64 0, i64 %95
%97 = load ptr, ptr %96, align 8
%98 = getelementptr inbounds %struct.aiocb, ptr %97, i32 0, i32 2
%99 = getelementptr inbounds %struct.TYPE_2__, ptr %98, i32 0, i32 0
store i32 %93, ptr %99, align 8
br label %100
100: ; preds = %82
%101 = load i32, ptr %5, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %5, align 4
%103 = load i32, ptr %5, align 4
%104 = icmp slt i32 %103, 128
br i1 %104, label %39, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %100
br label %105
105: ; preds = %._crit_edge, %34
store i32 0, ptr %5, align 4
%106 = load i32, ptr %5, align 4
%107 = icmp slt i32 %106, 128
br i1 %107, label %.lr.ph2, label %126
.lr.ph2: ; preds = %105
br label %108
108: ; preds = %.lr.ph2, %121
%109 = load i32, ptr %5, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds [128 x ptr], ptr %4, i64 0, i64 %110
%112 = load ptr, ptr %111, align 8
%113 = call i32 @aio_write(ptr noundef %112)
%114 = icmp eq i32 %113, -1
br i1 %114, label %115, label %120
115: ; preds = %108
%116 = load i32, ptr %5, align 4
%117 = load i32, ptr @errno, align 4
%118 = call ptr @strerror(i32 noundef %117)
%119 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %116, ptr noundef %118)
store i32 1, ptr %1, align 4
br label %185
120: ; preds = %108
br label %121
121: ; preds = %120
%122 = load i32, ptr %5, align 4
%123 = add nsw i32 %122, 1
store i32 %123, ptr %5, align 4
%124 = load i32, ptr %5, align 4
%125 = icmp slt i32 %124, 128
br i1 %125, label %108, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %121
br label %126
126: ; preds = %._crit_edge3, %105
%127 = load i32, ptr %3, align 4
%128 = call i32 @aio_cancel(i32 noundef %127, ptr noundef null)
%129 = icmp eq i32 %128, -1
br i1 %129, label %130, label %134
130: ; preds = %126
%131 = load i32, ptr @errno, align 4
%132 = call ptr @strerror(i32 noundef %131)
%133 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %132)
store i32 1, ptr %1, align 4
br label %185
134: ; preds = %126
%135 = load i32, ptr %3, align 4
%136 = call i32 @close(i32 noundef %135)
br label %137
137: ; preds = %181, %134
store i32 0, ptr %6, align 4
store i32 0, ptr %5, align 4
%138 = load i32, ptr %5, align 4
%139 = icmp slt i32 %138, 128
br i1 %139, label %.lr.ph5, label %180
.lr.ph5: ; preds = %137
br label %140
140: ; preds = %.lr.ph5, %175
%141 = load i32, ptr %5, align 4
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds [128 x ptr], ptr %4, i64 0, i64 %142
%144 = load ptr, ptr %143, align 8
%145 = call i32 @aio_error(ptr noundef %144)
store i32 %145, ptr %7, align 4
%146 = load i32, ptr %7, align 4
%147 = icmp eq i32 %146, -1
br i1 %147, label %148, label %152
148: ; preds = %140
%149 = load i32, ptr @errno, align 4
%150 = call ptr @strerror(i32 noundef %149)
%151 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %150)
store i32 1, ptr %1, align 4
br label %185
152: ; preds = %140
%153 = load i32, ptr %7, align 4
%154 = load i32, ptr @EINPROGRESS, align 4
%155 = icmp eq i32 %153, %154
br i1 %155, label %156, label %157
156: ; preds = %152
store i32 1, ptr %6, align 4
br label %173
157: ; preds = %152
%158 = load i32, ptr %7, align 4
%159 = load i32, ptr @ECANCELED, align 4
%160 = icmp eq i32 %158, %159
br i1 %160, label %161, label %172
161: ; preds = %157
%162 = load i32, ptr %5, align 4
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds [128 x ptr], ptr %4, i64 0, i64 %163
%165 = load ptr, ptr %164, align 8
%166 = call i32 @aio_return(ptr noundef %165)
%167 = icmp eq i32 %166, -1
br i1 %167, label %168, label %170
168: ; preds = %161
%169 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
store i32 0, ptr %1, align 4
br label %185
170: ; preds = %161
%171 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
store i32 1, ptr %1, align 4
br label %185
172: ; preds = %157
br label %173
173: ; preds = %172, %156
br label %174
174: ; preds = %173
br label %175
175: ; preds = %174
%176 = load i32, ptr %5, align 4
%177 = add nsw i32 %176, 1
store i32 %177, ptr %5, align 4
%178 = load i32, ptr %5, align 4
%179 = icmp slt i32 %178, 128
br i1 %179, label %140, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %175
br label %180
180: ; preds = %._crit_edge6, %137
br label %181
181: ; preds = %180
%182 = load i32, ptr %6, align 4
%183 = icmp ne i32 %182, 0
br i1 %183, label %137, label %184, !llvm.loop !10
184: ; preds = %181
store i32 2, ptr %1, align 4
br label %185
185: ; preds = %184, %170, %168, %148, %130, %115, %78, %49, %30, %11
%186 = load i32, ptr %1, align 4
ret i32 %186
}
declare i64 @sysconf(i32 noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @getpid(...) #1
declare i32 @unlink(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @strerror(i32 noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @aio_write(ptr noundef) #1
declare i32 @aio_cancel(i32 noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @aio_error(ptr noundef) #1
declare i32 @aio_return(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpsi8enwhf.c'
source_filename = "/tmp/tmpsi8enwhf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tracefs__configured() #0 {
%1 = call ptr (...) @tracefs__mountpoint()
%2 = icmp ne ptr %1, null
%3 = zext i1 %2 to i32
ret i32 %3
}
declare ptr @tracefs__mountpoint(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsi8enwhf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tracefs__configured() #0 {
%1 = call ptr (...) @tracefs__mountpoint()
%2 = icmp ne ptr %1, null
%3 = zext i1 %2 to i32
ret i32 %3
}
declare ptr @tracefs__mountpoint(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpejyid8g6.c'
source_filename = "/tmp/tmpejyid8g6.c"
target datalayout = "e-m:e-p270: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/tmpejyid8g6.c"
target datalayout = "e-m:e-p270: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/tmpadycpmlb.c'
source_filename = "/tmp/tmpadycpmlb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@get_ps_args.psinfo = internal global [60 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [17 x i8] c"/proc/%d/cmdline\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [15 x i8] c"cannot open %s\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"reading %s failed\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @get_ps_args(i32 noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca [30 x i8], align 16
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%8 = getelementptr inbounds [30 x i8], ptr %4, i64 0, i64 0
%9 = load i32, ptr %3, align 4
%10 = call i32 @sprintf(ptr noundef %8, ptr noundef @.str, i32 noundef %9)
%11 = getelementptr inbounds [30 x i8], ptr %4, i64 0, i64 0
%12 = load i32, ptr @O_RDONLY, align 4
%13 = call i32 @open(ptr noundef %11, i32 noundef %12)
store i32 %13, ptr %5, align 4
%14 = load i32, ptr %5, align 4
%15 = icmp slt i32 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %1
%17 = getelementptr inbounds [30 x i8], ptr %4, i64 0, i64 0
%18 = call i32 @lprintf(i32 noundef 1, ptr noundef @.str.1, ptr noundef %17)
store ptr null, ptr %2, align 8
br label %74
19: ; preds = %1
%20 = load i32, ptr %5, align 4
%21 = call i32 @read(i32 noundef %20, ptr noundef @get_ps_args.psinfo, i32 noundef 59)
store i32 %21, ptr %7, align 4
%22 = load i32, ptr %7, align 4
%23 = icmp slt i32 %22, 0
br i1 %23, label %24, label %29
24: ; preds = %19
%25 = getelementptr inbounds [30 x i8], ptr %4, i64 0, i64 0
%26 = call i32 @lprintf(i32 noundef 1, ptr noundef @.str.2, ptr noundef %25)
%27 = load i32, ptr %5, align 4
%28 = call i32 @close(i32 noundef %27)
store ptr null, ptr %2, align 8
br label %74
29: ; preds = %19
%30 = load i32, ptr %5, align 4
%31 = call i32 @close(i32 noundef %30)
%32 = load i32, ptr %7, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [60 x i8], ptr @get_ps_args.psinfo, i64 0, i64 %33
store i8 0, ptr %34, align 1
store i32 0, ptr %6, align 4
br label %35
35: ; preds = %51, %29
%36 = load i32, ptr %6, align 4
%37 = load i32, ptr %7, align 4
%38 = icmp slt i32 %36, %37
br i1 %38, label %39, label %54
39: ; preds = %35
%40 = load i32, ptr %6, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [60 x i8], ptr @get_ps_args.psinfo, i64 0, i64 %41
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %44, 0
br i1 %45, label %46, label %50
46: ; preds = %39
%47 = load i32, ptr %6, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [60 x i8], ptr @get_ps_args.psinfo, i64 0, i64 %48
store i8 32, ptr %49, align 1
br label %50
50: ; preds = %46, %39
br label %51
51: ; preds = %50
%52 = load i32, ptr %6, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %6, align 4
br label %35, !llvm.loop !6
54: ; preds = %35
br label %55
55: ; preds = %68, %54
%56 = load i32, ptr %7, align 4
%57 = icmp sgt i32 %56, 0
br i1 %57, label %58, label %66
58: ; preds = %55
%59 = load i32, ptr %7, align 4
%60 = sub nsw i32 %59, 1
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [60 x i8], ptr @get_ps_args.psinfo, i64 0, i64 %61
%63 = load i8, ptr %62, align 1
%64 = call i64 @isspace(i8 noundef signext %63)
%65 = icmp ne i64 %64, 0
br label %66
66: ; preds = %58, %55
%67 = phi i1 [ false, %55 ], [ %65, %58 ]
br i1 %67, label %68, label %73
68: ; preds = %66
%69 = load i32, ptr %7, align 4
%70 = add nsw i32 %69, -1
store i32 %70, ptr %7, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [60 x i8], ptr @get_ps_args.psinfo, i64 0, i64 %71
store i8 0, ptr %72, align 1
br label %55, !llvm.loop !8
73: ; preds = %66
store ptr @get_ps_args.psinfo, ptr %2, align 8
br label %74
74: ; preds = %73, %24, %16
%75 = load ptr, ptr %2, align 8
ret ptr %75
}
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @lprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i64 @isspace(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpadycpmlb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@get_ps_args.psinfo = internal global [60 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [17 x i8] c"/proc/%d/cmdline\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [15 x i8] c"cannot open %s\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"reading %s failed\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @get_ps_args(i32 noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca [30 x i8], align 16
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%8 = getelementptr inbounds [30 x i8], ptr %4, i64 0, i64 0
%9 = load i32, ptr %3, align 4
%10 = call i32 @sprintf(ptr noundef %8, ptr noundef @.str, i32 noundef %9)
%11 = getelementptr inbounds [30 x i8], ptr %4, i64 0, i64 0
%12 = load i32, ptr @O_RDONLY, align 4
%13 = call i32 @open(ptr noundef %11, i32 noundef %12)
store i32 %13, ptr %5, align 4
%14 = load i32, ptr %5, align 4
%15 = icmp slt i32 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %1
%17 = getelementptr inbounds [30 x i8], ptr %4, i64 0, i64 0
%18 = call i32 @lprintf(i32 noundef 1, ptr noundef @.str.1, ptr noundef %17)
store ptr null, ptr %2, align 8
br label %76
19: ; preds = %1
%20 = load i32, ptr %5, align 4
%21 = call i32 @read(i32 noundef %20, ptr noundef @get_ps_args.psinfo, i32 noundef 59)
store i32 %21, ptr %7, align 4
%22 = load i32, ptr %7, align 4
%23 = icmp slt i32 %22, 0
br i1 %23, label %24, label %29
24: ; preds = %19
%25 = getelementptr inbounds [30 x i8], ptr %4, i64 0, i64 0
%26 = call i32 @lprintf(i32 noundef 1, ptr noundef @.str.2, ptr noundef %25)
%27 = load i32, ptr %5, align 4
%28 = call i32 @close(i32 noundef %27)
store ptr null, ptr %2, align 8
br label %76
29: ; preds = %19
%30 = load i32, ptr %5, align 4
%31 = call i32 @close(i32 noundef %30)
%32 = load i32, ptr %7, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [60 x i8], ptr @get_ps_args.psinfo, i64 0, i64 %33
store i8 0, ptr %34, align 1
store i32 0, ptr %6, align 4
%35 = load i32, ptr %6, align 4
%36 = load i32, ptr %7, align 4
%37 = icmp slt i32 %35, %36
br i1 %37, label %.lr.ph, label %56
.lr.ph: ; preds = %29
br label %38
38: ; preds = %.lr.ph, %50
%39 = load i32, ptr %6, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [60 x i8], ptr @get_ps_args.psinfo, i64 0, i64 %40
%42 = load i8, ptr %41, align 1
%43 = sext i8 %42 to i32
%44 = icmp eq i32 %43, 0
br i1 %44, label %45, label %49
45: ; preds = %38
%46 = load i32, ptr %6, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [60 x i8], ptr @get_ps_args.psinfo, i64 0, i64 %47
store i8 32, ptr %48, align 1
br label %49
49: ; preds = %45, %38
br label %50
50: ; preds = %49
%51 = load i32, ptr %6, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %6, align 4
%53 = load i32, ptr %6, align 4
%54 = load i32, ptr %7, align 4
%55 = icmp slt i32 %53, %54
br i1 %55, label %38, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %50
br label %56
56: ; preds = %._crit_edge, %29
br label %57
57: ; preds = %70, %56
%58 = load i32, ptr %7, align 4
%59 = icmp sgt i32 %58, 0
br i1 %59, label %60, label %68
60: ; preds = %57
%61 = load i32, ptr %7, align 4
%62 = sub nsw i32 %61, 1
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [60 x i8], ptr @get_ps_args.psinfo, i64 0, i64 %63
%65 = load i8, ptr %64, align 1
%66 = call i64 @isspace(i8 noundef signext %65)
%67 = icmp ne i64 %66, 0
br label %68
68: ; preds = %60, %57
%69 = phi i1 [ false, %57 ], [ %67, %60 ]
br i1 %69, label %70, label %75
70: ; preds = %68
%71 = load i32, ptr %7, align 4
%72 = add nsw i32 %71, -1
store i32 %72, ptr %7, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [60 x i8], ptr @get_ps_args.psinfo, i64 0, i64 %73
store i8 0, ptr %74, align 1
br label %57, !llvm.loop !8
75: ; preds = %68
store ptr @get_ps_args.psinfo, ptr %2, align 8
br label %76
76: ; preds = %75, %24, %16
%77 = load ptr, ptr %2, align 8
ret ptr %77
}
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @lprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i64 @isspace(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpybbtpsxb.c'
source_filename = "/tmp/tmpybbtpsxb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isalpha.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isalpha should be 0 for ~\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalpha_0x7e() #0 {
%1 = call i64 @isalpha(i32 noundef 126)
%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 635, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isalpha(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpybbtpsxb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isalpha.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isalpha should be 0 for ~\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalpha_0x7e() #0 {
%1 = call i64 @isalpha(i32 noundef 126)
%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 635, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isalpha(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8ip1rc8b.c'
source_filename = "/tmp/tmp8ip1rc8b.c"
target datalayout = "e-m:e-p270: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/tmp8ip1rc8b.c"
target datalayout = "e-m:e-p270: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/tmpp5hypgnp.c'
source_filename = "/tmp/tmpp5hypgnp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%i \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_table(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
br label %9
9: ; preds = %34, %3
%10 = load i32, ptr %7, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %37
13: ; preds = %9
store i32 0, ptr %8, align 4
br label %14
14: ; preds = %29, %13
%15 = load i32, ptr %8, align 4
%16 = load i32, ptr %5, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %32
18: ; preds = %14
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %7, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds ptr, ptr %19, i64 %21
%23 = load ptr, ptr %22, align 8
%24 = load i32, ptr %8, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, ptr %23, i64 %25
%27 = load i32, ptr %26, align 4
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %27)
br label %29
29: ; preds = %18
%30 = load i32, ptr %8, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %8, align 4
br label %14, !llvm.loop !6
32: ; preds = %14
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %34
34: ; preds = %32
%35 = load i32, ptr %7, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %7, align 4
br label %9, !llvm.loop !8
37: ; preds = %9
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp5hypgnp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%i \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_table(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
%9 = load i32, ptr %7, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph2, label %41
.lr.ph2: ; preds = %3
br label %12
12: ; preds = %.lr.ph2, %35
store i32 0, ptr %8, align 4
%13 = load i32, ptr %8, align 4
%14 = load i32, ptr %5, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph, label %33
.lr.ph: ; preds = %12
br label %16
16: ; preds = %.lr.ph, %27
%17 = load ptr, ptr %4, align 8
%18 = load i32, ptr %7, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds ptr, ptr %17, i64 %19
%21 = load ptr, ptr %20, align 8
%22 = load i32, ptr %8, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i32, ptr %21, i64 %23
%25 = load i32, ptr %24, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %25)
br label %27
27: ; preds = %16
%28 = load i32, ptr %8, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %8, align 4
%30 = load i32, ptr %8, align 4
%31 = load i32, ptr %5, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %33
33: ; preds = %._crit_edge, %12
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %35
35: ; preds = %33
%36 = load i32, ptr %7, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %7, align 4
%38 = load i32, ptr %7, align 4
%39 = load i32, ptr %6, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %12, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %35
br label %41
41: ; preds = %._crit_edge3, %3
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpjxal42_h.c'
source_filename = "/tmp/tmpjxal42_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"
%struct.hostent = type { i32, i32, ptr }
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @host_or_ip_to_addr(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
%9 = load ptr, ptr %5, 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 = load i32, ptr @EINVAL, align 4
store i32 %15, ptr @errno, align 4
store i32 -1, ptr %4, align 4
br label %49
16: ; preds = %11
%17 = load ptr, ptr %5, align 8
%18 = load i32, ptr %6, align 4
%19 = call ptr @gethostbyname2(ptr noundef %17, i32 noundef %18)
store ptr %19, ptr %8, align 8
%20 = load ptr, ptr %8, align 8
%21 = icmp ne ptr %20, null
br i1 %21, label %23, label %22
22: ; preds = %16
store i32 -1, ptr %4, align 4
br label %49
23: ; preds = %16
%24 = load ptr, ptr %8, align 8
%25 = getelementptr inbounds %struct.hostent, ptr %24, i32 0, i32 0
%26 = load i32, ptr %25, align 8
%27 = load i32, ptr %6, align 4
%28 = icmp ne i32 %26, %27
br i1 %28, label %29, label %30
29: ; preds = %23
store i32 -1, ptr %4, align 4
br label %49
30: ; preds = %23
%31 = load ptr, ptr %8, align 8
%32 = getelementptr inbounds %struct.hostent, ptr %31, i32 0, i32 2
%33 = load ptr, ptr %32, align 8
%34 = getelementptr inbounds i32, ptr %33, i64 0
%35 = load i32, ptr %34, align 4
%36 = icmp ne i32 %35, 0
br i1 %36, label %38, label %37
37: ; preds = %30
store i32 -1, ptr %4, align 4
br label %49
38: ; preds = %30
%39 = load ptr, ptr %7, align 8
%40 = load ptr, ptr %8, align 8
%41 = getelementptr inbounds %struct.hostent, ptr %40, i32 0, i32 2
%42 = load ptr, ptr %41, align 8
%43 = getelementptr inbounds i32, ptr %42, i64 0
%44 = load i32, ptr %43, align 4
%45 = load ptr, ptr %8, align 8
%46 = getelementptr inbounds %struct.hostent, ptr %45, i32 0, i32 1
%47 = load i32, ptr %46, align 4
%48 = call i32 @memcpy(ptr noundef %39, i32 noundef %44, i32 noundef %47)
store i32 0, ptr %4, align 4
br label %49
49: ; preds = %38, %37, %29, %22, %14
%50 = load i32, ptr %4, align 4
ret i32 %50
}
declare ptr @gethostbyname2(ptr noundef, i32 noundef) #1
declare i32 @memcpy(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/tmpjxal42_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"
%struct.hostent = type { i32, i32, ptr }
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @host_or_ip_to_addr(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
%9 = load ptr, ptr %5, 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 = load i32, ptr @EINVAL, align 4
store i32 %15, ptr @errno, align 4
store i32 -1, ptr %4, align 4
br label %49
16: ; preds = %11
%17 = load ptr, ptr %5, align 8
%18 = load i32, ptr %6, align 4
%19 = call ptr @gethostbyname2(ptr noundef %17, i32 noundef %18)
store ptr %19, ptr %8, align 8
%20 = load ptr, ptr %8, align 8
%21 = icmp ne ptr %20, null
br i1 %21, label %23, label %22
22: ; preds = %16
store i32 -1, ptr %4, align 4
br label %49
23: ; preds = %16
%24 = load ptr, ptr %8, align 8
%25 = getelementptr inbounds %struct.hostent, ptr %24, i32 0, i32 0
%26 = load i32, ptr %25, align 8
%27 = load i32, ptr %6, align 4
%28 = icmp ne i32 %26, %27
br i1 %28, label %29, label %30
29: ; preds = %23
store i32 -1, ptr %4, align 4
br label %49
30: ; preds = %23
%31 = load ptr, ptr %8, align 8
%32 = getelementptr inbounds %struct.hostent, ptr %31, i32 0, i32 2
%33 = load ptr, ptr %32, align 8
%34 = getelementptr inbounds i32, ptr %33, i64 0
%35 = load i32, ptr %34, align 4
%36 = icmp ne i32 %35, 0
br i1 %36, label %38, label %37
37: ; preds = %30
store i32 -1, ptr %4, align 4
br label %49
38: ; preds = %30
%39 = load ptr, ptr %7, align 8
%40 = load ptr, ptr %8, align 8
%41 = getelementptr inbounds %struct.hostent, ptr %40, i32 0, i32 2
%42 = load ptr, ptr %41, align 8
%43 = getelementptr inbounds i32, ptr %42, i64 0
%44 = load i32, ptr %43, align 4
%45 = load ptr, ptr %8, align 8
%46 = getelementptr inbounds %struct.hostent, ptr %45, i32 0, i32 1
%47 = load i32, ptr %46, align 4
%48 = call i32 @memcpy(ptr noundef %39, i32 noundef %44, i32 noundef %47)
store i32 0, ptr %4, align 4
br label %49
49: ; preds = %38, %37, %29, %22, %14
%50 = load i32, ptr %4, align 4
ret i32 %50
}
declare ptr @gethostbyname2(ptr noundef, i32 noundef) #1
declare i32 @memcpy(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/tmpr0rjo77e.c'
source_filename = "/tmp/tmpr0rjo77e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 void @main() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr0rjo77e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 void @main() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfu1ehkcr.c'
source_filename = "/tmp/tmpfu1ehkcr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gen_actual_args(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @gen_args(ptr noundef %3, i32 noundef 2)
ret i32 0
}
declare i32 @gen_args(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/tmpfu1ehkcr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gen_actual_args(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @gen_args(ptr noundef %3, i32 noundef 2)
ret i32 0
}
declare i32 @gen_args(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/tmpdk9hor7l.c'
source_filename = "/tmp/tmpdk9hor7l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"hello world\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"memcmp = %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"hello xorld\00", align 1
@.str.4 = private unnamed_addr constant [12 x i8] c"hello yorld\00", align 1
@.str.5 = private unnamed_addr constant [13 x i8] c"%x %d %d %x\0A\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call ptr @malloc(i32 noundef 128)
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @mcpy(ptr noundef %5, ptr noundef @.str, i32 noundef 12)
%7 = load ptr, ptr %2, align 8
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %7)
%9 = load ptr, ptr %2, align 8
%10 = call i32 @mcmp(ptr noundef %9, ptr noundef @.str, i32 noundef 12)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %10)
%12 = load ptr, ptr %2, align 8
%13 = call i32 @mcmp(ptr noundef %12, ptr noundef @.str.3, i32 noundef 12)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %13)
%15 = load ptr, ptr %2, align 8
%16 = call i32 @mcmp(ptr noundef %15, ptr noundef @.str.4, i32 noundef 12)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %16)
%18 = load ptr, ptr %2, align 8
%19 = getelementptr inbounds i8, ptr %18, i64 0
store i8 -1, ptr %19, align 1
%20 = load ptr, ptr %2, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 0
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
store i32 %23, ptr %3, align 4
%24 = load ptr, ptr %2, align 8
%25 = getelementptr inbounds i8, ptr %24, i64 0
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = load ptr, ptr %2, align 8
%29 = getelementptr inbounds i8, ptr %28, i64 0
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = load i32, ptr %3, align 4
%33 = load ptr, ptr %2, align 8
%34 = getelementptr inbounds i8, ptr %33, i64 1
%35 = load i8, ptr %34, align 1
%36 = sext i8 %35 to i32
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %27, i32 noundef %31, i32 noundef %32, i32 noundef %36)
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
ret i32 0
}
declare ptr @malloc(i32 noundef) #1
declare i32 @mcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @mcmp(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/tmpdk9hor7l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"hello world\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"memcmp = %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"hello xorld\00", align 1
@.str.4 = private unnamed_addr constant [12 x i8] c"hello yorld\00", align 1
@.str.5 = private unnamed_addr constant [13 x i8] c"%x %d %d %x\0A\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call ptr @malloc(i32 noundef 128)
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @mcpy(ptr noundef %5, ptr noundef @.str, i32 noundef 12)
%7 = load ptr, ptr %2, align 8
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %7)
%9 = load ptr, ptr %2, align 8
%10 = call i32 @mcmp(ptr noundef %9, ptr noundef @.str, i32 noundef 12)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %10)
%12 = load ptr, ptr %2, align 8
%13 = call i32 @mcmp(ptr noundef %12, ptr noundef @.str.3, i32 noundef 12)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %13)
%15 = load ptr, ptr %2, align 8
%16 = call i32 @mcmp(ptr noundef %15, ptr noundef @.str.4, i32 noundef 12)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %16)
%18 = load ptr, ptr %2, align 8
%19 = getelementptr inbounds i8, ptr %18, i64 0
store i8 -1, ptr %19, align 1
%20 = load ptr, ptr %2, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 0
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
store i32 %23, ptr %3, align 4
%24 = load ptr, ptr %2, align 8
%25 = getelementptr inbounds i8, ptr %24, i64 0
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = load ptr, ptr %2, align 8
%29 = getelementptr inbounds i8, ptr %28, i64 0
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = load i32, ptr %3, align 4
%33 = load ptr, ptr %2, align 8
%34 = getelementptr inbounds i8, ptr %33, i64 1
%35 = load i8, ptr %34, align 1
%36 = sext i8 %35 to i32
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %27, i32 noundef %31, i32 noundef %32, i32 noundef %36)
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
ret i32 0
}
declare ptr @malloc(i32 noundef) #1
declare i32 @mcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @mcmp(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/tmpjcpmzrk5.c'
source_filename = "/tmp/tmpjcpmzrk5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ed:\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @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 [128 x i8], align 16
%8 = alloca [128 x i8], align 16
%9 = alloca i64, align 8
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 128, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 128, i1 false)
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %11, 3
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = call i32 (...) @usage()
br label %15
15: ; preds = %13, %2
br label %16
16: ; preds = %51, %15
%17 = load i32, ptr %4, align 4
%18 = load ptr, ptr %5, align 8
%19 = call i32 @getopt(i32 noundef %17, ptr noundef %18, ptr noundef @.str)
store i32 %19, ptr %6, align 4
%20 = icmp ne i32 %19, -1
br i1 %20, label %21, label %52
21: ; preds = %16
%22 = load i32, ptr %6, align 4
switch i32 %22, label %49 [
i32 101, label %23
i32 100, label %36
]
23: ; preds = %21
%24 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 2
%27 = load ptr, ptr %26, align 8
%28 = call i32 @strcpy(ptr noundef %24, ptr noundef %27)
store i64 128, ptr %9, align 8
%29 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%30 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%31 = call i32 @strlen(ptr noundef %30)
%32 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
%33 = call i32 @base64_encode(ptr noundef %29, i32 noundef %31, ptr noundef %32, ptr noundef %9)
store i32 %33, ptr %10, align 4
%34 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
%35 = call i32 @printf(ptr noundef @.str.1, ptr noundef %34)
br label %51
36: ; preds = %21
%37 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds ptr, ptr %38, i64 2
%40 = load ptr, ptr %39, align 8
%41 = call i32 @strcpy(ptr noundef %37, ptr noundef %40)
store i64 128, ptr %9, align 8
%42 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%43 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%44 = call i32 @strlen(ptr noundef %43)
%45 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
%46 = call i32 @base64_decode(ptr noundef %42, i32 noundef %44, ptr noundef %45, ptr noundef %9)
store i32 %46, ptr %10, align 4
%47 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
%48 = call i32 @printf(ptr noundef @.str.1, ptr noundef %47)
br label %51
49: ; preds = %21
%50 = call i32 (...) @usage()
br label %51
51: ; preds = %49, %36, %23
br label %16, !llvm.loop !6
52: ; preds = %16
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @usage(...) #2
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @strcpy(ptr noundef, ptr noundef) #2
declare i32 @base64_encode(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
declare i32 @base64_decode(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjcpmzrk5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ed:\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @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 [128 x i8], align 16
%8 = alloca [128 x i8], align 16
%9 = alloca i64, align 8
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 128, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 128, i1 false)
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %11, 3
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = call i32 (...) @usage()
br label %15
15: ; preds = %13, %2
%16 = load i32, ptr %4, align 4
%17 = load ptr, ptr %5, align 8
%18 = call i32 @getopt(i32 noundef %16, ptr noundef %17, ptr noundef @.str)
store i32 %18, ptr %6, align 4
%19 = icmp ne i32 %18, -1
br i1 %19, label %.lr.ph, label %55
.lr.ph: ; preds = %15
br label %20
20: ; preds = %.lr.ph, %50
%21 = load i32, ptr %6, align 4
switch i32 %21, label %48 [
i32 101, label %22
i32 100, label %35
]
22: ; preds = %20
%23 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 2
%26 = load ptr, ptr %25, align 8
%27 = call i32 @strcpy(ptr noundef %23, ptr noundef %26)
store i64 128, ptr %9, align 8
%28 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%29 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%30 = call i32 @strlen(ptr noundef %29)
%31 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
%32 = call i32 @base64_encode(ptr noundef %28, i32 noundef %30, ptr noundef %31, ptr noundef %9)
store i32 %32, ptr %10, align 4
%33 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
%34 = call i32 @printf(ptr noundef @.str.1, ptr noundef %33)
br label %50
35: ; preds = %20
%36 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%37 = load ptr, ptr %5, align 8
%38 = getelementptr inbounds ptr, ptr %37, i64 2
%39 = load ptr, ptr %38, align 8
%40 = call i32 @strcpy(ptr noundef %36, ptr noundef %39)
store i64 128, ptr %9, align 8
%41 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%42 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%43 = call i32 @strlen(ptr noundef %42)
%44 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
%45 = call i32 @base64_decode(ptr noundef %41, i32 noundef %43, ptr noundef %44, ptr noundef %9)
store i32 %45, ptr %10, align 4
%46 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
%47 = call i32 @printf(ptr noundef @.str.1, ptr noundef %46)
br label %50
48: ; preds = %20
%49 = call i32 (...) @usage()
br label %50
50: ; preds = %48, %35, %22
%51 = load i32, ptr %4, align 4
%52 = load ptr, ptr %5, align 8
%53 = call i32 @getopt(i32 noundef %51, ptr noundef %52, ptr noundef @.str)
store i32 %53, ptr %6, align 4
%54 = icmp ne i32 %53, -1
br i1 %54, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %50
br label %55
55: ; preds = %._crit_edge, %15
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @usage(...) #2
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @strcpy(ptr noundef, ptr noundef) #2
declare i32 @base64_encode(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
declare i32 @base64_decode(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpmmrn0nnu.c'
source_filename = "/tmp/tmpmmrn0nnu.c"
target datalayout = "e-m:e-p270: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_4__ = type { %struct.TYPE_3__ }
%struct.TYPE_3__ = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @get_XEvent_xfocus_window(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds %struct.TYPE_4__, ptr %3, i32 0, i32 0
%5 = getelementptr inbounds %struct.TYPE_3__, ptr %4, i32 0, i32 0
%6 = load i64, ptr %5, align 8
ret i64 %6
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmmrn0nnu.c"
target datalayout = "e-m:e-p270: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_4__ = type { %struct.TYPE_3__ }
%struct.TYPE_3__ = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @get_XEvent_xfocus_window(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds %struct.TYPE_4__, ptr %3, i32 0, i32 0
%5 = getelementptr inbounds %struct.TYPE_3__, ptr %4, i32 0, i32 0
%6 = load i64, ptr %5, align 8
ret i64 %6
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5qknfjtd.c'
source_filename = "/tmp/tmp5qknfjtd.c"
target datalayout = "e-m:e-p270: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/tmp5qknfjtd.c"
target datalayout = "e-m:e-p270: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/tmp0ctpy574.c'
source_filename = "/tmp/tmp0ctpy574.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"p:h\00", align 1
@optarg = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [26 x i8] c"ERROR: no valid argument\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
br label %9
9: ; preds = %25, %2
%10 = load i32, ptr %4, align 4
%11 = load ptr, ptr %5, align 8
%12 = call i32 @getopt(i32 noundef %10, ptr noundef %11, ptr noundef @.str)
store i32 %12, ptr %7, align 4
%13 = icmp ne i32 %12, -1
br i1 %13, label %14, label %26
14: ; preds = %9
%15 = load i32, ptr %7, align 4
switch i32 %15, label %21 [
i32 112, label %16
i32 104, label %19
]
16: ; preds = %14
%17 = load i32, ptr @optarg, align 4
%18 = call i32 @atoi(i32 noundef %17)
store i32 %18, ptr %6, align 4
br label %25
19: ; preds = %14
%20 = call i32 (...) @usage()
br label %25
21: ; preds = %14
%22 = load i32, ptr @stderr, align 4
%23 = call i32 @fprintf(i32 noundef %22, ptr noundef @.str.1)
%24 = call i32 (...) @usage()
br label %25
25: ; preds = %21, %19, %16
br label %9, !llvm.loop !6
26: ; preds = %9
%27 = call i32 (...) @open_device()
store i32 %27, ptr %8, align 4
%28 = load i32, ptr %8, align 4
%29 = icmp eq i32 %28, -1
br i1 %29, label %30, label %32
30: ; preds = %26
%31 = call i32 (...) @usage()
br label %32
32: ; preds = %30, %26
%33 = load i32, ptr %8, align 4
%34 = load i32, ptr %6, align 4
%35 = call i32 @work_mode(i32 noundef %33, i32 noundef %34)
%36 = icmp eq i32 %35, -1
br i1 %36, label %37, label %39
37: ; preds = %32
%38 = call i32 (...) @usage()
br label %39
39: ; preds = %37, %32
%40 = load i32, ptr %8, align 4
%41 = call i32 @close(i32 noundef %40)
%42 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %42
}
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @atoi(i32 noundef) #1
declare i32 @usage(...) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @open_device(...) #1
declare i32 @work_mode(i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0ctpy574.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"p:h\00", align 1
@optarg = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [26 x i8] c"ERROR: no valid argument\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%9 = load i32, ptr %4, align 4
%10 = load ptr, ptr %5, align 8
%11 = call i32 @getopt(i32 noundef %9, ptr noundef %10, ptr noundef @.str)
store i32 %11, ptr %7, align 4
%12 = icmp ne i32 %11, -1
br i1 %12, label %.lr.ph, label %29
.lr.ph: ; preds = %2
br label %13
13: ; preds = %.lr.ph, %24
%14 = load i32, ptr %7, align 4
switch i32 %14, label %20 [
i32 112, label %15
i32 104, label %18
]
15: ; preds = %13
%16 = load i32, ptr @optarg, align 4
%17 = call i32 @atoi(i32 noundef %16)
store i32 %17, ptr %6, align 4
br label %24
18: ; preds = %13
%19 = call i32 (...) @usage()
br label %24
20: ; preds = %13
%21 = load i32, ptr @stderr, align 4
%22 = call i32 @fprintf(i32 noundef %21, ptr noundef @.str.1)
%23 = call i32 (...) @usage()
br label %24
24: ; preds = %20, %18, %15
%25 = load i32, ptr %4, align 4
%26 = load ptr, ptr %5, align 8
%27 = call i32 @getopt(i32 noundef %25, ptr noundef %26, ptr noundef @.str)
store i32 %27, ptr %7, align 4
%28 = icmp ne i32 %27, -1
br i1 %28, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %29
29: ; preds = %._crit_edge, %2
%30 = call i32 (...) @open_device()
store i32 %30, ptr %8, align 4
%31 = load i32, ptr %8, align 4
%32 = icmp eq i32 %31, -1
br i1 %32, label %33, label %35
33: ; preds = %29
%34 = call i32 (...) @usage()
br label %35
35: ; preds = %33, %29
%36 = load i32, ptr %8, align 4
%37 = load i32, ptr %6, align 4
%38 = call i32 @work_mode(i32 noundef %36, i32 noundef %37)
%39 = icmp eq i32 %38, -1
br i1 %39, label %40, label %42
40: ; preds = %35
%41 = call i32 (...) @usage()
br label %42
42: ; preds = %40, %35
%43 = load i32, ptr %8, align 4
%44 = call i32 @close(i32 noundef %43)
%45 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %45
}
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @atoi(i32 noundef) #1
declare i32 @usage(...) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @open_device(...) #1
declare i32 @work_mode(i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpizcyfnwh.c'
source_filename = "/tmp/tmpizcyfnwh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @norm(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %6, align 4
%10 = load ptr, ptr %4, align 8
%11 = call i32 @dot(ptr noundef %7, i32 noundef %8, i32 noundef %9, ptr noundef %10)
%12 = call double @sqrt(i32 noundef %11)
ret double %12
}
declare double @sqrt(i32 noundef) #1
declare i32 @dot(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/tmpizcyfnwh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @norm(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %6, align 4
%10 = load ptr, ptr %4, align 8
%11 = call i32 @dot(ptr noundef %7, i32 noundef %8, i32 noundef %9, ptr noundef %10)
%12 = call double @sqrt(i32 noundef %11)
ret double %12
}
declare double @sqrt(i32 noundef) #1
declare i32 @dot(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/tmpkxkkrk22.c'
source_filename = "/tmp/tmpkxkkrk22.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_reverse_empty() #0 {
%1 = alloca [1 x i8], align 1
call void @llvm.memset.p0.i64(ptr align 1 %1, i8 0, i64 1, i1 false)
%2 = getelementptr inbounds [1 x i8], ptr %1, i64 0, i64 0
%3 = call i32 @reverse(ptr noundef %2)
%4 = getelementptr inbounds [1 x i8], ptr %1, i64 0, i64 0
%5 = call i32 @equal(ptr noundef @.str, ptr noundef %4)
ret i32 %5
}
; 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 @reverse(ptr noundef) #2
declare i32 @equal(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkxkkrk22.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_reverse_empty() #0 {
%1 = alloca [1 x i8], align 1
call void @llvm.memset.p0.i64(ptr align 1 %1, i8 0, i64 1, i1 false)
%2 = getelementptr inbounds [1 x i8], ptr %1, i64 0, i64 0
%3 = call i32 @reverse(ptr noundef %2)
%4 = getelementptr inbounds [1 x i8], ptr %1, i64 0, i64 0
%5 = call i32 @equal(ptr noundef @.str, ptr noundef %4)
ret i32 %5
}
; 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 @reverse(ptr noundef) #2
declare i32 @equal(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprirgn6il.c'
source_filename = "/tmp/tmprirgn6il.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Number of elements :\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [41 x i8] c"Enter %d number values you want to sort\0A\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"\0A\0AArray after sorting:\0A\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%d\09\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 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 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %6)
%9 = load i32, ptr %6, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %9)
store i32 0, ptr %4, align 4
br label %11
11: ; preds = %20, %0
%12 = load i32, ptr %4, align 4
%13 = load i32, ptr %6, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %23
15: ; preds = %11
%16 = load i32, ptr %4, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %17
%19 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %18)
br label %20
20: ; preds = %15
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %4, align 4
br label %11, !llvm.loop !6
23: ; preds = %11
store i32 1, ptr %4, align 4
br label %24
24: ; preds = %67, %23
%25 = load i32, ptr %4, align 4
%26 = load i32, ptr %6, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %70
28: ; preds = %24
store i32 0, ptr %3, align 4
br label %29
29: ; preds = %63, %28
%30 = load i32, ptr %3, align 4
%31 = load i32, ptr %6, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %33, label %66
33: ; preds = %29
%34 = load i32, ptr %3, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %35
%37 = load i32, ptr %36, align 4
%38 = load i32, ptr %3, align 4
%39 = add nsw i32 %38, 1
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %40
%42 = load i32, ptr %41, align 4
%43 = icmp sgt i32 %37, %42
br i1 %43, label %44, label %62
44: ; preds = %33
%45 = load i32, ptr %3, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %46
%48 = load i32, ptr %47, align 4
store i32 %48, ptr %5, align 4
%49 = load i32, ptr %3, align 4
%50 = add nsw i32 %49, 1
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %51
%53 = load i32, ptr %52, align 4
%54 = load i32, ptr %3, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %55
store i32 %53, ptr %56, align 4
%57 = load i32, ptr %5, align 4
%58 = load i32, ptr %3, align 4
%59 = add nsw i32 %58, 1
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %60
store i32 %57, ptr %61, align 4
br label %62
62: ; preds = %44, %33
br label %63
63: ; preds = %62
%64 = load i32, ptr %3, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %3, align 4
br label %29, !llvm.loop !8
66: ; preds = %29
br label %67
67: ; preds = %66
%68 = load i32, ptr %4, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %4, align 4
br label %24, !llvm.loop !9
70: ; preds = %24
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %3, align 4
br label %72
72: ; preds = %82, %70
%73 = load i32, ptr %3, align 4
%74 = load i32, ptr %6, align 4
%75 = icmp slt i32 %73, %74
br i1 %75, label %76, label %85
76: ; preds = %72
%77 = load i32, ptr %3, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %78
%80 = load i32, ptr %79, align 4
%81 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %80)
br label %82
82: ; preds = %76
%83 = load i32, ptr %3, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %3, align 4
br label %72, !llvm.loop !10
85: ; preds = %72
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprirgn6il.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Number of elements :\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [41 x i8] c"Enter %d number values you want to sort\0A\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"\0A\0AArray after sorting:\0A\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%d\09\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 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 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %6)
%9 = load i32, ptr %6, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %9)
store i32 0, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = load i32, ptr %6, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %.lr.ph, label %25
.lr.ph: ; preds = %0
br label %14
14: ; preds = %.lr.ph, %19
%15 = load i32, ptr %4, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %16
%18 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %17)
br label %19
19: ; preds = %14
%20 = load i32, ptr %4, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %4, align 4
%22 = load i32, ptr %4, align 4
%23 = load i32, ptr %6, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %25
25: ; preds = %._crit_edge, %0
store i32 1, ptr %4, align 4
%26 = load i32, ptr %4, align 4
%27 = load i32, ptr %6, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %.lr.ph5, label %76
.lr.ph5: ; preds = %25
br label %29
29: ; preds = %.lr.ph5, %70
store i32 0, ptr %3, align 4
%30 = load i32, ptr %3, align 4
%31 = load i32, ptr %6, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %.lr.ph2, label %69
.lr.ph2: ; preds = %29
br label %33
33: ; preds = %.lr.ph2, %63
%34 = load i32, ptr %3, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %35
%37 = load i32, ptr %36, align 4
%38 = load i32, ptr %3, align 4
%39 = add nsw i32 %38, 1
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %40
%42 = load i32, ptr %41, align 4
%43 = icmp sgt i32 %37, %42
br i1 %43, label %44, label %62
44: ; preds = %33
%45 = load i32, ptr %3, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %46
%48 = load i32, ptr %47, align 4
store i32 %48, ptr %5, align 4
%49 = load i32, ptr %3, align 4
%50 = add nsw i32 %49, 1
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %51
%53 = load i32, ptr %52, align 4
%54 = load i32, ptr %3, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %55
store i32 %53, ptr %56, align 4
%57 = load i32, ptr %5, align 4
%58 = load i32, ptr %3, align 4
%59 = add nsw i32 %58, 1
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %60
store i32 %57, ptr %61, align 4
br label %62
62: ; preds = %44, %33
br label %63
63: ; preds = %62
%64 = load i32, ptr %3, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %3, align 4
%66 = load i32, ptr %3, align 4
%67 = load i32, ptr %6, align 4
%68 = icmp slt i32 %66, %67
br i1 %68, label %33, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %63
br label %69
69: ; preds = %._crit_edge3, %29
br label %70
70: ; preds = %69
%71 = load i32, ptr %4, align 4
%72 = add nsw i32 %71, 1
store i32 %72, ptr %4, align 4
%73 = load i32, ptr %4, align 4
%74 = load i32, ptr %6, align 4
%75 = icmp slt i32 %73, %74
br i1 %75, label %29, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %70
br label %76
76: ; preds = %._crit_edge6, %25
%77 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %3, align 4
%78 = load i32, ptr %3, align 4
%79 = load i32, ptr %6, align 4
%80 = icmp slt i32 %78, %79
br i1 %80, label %.lr.ph8, label %93
.lr.ph8: ; preds = %76
br label %81
81: ; preds = %.lr.ph8, %87
%82 = load i32, ptr %3, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %83
%85 = load i32, ptr %84, align 4
%86 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %85)
br label %87
87: ; preds = %81
%88 = load i32, ptr %3, align 4
%89 = add nsw i32 %88, 1
store i32 %89, ptr %3, align 4
%90 = load i32, ptr %3, align 4
%91 = load i32, ptr %6, align 4
%92 = icmp slt i32 %90, %91
br i1 %92, label %81, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %87
br label %93
93: ; preds = %._crit_edge9, %76
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmphgac6ylw.c'
source_filename = "/tmp/tmphgac6ylw.c"
target datalayout = "e-m:e-p270: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/tmphgac6ylw.c"
target datalayout = "e-m:e-p270: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/tmpuu7z5d5u.c'
source_filename = "/tmp/tmpuu7z5d5u.c"
target datalayout = "e-m:e-p270: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/tmpuu7z5d5u.c"
target datalayout = "e-m:e-p270: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/tmp9z8365uq.c'
source_filename = "/tmp/tmp9z8365uq.c"
target datalayout = "e-m:e-p270: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/tmp9z8365uq.c"
target datalayout = "e-m:e-p270: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/tmpu61o_fyu.c'
source_filename = "/tmp/tmpu61o_fyu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%ld %ld\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%ld\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store i32 0, ptr %1, align 4
%9 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%10 = load i64, ptr %3, align 8
%11 = mul i64 8, %10
%12 = trunc i64 %11 to i32
%13 = call i64 @malloc(i32 noundef %12)
%14 = inttoptr i64 %13 to ptr
store ptr %14, ptr %7, align 8
%15 = load ptr, ptr %7, align 8
%16 = load i64, ptr %3, align 8
%17 = call i32 @memset(ptr noundef %15, i32 noundef 0, i64 noundef %16)
store i64 0, ptr %4, align 8
store i64 0, ptr %5, align 8
br label %18
18: ; preds = %31, %0
%19 = load i64, ptr %5, align 8
%20 = load i64, ptr %2, align 8
%21 = icmp slt i64 %19, %20
br i1 %21, label %22, label %34
22: ; preds = %18
%23 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %8)
%24 = load ptr, ptr %7, align 8
%25 = load i64, ptr %8, align 8
%26 = load i64, ptr %3, align 8
%27 = srem i64 %25, %26
%28 = getelementptr inbounds i64, ptr %24, i64 %27
%29 = load i64, ptr %28, align 8
%30 = add nsw i64 %29, 1
store i64 %30, ptr %28, align 8
br label %31
31: ; preds = %22
%32 = load i64, ptr %5, align 8
%33 = add nsw i64 %32, 1
store i64 %33, ptr %5, align 8
br label %18, !llvm.loop !6
34: ; preds = %18
%35 = load ptr, ptr %7, align 8
%36 = getelementptr inbounds i64, ptr %35, i64 0
%37 = load i64, ptr %36, align 8
%38 = icmp sgt i64 %37, 0
br i1 %38, label %39, label %42
39: ; preds = %34
%40 = load i64, ptr %4, align 8
%41 = add nsw i64 %40, 1
store i64 %41, ptr %4, align 8
br label %42
42: ; preds = %39, %34
%43 = load i64, ptr %3, align 8
%44 = srem i64 %43, 2
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %49
46: ; preds = %42
%47 = load i64, ptr %4, align 8
%48 = add nsw i64 %47, 1
store i64 %48, ptr %4, align 8
br label %49
49: ; preds = %46, %42
store i64 1, ptr %5, align 8
%50 = load i64, ptr %3, align 8
%51 = sub nsw i64 %50, 1
store i64 %51, ptr %6, align 8
br label %52
52: ; preds = %76, %49
%53 = load i64, ptr %5, align 8
%54 = load i64, ptr %6, align 8
%55 = icmp slt i64 %53, %54
br i1 %55, label %56, label %84
56: ; preds = %52
%57 = load ptr, ptr %7, align 8
%58 = load i64, ptr %5, align 8
%59 = getelementptr inbounds i64, ptr %57, i64 %58
%60 = load i64, ptr %59, align 8
%61 = load ptr, ptr %7, align 8
%62 = load i64, ptr %6, align 8
%63 = getelementptr inbounds i64, ptr %61, i64 %62
%64 = load i64, ptr %63, align 8
%65 = icmp sgt i64 %60, %64
br i1 %65, label %66, label %71
66: ; preds = %56
%67 = load ptr, ptr %7, align 8
%68 = load i64, ptr %5, align 8
%69 = getelementptr inbounds i64, ptr %67, i64 %68
%70 = load i64, ptr %69, align 8
br label %76
71: ; preds = %56
%72 = load ptr, ptr %7, align 8
%73 = load i64, ptr %6, align 8
%74 = getelementptr inbounds i64, ptr %72, i64 %73
%75 = load i64, ptr %74, align 8
br label %76
76: ; preds = %71, %66
%77 = phi i64 [ %70, %66 ], [ %75, %71 ]
%78 = load i64, ptr %4, align 8
%79 = add nsw i64 %78, %77
store i64 %79, ptr %4, align 8
%80 = load i64, ptr %5, align 8
%81 = add nsw i64 %80, 1
store i64 %81, ptr %5, align 8
%82 = load i64, ptr %6, align 8
%83 = add nsw i64 %82, -1
store i64 %83, ptr %6, align 8
br label %52, !llvm.loop !8
84: ; preds = %52
%85 = load i64, ptr %4, align 8
%86 = call i32 @printf(ptr noundef @.str.1, i64 noundef %85)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i64 noundef) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu61o_fyu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%ld %ld\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%ld\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store i32 0, ptr %1, align 4
%9 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%10 = load i64, ptr %3, align 8
%11 = mul i64 8, %10
%12 = trunc i64 %11 to i32
%13 = call i64 @malloc(i32 noundef %12)
%14 = inttoptr i64 %13 to ptr
store ptr %14, ptr %7, align 8
%15 = load ptr, ptr %7, align 8
%16 = load i64, ptr %3, align 8
%17 = call i32 @memset(ptr noundef %15, i32 noundef 0, i64 noundef %16)
store i64 0, ptr %4, align 8
store i64 0, ptr %5, align 8
%18 = load i64, ptr %5, align 8
%19 = load i64, ptr %2, align 8
%20 = icmp slt i64 %18, %19
br i1 %20, label %.lr.ph, label %36
.lr.ph: ; preds = %0
br label %21
21: ; preds = %.lr.ph, %30
%22 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %8)
%23 = load ptr, ptr %7, align 8
%24 = load i64, ptr %8, align 8
%25 = load i64, ptr %3, align 8
%26 = srem i64 %24, %25
%27 = getelementptr inbounds i64, ptr %23, i64 %26
%28 = load i64, ptr %27, align 8
%29 = add nsw i64 %28, 1
store i64 %29, ptr %27, align 8
br label %30
30: ; preds = %21
%31 = load i64, ptr %5, align 8
%32 = add nsw i64 %31, 1
store i64 %32, ptr %5, align 8
%33 = load i64, ptr %5, align 8
%34 = load i64, ptr %2, align 8
%35 = icmp slt i64 %33, %34
br i1 %35, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %36
36: ; preds = %._crit_edge, %0
%37 = load ptr, ptr %7, align 8
%38 = getelementptr inbounds i64, ptr %37, i64 0
%39 = load i64, ptr %38, align 8
%40 = icmp sgt i64 %39, 0
br i1 %40, label %41, label %44
41: ; preds = %36
%42 = load i64, ptr %4, align 8
%43 = add nsw i64 %42, 1
store i64 %43, ptr %4, align 8
br label %44
44: ; preds = %41, %36
%45 = load i64, ptr %3, align 8
%46 = srem i64 %45, 2
%47 = icmp eq i64 %46, 0
br i1 %47, label %48, label %51
48: ; preds = %44
%49 = load i64, ptr %4, align 8
%50 = add nsw i64 %49, 1
store i64 %50, ptr %4, align 8
br label %51
51: ; preds = %48, %44
store i64 1, ptr %5, align 8
%52 = load i64, ptr %3, align 8
%53 = sub nsw i64 %52, 1
store i64 %53, ptr %6, align 8
%54 = load i64, ptr %5, align 8
%55 = load i64, ptr %6, align 8
%56 = icmp slt i64 %54, %55
br i1 %56, label %.lr.ph2, label %88
.lr.ph2: ; preds = %51
br label %57
57: ; preds = %.lr.ph2, %77
%58 = load ptr, ptr %7, align 8
%59 = load i64, ptr %5, align 8
%60 = getelementptr inbounds i64, ptr %58, i64 %59
%61 = load i64, ptr %60, align 8
%62 = load ptr, ptr %7, align 8
%63 = load i64, ptr %6, align 8
%64 = getelementptr inbounds i64, ptr %62, i64 %63
%65 = load i64, ptr %64, align 8
%66 = icmp sgt i64 %61, %65
br i1 %66, label %67, label %72
67: ; preds = %57
%68 = load ptr, ptr %7, align 8
%69 = load i64, ptr %5, align 8
%70 = getelementptr inbounds i64, ptr %68, i64 %69
%71 = load i64, ptr %70, align 8
br label %77
72: ; preds = %57
%73 = load ptr, ptr %7, align 8
%74 = load i64, ptr %6, align 8
%75 = getelementptr inbounds i64, ptr %73, i64 %74
%76 = load i64, ptr %75, align 8
br label %77
77: ; preds = %72, %67
%78 = phi i64 [ %71, %67 ], [ %76, %72 ]
%79 = load i64, ptr %4, align 8
%80 = add nsw i64 %79, %78
store i64 %80, ptr %4, align 8
%81 = load i64, ptr %5, align 8
%82 = add nsw i64 %81, 1
store i64 %82, ptr %5, align 8
%83 = load i64, ptr %6, align 8
%84 = add nsw i64 %83, -1
store i64 %84, ptr %6, align 8
%85 = load i64, ptr %5, align 8
%86 = load i64, ptr %6, align 8
%87 = icmp slt i64 %85, %86
br i1 %87, label %57, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %77
br label %88
88: ; preds = %._crit_edge3, %51
%89 = load i64, ptr %4, align 8
%90 = call i32 @printf(ptr noundef @.str.1, i64 noundef %89)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i64 noundef) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpy4w6qhvm.c'
source_filename = "/tmp/tmpy4w6qhvm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @out_hex(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %4, align 4
%9 = shl i32 1, %8
%10 = or i32 %7, %9
%11 = call i32 @bsr(i32 noundef %10)
%12 = and i32 %11, 252
store i32 %12, ptr %5, align 4
br label %13
13: ; preds = %31, %2
%14 = load i32, ptr %5, align 4
%15 = icmp sge i32 %14, 0
br i1 %15, label %16, label %34
16: ; preds = %13
%17 = load i32, ptr %3, align 4
%18 = load i32, ptr %5, align 4
%19 = lshr i32 %17, %18
%20 = and i32 %19, 15
store i32 %20, ptr %6, align 4
%21 = load i32, ptr %6, align 4
%22 = icmp uge i32 %21, 10
br i1 %22, label %23, label %26
23: ; preds = %16
%24 = load i32, ptr %6, align 4
%25 = add i32 %24, 7
store i32 %25, ptr %6, align 4
br label %26
26: ; preds = %23, %16
%27 = load i32, ptr %6, align 4
%28 = add i32 %27, 48
store i32 %28, ptr %6, align 4
%29 = load i32, ptr %6, align 4
%30 = call i32 @out_char(i32 noundef %29)
br label %31
31: ; preds = %26
%32 = load i32, ptr %5, align 4
%33 = sub nsw i32 %32, 4
store i32 %33, ptr %5, align 4
br label %13, !llvm.loop !6
34: ; preds = %13
ret void
}
declare i32 @bsr(i32 noundef) #1
declare i32 @out_char(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/tmpy4w6qhvm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @out_hex(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %4, align 4
%9 = shl i32 1, %8
%10 = or i32 %7, %9
%11 = call i32 @bsr(i32 noundef %10)
%12 = and i32 %11, 252
store i32 %12, ptr %5, align 4
%13 = load i32, ptr %5, align 4
%14 = icmp sge i32 %13, 0
br i1 %14, label %.lr.ph, label %35
.lr.ph: ; preds = %2
br label %15
15: ; preds = %.lr.ph, %30
%16 = load i32, ptr %3, align 4
%17 = load i32, ptr %5, align 4
%18 = lshr i32 %16, %17
%19 = and i32 %18, 15
store i32 %19, ptr %6, align 4
%20 = load i32, ptr %6, align 4
%21 = icmp uge i32 %20, 10
br i1 %21, label %22, label %25
22: ; preds = %15
%23 = load i32, ptr %6, align 4
%24 = add i32 %23, 7
store i32 %24, ptr %6, align 4
br label %25
25: ; preds = %22, %15
%26 = load i32, ptr %6, align 4
%27 = add i32 %26, 48
store i32 %27, ptr %6, align 4
%28 = load i32, ptr %6, align 4
%29 = call i32 @out_char(i32 noundef %28)
br label %30
30: ; preds = %25
%31 = load i32, ptr %5, align 4
%32 = sub nsw i32 %31, 4
store i32 %32, ptr %5, align 4
%33 = load i32, ptr %5, align 4
%34 = icmp sge i32 %33, 0
br i1 %34, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %35
35: ; preds = %._crit_edge, %2
ret void
}
declare i32 @bsr(i32 noundef) #1
declare i32 @out_char(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/tmp6jkygnyp.c'
source_filename = "/tmp/tmp6jkygnyp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @validate_int(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 1, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %4, align 4
br label %5
5: ; preds = %24, %1
%6 = load i32, ptr %4, align 4
%7 = load ptr, ptr %2, align 8
%8 = call i32 @strlen(ptr noundef %7)
%9 = icmp slt i32 %6, %8
br i1 %9, label %10, label %27
10: ; preds = %5
%11 = load i32, ptr %3, align 4
%12 = icmp eq i32 %11, 1
br i1 %12, label %13, label %23
13: ; preds = %10
%14 = load ptr, ptr %2, align 8
%15 = load i32, ptr %4, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
%18 = load i8, ptr %17, align 1
%19 = call i32 @isdigit(i8 noundef signext %18)
%20 = icmp ne i32 %19, 0
br i1 %20, label %22, label %21
21: ; preds = %13
store i32 0, ptr %3, align 4
br label %22
22: ; preds = %21, %13
br label %23
23: ; preds = %22, %10
br label %24
24: ; preds = %23
%25 = load i32, ptr %4, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %4, align 4
br label %5, !llvm.loop !6
27: ; preds = %5
%28 = load i32, ptr %3, align 4
ret i32 %28
}
declare i32 @strlen(ptr noundef) #1
declare i32 @isdigit(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6jkygnyp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @validate_int(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 1, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = load ptr, ptr %2, align 8
%7 = call i32 @strlen(ptr noundef %6)
%8 = icmp slt i32 %5, %7
br i1 %8, label %.lr.ph, label %30
.lr.ph: ; preds = %1
br label %9
9: ; preds = %.lr.ph, %23
%10 = load i32, ptr %3, align 4
%11 = icmp eq i32 %10, 1
br i1 %11, label %12, label %22
12: ; preds = %9
%13 = load ptr, ptr %2, align 8
%14 = load i32, ptr %4, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = load i8, ptr %16, align 1
%18 = call i32 @isdigit(i8 noundef signext %17)
%19 = icmp ne i32 %18, 0
br i1 %19, label %21, label %20
20: ; preds = %12
store i32 0, ptr %3, align 4
br label %21
21: ; preds = %20, %12
br label %22
22: ; preds = %21, %9
br label %23
23: ; preds = %22
%24 = load i32, ptr %4, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %4, align 4
%26 = load i32, ptr %4, align 4
%27 = load ptr, ptr %2, align 8
%28 = call i32 @strlen(ptr noundef %27)
%29 = icmp slt i32 %26, %28
br i1 %29, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %30
30: ; preds = %._crit_edge, %1
%31 = load i32, ptr %3, align 4
ret i32 %31
}
declare i32 @strlen(ptr noundef) #1
declare i32 @isdigit(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp867td7nj.c'
source_filename = "/tmp/tmp867td7nj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dtm_write_raw_header_to_file(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i32 @fwrite(ptr noundef %6, i32 noundef 1, i32 noundef 256, ptr noundef %7)
store i32 %8, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp eq i32 %9, 256
%11 = zext i1 %10 to i64
%12 = select i1 %10, i32 0, i32 -1
ret i32 %12
}
declare i32 @fwrite(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/tmp867td7nj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dtm_write_raw_header_to_file(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i32 @fwrite(ptr noundef %6, i32 noundef 1, i32 noundef 256, ptr noundef %7)
store i32 %8, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp eq i32 %9, 256
%11 = zext i1 %10 to i64
%12 = select i1 %10, i32 0, i32 -1
ret i32 %12
}
declare i32 @fwrite(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/tmpxd5zqmmo.c'
source_filename = "/tmp/tmpxd5zqmmo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"PASS %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"ERROR\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @chk_int(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %2
%8 = load ptr, ptr %3, align 8
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %8)
br label %13
10: ; preds = %2
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%12 = call i32 @exit(i32 noundef 1) #3
unreachable
13: ; preds = %7
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxd5zqmmo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"PASS %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"ERROR\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @chk_int(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %2
%8 = load ptr, ptr %3, align 8
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %8)
br label %13
10: ; preds = %2
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%12 = call i32 @exit(i32 noundef 1) #3
unreachable
13: ; preds = %7
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpumeoc1bc.c'
source_filename = "/tmp/tmpumeoc1bc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"n:\00", align 1
@optarg = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [37 x i8] c"Usage: %s -n [NUMBER_OF_RECTANGLES]\0A\00", align 1
@optind = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [14 x i8] c" --- %s --- \0A\00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c"Number of processes: %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [25 x i8] c"Threads per process: %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [25 x i8] c"Rectangles : %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [25 x i8] c"pi is approximately: %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca double, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca double, align 8
%13 = 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 100000000, ptr %6, align 4
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 0
%16 = load ptr, ptr %15, align 8
store ptr %16, ptr %7, align 8
br label %17
17: ; preds = %32, %2
%18 = load i32, ptr %4, align 4
%19 = load ptr, ptr %5, align 8
%20 = call i32 @getopt(i32 noundef %18, ptr noundef %19, ptr noundef @.str)
store i32 %20, ptr %8, align 4
%21 = icmp ne i32 %20, -1
br i1 %21, label %22, label %33
22: ; preds = %17
%23 = load i32, ptr %8, align 4
switch i32 %23, label %28 [
i32 110, label %24
i32 63, label %27
]
24: ; preds = %22
%25 = load i32, ptr @optarg, align 4
%26 = call i32 @atoi(i32 noundef %25)
store i32 %26, ptr %6, align 4
br label %32
27: ; preds = %22
br label %28
28: ; preds = %22, %27
%29 = load i32, ptr @stderr, align 4
%30 = load ptr, ptr %7, align 8
%31 = call i32 @fprintf(i32 noundef %29, ptr noundef @.str.1, ptr noundef %30)
store i32 -1, ptr %3, align 4
br label %72
32: ; preds = %24
br label %17, !llvm.loop !6
33: ; preds = %17
%34 = load i32, ptr %4, align 4
%35 = load i32, ptr @optind, align 4
%36 = sub nsw i32 %34, %35
%37 = load i32, ptr @optind, align 4
%38 = load ptr, ptr %5, align 8
%39 = sext i32 %37 to i64
%40 = getelementptr inbounds ptr, ptr %38, i64 %39
store ptr %40, ptr %5, align 8
%41 = load i32, ptr %6, align 4
%42 = sitofp i32 %41 to double
%43 = fdiv double 1.000000e+00, %42
store double %43, ptr %9, align 8
store i32 0, ptr %10, align 4
%44 = load i32, ptr %6, align 4
store i32 %44, ptr %11, align 4
store double 0.000000e+00, ptr %12, align 8
store i32 0, ptr %13, align 4
%45 = load i32, ptr %10, align 4
store i32 %45, ptr %13, align 4
br label %46
46: ; preds = %60, %33
%47 = load i32, ptr %13, align 4
%48 = load i32, ptr %11, align 4
%49 = icmp ne i32 %47, %48
br i1 %49, label %50, label %63
50: ; preds = %46
%51 = load double, ptr %9, align 8
%52 = load i32, ptr %13, align 4
%53 = sitofp i32 %52 to double
%54 = fmul double %51, %53
%55 = call double @func(double noundef %54)
%56 = load double, ptr %9, align 8
%57 = fmul double %55, %56
%58 = load double, ptr %12, align 8
%59 = call double @llvm.fmuladd.f64(double %57, double 4.000000e+00, double %58)
store double %59, ptr %12, align 8
br label %60
60: ; preds = %50
%61 = load i32, ptr %13, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %13, align 4
br label %46, !llvm.loop !8
63: ; preds = %46
%64 = load ptr, ptr %7, align 8
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %64)
%66 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef 1)
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef 1)
%68 = load i32, ptr %6, align 4
%69 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %68)
%70 = load double, ptr %12, align 8
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %70)
store i32 0, ptr %3, align 4
br label %72
72: ; preds = %63, %28
%73 = load i32, ptr %3, align 4
ret i32 %73
}
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @atoi(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare double @func(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpumeoc1bc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"n:\00", align 1
@optarg = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [37 x i8] c"Usage: %s -n [NUMBER_OF_RECTANGLES]\0A\00", align 1
@optind = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [14 x i8] c" --- %s --- \0A\00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c"Number of processes: %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [25 x i8] c"Threads per process: %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [25 x i8] c"Rectangles : %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [25 x i8] c"pi is approximately: %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca double, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca double, align 8
%13 = 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 100000000, ptr %6, align 4
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 0
%16 = load ptr, ptr %15, align 8
store ptr %16, ptr %7, align 8
%17 = load i32, ptr %4, align 4
%18 = load ptr, ptr %5, align 8
%19 = call i32 @getopt(i32 noundef %17, ptr noundef %18, ptr noundef @.str)
store i32 %19, ptr %8, align 4
%20 = icmp ne i32 %19, -1
br i1 %20, label %.lr.ph, label %36
.lr.ph: ; preds = %2
br label %21
21: ; preds = %.lr.ph, %31
%22 = load i32, ptr %8, align 4
switch i32 %22, label %.loopexit [
i32 110, label %23
i32 63, label %26
]
23: ; preds = %21
%24 = load i32, ptr @optarg, align 4
%25 = call i32 @atoi(i32 noundef %24)
store i32 %25, ptr %6, align 4
br label %31
26: ; preds = %21
br label %27
.loopexit: ; preds = %21
br label %27
27: ; preds = %.loopexit, %26
%28 = load i32, ptr @stderr, align 4
%29 = load ptr, ptr %7, align 8
%30 = call i32 @fprintf(i32 noundef %28, ptr noundef @.str.1, ptr noundef %29)
store i32 -1, ptr %3, align 4
br label %77
31: ; preds = %23
%32 = load i32, ptr %4, align 4
%33 = load ptr, ptr %5, align 8
%34 = call i32 @getopt(i32 noundef %32, ptr noundef %33, ptr noundef @.str)
store i32 %34, ptr %8, align 4
%35 = icmp ne i32 %34, -1
br i1 %35, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %31
br label %36
36: ; preds = %._crit_edge, %2
%37 = load i32, ptr %4, align 4
%38 = load i32, ptr @optind, align 4
%39 = sub nsw i32 %37, %38
%40 = load i32, ptr @optind, align 4
%41 = load ptr, ptr %5, align 8
%42 = sext i32 %40 to i64
%43 = getelementptr inbounds ptr, ptr %41, i64 %42
store ptr %43, ptr %5, align 8
%44 = load i32, ptr %6, align 4
%45 = sitofp i32 %44 to double
%46 = fdiv double 1.000000e+00, %45
store double %46, ptr %9, align 8
store i32 0, ptr %10, align 4
%47 = load i32, ptr %6, align 4
store i32 %47, ptr %11, align 4
store double 0.000000e+00, ptr %12, align 8
store i32 0, ptr %13, align 4
%48 = load i32, ptr %10, align 4
store i32 %48, ptr %13, align 4
%49 = load i32, ptr %13, align 4
%50 = load i32, ptr %11, align 4
%51 = icmp ne i32 %49, %50
br i1 %51, label %.lr.ph2, label %68
.lr.ph2: ; preds = %36
br label %52
52: ; preds = %.lr.ph2, %62
%53 = load double, ptr %9, align 8
%54 = load i32, ptr %13, align 4
%55 = sitofp i32 %54 to double
%56 = fmul double %53, %55
%57 = call double @func(double noundef %56)
%58 = load double, ptr %9, align 8
%59 = fmul double %57, %58
%60 = load double, ptr %12, align 8
%61 = call double @llvm.fmuladd.f64(double %59, double 4.000000e+00, double %60)
store double %61, ptr %12, align 8
br label %62
62: ; preds = %52
%63 = load i32, ptr %13, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %13, align 4
%65 = load i32, ptr %13, align 4
%66 = load i32, ptr %11, align 4
%67 = icmp ne i32 %65, %66
br i1 %67, label %52, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %62
br label %68
68: ; preds = %._crit_edge3, %36
%69 = load ptr, ptr %7, align 8
%70 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %69)
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef 1)
%72 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef 1)
%73 = load i32, ptr %6, align 4
%74 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %73)
%75 = load double, ptr %12, align 8
%76 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %75)
store i32 0, ptr %3, align 4
br label %77
77: ; preds = %68, %27
%78 = load i32, ptr %3, align 4
ret i32 %78
}
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @atoi(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare double @func(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpeis9l8ru.c'
source_filename = "/tmp/tmpeis9l8ru.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @LCD_Init() #0 {
%1 = call i32 @CyDelay(i32 noundef 40)
%2 = call i32 @LCD_WrCntrlNib(i32 noundef 3)
%3 = call i32 @CyDelay(i32 noundef 5)
%4 = call i32 @LCD_WrCntrlNib(i32 noundef 3)
%5 = call i32 @CyDelay(i32 noundef 15)
%6 = call i32 @LCD_WrCntrlNib(i32 noundef 3)
%7 = call i32 @CyDelay(i32 noundef 1)
%8 = call i32 @LCD_WrCntrlNib(i32 noundef 2)
%9 = call i32 @CyDelay(i32 noundef 5)
%10 = call i32 @LCD_WriteControl(i32 noundef 6)
%11 = call i32 @LCD_WriteControl(i32 noundef 14)
%12 = call i32 @LCD_WriteControl(i32 noundef 44)
%13 = call i32 @LCD_WriteControl(i32 noundef 8)
%14 = call i32 @LCD_WriteControl(i32 noundef 1)
%15 = call i32 @LCD_WriteControl(i32 noundef 12)
%16 = call i32 @LCD_WriteControl(i32 noundef 3)
%17 = call i32 @CyDelay(i32 noundef 5)
ret void
}
declare i32 @CyDelay(i32 noundef) #1
declare i32 @LCD_WrCntrlNib(i32 noundef) #1
declare i32 @LCD_WriteControl(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/tmpeis9l8ru.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @LCD_Init() #0 {
%1 = call i32 @CyDelay(i32 noundef 40)
%2 = call i32 @LCD_WrCntrlNib(i32 noundef 3)
%3 = call i32 @CyDelay(i32 noundef 5)
%4 = call i32 @LCD_WrCntrlNib(i32 noundef 3)
%5 = call i32 @CyDelay(i32 noundef 15)
%6 = call i32 @LCD_WrCntrlNib(i32 noundef 3)
%7 = call i32 @CyDelay(i32 noundef 1)
%8 = call i32 @LCD_WrCntrlNib(i32 noundef 2)
%9 = call i32 @CyDelay(i32 noundef 5)
%10 = call i32 @LCD_WriteControl(i32 noundef 6)
%11 = call i32 @LCD_WriteControl(i32 noundef 14)
%12 = call i32 @LCD_WriteControl(i32 noundef 44)
%13 = call i32 @LCD_WriteControl(i32 noundef 8)
%14 = call i32 @LCD_WriteControl(i32 noundef 1)
%15 = call i32 @LCD_WriteControl(i32 noundef 12)
%16 = call i32 @LCD_WriteControl(i32 noundef 3)
%17 = call i32 @CyDelay(i32 noundef 5)
ret void
}
declare i32 @CyDelay(i32 noundef) #1
declare i32 @LCD_WrCntrlNib(i32 noundef) #1
declare i32 @LCD_WriteControl(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/tmpdx2uyscj.c'
source_filename = "/tmp/tmpdx2uyscj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"person %d got person %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 [16 x i32], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = getelementptr inbounds [16 x i32], ptr %3, i64 0, i64 0
%8 = call i32 @reset(ptr noundef %7, ptr noundef %5, ptr noundef %4)
%9 = call i32 @time(ptr noundef null)
%10 = call i32 @srand(i32 noundef %9)
store i32 1, ptr %5, align 4
store i32 0, ptr %4, align 4
br label %11
11: ; preds = %51, %0
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %12, 16
br i1 %13, label %14, label %54
14: ; preds = %11
%15 = call i32 (...) @rand()
%16 = srem i32 %15, 16
store i32 %16, ptr %2, align 4
store i32 0, ptr %6, align 4
br label %17
17: ; preds = %31, %14
%18 = load i32, ptr %6, align 4
%19 = icmp slt i32 %18, 16
br i1 %19, label %20, label %34
20: ; preds = %17
%21 = load i32, ptr %6, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [16 x i32], ptr %3, i64 0, i64 %22
%24 = load i32, ptr %23, align 4
%25 = load i32, ptr %2, align 4
%26 = icmp eq i32 %24, %25
br i1 %26, label %27, label %30
27: ; preds = %20
%28 = getelementptr inbounds [16 x i32], ptr %3, i64 0, i64 0
%29 = call i32 @reset(ptr noundef %28, ptr noundef %5, ptr noundef %4)
br label %30
30: ; preds = %27, %20
br label %31
31: ; preds = %30
%32 = load i32, ptr %6, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %6, align 4
br label %17, !llvm.loop !6
34: ; preds = %17
%35 = load i32, ptr %2, align 4
%36 = load i32, ptr %4, align 4
%37 = icmp eq i32 %35, %36
br i1 %37, label %38, label %41
38: ; preds = %34
%39 = getelementptr inbounds [16 x i32], ptr %3, i64 0, i64 0
%40 = call i32 @reset(ptr noundef %39, ptr noundef %5, ptr noundef %4)
br label %42
41: ; preds = %34
store i32 1, ptr %5, align 4
br label %42
42: ; preds = %41, %38
%43 = load i32, ptr %5, align 4
%44 = icmp eq i32 %43, 1
br i1 %44, label %45, label %50
45: ; preds = %42
%46 = load i32, ptr %2, align 4
%47 = load i32, ptr %4, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [16 x i32], ptr %3, i64 0, i64 %48
store i32 %46, ptr %49, align 4
br label %50
50: ; preds = %45, %42
br label %51
51: ; preds = %50
%52 = load i32, ptr %4, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %4, align 4
br label %11, !llvm.loop !8
54: ; preds = %11
store i32 0, ptr %4, align 4
br label %55
55: ; preds = %65, %54
%56 = load i32, ptr %4, align 4
%57 = icmp slt i32 %56, 16
br i1 %57, label %58, label %68
58: ; preds = %55
%59 = load i32, ptr %4, align 4
%60 = load i32, ptr %4, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [16 x i32], ptr %3, i64 0, i64 %61
%63 = load i32, ptr %62, align 4
%64 = call i32 @printf(ptr noundef @.str, i32 noundef %59, i32 noundef %63)
br label %65
65: ; preds = %58
%66 = load i32, ptr %4, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %4, align 4
br label %55, !llvm.loop !9
68: ; preds = %55
ret i32 0
}
declare i32 @reset(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @rand(...) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdx2uyscj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"person %d got person %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 [16 x i32], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = getelementptr inbounds [16 x i32], ptr %3, i64 0, i64 0
%8 = call i32 @reset(ptr noundef %7, ptr noundef %5, ptr noundef %4)
%9 = call i32 @time(ptr noundef null)
%10 = call i32 @srand(i32 noundef %9)
store i32 1, ptr %5, align 4
store i32 0, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %11, 16
br i1 %12, label %.lr.ph2, label %56
.lr.ph2: ; preds = %0
br label %13
13: ; preds = %.lr.ph2, %51
%14 = call i32 (...) @rand()
%15 = srem i32 %14, 16
store i32 %15, ptr %2, align 4
store i32 0, ptr %6, align 4
%16 = load i32, ptr %6, align 4
%17 = icmp slt i32 %16, 16
br i1 %17, label %.lr.ph, label %34
.lr.ph: ; preds = %13
br label %18
18: ; preds = %.lr.ph, %29
%19 = load i32, ptr %6, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [16 x i32], ptr %3, i64 0, i64 %20
%22 = load i32, ptr %21, align 4
%23 = load i32, ptr %2, align 4
%24 = icmp eq i32 %22, %23
br i1 %24, label %25, label %28
25: ; preds = %18
%26 = getelementptr inbounds [16 x i32], ptr %3, i64 0, i64 0
%27 = call i32 @reset(ptr noundef %26, ptr noundef %5, ptr noundef %4)
br label %28
28: ; preds = %25, %18
br label %29
29: ; preds = %28
%30 = load i32, ptr %6, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %6, align 4
%32 = load i32, ptr %6, align 4
%33 = icmp slt i32 %32, 16
br i1 %33, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %34
34: ; preds = %._crit_edge, %13
%35 = load i32, ptr %2, align 4
%36 = load i32, ptr %4, align 4
%37 = icmp eq i32 %35, %36
br i1 %37, label %38, label %41
38: ; preds = %34
%39 = getelementptr inbounds [16 x i32], ptr %3, i64 0, i64 0
%40 = call i32 @reset(ptr noundef %39, ptr noundef %5, ptr noundef %4)
br label %42
41: ; preds = %34
store i32 1, ptr %5, align 4
br label %42
42: ; preds = %41, %38
%43 = load i32, ptr %5, align 4
%44 = icmp eq i32 %43, 1
br i1 %44, label %45, label %50
45: ; preds = %42
%46 = load i32, ptr %2, align 4
%47 = load i32, ptr %4, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [16 x i32], ptr %3, i64 0, i64 %48
store i32 %46, ptr %49, align 4
br label %50
50: ; preds = %45, %42
br label %51
51: ; preds = %50
%52 = load i32, ptr %4, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %4, align 4
%54 = load i32, ptr %4, align 4
%55 = icmp slt i32 %54, 16
br i1 %55, label %13, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %51
br label %56
56: ; preds = %._crit_edge3, %0
store i32 0, ptr %4, align 4
%57 = load i32, ptr %4, align 4
%58 = icmp slt i32 %57, 16
br i1 %58, label %.lr.ph5, label %71
.lr.ph5: ; preds = %56
br label %59
59: ; preds = %.lr.ph5, %66
%60 = load i32, ptr %4, align 4
%61 = load i32, ptr %4, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [16 x i32], ptr %3, i64 0, i64 %62
%64 = load i32, ptr %63, align 4
%65 = call i32 @printf(ptr noundef @.str, i32 noundef %60, i32 noundef %64)
br label %66
66: ; preds = %59
%67 = load i32, ptr %4, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %4, align 4
%69 = load i32, ptr %4, align 4
%70 = icmp slt i32 %69, 16
br i1 %70, label %59, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %66
br label %71
71: ; preds = %._crit_edge6, %56
ret i32 0
}
declare i32 @reset(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @rand(...) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpqdsjrcbr.c'
source_filename = "/tmp/tmpqdsjrcbr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"[ ] Team Win Theme (Default)\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"[ ] CyanogenMod Theme\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"[ ] Red Rum Theme\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"[ ] Google Theme\00", align 1
@.str.4 = private unnamed_addr constant [33 x i8] c"[ ] JesusFreke Theme (oldschool)\00", align 1
@.str.5 = private unnamed_addr constant [14 x i8] c"[ ] HTC Theme\00", align 1
@.str.6 = private unnamed_addr constant [19 x i8] c"[ ] Fabulous Theme\00", align 1
@.str.7 = private unnamed_addr constant [17 x i8] c"[ ] Purple Shift\00", align 1
@.str.8 = private unnamed_addr constant [15 x i8] c"[ ] Greyballer\00", align 1
@.str.9 = private unnamed_addr constant [11 x i8] c"[ ] Trippy\00", align 1
@.str.10 = private unnamed_addr constant [19 x i8] c"[ ] Shifty Bastard\00", align 1
@.str.11 = private unnamed_addr constant [15 x i8] c"[ ] Myn's Warm\00", align 1
@.str.12 = private unnamed_addr constant [15 x i8] c"tw_color_theme\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @checkTheme(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
store i32 0, ptr %4, align 4
%6 = call i64 @malloc(i32 noundef 40)
%7 = inttoptr i64 %6 to ptr
store ptr %7, ptr %5, align 8
%8 = load i32, ptr %2, align 4
switch i32 %8, label %45 [
i32 1, label %9
i32 2, label %12
i32 3, label %15
i32 4, label %18
i32 5, label %21
i32 6, label %24
i32 7, label %27
i32 8, label %30
i32 9, label %33
i32 10, label %36
i32 11, label %39
i32 12, label %42
]
9: ; preds = %1
%10 = load ptr, ptr %5, align 8
%11 = call i32 @strcpy(ptr noundef %10, ptr noundef @.str)
br label %45
12: ; preds = %1
%13 = load ptr, ptr %5, align 8
%14 = call i32 @strcpy(ptr noundef %13, ptr noundef @.str.1)
br label %45
15: ; preds = %1
%16 = load ptr, ptr %5, align 8
%17 = call i32 @strcpy(ptr noundef %16, ptr noundef @.str.2)
br label %45
18: ; preds = %1
%19 = load ptr, ptr %5, align 8
%20 = call i32 @strcpy(ptr noundef %19, ptr noundef @.str.3)
br label %45
21: ; preds = %1
%22 = load ptr, ptr %5, align 8
%23 = call i32 @strcpy(ptr noundef %22, ptr noundef @.str.4)
br label %45
24: ; preds = %1
%25 = load ptr, ptr %5, align 8
%26 = call i32 @strcpy(ptr noundef %25, ptr noundef @.str.5)
br label %45
27: ; preds = %1
%28 = load ptr, ptr %5, align 8
%29 = call i32 @strcpy(ptr noundef %28, ptr noundef @.str.6)
br label %45
30: ; preds = %1
%31 = load ptr, ptr %5, align 8
%32 = call i32 @strcpy(ptr noundef %31, ptr noundef @.str.7)
br label %45
33: ; preds = %1
%34 = load ptr, ptr %5, align 8
%35 = call i32 @strcpy(ptr noundef %34, ptr noundef @.str.8)
br label %45
36: ; preds = %1
%37 = load ptr, ptr %5, align 8
%38 = call i32 @strcpy(ptr noundef %37, ptr noundef @.str.9)
br label %45
39: ; preds = %1
%40 = load ptr, ptr %5, align 8
%41 = call i32 @strcpy(ptr noundef %40, ptr noundef @.str.10)
br label %45
42: ; preds = %1
%43 = load ptr, ptr %5, align 8
%44 = call i32 @strcpy(ptr noundef %43, ptr noundef @.str.11)
br label %45
45: ; preds = %1, %42, %39, %36, %33, %30, %27, %24, %21, %18, %15, %12, %9
%46 = call i32 @DataManager_GetIntValue(ptr noundef @.str.12)
store i32 %46, ptr %3, align 4
%47 = load i32, ptr %3, align 4
%48 = load i32, ptr %2, align 4
%49 = sub nsw i32 %48, 1
%50 = icmp eq i32 %47, %49
br i1 %50, label %51, label %54
51: ; preds = %45
%52 = load ptr, ptr %5, align 8
%53 = getelementptr inbounds i8, ptr %52, i64 1
store i8 120, ptr %53, align 1
br label %54
54: ; preds = %51, %45
%55 = load ptr, ptr %5, align 8
ret ptr %55
}
declare i64 @malloc(i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @DataManager_GetIntValue(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqdsjrcbr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"[ ] Team Win Theme (Default)\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"[ ] CyanogenMod Theme\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"[ ] Red Rum Theme\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"[ ] Google Theme\00", align 1
@.str.4 = private unnamed_addr constant [33 x i8] c"[ ] JesusFreke Theme (oldschool)\00", align 1
@.str.5 = private unnamed_addr constant [14 x i8] c"[ ] HTC Theme\00", align 1
@.str.6 = private unnamed_addr constant [19 x i8] c"[ ] Fabulous Theme\00", align 1
@.str.7 = private unnamed_addr constant [17 x i8] c"[ ] Purple Shift\00", align 1
@.str.8 = private unnamed_addr constant [15 x i8] c"[ ] Greyballer\00", align 1
@.str.9 = private unnamed_addr constant [11 x i8] c"[ ] Trippy\00", align 1
@.str.10 = private unnamed_addr constant [19 x i8] c"[ ] Shifty Bastard\00", align 1
@.str.11 = private unnamed_addr constant [15 x i8] c"[ ] Myn's Warm\00", align 1
@.str.12 = private unnamed_addr constant [15 x i8] c"tw_color_theme\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @checkTheme(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
store i32 0, ptr %4, align 4
%6 = call i64 @malloc(i32 noundef 40)
%7 = inttoptr i64 %6 to ptr
store ptr %7, ptr %5, align 8
%8 = load i32, ptr %2, align 4
switch i32 %8, label %45 [
i32 1, label %9
i32 2, label %12
i32 3, label %15
i32 4, label %18
i32 5, label %21
i32 6, label %24
i32 7, label %27
i32 8, label %30
i32 9, label %33
i32 10, label %36
i32 11, label %39
i32 12, label %42
]
9: ; preds = %1
%10 = load ptr, ptr %5, align 8
%11 = call i32 @strcpy(ptr noundef %10, ptr noundef @.str)
br label %45
12: ; preds = %1
%13 = load ptr, ptr %5, align 8
%14 = call i32 @strcpy(ptr noundef %13, ptr noundef @.str.1)
br label %45
15: ; preds = %1
%16 = load ptr, ptr %5, align 8
%17 = call i32 @strcpy(ptr noundef %16, ptr noundef @.str.2)
br label %45
18: ; preds = %1
%19 = load ptr, ptr %5, align 8
%20 = call i32 @strcpy(ptr noundef %19, ptr noundef @.str.3)
br label %45
21: ; preds = %1
%22 = load ptr, ptr %5, align 8
%23 = call i32 @strcpy(ptr noundef %22, ptr noundef @.str.4)
br label %45
24: ; preds = %1
%25 = load ptr, ptr %5, align 8
%26 = call i32 @strcpy(ptr noundef %25, ptr noundef @.str.5)
br label %45
27: ; preds = %1
%28 = load ptr, ptr %5, align 8
%29 = call i32 @strcpy(ptr noundef %28, ptr noundef @.str.6)
br label %45
30: ; preds = %1
%31 = load ptr, ptr %5, align 8
%32 = call i32 @strcpy(ptr noundef %31, ptr noundef @.str.7)
br label %45
33: ; preds = %1
%34 = load ptr, ptr %5, align 8
%35 = call i32 @strcpy(ptr noundef %34, ptr noundef @.str.8)
br label %45
36: ; preds = %1
%37 = load ptr, ptr %5, align 8
%38 = call i32 @strcpy(ptr noundef %37, ptr noundef @.str.9)
br label %45
39: ; preds = %1
%40 = load ptr, ptr %5, align 8
%41 = call i32 @strcpy(ptr noundef %40, ptr noundef @.str.10)
br label %45
42: ; preds = %1
%43 = load ptr, ptr %5, align 8
%44 = call i32 @strcpy(ptr noundef %43, ptr noundef @.str.11)
br label %45
45: ; preds = %42, %39, %36, %33, %30, %27, %24, %21, %18, %15, %12, %9, %1
%46 = call i32 @DataManager_GetIntValue(ptr noundef @.str.12)
store i32 %46, ptr %3, align 4
%47 = load i32, ptr %3, align 4
%48 = load i32, ptr %2, align 4
%49 = sub nsw i32 %48, 1
%50 = icmp eq i32 %47, %49
br i1 %50, label %51, label %54
51: ; preds = %45
%52 = load ptr, ptr %5, align 8
%53 = getelementptr inbounds i8, ptr %52, i64 1
store i8 120, ptr %53, align 1
br label %54
54: ; preds = %51, %45
%55 = load ptr, ptr %5, align 8
ret ptr %55
}
declare i64 @malloc(i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @DataManager_GetIntValue(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpd6604na2.c'
source_filename = "/tmp/tmpd6604na2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @inspect(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @deepInspect(i32 noundef %3, i32 noundef 1)
ret void
}
declare i32 @deepInspect(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/tmpd6604na2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @inspect(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @deepInspect(i32 noundef %3, i32 noundef 1)
ret void
}
declare i32 @deepInspect(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/tmpiyr7up3w.c'
source_filename = "/tmp/tmpiyr7up3w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_WRONLY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sysfs_string_write(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
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 -1, ptr %8, align 4
%10 = load ptr, ptr %5, align 8
%11 = icmp eq ptr %10, null
br i1 %11, label %18, label %12
12: ; preds = %3
%13 = load ptr, ptr %6, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %18, label %15
15: ; preds = %12
%16 = load i32, ptr %7, align 4
%17 = icmp sle i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %15, %12, %3
store i32 -1, ptr %4, align 4
br label %44
19: ; preds = %15
%20 = load ptr, ptr %5, align 8
%21 = load i32, ptr @O_WRONLY, align 4
%22 = call i32 @open(ptr noundef %20, i32 noundef %21)
store i32 %22, ptr %8, align 4
%23 = load i32, ptr %8, align 4
%24 = icmp slt i32 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %19
br label %35
26: ; preds = %19
%27 = load i32, ptr %8, align 4
%28 = load ptr, ptr %6, align 8
%29 = load i32, ptr %7, align 4
%30 = call i32 @write(i32 noundef %27, ptr noundef %28, i32 noundef %29)
store i32 %30, ptr %9, align 4
%31 = load i32, ptr %9, align 4
%32 = icmp sle i32 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %26
br label %35
34: ; preds = %26
store i32 0, ptr %9, align 4
br label %36
35: ; preds = %33, %25
store i32 -1, ptr %9, align 4
br label %36
36: ; preds = %35, %34
%37 = load i32, ptr %8, align 4
%38 = icmp sge i32 %37, 0
br i1 %38, label %39, label %42
39: ; preds = %36
%40 = load i32, ptr %8, align 4
%41 = call i32 @close(i32 noundef %40)
br label %42
42: ; preds = %39, %36
%43 = load i32, ptr %9, align 4
store i32 %43, ptr %4, align 4
br label %44
44: ; preds = %42, %18
%45 = load i32, ptr %4, align 4
ret i32 %45
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpiyr7up3w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_WRONLY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sysfs_string_write(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
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 -1, ptr %8, align 4
%10 = load ptr, ptr %5, align 8
%11 = icmp eq ptr %10, null
br i1 %11, label %18, label %12
12: ; preds = %3
%13 = load ptr, ptr %6, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %18, label %15
15: ; preds = %12
%16 = load i32, ptr %7, align 4
%17 = icmp sle i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %15, %12, %3
store i32 -1, ptr %4, align 4
br label %44
19: ; preds = %15
%20 = load ptr, ptr %5, align 8
%21 = load i32, ptr @O_WRONLY, align 4
%22 = call i32 @open(ptr noundef %20, i32 noundef %21)
store i32 %22, ptr %8, align 4
%23 = load i32, ptr %8, align 4
%24 = icmp slt i32 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %19
br label %35
26: ; preds = %19
%27 = load i32, ptr %8, align 4
%28 = load ptr, ptr %6, align 8
%29 = load i32, ptr %7, align 4
%30 = call i32 @write(i32 noundef %27, ptr noundef %28, i32 noundef %29)
store i32 %30, ptr %9, align 4
%31 = load i32, ptr %9, align 4
%32 = icmp sle i32 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %26
br label %35
34: ; preds = %26
store i32 0, ptr %9, align 4
br label %36
35: ; preds = %33, %25
store i32 -1, ptr %9, align 4
br label %36
36: ; preds = %35, %34
%37 = load i32, ptr %8, align 4
%38 = icmp sge i32 %37, 0
br i1 %38, label %39, label %42
39: ; preds = %36
%40 = load i32, ptr %8, align 4
%41 = call i32 @close(i32 noundef %40)
br label %42
42: ; preds = %39, %36
%43 = load i32, ptr %9, align 4
store i32 %43, ptr %4, align 4
br label %44
44: ; preds = %42, %18
%45 = load i32, ptr %4, align 4
ret i32 %45
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8bvp6qqk.c'
source_filename = "/tmp/tmp8bvp6qqk.c"
target datalayout = "e-m:e-p270: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/tmp8bvp6qqk.c"
target datalayout = "e-m:e-p270: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/tmpfygwd20v.c'
source_filename = "/tmp/tmpfygwd20v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"invalid/empty uwsgi socket name\0A\00", align 1
@.str.1 = private unnamed_addr constant [48 x i8] c"your system does not support ifaddrs subsystem\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @generate_socket_name(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%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
store ptr %0, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = call ptr @strchr(ptr noundef %8, i8 noundef signext 42)
store ptr %9, ptr %4, align 8
%10 = load ptr, ptr %3, align 8
store ptr %10, ptr %7, align 8
store i32 0, ptr %6, align 4
br label %11
11: ; preds = %31, %1
%12 = load i32, ptr %6, align 4
%13 = load ptr, ptr %3, align 8
%14 = call i64 @strlen(ptr noundef %13)
%15 = trunc i64 %14 to i32
%16 = icmp slt i32 %12, %15
br i1 %16, label %17, label %34
17: ; preds = %11
%18 = load ptr, ptr %3, align 8
%19 = load i32, ptr %6, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = call i64 @isspace(i32 noundef %23)
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %29
26: ; preds = %17
%27 = load ptr, ptr %7, align 8
%28 = getelementptr inbounds i8, ptr %27, i32 1
store ptr %28, ptr %7, align 8
br label %30
29: ; preds = %17
br label %34
30: ; preds = %26
br label %31
31: ; preds = %30
%32 = load i32, ptr %6, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %6, align 4
br label %11, !llvm.loop !6
34: ; preds = %29, %11
%35 = load ptr, ptr %7, align 8
store ptr %35, ptr %3, align 8
%36 = load ptr, ptr %3, align 8
%37 = getelementptr inbounds i8, ptr %36, i64 0
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %39, 0
br i1 %40, label %41, label %44
41: ; preds = %34
%42 = call i32 @uwsgi_log(ptr noundef @.str)
%43 = call i32 @uwsgi_exit(i32 noundef 1)
br label %44
44: ; preds = %41, %34
%45 = load ptr, ptr %3, align 8
%46 = call ptr @strchr(ptr noundef %45, i8 noundef signext 58)
store ptr %46, ptr %5, align 8
%47 = load ptr, ptr %5, align 8
%48 = icmp ne ptr %47, null
br i1 %48, label %51, label %49
49: ; preds = %44
%50 = load ptr, ptr %3, align 8
store ptr %50, ptr %2, align 8
br label %59
51: ; preds = %44
%52 = load ptr, ptr %4, align 8
%53 = icmp ne ptr %52, null
br i1 %53, label %54, label %57
54: ; preds = %51
%55 = call i32 @uwsgi_log(ptr noundef @.str.1)
%56 = call i32 (...) @uwsgi_nuclear_blast()
br label %57
57: ; preds = %54, %51
%58 = load ptr, ptr %3, align 8
store ptr %58, ptr %2, align 8
br label %59
59: ; preds = %57, %49
%60 = load ptr, ptr %2, align 8
ret ptr %60
}
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i64 @strlen(ptr noundef) #1
declare i64 @isspace(i32 noundef) #1
declare i32 @uwsgi_log(ptr noundef) #1
declare i32 @uwsgi_exit(i32 noundef) #1
declare i32 @uwsgi_nuclear_blast(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpfygwd20v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"invalid/empty uwsgi socket name\0A\00", align 1
@.str.1 = private unnamed_addr constant [48 x i8] c"your system does not support ifaddrs subsystem\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @generate_socket_name(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%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
store ptr %0, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = call ptr @strchr(ptr noundef %8, i8 noundef signext 42)
store ptr %9, ptr %4, align 8
%10 = load ptr, ptr %3, align 8
store ptr %10, ptr %7, align 8
store i32 0, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = load ptr, ptr %3, align 8
%13 = call i64 @strlen(ptr noundef %12)
%14 = trunc i64 %13 to i32
%15 = icmp slt i32 %11, %14
br i1 %15, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %1
br label %16
16: ; preds = %.lr.ph, %30
%17 = load ptr, ptr %3, align 8
%18 = load i32, ptr %6, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = call i64 @isspace(i32 noundef %22)
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %28
25: ; preds = %16
%26 = load ptr, ptr %7, align 8
%27 = getelementptr inbounds i8, ptr %26, i32 1
store ptr %27, ptr %7, align 8
br label %29
28: ; preds = %16
br label %38
29: ; preds = %25
br label %30
30: ; preds = %29
%31 = load i32, ptr %6, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %6, align 4
%33 = load i32, ptr %6, align 4
%34 = load ptr, ptr %3, align 8
%35 = call i64 @strlen(ptr noundef %34)
%36 = trunc i64 %35 to i32
%37 = icmp slt i32 %33, %36
br i1 %37, label %16, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %30
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %1
br label %38
38: ; preds = %.loopexit, %28
%39 = load ptr, ptr %7, align 8
store ptr %39, ptr %3, align 8
%40 = load ptr, ptr %3, align 8
%41 = getelementptr inbounds i8, ptr %40, i64 0
%42 = load i8, ptr %41, align 1
%43 = sext i8 %42 to i32
%44 = icmp eq i32 %43, 0
br i1 %44, label %45, label %48
45: ; preds = %38
%46 = call i32 @uwsgi_log(ptr noundef @.str)
%47 = call i32 @uwsgi_exit(i32 noundef 1)
br label %48
48: ; preds = %45, %38
%49 = load ptr, ptr %3, align 8
%50 = call ptr @strchr(ptr noundef %49, i8 noundef signext 58)
store ptr %50, ptr %5, align 8
%51 = load ptr, ptr %5, align 8
%52 = icmp ne ptr %51, null
br i1 %52, label %55, label %53
53: ; preds = %48
%54 = load ptr, ptr %3, align 8
store ptr %54, ptr %2, align 8
br label %63
55: ; preds = %48
%56 = load ptr, ptr %4, align 8
%57 = icmp ne ptr %56, null
br i1 %57, label %58, label %61
58: ; preds = %55
%59 = call i32 @uwsgi_log(ptr noundef @.str.1)
%60 = call i32 (...) @uwsgi_nuclear_blast()
br label %61
61: ; preds = %58, %55
%62 = load ptr, ptr %3, align 8
store ptr %62, ptr %2, align 8
br label %63
63: ; preds = %61, %53
%64 = load ptr, ptr %2, align 8
ret ptr %64
}
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i64 @strlen(ptr noundef) #1
declare i64 @isspace(i32 noundef) #1
declare i32 @uwsgi_log(ptr noundef) #1
declare i32 @uwsgi_exit(i32 noundef) #1
declare i32 @uwsgi_nuclear_blast(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp2yk5ioap.c'
source_filename = "/tmp/tmp2yk5ioap.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"/\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c".\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @splitpath(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 [256 x i8], align 16
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
%10 = call i32 @strlen(ptr noundef %9)
%11 = icmp eq i32 %10, 1
br i1 %11, label %12, label %23
12: ; preds = %3
%13 = load ptr, ptr %4, align 8
%14 = getelementptr inbounds i8, ptr %13, i64 0
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 47
br i1 %17, label %18, label %23
18: ; preds = %12
%19 = load ptr, ptr %5, align 8
%20 = call i32 @strncpy(ptr noundef %19, ptr noundef @.str, i32 noundef 1)
%21 = load ptr, ptr %6, align 8
%22 = call i32 @strncpy(ptr noundef %21, ptr noundef @.str, i32 noundef 1)
br label %85
23: ; preds = %12, %3
%24 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%25 = load ptr, ptr %4, align 8
%26 = call i32 @strncpy(ptr noundef %24, ptr noundef %25, i32 noundef 256)
%27 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%28 = call i32 @strlen(ptr noundef %27)
%29 = sub nsw i32 %28, 1
store i32 %29, ptr %8, align 4
%30 = load i32, ptr %8, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 %31
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 47
br i1 %35, label %36, label %42
36: ; preds = %23
%37 = load i32, ptr %8, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 %38
store i8 0, ptr %39, align 1
%40 = load i32, ptr %8, align 4
%41 = add nsw i32 %40, -1
store i32 %41, ptr %8, align 4
br label %42
42: ; preds = %36, %23
br label %43
43: ; preds = %84, %42
%44 = load i32, ptr %8, align 4
%45 = add nsw i32 %44, -1
store i32 %45, ptr %8, align 4
%46 = load i32, ptr %8, align 4
%47 = icmp eq i32 %46, -1
br i1 %47, label %48, label %54
48: ; preds = %43
%49 = load ptr, ptr %5, align 8
%50 = call i32 @strncpy(ptr noundef %49, ptr noundef @.str.1, i32 noundef 2)
%51 = load ptr, ptr %6, align 8
%52 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%53 = call i32 @strncpy(ptr noundef %51, ptr noundef %52, i32 noundef 256)
br label %85
54: ; preds = %43
%55 = load i32, ptr %8, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 %56
%58 = load i8, ptr %57, align 1
%59 = sext i8 %58 to i32
%60 = icmp eq i32 %59, 47
br i1 %60, label %61, label %84
61: ; preds = %54
%62 = load i32, ptr %8, align 4
%63 = icmp eq i32 %62, 0
br i1 %63, label %64, label %67
64: ; preds = %61
%65 = load ptr, ptr %5, align 8
%66 = call i32 @strncpy(ptr noundef %65, ptr noundef @.str, i32 noundef 2)
br label %76
67: ; preds = %61
%68 = load ptr, ptr %5, align 8
%69 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%70 = load i32, ptr %8, align 4
%71 = call i32 @memcpy(ptr noundef %68, ptr noundef %69, i32 noundef %70)
%72 = load ptr, ptr %5, align 8
%73 = load i32, ptr %8, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i8, ptr %72, i64 %74
store i8 0, ptr %75, align 1
br label %76
76: ; preds = %67, %64
%77 = load ptr, ptr %6, align 8
%78 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%79 = load i32, ptr %8, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i8, ptr %78, i64 %80
%82 = getelementptr inbounds i8, ptr %81, i64 1
%83 = call i32 @strncpy(ptr noundef %77, ptr noundef %82, i32 noundef 30)
br label %85
84: ; preds = %54
br label %43
85: ; preds = %76, %48, %18
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i32 @strncpy(ptr noundef, ptr 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/tmp2yk5ioap.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"/\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c".\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @splitpath(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 [256 x i8], align 16
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
%10 = call i32 @strlen(ptr noundef %9)
%11 = icmp eq i32 %10, 1
br i1 %11, label %12, label %23
12: ; preds = %3
%13 = load ptr, ptr %4, align 8
%14 = getelementptr inbounds i8, ptr %13, i64 0
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 47
br i1 %17, label %18, label %23
18: ; preds = %12
%19 = load ptr, ptr %5, align 8
%20 = call i32 @strncpy(ptr noundef %19, ptr noundef @.str, i32 noundef 1)
%21 = load ptr, ptr %6, align 8
%22 = call i32 @strncpy(ptr noundef %21, ptr noundef @.str, i32 noundef 1)
br label %88
23: ; preds = %12, %3
%24 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%25 = load ptr, ptr %4, align 8
%26 = call i32 @strncpy(ptr noundef %24, ptr noundef %25, i32 noundef 256)
%27 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%28 = call i32 @strlen(ptr noundef %27)
%29 = sub nsw i32 %28, 1
store i32 %29, ptr %8, align 4
%30 = load i32, ptr %8, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 %31
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 47
br i1 %35, label %36, label %42
36: ; preds = %23
%37 = load i32, ptr %8, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 %38
store i8 0, ptr %39, align 1
%40 = load i32, ptr %8, align 4
%41 = add nsw i32 %40, -1
store i32 %41, ptr %8, align 4
br label %42
42: ; preds = %36, %23
%43 = load i32, ptr %8, align 4
%44 = add nsw i32 %43, -1
store i32 %44, ptr %8, align 4
%45 = load i32, ptr %8, align 4
%46 = icmp eq i32 %45, -1
br i1 %46, label %52, label %.lr.ph
.lr.ph: ; preds = %42
br label %58
47: ; preds = %58
%48 = load i32, ptr %8, align 4
%49 = add nsw i32 %48, -1
store i32 %49, ptr %8, align 4
%50 = load i32, ptr %8, align 4
%51 = icmp eq i32 %50, -1
br i1 %51, label %._crit_edge, label %58
._crit_edge: ; preds = %47
br label %52
52: ; preds = %._crit_edge, %42
%53 = load ptr, ptr %5, align 8
%54 = call i32 @strncpy(ptr noundef %53, ptr noundef @.str.1, i32 noundef 2)
%55 = load ptr, ptr %6, align 8
%56 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%57 = call i32 @strncpy(ptr noundef %55, ptr noundef %56, i32 noundef 256)
br label %88
58: ; preds = %.lr.ph, %47
%59 = load i32, ptr %8, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 %60
%62 = load i8, ptr %61, align 1
%63 = sext i8 %62 to i32
%64 = icmp eq i32 %63, 47
br i1 %64, label %65, label %47
65: ; preds = %58
%66 = load i32, ptr %8, align 4
%67 = icmp eq i32 %66, 0
br i1 %67, label %68, label %71
68: ; preds = %65
%69 = load ptr, ptr %5, align 8
%70 = call i32 @strncpy(ptr noundef %69, ptr noundef @.str, i32 noundef 2)
br label %80
71: ; preds = %65
%72 = load ptr, ptr %5, align 8
%73 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%74 = load i32, ptr %8, align 4
%75 = call i32 @memcpy(ptr noundef %72, ptr noundef %73, i32 noundef %74)
%76 = load ptr, ptr %5, align 8
%77 = load i32, ptr %8, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds i8, ptr %76, i64 %78
store i8 0, ptr %79, align 1
br label %80
80: ; preds = %71, %68
%81 = load ptr, ptr %6, align 8
%82 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%83 = load i32, ptr %8, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i8, ptr %82, i64 %84
%86 = getelementptr inbounds i8, ptr %85, i64 1
%87 = call i32 @strncpy(ptr noundef %81, ptr noundef %86, i32 noundef 30)
br label %88
88: ; preds = %80, %52, %18
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i32 @strncpy(ptr noundef, ptr 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/tmpwf_coi3h.c'
source_filename = "/tmp/tmpwf_coi3h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Enter working hours of an employee: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [39 x i8] c"\0AThe total salary of an employee is %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%6 = load i32, ptr %2, align 4
%7 = icmp sle i32 %6, 8
br i1 %7, label %8, label %11
8: ; preds = %0
%9 = load i32, ptr %2, align 4
%10 = mul nsw i32 %9, 100
store i32 %10, ptr %3, align 4
br label %16
11: ; preds = %0
%12 = load i32, ptr %2, align 4
%13 = sub nsw i32 %12, 8
%14 = mul nsw i32 %13, 120
%15 = add nsw i32 800, %14
store i32 %15, ptr %3, align 4
br label %16
16: ; preds = %11, %8
%17 = load i32, ptr %3, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %17)
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/tmpwf_coi3h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Enter working hours of an employee: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [39 x i8] c"\0AThe total salary of an employee is %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%6 = load i32, ptr %2, align 4
%7 = icmp sle i32 %6, 8
br i1 %7, label %8, label %11
8: ; preds = %0
%9 = load i32, ptr %2, align 4
%10 = mul nsw i32 %9, 100
store i32 %10, ptr %3, align 4
br label %16
11: ; preds = %0
%12 = load i32, ptr %2, align 4
%13 = sub nsw i32 %12, 8
%14 = mul nsw i32 %13, 120
%15 = add nsw i32 800, %14
store i32 %15, ptr %3, align 4
br label %16
16: ; preds = %11, %8
%17 = load i32, ptr %3, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %17)
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/tmp54jz6vlm.c'
source_filename = "/tmp/tmp54jz6vlm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isgraph.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isgraph should be 1 for j\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isgraph_0x6a() #0 {
%1 = call i32 @isgraph(i32 noundef 106) #3
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 535, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @isgraph(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp54jz6vlm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isgraph.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isgraph should be 1 for j\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isgraph_0x6a() #0 {
%1 = call i32 @isgraph(i32 noundef 106) #3
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 535, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @isgraph(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpv6r6skdx.c'
source_filename = "/tmp/tmpv6r6skdx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"First\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"Reversed\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 [10 x i32], align 16
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 40, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 40, i1 false)
%4 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%5 = call i32 @populate_a_array_with_user_input(ptr noundef %4)
%6 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%7 = call i32 @show_elements_from_array(ptr noundef %6, ptr noundef @.str)
%8 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%9 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 0
%10 = call i32 @reverse_a_array(ptr noundef %8, ptr noundef %9)
%11 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 0
%12 = call i32 @show_elements_from_array(ptr noundef %11, ptr noundef @.str.1)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @populate_a_array_with_user_input(ptr noundef) #2
declare i32 @show_elements_from_array(ptr noundef, ptr noundef) #2
declare i32 @reverse_a_array(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv6r6skdx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"First\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"Reversed\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 [10 x i32], align 16
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 40, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 40, i1 false)
%4 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%5 = call i32 @populate_a_array_with_user_input(ptr noundef %4)
%6 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%7 = call i32 @show_elements_from_array(ptr noundef %6, ptr noundef @.str)
%8 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%9 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 0
%10 = call i32 @reverse_a_array(ptr noundef %8, ptr noundef %9)
%11 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 0
%12 = call i32 @show_elements_from_array(ptr noundef %11, ptr noundef @.str.1)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @populate_a_array_with_user_input(ptr noundef) #2
declare i32 @show_elements_from_array(ptr noundef, ptr noundef) #2
declare i32 @reverse_a_array(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6wq9epag.c'
source_filename = "/tmp/tmp6wq9epag.c"
target datalayout = "e-m:e-p270: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/tmp6wq9epag.c"
target datalayout = "e-m:e-p270: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/tmpqlnje1_0.c'
source_filename = "/tmp/tmpqlnje1_0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"fn99\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @fn99() #0 {
%1 = alloca ptr, align 8
%2 = call i32 (...) @rand()
%3 = srem i32 %2, 20
%4 = add nsw i32 20, %3
%5 = call ptr @malloc(i32 noundef %4)
store ptr %5, ptr %1, align 8
%6 = load ptr, ptr %1, align 8
%7 = call i32 (...) @rand()
%8 = srem i32 %7, 20
%9 = add nsw i32 30, %8
%10 = call ptr @realloc(ptr noundef %6, i32 noundef %9)
store ptr %10, ptr %1, align 8
%11 = load ptr, ptr %1, align 8
%12 = call i32 @strcpy(ptr noundef %11, ptr noundef @.str)
%13 = load ptr, ptr %1, align 8
ret ptr %13
}
declare ptr @malloc(i32 noundef) #1
declare i32 @rand(...) #1
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqlnje1_0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"fn99\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @fn99() #0 {
%1 = alloca ptr, align 8
%2 = call i32 (...) @rand()
%3 = srem i32 %2, 20
%4 = add nsw i32 20, %3
%5 = call ptr @malloc(i32 noundef %4)
store ptr %5, ptr %1, align 8
%6 = load ptr, ptr %1, align 8
%7 = call i32 (...) @rand()
%8 = srem i32 %7, 20
%9 = add nsw i32 30, %8
%10 = call ptr @realloc(ptr noundef %6, i32 noundef %9)
store ptr %10, ptr %1, align 8
%11 = load ptr, ptr %1, align 8
%12 = call i32 @strcpy(ptr noundef %11, ptr noundef @.str)
%13 = load ptr, ptr %1, align 8
ret ptr %13
}
declare ptr @malloc(i32 noundef) #1
declare i32 @rand(...) #1
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9fdoujgu.c'
source_filename = "/tmp/tmp9fdoujgu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
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 = load i32, ptr %2, align 4
%8 = mul nsw i32 %6, %7
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %3, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %9)
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %2, align 4
%13 = mul nsw i32 %11, %12
store i32 %13, ptr %3, align 4
%14 = load i32, ptr %3, align 4
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %14)
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/tmp9fdoujgu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
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 = load i32, ptr %2, align 4
%8 = mul nsw i32 %6, %7
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %3, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %9)
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %2, align 4
%13 = mul nsw i32 %11, %12
store i32 %13, ptr %3, align 4
%14 = load i32, ptr %3, align 4
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %14)
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/tmp_7eebqhi.c'
source_filename = "/tmp/tmp_7eebqhi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"CRC32 not supported\0A\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"Error: CRC32\0A\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"POPCNT not supported\0A\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"Error: POPCNT\0A\00", align 1
@.str.4 = private unnamed_addr constant [12 x i8] c"Error: ADD\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 i64 @checkcpuid(i32 noundef 20)
%3 = icmp eq i64 0, %2
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 @printf(ptr noundef @.str)
br label %12
6: ; preds = %0
%7 = call i64 (...) @checkcrc32()
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %6
%10 = call i32 @printf(ptr noundef @.str.1)
br label %11
11: ; preds = %9, %6
br label %12
12: ; preds = %11, %4
%13 = call i64 @checkcpuid(i32 noundef 23)
%14 = icmp eq i64 0, %13
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = call i32 @printf(ptr noundef @.str.2)
br label %23
17: ; preds = %12
%18 = call i64 (...) @checkpopcnt()
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %17
%21 = call i32 @printf(ptr noundef @.str.3)
br label %22
22: ; preds = %20, %17
br label %23
23: ; preds = %22, %15
%24 = call i64 (...) @checkadd()
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = call i32 @printf(ptr noundef @.str.4)
br label %28
28: ; preds = %26, %23
ret i32 0
}
declare i64 @checkcpuid(i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i64 @checkcrc32(...) #1
declare i64 @checkpopcnt(...) #1
declare i64 @checkadd(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!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_7eebqhi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"CRC32 not supported\0A\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"Error: CRC32\0A\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"POPCNT not supported\0A\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"Error: POPCNT\0A\00", align 1
@.str.4 = private unnamed_addr constant [12 x i8] c"Error: ADD\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 i64 @checkcpuid(i32 noundef 20)
%3 = icmp eq i64 0, %2
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 @printf(ptr noundef @.str)
br label %12
6: ; preds = %0
%7 = call i64 (...) @checkcrc32()
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %6
%10 = call i32 @printf(ptr noundef @.str.1)
br label %11
11: ; preds = %9, %6
br label %12
12: ; preds = %11, %4
%13 = call i64 @checkcpuid(i32 noundef 23)
%14 = icmp eq i64 0, %13
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = call i32 @printf(ptr noundef @.str.2)
br label %23
17: ; preds = %12
%18 = call i64 (...) @checkpopcnt()
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %17
%21 = call i32 @printf(ptr noundef @.str.3)
br label %22
22: ; preds = %20, %17
br label %23
23: ; preds = %22, %15
%24 = call i64 (...) @checkadd()
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = call i32 @printf(ptr noundef @.str.4)
br label %28
28: ; preds = %26, %23
ret i32 0
}
declare i64 @checkcpuid(i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i64 @checkcrc32(...) #1
declare i64 @checkpopcnt(...) #1
declare i64 @checkadd(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpub6bfwod.c'
source_filename = "/tmp/tmpub6bfwod.c"
target datalayout = "e-m:e-p270: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/tmpub6bfwod.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpf_wjtkd2.c'
source_filename = "/tmp/tmpf_wjtkd2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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
%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 @puts(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 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf_wjtkd2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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
%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 @puts(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 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp1kxe3gnd.c'
source_filename = "/tmp/tmp1kxe3gnd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [55 x i8] c"/sys/devices/virtual/chromeos/cros_ec/lightbar/version\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [24 x i8] c"can't open version file\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"can't read version\00", align 1
@errno = dso_local global i64 0, align 8
@.str.3 = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"can't parse version string\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [28 x i8] c"can't parse version string\0A\00", align 1
@.str.6 = private unnamed_addr constant [40 x i8] c"Don't know how to handle version %d.%d\0A\00", align 1
@.str.7 = private unnamed_addr constant [56 x i8] c"/sys/devices/virtual/chromeos/cros_ec/lightbar/sequence\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@O_SYNC = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [28 x i8] c"can't open sequence control\00", align 1
@LOCK_EX = dso_local global i32 0, align 4
@LOCK_NB = dso_local global i32 0, align 4
@.str.9 = private unnamed_addr constant [28 x i8] c"can't lock sequence control\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.10 = private unnamed_addr constant [28 x i8] c"can't read sequence control\00", align 1
@.str.11 = private unnamed_addr constant [5 x i8] c"stop\00", align 1
@.str.12 = private unnamed_addr constant [25 x i8] c"couldn't get EC to stop\0A\00", align 1
@.str.13 = private unnamed_addr constant [29 x i8] c"can't write sequence control\00", align 1
@.str.14 = private unnamed_addr constant [58 x i8] c"/sys/devices/virtual/chromeos/cros_ec/lightbar/brightness\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@.str.15 = private unnamed_addr constant [30 x i8] c"can't open brightness control\00", align 1
@.str.16 = private unnamed_addr constant [4 x i8] c"255\00", align 1
@.str.17 = private unnamed_addr constant [31 x i8] c"can't write brightness control\00", align 1
@.str.18 = private unnamed_addr constant [55 x i8] c"/sys/devices/virtual/chromeos/cros_ec/lightbar/led_rgb\00", align 1
@.str.19 = private unnamed_addr constant [23 x i8] c"can't open led control\00", align 1
@.str.20 = private unnamed_addr constant [44 x i8] c"0 %d %d %d 1 %d %d %d 2 %d %d %d 3 %d %d %d\00", align 1
@.str.21 = private unnamed_addr constant [21 x i8] c"write to led control\00", align 1
@.str.22 = private unnamed_addr constant [14 x i8] c"4 255 255 255\00", align 1
@.str.23 = private unnamed_addr constant [4 x i8] c"run\00", align 1
@.str.24 = private unnamed_addr constant [26 x i8] c"write to sequence control\00", align 1
@LOCK_UN = 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 i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca [80 x i8], align 16
%14 = 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 1, ptr %14, align 4
%15 = load i32, ptr @O_RDONLY, align 4
%16 = call i32 @open(ptr noundef @.str, i32 noundef %15)
store i32 %16, ptr %8, align 4
%17 = load i32, ptr %8, align 4
%18 = icmp slt i32 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %2
%20 = call i32 @perror(ptr noundef @.str.1)
br label %219
21: ; preds = %2
%22 = load i32, ptr %8, align 4
%23 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%24 = call i32 @read(i32 noundef %22, ptr noundef %23, i32 noundef 79)
store i32 %24, ptr %14, align 4
%25 = load i32, ptr %14, align 4
%26 = icmp sle i32 %25, 0
br i1 %26, label %27, label %31
27: ; preds = %21
%28 = call i32 @perror(ptr noundef @.str.2)
%29 = load i32, ptr %8, align 4
%30 = call i32 @close(i32 noundef %29)
br label %219
31: ; preds = %21
%32 = load i32, ptr %14, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 %33
store i8 0, ptr %34, align 1
%35 = load i32, ptr %8, align 4
%36 = call i32 @close(i32 noundef %35)
store i64 0, ptr @errno, align 8
%37 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%38 = call i32 @sscanf(ptr noundef %37, ptr noundef @.str.3, ptr noundef %6, ptr noundef %7)
%39 = icmp ne i32 2, %38
br i1 %39, label %40, label %49
40: ; preds = %31
%41 = load i64, ptr @errno, align 8
%42 = icmp ne i64 %41, 0
br i1 %42, label %43, label %45
43: ; preds = %40
%44 = call i32 @perror(ptr noundef @.str.4)
br label %48
45: ; preds = %40
%46 = load i32, ptr @stderr, align 4
%47 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %46, ptr noundef @.str.5)
br label %48
48: ; preds = %45, %43
br label %219
49: ; preds = %31
%50 = load i32, ptr %6, align 4
%51 = icmp ne i32 %50, 0
br i1 %51, label %52, label %57
52: ; preds = %49
%53 = load i32, ptr @stderr, align 4
%54 = load i32, ptr %6, align 4
%55 = load i32, ptr %7, align 4
%56 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %53, ptr noundef @.str.6, i32 noundef %54, i32 noundef %55)
br label %219
57: ; preds = %49
%58 = load i32, ptr @O_RDWR, align 4
%59 = load i32, ptr @O_SYNC, align 4
%60 = or i32 %58, %59
%61 = call i32 @open(ptr noundef @.str.7, i32 noundef %60)
store i32 %61, ptr %11, align 4
%62 = load i32, ptr %11, align 4
%63 = icmp slt i32 %62, 0
br i1 %63, label %64, label %66
64: ; preds = %57
%65 = call i32 @perror(ptr noundef @.str.8)
br label %219
66: ; preds = %57
%67 = load i32, ptr %11, align 4
%68 = load i32, ptr @LOCK_EX, align 4
%69 = load i32, ptr @LOCK_NB, align 4
%70 = or i32 %68, %69
%71 = call i64 @flock(i32 noundef %67, i32 noundef %70)
%72 = icmp slt i64 %71, 0
br i1 %72, label %73, label %75
73: ; preds = %66
%74 = call i32 @perror(ptr noundef @.str.9)
br label %216
75: ; preds = %66
store i32 3, ptr %10, align 4
br label %76
76: ; preds = %75, %113
%77 = load i32, ptr %11, align 4
%78 = load i32, ptr @SEEK_SET, align 4
%79 = call i32 @lseek(i32 noundef %77, i32 noundef 0, i32 noundef %78)
%80 = load i32, ptr %11, align 4
%81 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%82 = call i32 @read(i32 noundef %80, ptr noundef %81, i32 noundef 80)
%83 = icmp sle i32 %82, 0
br i1 %83, label %84, label %86
84: ; preds = %76
%85 = call i32 @perror(ptr noundef @.str.10)
br label %212
86: ; preds = %76
%87 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%88 = call i32 @strncasecmp(ptr noundef %87, ptr noundef @.str.11, i32 noundef 4)
%89 = icmp ne i32 %88, 0
br i1 %89, label %91, label %90
90: ; preds = %86
br label %114
91: ; preds = %86
%92 = load i32, ptr %10, align 4
%93 = add nsw i32 %92, -1
store i32 %93, ptr %10, align 4
%94 = icmp ne i32 %92, 0
br i1 %94, label %98, label %95
95: ; preds = %91
%96 = load i32, ptr @stderr, align 4
%97 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %96, ptr noundef @.str.12)
br label %212
98: ; preds = %91
%99 = load i32, ptr %11, align 4
%100 = load i32, ptr @SEEK_SET, align 4
%101 = call i32 @lseek(i32 noundef %99, i32 noundef 0, i32 noundef %100)
%102 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%103 = call i32 @strcpy(ptr noundef %102, ptr noundef @.str.11)
%104 = load i32, ptr %11, align 4
%105 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%106 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%107 = call i64 @strlen(ptr noundef %106)
%108 = add nsw i64 %107, 1
%109 = call i64 @write(i32 noundef %104, ptr noundef %105, i64 noundef %108)
%110 = icmp sle i64 %109, 0
br i1 %110, label %111, label %113
111: ; preds = %98
%112 = call i32 @perror(ptr noundef @.str.13)
br label %212
113: ; preds = %98
br label %76
114: ; preds = %90
%115 = load i32, ptr @O_WRONLY, align 4
%116 = load i32, ptr @O_SYNC, align 4
%117 = or i32 %115, %116
%118 = call i32 @open(ptr noundef @.str.14, i32 noundef %117)
store i32 %118, ptr %12, align 4
%119 = load i32, ptr %12, align 4
%120 = icmp slt i32 %119, 0
br i1 %120, label %121, label %123
121: ; preds = %114
%122 = call i32 @perror(ptr noundef @.str.15)
br label %196
123: ; preds = %114
%124 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%125 = call i32 @strcpy(ptr noundef %124, ptr noundef @.str.16)
%126 = load i32, ptr %12, align 4
%127 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%128 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%129 = call i64 @strlen(ptr noundef %128)
%130 = add nsw i64 %129, 1
%131 = call i64 @write(i32 noundef %126, ptr noundef %127, i64 noundef %130)
%132 = icmp slt i64 %131, 0
br i1 %132, label %133, label %135
133: ; preds = %123
%134 = call i32 @perror(ptr noundef @.str.17)
br label %193
135: ; preds = %123
%136 = load i32, ptr %12, align 4
%137 = call i32 @close(i32 noundef %136)
%138 = load i32, ptr @O_WRONLY, align 4
%139 = load i32, ptr @O_SYNC, align 4
%140 = or i32 %138, %139
%141 = call i32 @open(ptr noundef @.str.18, i32 noundef %140)
store i32 %141, ptr %12, align 4
%142 = load i32, ptr %12, align 4
%143 = icmp slt i32 %142, 0
br i1 %143, label %144, label %146
144: ; preds = %135
%145 = call i32 @perror(ptr noundef @.str.19)
br label %196
146: ; preds = %135
store i32 0, ptr %9, align 4
br label %147
147: ; preds = %173, %146
%148 = load i32, ptr %9, align 4
%149 = icmp slt i32 %148, 256
br i1 %149, label %150, label %176
150: ; preds = %147
%151 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%152 = load i32, ptr %9, align 4
%153 = load i32, ptr %9, align 4
%154 = load i32, ptr %9, align 4
%155 = sub nsw i32 255, %154
%156 = load i32, ptr %9, align 4
%157 = sub nsw i32 255, %156
%158 = call i32 @sprintf(ptr noundef %151, ptr noundef @.str.20, i32 noundef %152, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef %153, i32 noundef %155, i32 noundef 255, i32 noundef 0, i32 noundef 0, i32 noundef 255, i32 noundef %157)
%159 = load i32, ptr %12, align 4
%160 = load i32, ptr @SEEK_SET, align 4
%161 = call i32 @lseek(i32 noundef %159, i32 noundef 0, i32 noundef %160)
%162 = load i32, ptr %12, align 4
%163 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%164 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%165 = call i64 @strlen(ptr noundef %164)
%166 = add nsw i64 %165, 1
%167 = call i64 @write(i32 noundef %162, ptr noundef %163, i64 noundef %166)
%168 = icmp slt i64 %167, 0
br i1 %168, label %169, label %171
169: ; preds = %150
%170 = call i32 @perror(ptr noundef @.str.21)
br label %171
171: ; preds = %169, %150
%172 = call i32 @usleep(i32 noundef 100000)
br label %173
173: ; preds = %171
%174 = load i32, ptr %9, align 4
%175 = add nsw i32 %174, 4
store i32 %175, ptr %9, align 4
br label %147, !llvm.loop !6
176: ; preds = %147
%177 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%178 = call i32 @strcpy(ptr noundef %177, ptr noundef @.str.22)
%179 = load i32, ptr %12, align 4
%180 = load i32, ptr @SEEK_SET, align 4
%181 = call i32 @lseek(i32 noundef %179, i32 noundef 0, i32 noundef %180)
%182 = load i32, ptr %12, align 4
%183 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%184 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%185 = call i64 @strlen(ptr noundef %184)
%186 = add nsw i64 %185, 1
%187 = call i64 @write(i32 noundef %182, ptr noundef %183, i64 noundef %186)
%188 = icmp slt i64 %187, 0
br i1 %188, label %189, label %191
189: ; preds = %176
%190 = call i32 @perror(ptr noundef @.str.21)
br label %191
191: ; preds = %189, %176
%192 = call i32 @usleep(i32 noundef 400000)
store i32 0, ptr %14, align 4
br label %193
193: ; preds = %191, %133
%194 = load i32, ptr %12, align 4
%195 = call i32 @close(i32 noundef %194)
br label %196
196: ; preds = %193, %144, %121
%197 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%198 = call i32 @strcpy(ptr noundef %197, ptr noundef @.str.23)
%199 = load i32, ptr %11, align 4
%200 = load i32, ptr @SEEK_SET, align 4
%201 = call i32 @lseek(i32 noundef %199, i32 noundef 0, i32 noundef %200)
%202 = load i32, ptr %11, align 4
%203 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%204 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%205 = call i64 @strlen(ptr noundef %204)
%206 = add nsw i64 %205, 1
%207 = call i64 @write(i32 noundef %202, ptr noundef %203, i64 noundef %206)
%208 = icmp slt i64 %207, 0
br i1 %208, label %209, label %211
209: ; preds = %196
%210 = call i32 @perror(ptr noundef @.str.24)
br label %211
211: ; preds = %209, %196
br label %212
212: ; preds = %211, %111, %95, %84
%213 = load i32, ptr %11, align 4
%214 = load i32, ptr @LOCK_UN, align 4
%215 = call i64 @flock(i32 noundef %213, i32 noundef %214)
br label %216
216: ; preds = %212, %73
%217 = load i32, ptr %11, align 4
%218 = call i32 @close(i32 noundef %217)
br label %219
219: ; preds = %216, %64, %52, %48, %27, %19
%220 = load i32, ptr %14, align 4
ret i32 %220
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i64 @flock(i32 noundef, i32 noundef) #1
declare i32 @lseek(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @strncasecmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @usleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1kxe3gnd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [55 x i8] c"/sys/devices/virtual/chromeos/cros_ec/lightbar/version\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [24 x i8] c"can't open version file\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"can't read version\00", align 1
@errno = dso_local global i64 0, align 8
@.str.3 = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"can't parse version string\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [28 x i8] c"can't parse version string\0A\00", align 1
@.str.6 = private unnamed_addr constant [40 x i8] c"Don't know how to handle version %d.%d\0A\00", align 1
@.str.7 = private unnamed_addr constant [56 x i8] c"/sys/devices/virtual/chromeos/cros_ec/lightbar/sequence\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@O_SYNC = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [28 x i8] c"can't open sequence control\00", align 1
@LOCK_EX = dso_local global i32 0, align 4
@LOCK_NB = dso_local global i32 0, align 4
@.str.9 = private unnamed_addr constant [28 x i8] c"can't lock sequence control\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.10 = private unnamed_addr constant [28 x i8] c"can't read sequence control\00", align 1
@.str.11 = private unnamed_addr constant [5 x i8] c"stop\00", align 1
@.str.12 = private unnamed_addr constant [25 x i8] c"couldn't get EC to stop\0A\00", align 1
@.str.13 = private unnamed_addr constant [29 x i8] c"can't write sequence control\00", align 1
@.str.14 = private unnamed_addr constant [58 x i8] c"/sys/devices/virtual/chromeos/cros_ec/lightbar/brightness\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@.str.15 = private unnamed_addr constant [30 x i8] c"can't open brightness control\00", align 1
@.str.16 = private unnamed_addr constant [4 x i8] c"255\00", align 1
@.str.17 = private unnamed_addr constant [31 x i8] c"can't write brightness control\00", align 1
@.str.18 = private unnamed_addr constant [55 x i8] c"/sys/devices/virtual/chromeos/cros_ec/lightbar/led_rgb\00", align 1
@.str.19 = private unnamed_addr constant [23 x i8] c"can't open led control\00", align 1
@.str.20 = private unnamed_addr constant [44 x i8] c"0 %d %d %d 1 %d %d %d 2 %d %d %d 3 %d %d %d\00", align 1
@.str.21 = private unnamed_addr constant [21 x i8] c"write to led control\00", align 1
@.str.22 = private unnamed_addr constant [14 x i8] c"4 255 255 255\00", align 1
@.str.23 = private unnamed_addr constant [4 x i8] c"run\00", align 1
@.str.24 = private unnamed_addr constant [26 x i8] c"write to sequence control\00", align 1
@LOCK_UN = 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 i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca [80 x i8], align 16
%14 = 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 1, ptr %14, align 4
%15 = load i32, ptr @O_RDONLY, align 4
%16 = call i32 @open(ptr noundef @.str, i32 noundef %15)
store i32 %16, ptr %8, align 4
%17 = load i32, ptr %8, align 4
%18 = icmp slt i32 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %2
%20 = call i32 @perror(ptr noundef @.str.1)
br label %225
21: ; preds = %2
%22 = load i32, ptr %8, align 4
%23 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%24 = call i32 @read(i32 noundef %22, ptr noundef %23, i32 noundef 79)
store i32 %24, ptr %14, align 4
%25 = load i32, ptr %14, align 4
%26 = icmp sle i32 %25, 0
br i1 %26, label %27, label %31
27: ; preds = %21
%28 = call i32 @perror(ptr noundef @.str.2)
%29 = load i32, ptr %8, align 4
%30 = call i32 @close(i32 noundef %29)
br label %225
31: ; preds = %21
%32 = load i32, ptr %14, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 %33
store i8 0, ptr %34, align 1
%35 = load i32, ptr %8, align 4
%36 = call i32 @close(i32 noundef %35)
store i64 0, ptr @errno, align 8
%37 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%38 = call i32 @sscanf(ptr noundef %37, ptr noundef @.str.3, ptr noundef %6, ptr noundef %7)
%39 = icmp ne i32 2, %38
br i1 %39, label %40, label %49
40: ; preds = %31
%41 = load i64, ptr @errno, align 8
%42 = icmp ne i64 %41, 0
br i1 %42, label %43, label %45
43: ; preds = %40
%44 = call i32 @perror(ptr noundef @.str.4)
br label %48
45: ; preds = %40
%46 = load i32, ptr @stderr, align 4
%47 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %46, ptr noundef @.str.5)
br label %48
48: ; preds = %45, %43
br label %225
49: ; preds = %31
%50 = load i32, ptr %6, align 4
%51 = icmp ne i32 %50, 0
br i1 %51, label %52, label %57
52: ; preds = %49
%53 = load i32, ptr @stderr, align 4
%54 = load i32, ptr %6, align 4
%55 = load i32, ptr %7, align 4
%56 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %53, ptr noundef @.str.6, i32 noundef %54, i32 noundef %55)
br label %225
57: ; preds = %49
%58 = load i32, ptr @O_RDWR, align 4
%59 = load i32, ptr @O_SYNC, align 4
%60 = or i32 %58, %59
%61 = call i32 @open(ptr noundef @.str.7, i32 noundef %60)
store i32 %61, ptr %11, align 4
%62 = load i32, ptr %11, align 4
%63 = icmp slt i32 %62, 0
br i1 %63, label %64, label %66
64: ; preds = %57
%65 = call i32 @perror(ptr noundef @.str.8)
br label %225
66: ; preds = %57
%67 = load i32, ptr %11, align 4
%68 = load i32, ptr @LOCK_EX, align 4
%69 = load i32, ptr @LOCK_NB, align 4
%70 = or i32 %68, %69
%71 = call i64 @flock(i32 noundef %67, i32 noundef %70)
%72 = icmp slt i64 %71, 0
br i1 %72, label %73, label %75
73: ; preds = %66
%74 = call i32 @perror(ptr noundef @.str.9)
br label %222
75: ; preds = %66
store i32 3, ptr %10, align 4
%76 = load i32, ptr %11, align 4
%77 = load i32, ptr @SEEK_SET, align 4
%78 = call i32 @lseek(i32 noundef %76, i32 noundef 0, i32 noundef %77)
%79 = load i32, ptr %11, align 4
%80 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%81 = call i32 @read(i32 noundef %79, ptr noundef %80, i32 noundef 80)
%82 = icmp sle i32 %81, 0
br i1 %82, label %90, label %.lr.ph
.lr.ph: ; preds = %75
br label %92
83: ; preds = %104
%84 = load i32, ptr %11, align 4
%85 = load i32, ptr @SEEK_SET, align 4
%86 = call i32 @lseek(i32 noundef %84, i32 noundef 0, i32 noundef %85)
%87 = load i32, ptr %11, align 4
%88 = call i32 @read(i32 noundef %87, ptr noundef %80, i32 noundef 80)
%89 = icmp sle i32 %88, 0
br i1 %89, label %._crit_edge, label %92
._crit_edge: ; preds = %83
br label %90
90: ; preds = %._crit_edge, %75
%91 = call i32 @perror(ptr noundef @.str.10)
br label %218
92: ; preds = %.lr.ph, %83
%93 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%94 = call i32 @strncasecmp(ptr noundef %93, ptr noundef @.str.11, i32 noundef 4)
%95 = icmp ne i32 %94, 0
br i1 %95, label %97, label %96
96: ; preds = %92
br label %119
97: ; preds = %92
%98 = load i32, ptr %10, align 4
%99 = add nsw i32 %98, -1
store i32 %99, ptr %10, align 4
%100 = icmp ne i32 %98, 0
br i1 %100, label %104, label %101
101: ; preds = %97
%102 = load i32, ptr @stderr, align 4
%103 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %102, ptr noundef @.str.12)
br label %218
104: ; preds = %97
%105 = load i32, ptr %11, align 4
%106 = load i32, ptr @SEEK_SET, align 4
%107 = call i32 @lseek(i32 noundef %105, i32 noundef 0, i32 noundef %106)
%108 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%109 = call i32 @strcpy(ptr noundef %108, ptr noundef @.str.11)
%110 = load i32, ptr %11, align 4
%111 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%112 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%113 = call i64 @strlen(ptr noundef %112)
%114 = add nsw i64 %113, 1
%115 = call i64 @write(i32 noundef %110, ptr noundef %111, i64 noundef %114)
%116 = icmp sle i64 %115, 0
br i1 %116, label %117, label %83
117: ; preds = %104
%118 = call i32 @perror(ptr noundef @.str.13)
br label %218
119: ; preds = %96
%120 = load i32, ptr @O_WRONLY, align 4
%121 = load i32, ptr @O_SYNC, align 4
%122 = or i32 %120, %121
%123 = call i32 @open(ptr noundef @.str.14, i32 noundef %122)
store i32 %123, ptr %12, align 4
%124 = load i32, ptr %12, align 4
%125 = icmp slt i32 %124, 0
br i1 %125, label %126, label %128
126: ; preds = %119
%127 = call i32 @perror(ptr noundef @.str.15)
br label %202
128: ; preds = %119
%129 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%130 = call i32 @strcpy(ptr noundef %129, ptr noundef @.str.16)
%131 = load i32, ptr %12, align 4
%132 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%133 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%134 = call i64 @strlen(ptr noundef %133)
%135 = add nsw i64 %134, 1
%136 = call i64 @write(i32 noundef %131, ptr noundef %132, i64 noundef %135)
%137 = icmp slt i64 %136, 0
br i1 %137, label %138, label %140
138: ; preds = %128
%139 = call i32 @perror(ptr noundef @.str.17)
br label %199
140: ; preds = %128
%141 = load i32, ptr %12, align 4
%142 = call i32 @close(i32 noundef %141)
%143 = load i32, ptr @O_WRONLY, align 4
%144 = load i32, ptr @O_SYNC, align 4
%145 = or i32 %143, %144
%146 = call i32 @open(ptr noundef @.str.18, i32 noundef %145)
store i32 %146, ptr %12, align 4
%147 = load i32, ptr %12, align 4
%148 = icmp slt i32 %147, 0
br i1 %148, label %149, label %151
149: ; preds = %140
%150 = call i32 @perror(ptr noundef @.str.19)
br label %202
151: ; preds = %140
store i32 0, ptr %9, align 4
%152 = load i32, ptr %9, align 4
%153 = icmp slt i32 %152, 256
br i1 %153, label %.lr.ph2, label %182
.lr.ph2: ; preds = %151
br label %154
154: ; preds = %.lr.ph2, %177
%155 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%156 = load i32, ptr %9, align 4
%157 = load i32, ptr %9, align 4
%158 = load i32, ptr %9, align 4
%159 = sub nsw i32 255, %158
%160 = load i32, ptr %9, align 4
%161 = sub nsw i32 255, %160
%162 = call i32 @sprintf(ptr noundef %155, ptr noundef @.str.20, i32 noundef %156, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef %157, i32 noundef %159, i32 noundef 255, i32 noundef 0, i32 noundef 0, i32 noundef 255, i32 noundef %161)
%163 = load i32, ptr %12, align 4
%164 = load i32, ptr @SEEK_SET, align 4
%165 = call i32 @lseek(i32 noundef %163, i32 noundef 0, i32 noundef %164)
%166 = load i32, ptr %12, align 4
%167 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%168 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%169 = call i64 @strlen(ptr noundef %168)
%170 = add nsw i64 %169, 1
%171 = call i64 @write(i32 noundef %166, ptr noundef %167, i64 noundef %170)
%172 = icmp slt i64 %171, 0
br i1 %172, label %173, label %175
173: ; preds = %154
%174 = call i32 @perror(ptr noundef @.str.21)
br label %175
175: ; preds = %173, %154
%176 = call i32 @usleep(i32 noundef 100000)
br label %177
177: ; preds = %175
%178 = load i32, ptr %9, align 4
%179 = add nsw i32 %178, 4
store i32 %179, ptr %9, align 4
%180 = load i32, ptr %9, align 4
%181 = icmp slt i32 %180, 256
br i1 %181, label %154, label %._crit_edge3, !llvm.loop !6
._crit_edge3: ; preds = %177
br label %182
182: ; preds = %._crit_edge3, %151
%183 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%184 = call i32 @strcpy(ptr noundef %183, ptr noundef @.str.22)
%185 = load i32, ptr %12, align 4
%186 = load i32, ptr @SEEK_SET, align 4
%187 = call i32 @lseek(i32 noundef %185, i32 noundef 0, i32 noundef %186)
%188 = load i32, ptr %12, align 4
%189 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%190 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%191 = call i64 @strlen(ptr noundef %190)
%192 = add nsw i64 %191, 1
%193 = call i64 @write(i32 noundef %188, ptr noundef %189, i64 noundef %192)
%194 = icmp slt i64 %193, 0
br i1 %194, label %195, label %197
195: ; preds = %182
%196 = call i32 @perror(ptr noundef @.str.21)
br label %197
197: ; preds = %195, %182
%198 = call i32 @usleep(i32 noundef 400000)
store i32 0, ptr %14, align 4
br label %199
199: ; preds = %197, %138
%200 = load i32, ptr %12, align 4
%201 = call i32 @close(i32 noundef %200)
br label %202
202: ; preds = %199, %149, %126
%203 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%204 = call i32 @strcpy(ptr noundef %203, ptr noundef @.str.23)
%205 = load i32, ptr %11, align 4
%206 = load i32, ptr @SEEK_SET, align 4
%207 = call i32 @lseek(i32 noundef %205, i32 noundef 0, i32 noundef %206)
%208 = load i32, ptr %11, align 4
%209 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%210 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%211 = call i64 @strlen(ptr noundef %210)
%212 = add nsw i64 %211, 1
%213 = call i64 @write(i32 noundef %208, ptr noundef %209, i64 noundef %212)
%214 = icmp slt i64 %213, 0
br i1 %214, label %215, label %217
215: ; preds = %202
%216 = call i32 @perror(ptr noundef @.str.24)
br label %217
217: ; preds = %215, %202
br label %218
218: ; preds = %217, %117, %101, %90
%219 = load i32, ptr %11, align 4
%220 = load i32, ptr @LOCK_UN, align 4
%221 = call i64 @flock(i32 noundef %219, i32 noundef %220)
br label %222
222: ; preds = %218, %73
%223 = load i32, ptr %11, align 4
%224 = call i32 @close(i32 noundef %223)
br label %225
225: ; preds = %222, %64, %52, %48, %27, %19
%226 = load i32, ptr %14, align 4
ret i32 %226
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i64 @flock(i32 noundef, i32 noundef) #1
declare i32 @lseek(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @strncasecmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @usleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpj3qfce47.c'
source_filename = "/tmp/tmpj3qfce47.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d,\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @sqlSignedArrayToString(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%7 = call ptr @newDyString(i32 noundef 256)
store ptr %7, ptr %6, align 8
store i32 0, ptr %5, align 4
br label %8
8: ; preds = %20, %2
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %23
12: ; preds = %8
%13 = load ptr, ptr %6, align 8
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %5, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i32, ptr %14, i64 %16
%18 = load i32, ptr %17, align 4
%19 = call i32 @dyStringPrintf(ptr noundef %13, ptr noundef @.str, i32 noundef %18)
br label %20
20: ; preds = %12
%21 = load i32, ptr %5, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %5, align 4
br label %8, !llvm.loop !6
23: ; preds = %8
%24 = call ptr @dyStringCannibalize(ptr noundef %6)
ret ptr %24
}
declare ptr @newDyString(i32 noundef) #1
declare i32 @dyStringPrintf(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @dyStringCannibalize(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpj3qfce47.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d,\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @sqlSignedArrayToString(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%7 = call ptr @newDyString(i32 noundef 256)
store ptr %7, ptr %6, align 8
store i32 0, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %25
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %19
%12 = load ptr, ptr %6, align 8
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %5, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i32, ptr %13, i64 %15
%17 = load i32, ptr %16, align 4
%18 = call i32 @dyStringPrintf(ptr noundef %12, ptr noundef @.str, i32 noundef %17)
br label %19
19: ; preds = %11
%20 = load i32, ptr %5, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %5, align 4
%22 = load i32, ptr %5, align 4
%23 = load i32, ptr %4, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %25
25: ; preds = %._crit_edge, %2
%26 = call ptr @dyStringCannibalize(ptr noundef %6)
ret ptr %26
}
declare ptr @newDyString(i32 noundef) #1
declare i32 @dyStringPrintf(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @dyStringCannibalize(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpnuyxgpj3.c'
source_filename = "/tmp/tmpnuyxgpj3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sca_sleep(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
store i32 %5, ptr %4, align 4
br label %6
6: ; preds = %9, %1
%7 = load i32, ptr %4, align 4
%8 = call i32 @sleep(i32 noundef %7)
store i32 %8, ptr %4, align 4
br label %9
9: ; preds = %6
%10 = load i32, ptr %4, align 4
%11 = icmp ugt i32 %10, 0
br i1 %11, label %6, label %12, !llvm.loop !6
12: ; preds = %9
%13 = load i32, ptr %2, align 4
ret i32 %13
}
declare i32 @sleep(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/tmpnuyxgpj3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sca_sleep(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
store i32 %5, ptr %4, align 4
br label %6
6: ; preds = %9, %1
%7 = load i32, ptr %4, align 4
%8 = call i32 @sleep(i32 noundef %7)
store i32 %8, ptr %4, align 4
br label %9
9: ; preds = %6
%10 = load i32, ptr %4, align 4
%11 = icmp ugt i32 %10, 0
br i1 %11, label %6, label %12, !llvm.loop !6
12: ; preds = %9
%13 = load i32, ptr %2, align 4
ret i32 %13
}
declare i32 @sleep(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/tmpufvkwxkx.c'
source_filename = "/tmp/tmpufvkwxkx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"comb = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @climbStairs(i32 noundef %3)
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @climbStairs(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/tmpufvkwxkx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"comb = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @climbStairs(i32 noundef %3)
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @climbStairs(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/tmpewbjp4eu.c'
source_filename = "/tmp/tmpewbjp4eu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"HELLO FROM 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
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 = %2, %7
%8 = call i32 @sleep(i32 noundef 2)
%9 = load i32, ptr %6, align 4
%10 = add nsw i32 %9, 1
store i32 %10, ptr %6, align 4
%11 = call i32 @printf(ptr noundef @.str, i32 noundef %9)
br label %7
}
declare i32 @sleep(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/tmpewbjp4eu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"HELLO FROM 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
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 = %7, %2
%8 = call i32 @sleep(i32 noundef 2)
%9 = load i32, ptr %6, align 4
%10 = add nsw i32 %9, 1
store i32 %10, ptr %6, align 4
%11 = call i32 @printf(ptr noundef @.str, i32 noundef %9)
br label %7
}
declare i32 @sleep(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/tmpckmj395u.c'
source_filename = "/tmp/tmpckmj395u.c"
target datalayout = "e-m:e-p270: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/tmpckmj395u.c"
target datalayout = "e-m:e-p270: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/tmpsbxu2zv5.c'
source_filename = "/tmp/tmpsbxu2zv5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gal_fun_test_f4(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %16, %2
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %19
10: ; preds = %6
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i32, ptr %11, i64 %13
%15 = call i32 @gal_fun_test_f2(ptr noundef %14)
br label %16
16: ; preds = %10
%17 = load i32, ptr %5, align 4
%18 = add nsw i32 %17, 10
store i32 %18, ptr %5, align 4
br label %6, !llvm.loop !6
19: ; preds = %6
ret void
}
declare i32 @gal_fun_test_f2(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpsbxu2zv5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gal_fun_test_f4(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %.lr.ph, label %21
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %15
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %5, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i32, ptr %10, i64 %12
%14 = call i32 @gal_fun_test_f2(ptr noundef %13)
br label %15
15: ; preds = %9
%16 = load i32, ptr %5, align 4
%17 = add nsw i32 %16, 10
store i32 %17, ptr %5, align 4
%18 = load i32, ptr %5, align 4
%19 = load i32, ptr %4, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %21
21: ; preds = %._crit_edge, %2
ret void
}
declare i32 @gal_fun_test_f2(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp47ugp0nt.c'
source_filename = "/tmp/tmp47ugp0nt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"helloo\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"'helloo' fail\0A\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"shel\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"'shel' fail\0A\00", align 1
@.str.4 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.5 = private unnamed_addr constant [19 x i8] c"empty string fail\0A\00", align 1
@.str.6 = private unnamed_addr constant [16 x i8] c"err_open: FAIL\0A\00", align 1
@.str.7 = private unnamed_addr constant [16 x i8] c"err_open: PASS\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @err_open() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @ece391_open(ptr noundef @.str)
%3 = icmp ne i32 -1, %2
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 @ece391_fdputs(i32 noundef 1, ptr noundef @.str.1)
store i32 2, ptr %1, align 4
br label %6
6: ; preds = %4, %0
%7 = call i32 @ece391_open(ptr noundef @.str.2)
%8 = icmp ne i32 -1, %7
br i1 %8, label %9, label %11
9: ; preds = %6
%10 = call i32 @ece391_fdputs(i32 noundef 1, ptr noundef @.str.3)
store i32 2, ptr %1, align 4
br label %11
11: ; preds = %9, %6
%12 = call i32 @ece391_open(ptr noundef @.str.4)
%13 = icmp ne i32 -1, %12
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = call i32 @ece391_fdputs(i32 noundef 1, ptr noundef @.str.5)
store i32 2, ptr %1, align 4
br label %16
16: ; preds = %14, %11
%17 = load i32, ptr %1, align 4
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = call i32 @ece391_fdputs(i32 noundef 1, ptr noundef @.str.6)
br label %23
21: ; preds = %16
%22 = call i32 @ece391_fdputs(i32 noundef 1, ptr noundef @.str.7)
br label %23
23: ; preds = %21, %19
%24 = load i32, ptr %1, align 4
ret i32 %24
}
declare i32 @ece391_open(ptr noundef) #1
declare i32 @ece391_fdputs(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/tmp47ugp0nt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"helloo\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"'helloo' fail\0A\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"shel\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"'shel' fail\0A\00", align 1
@.str.4 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.5 = private unnamed_addr constant [19 x i8] c"empty string fail\0A\00", align 1
@.str.6 = private unnamed_addr constant [16 x i8] c"err_open: FAIL\0A\00", align 1
@.str.7 = private unnamed_addr constant [16 x i8] c"err_open: PASS\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @err_open() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @ece391_open(ptr noundef @.str)
%3 = icmp ne i32 -1, %2
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 @ece391_fdputs(i32 noundef 1, ptr noundef @.str.1)
store i32 2, ptr %1, align 4
br label %6
6: ; preds = %4, %0
%7 = call i32 @ece391_open(ptr noundef @.str.2)
%8 = icmp ne i32 -1, %7
br i1 %8, label %9, label %11
9: ; preds = %6
%10 = call i32 @ece391_fdputs(i32 noundef 1, ptr noundef @.str.3)
store i32 2, ptr %1, align 4
br label %11
11: ; preds = %9, %6
%12 = call i32 @ece391_open(ptr noundef @.str.4)
%13 = icmp ne i32 -1, %12
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = call i32 @ece391_fdputs(i32 noundef 1, ptr noundef @.str.5)
store i32 2, ptr %1, align 4
br label %16
16: ; preds = %14, %11
%17 = load i32, ptr %1, align 4
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = call i32 @ece391_fdputs(i32 noundef 1, ptr noundef @.str.6)
br label %23
21: ; preds = %16
%22 = call i32 @ece391_fdputs(i32 noundef 1, ptr noundef @.str.7)
br label %23
23: ; preds = %21, %19
%24 = load i32, ptr %1, align 4
ret i32 %24
}
declare i32 @ece391_open(ptr noundef) #1
declare i32 @ece391_fdputs(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/tmpyati0xv_.c'
source_filename = "/tmp/tmpyati0xv_.c"
target datalayout = "e-m:e-p270: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/tmpyati0xv_.c"
target datalayout = "e-m:e-p270: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/tmpmwe8hbmo.c'
source_filename = "/tmp/tmpmwe8hbmo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"fork program starting\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"fork failed\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"This is the child\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"child PID:%d Child PPID:%d\0A\00", align 1
@.str.4 = private unnamed_addr constant [19 x i8] c"This is the parent\00", align 1
@.str.5 = private unnamed_addr constant [30 x i8] c"Parent PID:%d Parent PPID:%d\0A\00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c"\0A %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 (...) @fork()
store i32 %6, ptr %2, align 4
%7 = load i32, ptr %2, align 4
switch i32 %7, label %15 [
i32 -1, label %8
i32 0, label %11
]
8: ; preds = %0
%9 = call i32 @perror(ptr noundef @.str.1)
%10 = call i32 @exit(i32 noundef 1) #3
unreachable
11: ; preds = %0
store ptr @.str.2, ptr %3, align 8
%12 = call i32 (...) @getpid()
%13 = call i32 (...) @getppid()
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %12, i32 noundef %13)
store i32 3, ptr %4, align 4
br label %19
15: ; preds = %0
store ptr @.str.4, ptr %3, align 8
%16 = call i32 (...) @getpid()
%17 = call i32 (...) @getppid()
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %16, i32 noundef %17)
store i32 5, ptr %4, align 4
br label %19
19: ; preds = %15, %11
br label %20
20: ; preds = %27, %19
%21 = load i32, ptr %4, align 4
%22 = icmp sgt i32 %21, 0
br i1 %22, label %23, label %30
23: ; preds = %20
%24 = load ptr, ptr %3, align 8
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %24)
%26 = call i32 @sleep(i32 noundef 3)
br label %27
27: ; preds = %23
%28 = load i32, ptr %4, align 4
%29 = add nsw i32 %28, -1
store i32 %29, ptr %4, align 4
br label %20, !llvm.loop !6
30: ; preds = %20
%31 = load i32, ptr %1, align 4
ret i32 %31
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fork(...) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @getpid(...) #1
declare i32 @getppid(...) #1
declare i32 @sleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmwe8hbmo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"fork program starting\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"fork failed\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"This is the child\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"child PID:%d Child PPID:%d\0A\00", align 1
@.str.4 = private unnamed_addr constant [19 x i8] c"This is the parent\00", align 1
@.str.5 = private unnamed_addr constant [30 x i8] c"Parent PID:%d Parent PPID:%d\0A\00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c"\0A %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 (...) @fork()
store i32 %6, ptr %2, align 4
%7 = load i32, ptr %2, align 4
switch i32 %7, label %15 [
i32 -1, label %8
i32 0, label %11
]
8: ; preds = %0
%9 = call i32 @perror(ptr noundef @.str.1)
%10 = call i32 @exit(i32 noundef 1) #3
unreachable
11: ; preds = %0
store ptr @.str.2, ptr %3, align 8
%12 = call i32 (...) @getpid()
%13 = call i32 (...) @getppid()
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %12, i32 noundef %13)
store i32 3, ptr %4, align 4
br label %19
15: ; preds = %0
store ptr @.str.4, ptr %3, align 8
%16 = call i32 (...) @getpid()
%17 = call i32 (...) @getppid()
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %16, i32 noundef %17)
store i32 5, ptr %4, align 4
br label %19
19: ; preds = %15, %11
%20 = load i32, ptr %4, align 4
%21 = icmp sgt i32 %20, 0
br i1 %21, label %.lr.ph, label %31
.lr.ph: ; preds = %19
br label %22
22: ; preds = %.lr.ph, %26
%23 = load ptr, ptr %3, align 8
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %23)
%25 = call i32 @sleep(i32 noundef 3)
br label %26
26: ; preds = %22
%27 = load i32, ptr %4, align 4
%28 = add nsw i32 %27, -1
store i32 %28, ptr %4, align 4
%29 = load i32, ptr %4, align 4
%30 = icmp sgt i32 %29, 0
br i1 %30, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %31
31: ; preds = %._crit_edge, %19
%32 = load i32, ptr %1, align 4
ret i32 %32
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fork(...) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @getpid(...) #1
declare i32 @getppid(...) #1
declare i32 @sleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpftdcd4u0.c'
source_filename = "/tmp/tmpftdcd4u0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @UARTFIFOEnable(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = add nsw i64 %3, 10
%5 = inttoptr i64 %4 to ptr
%6 = load volatile i32, ptr %5, align 4
%7 = or i32 %6, 16384
store volatile i32 %7, ptr %5, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpftdcd4u0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @UARTFIFOEnable(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = add nsw i64 %3, 10
%5 = inttoptr i64 %4 to ptr
%6 = load volatile i32, ptr %5, align 4
%7 = or i32 %6, 16384
store volatile i32 %7, ptr %5, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3rzcfzsu.c'
source_filename = "/tmp/tmp3rzcfzsu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.tm = type { i32, i32, i32, i32, i32, ptr, ptr }
@.str = private unnamed_addr constant [41 x i8] c"%400[a-zA-Z] %400[a-zA-Z] %d %d:%d:%d %d\00", align 1
@.str.1 = private unnamed_addr constant [46 x i8] c"%400[a-zA-Z], %d-%400[a-zA-Z]-%d %d:%d:%d GMT\00", align 1
@.str.2 = private unnamed_addr constant [46 x i8] c"%400[a-zA-Z], %d %400[a-zA-Z] %d %d:%d:%d GMT\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @parse_date(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [256 x i8], align 16
%6 = alloca [256 x i8], align 16
%7 = alloca [256 x i8], align 16
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%13 = load ptr, ptr %3, align 8
%14 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
%15 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%16 = call i32 (ptr, ptr, ptr, ...) @sscanf(ptr noundef %13, ptr noundef @.str, ptr noundef %14, ptr noundef %15, ptr noundef %8, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %9)
%17 = icmp eq i32 %16, 7
br i1 %17, label %18, label %43
18: ; preds = %2
%19 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
%20 = call ptr @find_wkday(ptr noundef %19)
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds %struct.tm, ptr %21, i32 0, i32 6
store ptr %20, ptr %22, align 8
%23 = load i32, ptr %9, align 4
%24 = sub nsw i32 %23, 1900
%25 = load ptr, ptr %4, align 8
%26 = getelementptr inbounds %struct.tm, ptr %25, i32 0, i32 0
store i32 %24, ptr %26, align 8
%27 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%28 = call ptr @find_month(ptr noundef %27)
%29 = load ptr, ptr %4, align 8
%30 = getelementptr inbounds %struct.tm, ptr %29, i32 0, i32 5
store ptr %28, ptr %30, align 8
%31 = load i32, ptr %8, align 4
%32 = load ptr, ptr %4, align 8
%33 = getelementptr inbounds %struct.tm, ptr %32, i32 0, i32 1
store i32 %31, ptr %33, align 4
%34 = load i32, ptr %10, align 4
%35 = load ptr, ptr %4, align 8
%36 = getelementptr inbounds %struct.tm, ptr %35, i32 0, i32 2
store i32 %34, ptr %36, align 8
%37 = load i32, ptr %11, align 4
%38 = load ptr, ptr %4, align 8
%39 = getelementptr inbounds %struct.tm, ptr %38, i32 0, i32 3
store i32 %37, ptr %39, align 4
%40 = load i32, ptr %12, align 4
%41 = load ptr, ptr %4, align 8
%42 = getelementptr inbounds %struct.tm, ptr %41, i32 0, i32 4
store i32 %40, ptr %42, align 8
br label %107
43: ; preds = %2
%44 = load ptr, ptr %3, align 8
%45 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%46 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%47 = call i32 (ptr, ptr, ptr, ...) @sscanf(ptr noundef %44, ptr noundef @.str.1, ptr noundef %45, ptr noundef %8, ptr noundef %46, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12)
%48 = icmp eq i32 %47, 7
br i1 %48, label %49, label %73
49: ; preds = %43
%50 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
%51 = call ptr @find_weekday(ptr noundef %50)
%52 = load ptr, ptr %4, align 8
%53 = getelementptr inbounds %struct.tm, ptr %52, i32 0, i32 6
store ptr %51, ptr %53, align 8
%54 = load i32, ptr %9, align 4
%55 = load ptr, ptr %4, align 8
%56 = getelementptr inbounds %struct.tm, ptr %55, i32 0, i32 0
store i32 %54, ptr %56, align 8
%57 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%58 = call ptr @find_month(ptr noundef %57)
%59 = load ptr, ptr %4, align 8
%60 = getelementptr inbounds %struct.tm, ptr %59, i32 0, i32 5
store ptr %58, ptr %60, align 8
%61 = load i32, ptr %8, align 4
%62 = load ptr, ptr %4, align 8
%63 = getelementptr inbounds %struct.tm, ptr %62, i32 0, i32 1
store i32 %61, ptr %63, align 4
%64 = load i32, ptr %10, align 4
%65 = load ptr, ptr %4, align 8
%66 = getelementptr inbounds %struct.tm, ptr %65, i32 0, i32 2
store i32 %64, ptr %66, align 8
%67 = load i32, ptr %11, align 4
%68 = load ptr, ptr %4, align 8
%69 = getelementptr inbounds %struct.tm, ptr %68, i32 0, i32 3
store i32 %67, ptr %69, align 4
%70 = load i32, ptr %12, align 4
%71 = load ptr, ptr %4, align 8
%72 = getelementptr inbounds %struct.tm, ptr %71, i32 0, i32 4
store i32 %70, ptr %72, align 8
br label %106
73: ; preds = %43
%74 = load ptr, ptr %3, align 8
%75 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
%76 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%77 = call i32 (ptr, ptr, ptr, ...) @sscanf(ptr noundef %74, ptr noundef @.str.2, ptr noundef %75, ptr noundef %8, ptr noundef %76, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12)
%78 = icmp eq i32 %77, 7
br i1 %78, label %79, label %104
79: ; preds = %73
%80 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
%81 = call ptr @find_wkday(ptr noundef %80)
%82 = load ptr, ptr %4, align 8
%83 = getelementptr inbounds %struct.tm, ptr %82, i32 0, i32 6
store ptr %81, ptr %83, align 8
%84 = load i32, ptr %9, align 4
%85 = sub nsw i32 %84, 1900
%86 = load ptr, ptr %4, align 8
%87 = getelementptr inbounds %struct.tm, ptr %86, i32 0, i32 0
store i32 %85, ptr %87, align 8
%88 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%89 = call ptr @find_month(ptr noundef %88)
%90 = load ptr, ptr %4, align 8
%91 = getelementptr inbounds %struct.tm, ptr %90, i32 0, i32 5
store ptr %89, ptr %91, align 8
%92 = load i32, ptr %8, align 4
%93 = load ptr, ptr %4, align 8
%94 = getelementptr inbounds %struct.tm, ptr %93, i32 0, i32 1
store i32 %92, ptr %94, align 4
%95 = load i32, ptr %10, align 4
%96 = load ptr, ptr %4, align 8
%97 = getelementptr inbounds %struct.tm, ptr %96, i32 0, i32 2
store i32 %95, ptr %97, align 8
%98 = load i32, ptr %11, align 4
%99 = load ptr, ptr %4, align 8
%100 = getelementptr inbounds %struct.tm, ptr %99, i32 0, i32 3
store i32 %98, ptr %100, align 4
%101 = load i32, ptr %12, align 4
%102 = load ptr, ptr %4, align 8
%103 = getelementptr inbounds %struct.tm, ptr %102, i32 0, i32 4
store i32 %101, ptr %103, align 8
br label %105
104: ; preds = %73
store ptr null, ptr %4, align 8
br label %105
105: ; preds = %104, %79
br label %106
106: ; preds = %105, %49
br label %107
107: ; preds = %106, %18
ret void
}
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ...) #1
declare ptr @find_wkday(ptr noundef) #1
declare ptr @find_month(ptr noundef) #1
declare ptr @find_weekday(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3rzcfzsu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.tm = type { i32, i32, i32, i32, i32, ptr, ptr }
@.str = private unnamed_addr constant [41 x i8] c"%400[a-zA-Z] %400[a-zA-Z] %d %d:%d:%d %d\00", align 1
@.str.1 = private unnamed_addr constant [46 x i8] c"%400[a-zA-Z], %d-%400[a-zA-Z]-%d %d:%d:%d GMT\00", align 1
@.str.2 = private unnamed_addr constant [46 x i8] c"%400[a-zA-Z], %d %400[a-zA-Z] %d %d:%d:%d GMT\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @parse_date(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [256 x i8], align 16
%6 = alloca [256 x i8], align 16
%7 = alloca [256 x i8], align 16
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%13 = load ptr, ptr %3, align 8
%14 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
%15 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%16 = call i32 (ptr, ptr, ptr, ...) @sscanf(ptr noundef %13, ptr noundef @.str, ptr noundef %14, ptr noundef %15, ptr noundef %8, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %9)
%17 = icmp eq i32 %16, 7
br i1 %17, label %18, label %43
18: ; preds = %2
%19 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
%20 = call ptr @find_wkday(ptr noundef %19)
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds %struct.tm, ptr %21, i32 0, i32 6
store ptr %20, ptr %22, align 8
%23 = load i32, ptr %9, align 4
%24 = sub nsw i32 %23, 1900
%25 = load ptr, ptr %4, align 8
%26 = getelementptr inbounds %struct.tm, ptr %25, i32 0, i32 0
store i32 %24, ptr %26, align 8
%27 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%28 = call ptr @find_month(ptr noundef %27)
%29 = load ptr, ptr %4, align 8
%30 = getelementptr inbounds %struct.tm, ptr %29, i32 0, i32 5
store ptr %28, ptr %30, align 8
%31 = load i32, ptr %8, align 4
%32 = load ptr, ptr %4, align 8
%33 = getelementptr inbounds %struct.tm, ptr %32, i32 0, i32 1
store i32 %31, ptr %33, align 4
%34 = load i32, ptr %10, align 4
%35 = load ptr, ptr %4, align 8
%36 = getelementptr inbounds %struct.tm, ptr %35, i32 0, i32 2
store i32 %34, ptr %36, align 8
%37 = load i32, ptr %11, align 4
%38 = load ptr, ptr %4, align 8
%39 = getelementptr inbounds %struct.tm, ptr %38, i32 0, i32 3
store i32 %37, ptr %39, align 4
%40 = load i32, ptr %12, align 4
%41 = load ptr, ptr %4, align 8
%42 = getelementptr inbounds %struct.tm, ptr %41, i32 0, i32 4
store i32 %40, ptr %42, align 8
br label %107
43: ; preds = %2
%44 = load ptr, ptr %3, align 8
%45 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%46 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%47 = call i32 (ptr, ptr, ptr, ...) @sscanf(ptr noundef %44, ptr noundef @.str.1, ptr noundef %45, ptr noundef %8, ptr noundef %46, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12)
%48 = icmp eq i32 %47, 7
br i1 %48, label %49, label %73
49: ; preds = %43
%50 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
%51 = call ptr @find_weekday(ptr noundef %50)
%52 = load ptr, ptr %4, align 8
%53 = getelementptr inbounds %struct.tm, ptr %52, i32 0, i32 6
store ptr %51, ptr %53, align 8
%54 = load i32, ptr %9, align 4
%55 = load ptr, ptr %4, align 8
%56 = getelementptr inbounds %struct.tm, ptr %55, i32 0, i32 0
store i32 %54, ptr %56, align 8
%57 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%58 = call ptr @find_month(ptr noundef %57)
%59 = load ptr, ptr %4, align 8
%60 = getelementptr inbounds %struct.tm, ptr %59, i32 0, i32 5
store ptr %58, ptr %60, align 8
%61 = load i32, ptr %8, align 4
%62 = load ptr, ptr %4, align 8
%63 = getelementptr inbounds %struct.tm, ptr %62, i32 0, i32 1
store i32 %61, ptr %63, align 4
%64 = load i32, ptr %10, align 4
%65 = load ptr, ptr %4, align 8
%66 = getelementptr inbounds %struct.tm, ptr %65, i32 0, i32 2
store i32 %64, ptr %66, align 8
%67 = load i32, ptr %11, align 4
%68 = load ptr, ptr %4, align 8
%69 = getelementptr inbounds %struct.tm, ptr %68, i32 0, i32 3
store i32 %67, ptr %69, align 4
%70 = load i32, ptr %12, align 4
%71 = load ptr, ptr %4, align 8
%72 = getelementptr inbounds %struct.tm, ptr %71, i32 0, i32 4
store i32 %70, ptr %72, align 8
br label %106
73: ; preds = %43
%74 = load ptr, ptr %3, align 8
%75 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
%76 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%77 = call i32 (ptr, ptr, ptr, ...) @sscanf(ptr noundef %74, ptr noundef @.str.2, ptr noundef %75, ptr noundef %8, ptr noundef %76, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12)
%78 = icmp eq i32 %77, 7
br i1 %78, label %79, label %104
79: ; preds = %73
%80 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
%81 = call ptr @find_wkday(ptr noundef %80)
%82 = load ptr, ptr %4, align 8
%83 = getelementptr inbounds %struct.tm, ptr %82, i32 0, i32 6
store ptr %81, ptr %83, align 8
%84 = load i32, ptr %9, align 4
%85 = sub nsw i32 %84, 1900
%86 = load ptr, ptr %4, align 8
%87 = getelementptr inbounds %struct.tm, ptr %86, i32 0, i32 0
store i32 %85, ptr %87, align 8
%88 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%89 = call ptr @find_month(ptr noundef %88)
%90 = load ptr, ptr %4, align 8
%91 = getelementptr inbounds %struct.tm, ptr %90, i32 0, i32 5
store ptr %89, ptr %91, align 8
%92 = load i32, ptr %8, align 4
%93 = load ptr, ptr %4, align 8
%94 = getelementptr inbounds %struct.tm, ptr %93, i32 0, i32 1
store i32 %92, ptr %94, align 4
%95 = load i32, ptr %10, align 4
%96 = load ptr, ptr %4, align 8
%97 = getelementptr inbounds %struct.tm, ptr %96, i32 0, i32 2
store i32 %95, ptr %97, align 8
%98 = load i32, ptr %11, align 4
%99 = load ptr, ptr %4, align 8
%100 = getelementptr inbounds %struct.tm, ptr %99, i32 0, i32 3
store i32 %98, ptr %100, align 4
%101 = load i32, ptr %12, align 4
%102 = load ptr, ptr %4, align 8
%103 = getelementptr inbounds %struct.tm, ptr %102, i32 0, i32 4
store i32 %101, ptr %103, align 8
br label %105
104: ; preds = %73
store ptr null, ptr %4, align 8
br label %105
105: ; preds = %104, %79
br label %106
106: ; preds = %105, %49
br label %107
107: ; preds = %106, %18
ret void
}
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ...) #1
declare ptr @find_wkday(ptr noundef) #1
declare ptr @find_month(ptr noundef) #1
declare ptr @find_weekday(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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.