llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmpj38e6evw.c'
source_filename = "/tmp/tmpj38e6evw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@.str.1 = private unnamed_addr constant [10 x i8] c"string %s\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%f\0A\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"offCalc %f\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [30 x i8], align 16
%3 = alloca ptr, align 8
%4 = alloca float, align 4
%5 = alloca [11 x float], align 16
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
store float 0xBFF4CCCCC0000000, ptr %4, align 4
%7 = call i64 @time(ptr noundef null)
%8 = trunc i64 %7 to i32
%9 = call i32 @srand(i32 noundef %8)
store i32 0, ptr %6, align 4
br label %10
10: ; preds = %20, %0
%11 = load i32, ptr %6, align 4
%12 = icmp slt i32 %11, 11
br i1 %12, label %13, label %23
13: ; preds = %10
%14 = call i64 (...) @rand()
%15 = sitofp i64 %14 to float
%16 = fdiv float %15, 1.000000e+02
%17 = load i32, ptr %6, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [11 x float], ptr %5, i64 0, i64 %18
store float %16, ptr %19, align 4
br label %20
20: ; preds = %13
%21 = load i32, ptr %6, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %6, align 4
br label %10, !llvm.loop !6
23: ; preds = %10
%24 = getelementptr inbounds [30 x i8], ptr %2, i64 0, i64 0
%25 = load float, ptr %4, align 4
%26 = call i32 @dtoa(ptr noundef %24, float noundef %25)
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%28 = getelementptr inbounds [30 x i8], ptr %2, i64 0, i64 0
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %28)
store i32 1, ptr %6, align 4
br label %30
30: ; preds = %40, %23
%31 = load i32, ptr %6, align 4
%32 = icmp slt i32 %31, 11
br i1 %32, label %33, label %43
33: ; preds = %30
%34 = load i32, ptr %6, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [11 x float], ptr %5, i64 0, i64 %35
%37 = load float, ptr %36, align 4
%38 = fpext float %37 to double
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %38)
br label %40
40: ; preds = %33
%41 = load i32, ptr %6, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %6, align 4
br label %30, !llvm.loop !8
43: ; preds = %30
%44 = getelementptr inbounds [11 x float], ptr %5, i64 0, i64 0
%45 = call double @offCalc(ptr noundef %44, i32 noundef 11)
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %45)
ret i32 0
}
declare i32 @srand(i32 noundef) #1
declare i64 @time(ptr noundef) #1
declare i64 @rand(...) #1
declare i32 @dtoa(ptr noundef, float noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @offCalc(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj38e6evw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@.str.1 = private unnamed_addr constant [10 x i8] c"string %s\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%f\0A\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"offCalc %f\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [30 x i8], align 16
%3 = alloca ptr, align 8
%4 = alloca float, align 4
%5 = alloca [11 x float], align 16
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
store float 0xBFF4CCCCC0000000, ptr %4, align 4
%7 = call i64 @time(ptr noundef null)
%8 = trunc i64 %7 to i32
%9 = call i32 @srand(i32 noundef %8)
store i32 0, ptr %6, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %10, 11
br i1 %11, label %.lr.ph, label %24
.lr.ph: ; preds = %0
br label %12
12: ; preds = %.lr.ph, %19
%13 = call i64 (...) @rand()
%14 = sitofp i64 %13 to float
%15 = fdiv float %14, 1.000000e+02
%16 = load i32, ptr %6, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [11 x float], ptr %5, i64 0, i64 %17
store float %15, ptr %18, align 4
br label %19
19: ; preds = %12
%20 = load i32, ptr %6, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %6, align 4
%22 = load i32, ptr %6, align 4
%23 = icmp slt i32 %22, 11
br i1 %23, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %24
24: ; preds = %._crit_edge, %0
%25 = getelementptr inbounds [30 x i8], ptr %2, i64 0, i64 0
%26 = load float, ptr %4, align 4
%27 = call i32 @dtoa(ptr noundef %25, float noundef %26)
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%29 = getelementptr inbounds [30 x i8], ptr %2, i64 0, i64 0
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %29)
store i32 1, ptr %6, align 4
%31 = load i32, ptr %6, align 4
%32 = icmp slt i32 %31, 11
br i1 %32, label %.lr.ph2, label %45
.lr.ph2: ; preds = %24
br label %33
33: ; preds = %.lr.ph2, %40
%34 = load i32, ptr %6, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [11 x float], ptr %5, i64 0, i64 %35
%37 = load float, ptr %36, align 4
%38 = fpext float %37 to double
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %38)
br label %40
40: ; preds = %33
%41 = load i32, ptr %6, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %6, align 4
%43 = load i32, ptr %6, align 4
%44 = icmp slt i32 %43, 11
br i1 %44, label %33, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %40
br label %45
45: ; preds = %._crit_edge3, %24
%46 = getelementptr inbounds [11 x float], ptr %5, i64 0, i64 0
%47 = call double @offCalc(ptr noundef %46, i32 noundef 11)
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %47)
ret i32 0
}
declare i32 @srand(i32 noundef) #1
declare i64 @time(ptr noundef) #1
declare i64 @rand(...) #1
declare i32 @dtoa(ptr noundef, float noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @offCalc(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpygbh0kb3.c'
source_filename = "/tmp/tmpygbh0kb3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"./signal_stop.dat\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"Simulation finished\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @gui_stop() #0 {
%1 = alloca ptr, align 8
%2 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %2, ptr %1, align 8
%3 = load ptr, ptr %1, align 8
%4 = call i32 @fprintf(ptr noundef %3, ptr noundef @.str.2)
%5 = load ptr, ptr %1, align 8
%6 = call i32 @fclose(ptr noundef %5)
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpygbh0kb3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"./signal_stop.dat\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"Simulation finished\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @gui_stop() #0 {
%1 = alloca ptr, align 8
%2 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %2, ptr %1, align 8
%3 = load ptr, ptr %1, align 8
%4 = call i32 @fprintf(ptr noundef %3, ptr noundef @.str.2)
%5 = load ptr, ptr %1, align 8
%6 = call i32 @fclose(ptr noundef %5)
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(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"}
|
; ModuleID = '/tmp/tmp08e3kmw7.c'
source_filename = "/tmp/tmp08e3kmw7.c"
target datalayout = "e-m:e-p270: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 @my_sqrt(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call double @sqrt(double noundef %3) #2
ret double %4
}
; Function Attrs: nounwind
declare double @sqrt(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp08e3kmw7.c"
target datalayout = "e-m:e-p270: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 @my_sqrt(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call double @sqrt(double noundef %3) #2
ret double %4
}
; Function Attrs: nounwind
declare double @sqrt(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpeal9kr5w.c'
source_filename = "/tmp/tmpeal9kr5w.c"
target datalayout = "e-m:e-p270: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 @remove_trailing_zeros(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 1, ptr %9, align 4
br label %10
10: ; preds = %126, %1
%11 = load i32, ptr %9, align 4
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %127
13: ; preds = %10
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
%14 = load ptr, ptr %2, align 8
%15 = call i32 @strlen(ptr noundef %14)
store i32 %15, ptr %5, align 4
store i32 0, ptr %3, align 4
br label %16
16: ; preds = %123, %13
%17 = load i32, ptr %3, align 4
%18 = load i32, ptr %5, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %126
20: ; preds = %16
%21 = load ptr, ptr %2, align 8
%22 = load i32, ptr %3, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %21, i64 %23
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp slt i32 %26, 48
br i1 %27, label %36, label %28
28: ; preds = %20
%29 = load ptr, ptr %2, align 8
%30 = load i32, ptr %3, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %29, i64 %31
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp sgt i32 %34, 57
br i1 %35, label %36, label %86
36: ; preds = %28, %20
%37 = load i32, ptr %8, align 4
%38 = icmp ne i32 %37, 0
br i1 %38, label %39, label %76
39: ; preds = %36
%40 = load ptr, ptr %2, align 8
%41 = load i32, ptr %3, align 4
%42 = load i32, ptr %8, align 4
%43 = sub nsw i32 %41, %42
%44 = sub nsw i32 %43, 1
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i8, ptr %40, i64 %45
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
%49 = icmp eq i32 %48, 46
br i1 %49, label %50, label %53
50: ; preds = %39
%51 = load i32, ptr %8, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %8, align 4
br label %53
53: ; preds = %50, %39
%54 = load i32, ptr %3, align 4
store i32 %54, ptr %4, align 4
br label %55
55: ; preds = %72, %53
%56 = load i32, ptr %4, align 4
%57 = load i32, ptr %5, align 4
%58 = add nsw i32 %57, 1
%59 = icmp slt i32 %56, %58
br i1 %59, label %60, label %75
60: ; preds = %55
%61 = load ptr, ptr %2, align 8
%62 = load i32, ptr %4, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i8, ptr %61, i64 %63
%65 = load i8, ptr %64, align 1
%66 = load ptr, ptr %2, align 8
%67 = load i32, ptr %4, align 4
%68 = load i32, ptr %8, align 4
%69 = sub nsw i32 %67, %68
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i8, ptr %66, i64 %70
store i8 %65, ptr %71, align 1
br label %72
72: ; preds = %60
%73 = load i32, ptr %4, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %4, align 4
br label %55, !llvm.loop !6
75: ; preds = %55
store i32 1, ptr %9, align 4
br label %126
76: ; preds = %36
%77 = load ptr, ptr %2, align 8
%78 = load i32, ptr %3, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i8, ptr %77, i64 %79
%81 = load i8, ptr %80, align 1
%82 = sext i8 %81 to i32
%83 = icmp ne i32 %82, 46
br i1 %83, label %84, label %85
84: ; preds = %76
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %85
85: ; preds = %84, %76
br label %96
86: ; preds = %28
store i32 1, ptr %6, align 4
%87 = load ptr, ptr %2, align 8
%88 = load i32, ptr %3, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i8, ptr %87, i64 %89
%91 = load i8, ptr %90, align 1
%92 = sext i8 %91 to i32
%93 = icmp sgt i32 %92, 48
br i1 %93, label %94, label %95
94: ; preds = %86
store i32 0, ptr %8, align 4
br label %95
95: ; preds = %94, %86
br label %96
96: ; preds = %95, %85
%97 = load ptr, ptr %2, align 8
%98 = load i32, ptr %3, align 4
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds i8, ptr %97, i64 %99
%101 = load i8, ptr %100, align 1
%102 = sext i8 %101 to i32
%103 = icmp eq i32 %102, 46
br i1 %103, label %104, label %108
104: ; preds = %96
%105 = load i32, ptr %6, align 4
%106 = icmp ne i32 %105, 0
br i1 %106, label %107, label %108
107: ; preds = %104
store i32 1, ptr %7, align 4
br label %108
108: ; preds = %107, %104, %96
%109 = load ptr, ptr %2, align 8
%110 = load i32, ptr %3, align 4
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds i8, ptr %109, i64 %111
%113 = load i8, ptr %112, align 1
%114 = sext i8 %113 to i32
%115 = icmp eq i32 %114, 48
br i1 %115, label %116, label %122
116: ; preds = %108
%117 = load i32, ptr %7, align 4
%118 = icmp ne i32 %117, 0
br i1 %118, label %119, label %122
119: ; preds = %116
%120 = load i32, ptr %8, align 4
%121 = add nsw i32 %120, 1
store i32 %121, ptr %8, align 4
br label %122
122: ; preds = %119, %116, %108
br label %123
123: ; preds = %122
%124 = load i32, ptr %3, align 4
%125 = add nsw i32 %124, 1
store i32 %125, ptr %3, align 4
br label %16, !llvm.loop !8
126: ; preds = %75, %16
br label %10, !llvm.loop !9
127: ; preds = %10
%128 = load i32, ptr %8, align 4
%129 = icmp ne i32 %128, 0
br i1 %129, label %130, label %167
130: ; preds = %127
%131 = load ptr, ptr %2, align 8
%132 = load i32, ptr %3, align 4
%133 = load i32, ptr %8, align 4
%134 = sub nsw i32 %132, %133
%135 = sub nsw i32 %134, 1
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds i8, ptr %131, i64 %136
%138 = load i8, ptr %137, align 1
%139 = sext i8 %138 to i32
%140 = icmp eq i32 %139, 46
br i1 %140, label %141, label %144
141: ; preds = %130
%142 = load i32, ptr %8, align 4
%143 = add nsw i32 %142, 1
store i32 %143, ptr %8, align 4
br label %144
144: ; preds = %141, %130
%145 = load i32, ptr %3, align 4
store i32 %145, ptr %4, align 4
br label %146
146: ; preds = %163, %144
%147 = load i32, ptr %4, align 4
%148 = load i32, ptr %5, align 4
%149 = add nsw i32 %148, 1
%150 = icmp slt i32 %147, %149
br i1 %150, label %151, label %166
151: ; preds = %146
%152 = load ptr, ptr %2, align 8
%153 = load i32, ptr %4, align 4
%154 = sext i32 %153 to i64
%155 = getelementptr inbounds i8, ptr %152, i64 %154
%156 = load i8, ptr %155, align 1
%157 = load ptr, ptr %2, align 8
%158 = load i32, ptr %4, align 4
%159 = load i32, ptr %8, align 4
%160 = sub nsw i32 %158, %159
%161 = sext i32 %160 to i64
%162 = getelementptr inbounds i8, ptr %157, i64 %161
store i8 %156, ptr %162, align 1
br label %163
163: ; preds = %151
%164 = load i32, ptr %4, align 4
%165 = add nsw i32 %164, 1
store i32 %165, ptr %4, align 4
br label %146, !llvm.loop !10
166: ; preds = %146
br label %167
167: ; preds = %166, %127
%168 = load i32, ptr %5, align 4
%169 = icmp sgt i32 %168, 1
br i1 %169, label %170, label %204
170: ; preds = %167
%171 = load ptr, ptr %2, align 8
%172 = load i32, ptr %5, align 4
%173 = sub nsw i32 %172, 2
%174 = sext i32 %173 to i64
%175 = getelementptr inbounds i8, ptr %171, i64 %174
%176 = load i8, ptr %175, align 1
%177 = sext i8 %176 to i32
%178 = icmp slt i32 %177, 48
br i1 %178, label %203, label %179
179: ; preds = %170
%180 = load ptr, ptr %2, align 8
%181 = load i32, ptr %3, align 4
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds i8, ptr %180, i64 %182
%184 = load i8, ptr %183, align 1
%185 = sext i8 %184 to i32
%186 = icmp sgt i32 %185, 57
br i1 %186, label %203, label %187
187: ; preds = %179
%188 = load ptr, ptr %2, align 8
%189 = load i32, ptr %5, align 4
%190 = sub nsw i32 %189, 1
%191 = sext i32 %190 to i64
%192 = getelementptr inbounds i8, ptr %188, i64 %191
%193 = load i8, ptr %192, align 1
%194 = sext i8 %193 to i32
%195 = icmp eq i32 %194, 46
br i1 %195, label %196, label %202
196: ; preds = %187
%197 = load ptr, ptr %2, align 8
%198 = load i32, ptr %5, align 4
%199 = sub nsw i32 %198, 1
%200 = sext i32 %199 to i64
%201 = getelementptr inbounds i8, ptr %197, i64 %200
store i8 0, ptr %201, align 1
br label %202
202: ; preds = %196, %187
br label %203
203: ; preds = %202, %179, %170
br label %204
204: ; preds = %203, %167
ret void
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!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/tmpeal9kr5w.c"
target datalayout = "e-m:e-p270: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 @remove_trailing_zeros(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 1, ptr %9, align 4
%10 = load i32, ptr %9, align 4
%11 = icmp ne i32 %10, 0
br i1 %11, label %.lr.ph3, label %133
.lr.ph3: ; preds = %1
br label %12
12: ; preds = %.lr.ph3, %130
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
%13 = load ptr, ptr %2, align 8
%14 = call i32 @strlen(ptr noundef %13)
store i32 %14, ptr %5, align 4
store i32 0, ptr %3, align 4
%15 = load i32, ptr %3, align 4
%16 = load i32, ptr %5, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %12
br label %18
18: ; preds = %.lr.ph, %124
%19 = load ptr, ptr %2, align 8
%20 = load i32, ptr %3, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %19, i64 %21
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp slt i32 %24, 48
br i1 %25, label %34, label %26
26: ; preds = %18
%27 = load ptr, ptr %2, align 8
%28 = load i32, ptr %3, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %27, i64 %29
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = icmp sgt i32 %32, 57
br i1 %33, label %34, label %87
34: ; preds = %26, %18
%35 = load i32, ptr %8, align 4
%36 = icmp ne i32 %35, 0
br i1 %36, label %37, label %77
37: ; preds = %34
%38 = load ptr, ptr %2, align 8
%39 = load i32, ptr %3, align 4
%40 = load i32, ptr %8, align 4
%41 = sub nsw i32 %39, %40
%42 = sub nsw i32 %41, 1
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %38, i64 %43
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = icmp eq i32 %46, 46
br i1 %47, label %48, label %51
48: ; preds = %37
%49 = load i32, ptr %8, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %8, align 4
br label %51
51: ; preds = %48, %37
%52 = load i32, ptr %3, align 4
store i32 %52, ptr %4, align 4
%53 = load i32, ptr %4, align 4
%54 = load i32, ptr %5, align 4
%55 = add nsw i32 %54, 1
%56 = icmp slt i32 %53, %55
br i1 %56, label %.lr.ph1, label %76
.lr.ph1: ; preds = %51
br label %57
57: ; preds = %.lr.ph1, %69
%58 = load ptr, ptr %2, align 8
%59 = load i32, ptr %4, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i8, ptr %58, i64 %60
%62 = load i8, ptr %61, align 1
%63 = load ptr, ptr %2, align 8
%64 = load i32, ptr %4, align 4
%65 = load i32, ptr %8, align 4
%66 = sub nsw i32 %64, %65
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i8, ptr %63, i64 %67
store i8 %62, ptr %68, align 1
br label %69
69: ; preds = %57
%70 = load i32, ptr %4, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %4, align 4
%72 = load i32, ptr %4, align 4
%73 = load i32, ptr %5, align 4
%74 = add nsw i32 %73, 1
%75 = icmp slt i32 %72, %74
br i1 %75, label %57, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %69
br label %76
76: ; preds = %._crit_edge, %51
store i32 1, ptr %9, align 4
br label %130
77: ; preds = %34
%78 = load ptr, ptr %2, align 8
%79 = load i32, ptr %3, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i8, ptr %78, i64 %80
%82 = load i8, ptr %81, align 1
%83 = sext i8 %82 to i32
%84 = icmp ne i32 %83, 46
br i1 %84, label %85, label %86
85: ; preds = %77
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %86
86: ; preds = %85, %77
br label %97
87: ; preds = %26
store i32 1, ptr %6, align 4
%88 = load ptr, ptr %2, align 8
%89 = load i32, ptr %3, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds i8, ptr %88, i64 %90
%92 = load i8, ptr %91, align 1
%93 = sext i8 %92 to i32
%94 = icmp sgt i32 %93, 48
br i1 %94, label %95, label %96
95: ; preds = %87
store i32 0, ptr %8, align 4
br label %96
96: ; preds = %95, %87
br label %97
97: ; preds = %96, %86
%98 = load ptr, ptr %2, align 8
%99 = load i32, ptr %3, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds i8, ptr %98, i64 %100
%102 = load i8, ptr %101, align 1
%103 = sext i8 %102 to i32
%104 = icmp eq i32 %103, 46
br i1 %104, label %105, label %109
105: ; preds = %97
%106 = load i32, ptr %6, align 4
%107 = icmp ne i32 %106, 0
br i1 %107, label %108, label %109
108: ; preds = %105
store i32 1, ptr %7, align 4
br label %109
109: ; preds = %108, %105, %97
%110 = load ptr, ptr %2, align 8
%111 = load i32, ptr %3, align 4
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds i8, ptr %110, i64 %112
%114 = load i8, ptr %113, align 1
%115 = sext i8 %114 to i32
%116 = icmp eq i32 %115, 48
br i1 %116, label %117, label %123
117: ; preds = %109
%118 = load i32, ptr %7, align 4
%119 = icmp ne i32 %118, 0
br i1 %119, label %120, label %123
120: ; preds = %117
%121 = load i32, ptr %8, align 4
%122 = add nsw i32 %121, 1
store i32 %122, ptr %8, align 4
br label %123
123: ; preds = %120, %117, %109
br label %124
124: ; preds = %123
%125 = load i32, ptr %3, align 4
%126 = add nsw i32 %125, 1
store i32 %126, ptr %3, align 4
%127 = load i32, ptr %3, align 4
%128 = load i32, ptr %5, align 4
%129 = icmp slt i32 %127, %128
br i1 %129, label %18, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %124
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %12
br label %130
130: ; preds = %.loopexit, %76
%131 = load i32, ptr %9, align 4
%132 = icmp ne i32 %131, 0
br i1 %132, label %12, label %._crit_edge4, !llvm.loop !9
._crit_edge4: ; preds = %130
br label %133
133: ; preds = %._crit_edge4, %1
%134 = load i32, ptr %8, align 4
%135 = icmp ne i32 %134, 0
br i1 %135, label %136, label %176
136: ; preds = %133
%137 = load ptr, ptr %2, align 8
%138 = load i32, ptr %3, align 4
%139 = load i32, ptr %8, align 4
%140 = sub nsw i32 %138, %139
%141 = sub nsw i32 %140, 1
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds i8, ptr %137, i64 %142
%144 = load i8, ptr %143, align 1
%145 = sext i8 %144 to i32
%146 = icmp eq i32 %145, 46
br i1 %146, label %147, label %150
147: ; preds = %136
%148 = load i32, ptr %8, align 4
%149 = add nsw i32 %148, 1
store i32 %149, ptr %8, align 4
br label %150
150: ; preds = %147, %136
%151 = load i32, ptr %3, align 4
store i32 %151, ptr %4, align 4
%152 = load i32, ptr %4, align 4
%153 = load i32, ptr %5, align 4
%154 = add nsw i32 %153, 1
%155 = icmp slt i32 %152, %154
br i1 %155, label %.lr.ph6, label %175
.lr.ph6: ; preds = %150
br label %156
156: ; preds = %.lr.ph6, %168
%157 = load ptr, ptr %2, align 8
%158 = load i32, ptr %4, align 4
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds i8, ptr %157, i64 %159
%161 = load i8, ptr %160, align 1
%162 = load ptr, ptr %2, align 8
%163 = load i32, ptr %4, align 4
%164 = load i32, ptr %8, align 4
%165 = sub nsw i32 %163, %164
%166 = sext i32 %165 to i64
%167 = getelementptr inbounds i8, ptr %162, i64 %166
store i8 %161, ptr %167, align 1
br label %168
168: ; preds = %156
%169 = load i32, ptr %4, align 4
%170 = add nsw i32 %169, 1
store i32 %170, ptr %4, align 4
%171 = load i32, ptr %4, align 4
%172 = load i32, ptr %5, align 4
%173 = add nsw i32 %172, 1
%174 = icmp slt i32 %171, %173
br i1 %174, label %156, label %._crit_edge7, !llvm.loop !10
._crit_edge7: ; preds = %168
br label %175
175: ; preds = %._crit_edge7, %150
br label %176
176: ; preds = %175, %133
%177 = load i32, ptr %5, align 4
%178 = icmp sgt i32 %177, 1
br i1 %178, label %179, label %213
179: ; preds = %176
%180 = load ptr, ptr %2, align 8
%181 = load i32, ptr %5, align 4
%182 = sub nsw i32 %181, 2
%183 = sext i32 %182 to i64
%184 = getelementptr inbounds i8, ptr %180, i64 %183
%185 = load i8, ptr %184, align 1
%186 = sext i8 %185 to i32
%187 = icmp slt i32 %186, 48
br i1 %187, label %212, label %188
188: ; preds = %179
%189 = load ptr, ptr %2, align 8
%190 = load i32, ptr %3, align 4
%191 = sext i32 %190 to i64
%192 = getelementptr inbounds i8, ptr %189, i64 %191
%193 = load i8, ptr %192, align 1
%194 = sext i8 %193 to i32
%195 = icmp sgt i32 %194, 57
br i1 %195, label %212, label %196
196: ; preds = %188
%197 = load ptr, ptr %2, align 8
%198 = load i32, ptr %5, align 4
%199 = sub nsw i32 %198, 1
%200 = sext i32 %199 to i64
%201 = getelementptr inbounds i8, ptr %197, i64 %200
%202 = load i8, ptr %201, align 1
%203 = sext i8 %202 to i32
%204 = icmp eq i32 %203, 46
br i1 %204, label %205, label %211
205: ; preds = %196
%206 = load ptr, ptr %2, align 8
%207 = load i32, ptr %5, align 4
%208 = sub nsw i32 %207, 1
%209 = sext i32 %208 to i64
%210 = getelementptr inbounds i8, ptr %206, i64 %209
store i8 0, ptr %210, align 1
br label %211
211: ; preds = %205, %196
br label %212
212: ; preds = %211, %188, %179
br label %213
213: ; preds = %212, %176
ret void
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpvj6jtlt5.c'
source_filename = "/tmp/tmpvj6jtlt5.c"
target datalayout = "e-m:e-p270: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/tmpvj6jtlt5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_t512y5j.c'
source_filename = "/tmp/tmp_t512y5j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @runTest(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %2, align 8
%5 = call i32 (...) @setup()
%6 = call i64 (...) @clock()
store i64 %6, ptr %3, align 8
%7 = load ptr, ptr %2, align 8
call void %7()
%8 = call i64 (...) @clock()
store i64 %8, ptr %4, align 8
%9 = load i64, ptr %4, align 8
%10 = load i64, ptr %3, align 8
%11 = sub nsw i64 %9, %10
ret i64 %11
}
declare i32 @setup(...) #1
declare i64 @clock(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!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_t512y5j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @runTest(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %2, align 8
%5 = call i32 (...) @setup()
%6 = call i64 (...) @clock()
store i64 %6, ptr %3, align 8
%7 = load ptr, ptr %2, align 8
call void %7()
%8 = call i64 (...) @clock()
store i64 %8, ptr %4, align 8
%9 = load i64, ptr %4, align 8
%10 = load i64, ptr %3, align 8
%11 = sub nsw i64 %9, %10
ret i64 %11
}
declare i32 @setup(...) #1
declare i64 @clock(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4i9r4o8k.c'
source_filename = "/tmp/tmp4i9r4o8k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @ZBUFFv05_recommendedDOutSize() #0 {
ret i64 131072
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4i9r4o8k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @ZBUFFv05_recommendedDOutSize() #0 {
ret i64 131072
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpv7awjlvs.c'
source_filename = "/tmp/tmpv7awjlvs.c"
target datalayout = "e-m:e-p270: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/tmpv7awjlvs.c"
target datalayout = "e-m:e-p270: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/tmp1el_4ivl.c'
source_filename = "/tmp/tmp1el_4ivl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"Tell me your name: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Tell me your age: \00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%u\00", align 1
@.str.4 = private unnamed_addr constant [32 x i8] c"Finally, what's your username: \00", align 1
@.str.5 = private unnamed_addr constant [65 x i8] c"\0AHere's what I learned about you!\0AName: %s\0AAge: %u\0AUsername: %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 [50 x i8], align 16
%7 = alloca i32, align 4
%8 = alloca [50 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memset.p0.i64(ptr align 16 %6, i8 0, i64 50, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 50, i1 false)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%10 = getelementptr inbounds [50 x i8], ptr %6, i64 0, i64 0
%11 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %10)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%13 = call i32 (ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %7)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%15 = getelementptr inbounds [50 x i8], ptr %8, i64 0, i64 0
%16 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %15)
%17 = getelementptr inbounds [50 x i8], ptr %6, i64 0, i64 0
%18 = load i32, ptr %7, align 4
%19 = getelementptr inbounds [50 x i8], ptr %8, i64 0, i64 0
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %17, i32 noundef %18, ptr noundef %19)
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 @printf(ptr noundef, ...) #2
declare i32 @scanf(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/tmp1el_4ivl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"Tell me your name: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Tell me your age: \00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%u\00", align 1
@.str.4 = private unnamed_addr constant [32 x i8] c"Finally, what's your username: \00", align 1
@.str.5 = private unnamed_addr constant [65 x i8] c"\0AHere's what I learned about you!\0AName: %s\0AAge: %u\0AUsername: %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 [50 x i8], align 16
%7 = alloca i32, align 4
%8 = alloca [50 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memset.p0.i64(ptr align 16 %6, i8 0, i64 50, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 50, i1 false)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%10 = getelementptr inbounds [50 x i8], ptr %6, i64 0, i64 0
%11 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %10)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%13 = call i32 (ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %7)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%15 = getelementptr inbounds [50 x i8], ptr %8, i64 0, i64 0
%16 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %15)
%17 = getelementptr inbounds [50 x i8], ptr %6, i64 0, i64 0
%18 = load i32, ptr %7, align 4
%19 = getelementptr inbounds [50 x i8], ptr %8, i64 0, i64 0
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %17, i32 noundef %18, ptr noundef %19)
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 @printf(ptr noundef, ...) #2
declare i32 @scanf(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/tmpu8joqgmz.c'
source_filename = "/tmp/tmpu8joqgmz.c"
target datalayout = "e-m:e-p270: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 [29 x i8] c"unable to read from %s%s %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @read_sysfs_float_fd(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [32 x i8], align 16
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%8 = load i32, ptr %4, align 4
%9 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
%10 = call i64 @read(i32 noundef %8, ptr noundef %9, i32 noundef 32)
%11 = icmp slt i64 %10, 0
br i1 %11, label %12, label %22
12: ; preds = %3
%13 = load i32, ptr @stderr, align 4
%14 = load ptr, ptr %5, align 8
%15 = load ptr, ptr %6, align 8
%16 = load i32, ptr @errno, align 4
%17 = call i32 @strerror(i32 noundef %16)
%18 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str, ptr noundef %14, ptr noundef %15, i32 noundef %17)
%19 = load i32, ptr %4, align 4
%20 = call i32 @close(i32 noundef %19)
%21 = call i32 (...) @abort() #3
unreachable
22: ; preds = %3
%23 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
%24 = call float @atof(ptr noundef %23)
ret float %24
}
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strerror(i32 noundef) #1
declare i32 @close(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare float @atof(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpu8joqgmz.c"
target datalayout = "e-m:e-p270: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 [29 x i8] c"unable to read from %s%s %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @read_sysfs_float_fd(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [32 x i8], align 16
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%8 = load i32, ptr %4, align 4
%9 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
%10 = call i64 @read(i32 noundef %8, ptr noundef %9, i32 noundef 32)
%11 = icmp slt i64 %10, 0
br i1 %11, label %12, label %22
12: ; preds = %3
%13 = load i32, ptr @stderr, align 4
%14 = load ptr, ptr %5, align 8
%15 = load ptr, ptr %6, align 8
%16 = load i32, ptr @errno, align 4
%17 = call i32 @strerror(i32 noundef %16)
%18 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str, ptr noundef %14, ptr noundef %15, i32 noundef %17)
%19 = load i32, ptr %4, align 4
%20 = call i32 @close(i32 noundef %19)
%21 = call i32 (...) @abort() #3
unreachable
22: ; preds = %3
%23 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
%24 = call float @atof(ptr noundef %23)
ret float %24
}
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strerror(i32 noundef) #1
declare i32 @close(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare float @atof(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpg8kvujrw.c'
source_filename = "/tmp/tmpg8kvujrw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [18 x i8] c"Can't stat %s: %s\00", align 1
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @isdir(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca %struct.stat, align 4
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i32 @stat(ptr noundef %5, ptr noundef %4)
%7 = icmp eq i32 %6, -1
br i1 %7, label %8, label %13
8: ; preds = %1
%9 = load ptr, ptr %3, align 8
%10 = load i32, ptr @errno, align 4
%11 = call ptr @strerror(i32 noundef %10)
%12 = call i32 @error(ptr noundef @.str, ptr noundef %9, ptr noundef %11)
store i32 -1, ptr %2, align 4
br label %20
13: ; preds = %1
%14 = getelementptr inbounds %struct.stat, ptr %4, i32 0, i32 0
%15 = load i32, ptr %14, align 4
%16 = call i64 @S_ISDIR(i32 noundef %15)
%17 = icmp ne i64 %16, 0
%18 = zext i1 %17 to i64
%19 = select i1 %17, i32 1, i32 0
store i32 %19, ptr %2, align 4
br label %20
20: ; preds = %13, %8
%21 = load i32, ptr %2, align 4
ret i32 %21
}
declare i32 @stat(ptr noundef, ptr noundef) #1
declare i32 @error(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i64 @S_ISDIR(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/tmpg8kvujrw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [18 x i8] c"Can't stat %s: %s\00", align 1
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @isdir(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca %struct.stat, align 4
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i32 @stat(ptr noundef %5, ptr noundef %4)
%7 = icmp eq i32 %6, -1
br i1 %7, label %8, label %13
8: ; preds = %1
%9 = load ptr, ptr %3, align 8
%10 = load i32, ptr @errno, align 4
%11 = call ptr @strerror(i32 noundef %10)
%12 = call i32 @error(ptr noundef @.str, ptr noundef %9, ptr noundef %11)
store i32 -1, ptr %2, align 4
br label %20
13: ; preds = %1
%14 = getelementptr inbounds %struct.stat, ptr %4, i32 0, i32 0
%15 = load i32, ptr %14, align 4
%16 = call i64 @S_ISDIR(i32 noundef %15)
%17 = icmp ne i64 %16, 0
%18 = zext i1 %17 to i64
%19 = select i1 %17, i32 1, i32 0
store i32 %19, ptr %2, align 4
br label %20
20: ; preds = %13, %8
%21 = load i32, ptr %2, align 4
ret i32 %21
}
declare i32 @stat(ptr noundef, ptr noundef) #1
declare i32 @error(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i64 @S_ISDIR(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/tmphv6dxnat.c'
source_filename = "/tmp/tmphv6dxnat.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [69 x i8] c"\0A\0A\0AJogo terminado. Voce encontrou 3 lixos no oceano em %d tentativas\00", align 1
@.str.2 = private unnamed_addr constant [85 x i8] c"\0A\0A\0AVoce tornou o oceano um pouco mais limpo, as tartarugas e baleias agradecem!!!\0A\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [5 x [5 x i32]], align 16
%3 = alloca [3 x [2 x i32]], align 16
%4 = alloca [2 x i32], align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%7 = getelementptr inbounds [5 x [5 x i32]], ptr %2, i64 0, i64 0
%8 = call i32 @inicializaTabuleiro(ptr noundef %7)
%9 = getelementptr inbounds [3 x [2 x i32]], ptr %3, i64 0, i64 0
%10 = call i32 @iniciaLixos(ptr noundef %9)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %12
12: ; preds = %40, %0
%13 = getelementptr inbounds [5 x [5 x i32]], ptr %2, i64 0, i64 0
%14 = call i32 @mostraTabuleiro(ptr noundef %13)
%15 = getelementptr inbounds [2 x i32], ptr %4, i64 0, i64 0
%16 = call i32 @Pescar(ptr noundef %15)
%17 = load i32, ptr %5, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %5, align 4
%19 = getelementptr inbounds [2 x i32], ptr %4, i64 0, i64 0
%20 = getelementptr inbounds [3 x [2 x i32]], ptr %3, i64 0, i64 0
%21 = call i64 @acertou(ptr noundef %19, ptr noundef %20)
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %30
23: ; preds = %12
%24 = getelementptr inbounds [2 x i32], ptr %4, i64 0, i64 0
%25 = getelementptr inbounds [3 x [2 x i32]], ptr %3, i64 0, i64 0
%26 = load i32, ptr %5, align 4
%27 = call i32 @dica(ptr noundef %24, ptr noundef %25, i32 noundef %26)
%28 = load i32, ptr %6, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %6, align 4
br label %35
30: ; preds = %12
%31 = getelementptr inbounds [2 x i32], ptr %4, i64 0, i64 0
%32 = getelementptr inbounds [3 x [2 x i32]], ptr %3, i64 0, i64 0
%33 = load i32, ptr %5, align 4
%34 = call i32 @dica(ptr noundef %31, ptr noundef %32, i32 noundef %33)
br label %35
35: ; preds = %30, %23
%36 = getelementptr inbounds [2 x i32], ptr %4, i64 0, i64 0
%37 = getelementptr inbounds [3 x [2 x i32]], ptr %3, i64 0, i64 0
%38 = getelementptr inbounds [5 x [5 x i32]], ptr %2, i64 0, i64 0
%39 = call i32 @alteraTabuleiro(ptr noundef %36, ptr noundef %37, ptr noundef %38)
br label %40
40: ; preds = %35
%41 = load i32, ptr %6, align 4
%42 = icmp ne i32 %41, 3
br i1 %42, label %12, label %43, !llvm.loop !6
43: ; preds = %40
%44 = load i32, ptr %5, align 4
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %44)
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%47 = getelementptr inbounds [5 x [5 x i32]], ptr %2, i64 0, i64 0
%48 = call i32 @mostraTabuleiro(ptr noundef %47)
ret i32 0
}
declare i32 @inicializaTabuleiro(ptr noundef) #1
declare i32 @iniciaLixos(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @mostraTabuleiro(ptr noundef) #1
declare i32 @Pescar(ptr noundef) #1
declare i64 @acertou(ptr noundef, ptr noundef) #1
declare i32 @dica(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @alteraTabuleiro(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphv6dxnat.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [69 x i8] c"\0A\0A\0AJogo terminado. Voce encontrou 3 lixos no oceano em %d tentativas\00", align 1
@.str.2 = private unnamed_addr constant [85 x i8] c"\0A\0A\0AVoce tornou o oceano um pouco mais limpo, as tartarugas e baleias agradecem!!!\0A\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [5 x [5 x i32]], align 16
%3 = alloca [3 x [2 x i32]], align 16
%4 = alloca [2 x i32], align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%7 = getelementptr inbounds [5 x [5 x i32]], ptr %2, i64 0, i64 0
%8 = call i32 @inicializaTabuleiro(ptr noundef %7)
%9 = getelementptr inbounds [3 x [2 x i32]], ptr %3, i64 0, i64 0
%10 = call i32 @iniciaLixos(ptr noundef %9)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %12
12: ; preds = %40, %0
%13 = getelementptr inbounds [5 x [5 x i32]], ptr %2, i64 0, i64 0
%14 = call i32 @mostraTabuleiro(ptr noundef %13)
%15 = getelementptr inbounds [2 x i32], ptr %4, i64 0, i64 0
%16 = call i32 @Pescar(ptr noundef %15)
%17 = load i32, ptr %5, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %5, align 4
%19 = getelementptr inbounds [2 x i32], ptr %4, i64 0, i64 0
%20 = getelementptr inbounds [3 x [2 x i32]], ptr %3, i64 0, i64 0
%21 = call i64 @acertou(ptr noundef %19, ptr noundef %20)
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %30
23: ; preds = %12
%24 = getelementptr inbounds [2 x i32], ptr %4, i64 0, i64 0
%25 = getelementptr inbounds [3 x [2 x i32]], ptr %3, i64 0, i64 0
%26 = load i32, ptr %5, align 4
%27 = call i32 @dica(ptr noundef %24, ptr noundef %25, i32 noundef %26)
%28 = load i32, ptr %6, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %6, align 4
br label %35
30: ; preds = %12
%31 = getelementptr inbounds [2 x i32], ptr %4, i64 0, i64 0
%32 = getelementptr inbounds [3 x [2 x i32]], ptr %3, i64 0, i64 0
%33 = load i32, ptr %5, align 4
%34 = call i32 @dica(ptr noundef %31, ptr noundef %32, i32 noundef %33)
br label %35
35: ; preds = %30, %23
%36 = getelementptr inbounds [2 x i32], ptr %4, i64 0, i64 0
%37 = getelementptr inbounds [3 x [2 x i32]], ptr %3, i64 0, i64 0
%38 = getelementptr inbounds [5 x [5 x i32]], ptr %2, i64 0, i64 0
%39 = call i32 @alteraTabuleiro(ptr noundef %36, ptr noundef %37, ptr noundef %38)
br label %40
40: ; preds = %35
%41 = load i32, ptr %6, align 4
%42 = icmp ne i32 %41, 3
br i1 %42, label %12, label %43, !llvm.loop !6
43: ; preds = %40
%44 = load i32, ptr %5, align 4
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %44)
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%47 = getelementptr inbounds [5 x [5 x i32]], ptr %2, i64 0, i64 0
%48 = call i32 @mostraTabuleiro(ptr noundef %47)
ret i32 0
}
declare i32 @inicializaTabuleiro(ptr noundef) #1
declare i32 @iniciaLixos(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @mostraTabuleiro(ptr noundef) #1
declare i32 @Pescar(ptr noundef) #1
declare i64 @acertou(ptr noundef, ptr noundef) #1
declare i32 @dica(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @alteraTabuleiro(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpb7_zb2vi.c'
source_filename = "/tmp/tmpb7_zb2vi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [36 x i8] c"input 10 strings with same length:\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"new strings are:\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%s\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 [10 x [20 x i8]], align 16
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %2, align 4
br label %5
5: ; preds = %14, %0
%6 = load i32, ptr %2, align 4
%7 = icmp slt i32 %6, 10
br i1 %7, label %8, label %17
8: ; preds = %5
%9 = load i32, ptr %2, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [10 x [20 x i8]], ptr %3, i64 0, i64 %10
%12 = getelementptr inbounds [20 x i8], ptr %11, i64 0, i64 0
%13 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %12)
br label %14
14: ; preds = %8
%15 = load i32, ptr %2, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %2, align 4
br label %5, !llvm.loop !6
17: ; preds = %5
%18 = getelementptr inbounds [10 x [20 x i8]], ptr %3, i64 0, i64 0
call void @sort(ptr noundef %18)
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %2, align 4
br label %20
20: ; preds = %29, %17
%21 = load i32, ptr %2, align 4
%22 = icmp slt i32 %21, 10
br i1 %22, label %23, label %32
23: ; preds = %20
%24 = load i32, ptr %2, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [10 x [20 x i8]], ptr %3, i64 0, i64 %25
%27 = getelementptr inbounds [20 x i8], ptr %26, i64 0, i64 0
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %27)
br label %29
29: ; preds = %23
%30 = load i32, ptr %2, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %2, align 4
br label %20, !llvm.loop !8
32: ; preds = %20
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare void @sort(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpb7_zb2vi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [36 x i8] c"input 10 strings with same length:\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"new strings are:\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%s\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 [10 x [20 x i8]], align 16
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp slt i32 %5, 10
br i1 %6, label %.lr.ph, label %18
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %13
%8 = load i32, ptr %2, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [10 x [20 x i8]], ptr %3, i64 0, i64 %9
%11 = getelementptr inbounds [20 x i8], ptr %10, i64 0, i64 0
%12 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %11)
br label %13
13: ; preds = %7
%14 = load i32, ptr %2, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %2, align 4
%16 = load i32, ptr %2, align 4
%17 = icmp slt i32 %16, 10
br i1 %17, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %18
18: ; preds = %._crit_edge, %0
%19 = getelementptr inbounds [10 x [20 x i8]], ptr %3, i64 0, i64 0
call void @sort(ptr noundef %19)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %2, align 4
%21 = load i32, ptr %2, align 4
%22 = icmp slt i32 %21, 10
br i1 %22, label %.lr.ph2, label %34
.lr.ph2: ; preds = %18
br label %23
23: ; preds = %.lr.ph2, %29
%24 = load i32, ptr %2, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [10 x [20 x i8]], ptr %3, i64 0, i64 %25
%27 = getelementptr inbounds [20 x i8], ptr %26, i64 0, i64 0
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %27)
br label %29
29: ; preds = %23
%30 = load i32, ptr %2, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %2, align 4
%32 = load i32, ptr %2, align 4
%33 = icmp slt i32 %32, 10
br i1 %33, label %23, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %29
br label %34
34: ; preds = %._crit_edge3, %18
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare void @sort(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpp4l0iiiq.c'
source_filename = "/tmp/tmpp4l0iiiq.c"
target datalayout = "e-m:e-p270: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/tmpp4l0iiiq.c"
target datalayout = "e-m:e-p270: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/tmpst0bwvmc.c'
source_filename = "/tmp/tmpst0bwvmc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@MSG_WAITALL = 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/tmpst0bwvmc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@MSG_WAITALL = 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/tmp1us1rk9p.c'
source_filename = "/tmp/tmp1us1rk9p.c"
target datalayout = "e-m:e-p270: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 ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = load ptr, ptr %4, align 8
%7 = call i32 @ifmonMain(i32 noundef %5, ptr noundef %6)
ret i32 0
}
declare i32 @ifmonMain(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/tmp1us1rk9p.c"
target datalayout = "e-m:e-p270: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 ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = load ptr, ptr %4, align 8
%7 = call i32 @ifmonMain(i32 noundef %5, ptr noundef %6)
ret i32 0
}
declare i32 @ifmonMain(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/tmpxf4fyypl.c'
source_filename = "/tmp/tmpxf4fyypl.c"
target datalayout = "e-m:e-p270: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/tmpxf4fyypl.c"
target datalayout = "e-m:e-p270: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/tmp0ms3xp86.c'
source_filename = "/tmp/tmp0ms3xp86.c"
target datalayout = "e-m:e-p270: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/tmp0ms3xp86.c"
target datalayout = "e-m:e-p270: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/tmp4gt0un2p.c'
source_filename = "/tmp/tmp4gt0un2p.c"
target datalayout = "e-m:e-p270: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/tmp4gt0un2p.c"
target datalayout = "e-m:e-p270: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/tmpeupe742a.c'
source_filename = "/tmp/tmpeupe742a.c"
target datalayout = "e-m:e-p270: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 @intToRoman(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
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%20 = load i32, ptr %2, align 4
%21 = sdiv i32 %20, 1000
store i32 %21, ptr %3, align 4
%22 = load i32, ptr %2, align 4
%23 = srem i32 %22, 1000
%24 = sdiv i32 %23, 100
store i32 %24, ptr %4, align 4
%25 = load i32, ptr %2, align 4
%26 = srem i32 %25, 100
%27 = sdiv i32 %26, 10
store i32 %27, ptr %5, align 4
%28 = load i32, ptr %2, align 4
%29 = srem i32 %28, 10
store i32 %29, ptr %6, align 4
%30 = load i32, ptr %4, align 4
%31 = icmp slt i32 %30, 4
br i1 %31, label %32, label %34
32: ; preds = %1
%33 = load i32, ptr %4, align 4
br label %46
34: ; preds = %1
%35 = load i32, ptr %4, align 4
%36 = icmp eq i32 %35, 4
br i1 %36, label %40, label %37
37: ; preds = %34
%38 = load i32, ptr %4, align 4
%39 = icmp eq i32 %38, 9
br i1 %39, label %40, label %41
40: ; preds = %37, %34
br label %44
41: ; preds = %37
%42 = load i32, ptr %4, align 4
%43 = sub nsw i32 %42, 4
br label %44
44: ; preds = %41, %40
%45 = phi i32 [ 2, %40 ], [ %43, %41 ]
br label %46
46: ; preds = %44, %32
%47 = phi i32 [ %33, %32 ], [ %45, %44 ]
store i32 %47, ptr %7, align 4
%48 = load i32, ptr %5, align 4
%49 = icmp slt i32 %48, 4
br i1 %49, label %50, label %52
50: ; preds = %46
%51 = load i32, ptr %5, align 4
br label %64
52: ; preds = %46
%53 = load i32, ptr %5, align 4
%54 = icmp eq i32 %53, 4
br i1 %54, label %58, label %55
55: ; preds = %52
%56 = load i32, ptr %5, align 4
%57 = icmp eq i32 %56, 9
br i1 %57, label %58, label %59
58: ; preds = %55, %52
br label %62
59: ; preds = %55
%60 = load i32, ptr %5, align 4
%61 = sub nsw i32 %60, 4
br label %62
62: ; preds = %59, %58
%63 = phi i32 [ 2, %58 ], [ %61, %59 ]
br label %64
64: ; preds = %62, %50
%65 = phi i32 [ %51, %50 ], [ %63, %62 ]
store i32 %65, ptr %8, align 4
%66 = load i32, ptr %6, align 4
%67 = icmp slt i32 %66, 4
br i1 %67, label %68, label %70
68: ; preds = %64
%69 = load i32, ptr %6, align 4
br label %82
70: ; preds = %64
%71 = load i32, ptr %6, align 4
%72 = icmp eq i32 %71, 4
br i1 %72, label %76, label %73
73: ; preds = %70
%74 = load i32, ptr %6, align 4
%75 = icmp eq i32 %74, 9
br i1 %75, label %76, label %77
76: ; preds = %73, %70
br label %80
77: ; preds = %73
%78 = load i32, ptr %6, align 4
%79 = sub nsw i32 %78, 4
br label %80
80: ; preds = %77, %76
%81 = phi i32 [ 2, %76 ], [ %79, %77 ]
br label %82
82: ; preds = %80, %68
%83 = phi i32 [ %69, %68 ], [ %81, %80 ]
store i32 %83, ptr %9, align 4
%84 = load i32, ptr %3, align 4
%85 = load i32, ptr %7, align 4
%86 = add nsw i32 %84, %85
%87 = load i32, ptr %8, align 4
%88 = add nsw i32 %86, %87
%89 = load i32, ptr %9, align 4
%90 = add nsw i32 %88, %89
store i32 %90, ptr %10, align 4
%91 = load i32, ptr %10, align 4
%92 = add nsw i32 %91, 1
%93 = sext i32 %92 to i64
%94 = mul i64 %93, 1
%95 = trunc i64 %94 to i32
%96 = call i64 @malloc(i32 noundef %95)
%97 = inttoptr i64 %96 to ptr
store ptr %97, ptr %11, align 8
%98 = load ptr, ptr %11, align 8
%99 = load i32, ptr %10, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds i8, ptr %98, i64 %100
store i8 0, ptr %101, align 1
store i32 0, ptr %12, align 4
store i32 0, ptr %13, align 4
br label %102
102: ; preds = %113, %82
%103 = load i32, ptr %13, align 4
%104 = load i32, ptr %3, align 4
%105 = icmp slt i32 %103, %104
br i1 %105, label %106, label %116
106: ; preds = %102
%107 = load ptr, ptr %11, align 8
%108 = load i32, ptr %12, align 4
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds i8, ptr %107, i64 %109
store i8 77, ptr %110, align 1
%111 = load i32, ptr %12, align 4
%112 = add nsw i32 %111, 1
store i32 %112, ptr %12, align 4
br label %113
113: ; preds = %106
%114 = load i32, ptr %13, align 4
%115 = add nsw i32 %114, 1
store i32 %115, ptr %13, align 4
br label %102, !llvm.loop !6
116: ; preds = %102
%117 = load i32, ptr %4, align 4
%118 = icmp slt i32 %117, 4
br i1 %118, label %119, label %134
119: ; preds = %116
store i32 0, ptr %14, align 4
br label %120
120: ; preds = %130, %119
%121 = load i32, ptr %14, align 4
%122 = load i32, ptr %4, align 4
%123 = icmp slt i32 %121, %122
br i1 %123, label %124, label %133
124: ; preds = %120
%125 = load ptr, ptr %11, align 8
%126 = load i32, ptr %12, align 4
%127 = add nsw i32 %126, 1
store i32 %127, ptr %12, align 4
%128 = sext i32 %126 to i64
%129 = getelementptr inbounds i8, ptr %125, i64 %128
store i8 67, ptr %129, align 1
br label %130
130: ; preds = %124
%131 = load i32, ptr %14, align 4
%132 = add nsw i32 %131, 1
store i32 %132, ptr %14, align 4
br label %120, !llvm.loop !8
133: ; preds = %120
br label %185
134: ; preds = %116
%135 = load i32, ptr %4, align 4
%136 = icmp eq i32 %135, 4
br i1 %136, label %137, label %148
137: ; preds = %134
%138 = load ptr, ptr %11, align 8
%139 = load i32, ptr %12, align 4
%140 = add nsw i32 %139, 1
store i32 %140, ptr %12, align 4
%141 = sext i32 %139 to i64
%142 = getelementptr inbounds i8, ptr %138, i64 %141
store i8 67, ptr %142, align 1
%143 = load ptr, ptr %11, align 8
%144 = load i32, ptr %12, align 4
%145 = add nsw i32 %144, 1
store i32 %145, ptr %12, align 4
%146 = sext i32 %144 to i64
%147 = getelementptr inbounds i8, ptr %143, i64 %146
store i8 68, ptr %147, align 1
br label %184
148: ; preds = %134
%149 = load i32, ptr %4, align 4
%150 = icmp eq i32 %149, 9
br i1 %150, label %151, label %162
151: ; preds = %148
%152 = load ptr, ptr %11, align 8
%153 = load i32, ptr %12, align 4
%154 = add nsw i32 %153, 1
store i32 %154, ptr %12, align 4
%155 = sext i32 %153 to i64
%156 = getelementptr inbounds i8, ptr %152, i64 %155
store i8 67, ptr %156, align 1
%157 = load ptr, ptr %11, align 8
%158 = load i32, ptr %12, align 4
%159 = add nsw i32 %158, 1
store i32 %159, ptr %12, align 4
%160 = sext i32 %158 to i64
%161 = getelementptr inbounds i8, ptr %157, i64 %160
store i8 77, ptr %161, align 1
br label %183
162: ; preds = %148
%163 = load ptr, ptr %11, align 8
%164 = load i32, ptr %12, align 4
%165 = add nsw i32 %164, 1
store i32 %165, ptr %12, align 4
%166 = sext i32 %164 to i64
%167 = getelementptr inbounds i8, ptr %163, i64 %166
store i8 68, ptr %167, align 1
store i32 0, ptr %15, align 4
br label %168
168: ; preds = %179, %162
%169 = load i32, ptr %15, align 4
%170 = load i32, ptr %4, align 4
%171 = sub nsw i32 %170, 5
%172 = icmp slt i32 %169, %171
br i1 %172, label %173, label %182
173: ; preds = %168
%174 = load ptr, ptr %11, align 8
%175 = load i32, ptr %12, align 4
%176 = add nsw i32 %175, 1
store i32 %176, ptr %12, align 4
%177 = sext i32 %175 to i64
%178 = getelementptr inbounds i8, ptr %174, i64 %177
store i8 67, ptr %178, align 1
br label %179
179: ; preds = %173
%180 = load i32, ptr %15, align 4
%181 = add nsw i32 %180, 1
store i32 %181, ptr %15, align 4
br label %168, !llvm.loop !9
182: ; preds = %168
br label %183
183: ; preds = %182, %151
br label %184
184: ; preds = %183, %137
br label %185
185: ; preds = %184, %133
%186 = load i32, ptr %5, align 4
%187 = icmp slt i32 %186, 4
br i1 %187, label %188, label %203
188: ; preds = %185
store i32 0, ptr %16, align 4
br label %189
189: ; preds = %199, %188
%190 = load i32, ptr %16, align 4
%191 = load i32, ptr %5, align 4
%192 = icmp slt i32 %190, %191
br i1 %192, label %193, label %202
193: ; preds = %189
%194 = load ptr, ptr %11, align 8
%195 = load i32, ptr %12, align 4
%196 = add nsw i32 %195, 1
store i32 %196, ptr %12, align 4
%197 = sext i32 %195 to i64
%198 = getelementptr inbounds i8, ptr %194, i64 %197
store i8 88, ptr %198, align 1
br label %199
199: ; preds = %193
%200 = load i32, ptr %16, align 4
%201 = add nsw i32 %200, 1
store i32 %201, ptr %16, align 4
br label %189, !llvm.loop !10
202: ; preds = %189
br label %254
203: ; preds = %185
%204 = load i32, ptr %5, align 4
%205 = icmp eq i32 %204, 4
br i1 %205, label %206, label %217
206: ; preds = %203
%207 = load ptr, ptr %11, align 8
%208 = load i32, ptr %12, align 4
%209 = add nsw i32 %208, 1
store i32 %209, ptr %12, align 4
%210 = sext i32 %208 to i64
%211 = getelementptr inbounds i8, ptr %207, i64 %210
store i8 88, ptr %211, align 1
%212 = load ptr, ptr %11, align 8
%213 = load i32, ptr %12, align 4
%214 = add nsw i32 %213, 1
store i32 %214, ptr %12, align 4
%215 = sext i32 %213 to i64
%216 = getelementptr inbounds i8, ptr %212, i64 %215
store i8 76, ptr %216, align 1
br label %253
217: ; preds = %203
%218 = load i32, ptr %5, align 4
%219 = icmp eq i32 %218, 9
br i1 %219, label %220, label %231
220: ; preds = %217
%221 = load ptr, ptr %11, align 8
%222 = load i32, ptr %12, align 4
%223 = add nsw i32 %222, 1
store i32 %223, ptr %12, align 4
%224 = sext i32 %222 to i64
%225 = getelementptr inbounds i8, ptr %221, i64 %224
store i8 88, ptr %225, align 1
%226 = load ptr, ptr %11, align 8
%227 = load i32, ptr %12, align 4
%228 = add nsw i32 %227, 1
store i32 %228, ptr %12, align 4
%229 = sext i32 %227 to i64
%230 = getelementptr inbounds i8, ptr %226, i64 %229
store i8 67, ptr %230, align 1
br label %252
231: ; preds = %217
%232 = load ptr, ptr %11, align 8
%233 = load i32, ptr %12, align 4
%234 = add nsw i32 %233, 1
store i32 %234, ptr %12, align 4
%235 = sext i32 %233 to i64
%236 = getelementptr inbounds i8, ptr %232, i64 %235
store i8 76, ptr %236, align 1
store i32 0, ptr %17, align 4
br label %237
237: ; preds = %248, %231
%238 = load i32, ptr %17, align 4
%239 = load i32, ptr %5, align 4
%240 = sub nsw i32 %239, 5
%241 = icmp slt i32 %238, %240
br i1 %241, label %242, label %251
242: ; preds = %237
%243 = load ptr, ptr %11, align 8
%244 = load i32, ptr %12, align 4
%245 = add nsw i32 %244, 1
store i32 %245, ptr %12, align 4
%246 = sext i32 %244 to i64
%247 = getelementptr inbounds i8, ptr %243, i64 %246
store i8 88, ptr %247, align 1
br label %248
248: ; preds = %242
%249 = load i32, ptr %17, align 4
%250 = add nsw i32 %249, 1
store i32 %250, ptr %17, align 4
br label %237, !llvm.loop !11
251: ; preds = %237
br label %252
252: ; preds = %251, %220
br label %253
253: ; preds = %252, %206
br label %254
254: ; preds = %253, %202
%255 = load i32, ptr %6, align 4
%256 = icmp slt i32 %255, 4
br i1 %256, label %257, label %272
257: ; preds = %254
store i32 0, ptr %18, align 4
br label %258
258: ; preds = %268, %257
%259 = load i32, ptr %18, align 4
%260 = load i32, ptr %6, align 4
%261 = icmp slt i32 %259, %260
br i1 %261, label %262, label %271
262: ; preds = %258
%263 = load ptr, ptr %11, align 8
%264 = load i32, ptr %12, align 4
%265 = add nsw i32 %264, 1
store i32 %265, ptr %12, align 4
%266 = sext i32 %264 to i64
%267 = getelementptr inbounds i8, ptr %263, i64 %266
store i8 73, ptr %267, align 1
br label %268
268: ; preds = %262
%269 = load i32, ptr %18, align 4
%270 = add nsw i32 %269, 1
store i32 %270, ptr %18, align 4
br label %258, !llvm.loop !12
271: ; preds = %258
br label %323
272: ; preds = %254
%273 = load i32, ptr %6, align 4
%274 = icmp eq i32 %273, 4
br i1 %274, label %275, label %286
275: ; preds = %272
%276 = load ptr, ptr %11, align 8
%277 = load i32, ptr %12, align 4
%278 = add nsw i32 %277, 1
store i32 %278, ptr %12, align 4
%279 = sext i32 %277 to i64
%280 = getelementptr inbounds i8, ptr %276, i64 %279
store i8 73, ptr %280, align 1
%281 = load ptr, ptr %11, align 8
%282 = load i32, ptr %12, align 4
%283 = add nsw i32 %282, 1
store i32 %283, ptr %12, align 4
%284 = sext i32 %282 to i64
%285 = getelementptr inbounds i8, ptr %281, i64 %284
store i8 86, ptr %285, align 1
br label %322
286: ; preds = %272
%287 = load i32, ptr %6, align 4
%288 = icmp eq i32 %287, 9
br i1 %288, label %289, label %300
289: ; preds = %286
%290 = load ptr, ptr %11, align 8
%291 = load i32, ptr %12, align 4
%292 = add nsw i32 %291, 1
store i32 %292, ptr %12, align 4
%293 = sext i32 %291 to i64
%294 = getelementptr inbounds i8, ptr %290, i64 %293
store i8 73, ptr %294, align 1
%295 = load ptr, ptr %11, align 8
%296 = load i32, ptr %12, align 4
%297 = add nsw i32 %296, 1
store i32 %297, ptr %12, align 4
%298 = sext i32 %296 to i64
%299 = getelementptr inbounds i8, ptr %295, i64 %298
store i8 88, ptr %299, align 1
br label %321
300: ; preds = %286
%301 = load ptr, ptr %11, align 8
%302 = load i32, ptr %12, align 4
%303 = add nsw i32 %302, 1
store i32 %303, ptr %12, align 4
%304 = sext i32 %302 to i64
%305 = getelementptr inbounds i8, ptr %301, i64 %304
store i8 86, ptr %305, align 1
store i32 0, ptr %19, align 4
br label %306
306: ; preds = %317, %300
%307 = load i32, ptr %19, align 4
%308 = load i32, ptr %6, align 4
%309 = sub nsw i32 %308, 5
%310 = icmp slt i32 %307, %309
br i1 %310, label %311, label %320
311: ; preds = %306
%312 = load ptr, ptr %11, align 8
%313 = load i32, ptr %12, align 4
%314 = add nsw i32 %313, 1
store i32 %314, ptr %12, align 4
%315 = sext i32 %313 to i64
%316 = getelementptr inbounds i8, ptr %312, i64 %315
store i8 73, ptr %316, align 1
br label %317
317: ; preds = %311
%318 = load i32, ptr %19, align 4
%319 = add nsw i32 %318, 1
store i32 %319, ptr %19, align 4
br label %306, !llvm.loop !13
320: ; preds = %306
br label %321
321: ; preds = %320, %289
br label %322
322: ; preds = %321, %275
br label %323
323: ; preds = %322, %271
%324 = load ptr, ptr %11, align 8
ret ptr %324
}
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpeupe742a.c"
target datalayout = "e-m:e-p270: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 @intToRoman(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
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%20 = load i32, ptr %2, align 4
%21 = sdiv i32 %20, 1000
store i32 %21, ptr %3, align 4
%22 = load i32, ptr %2, align 4
%23 = srem i32 %22, 1000
%24 = sdiv i32 %23, 100
store i32 %24, ptr %4, align 4
%25 = load i32, ptr %2, align 4
%26 = srem i32 %25, 100
%27 = sdiv i32 %26, 10
store i32 %27, ptr %5, align 4
%28 = load i32, ptr %2, align 4
%29 = srem i32 %28, 10
store i32 %29, ptr %6, align 4
%30 = load i32, ptr %4, align 4
%31 = icmp slt i32 %30, 4
br i1 %31, label %32, label %34
32: ; preds = %1
%33 = load i32, ptr %4, align 4
br label %46
34: ; preds = %1
%35 = load i32, ptr %4, align 4
%36 = icmp eq i32 %35, 4
br i1 %36, label %40, label %37
37: ; preds = %34
%38 = load i32, ptr %4, align 4
%39 = icmp eq i32 %38, 9
br i1 %39, label %40, label %41
40: ; preds = %37, %34
br label %44
41: ; preds = %37
%42 = load i32, ptr %4, align 4
%43 = sub nsw i32 %42, 4
br label %44
44: ; preds = %41, %40
%45 = phi i32 [ 2, %40 ], [ %43, %41 ]
br label %46
46: ; preds = %44, %32
%47 = phi i32 [ %33, %32 ], [ %45, %44 ]
store i32 %47, ptr %7, align 4
%48 = load i32, ptr %5, align 4
%49 = icmp slt i32 %48, 4
br i1 %49, label %50, label %52
50: ; preds = %46
%51 = load i32, ptr %5, align 4
br label %64
52: ; preds = %46
%53 = load i32, ptr %5, align 4
%54 = icmp eq i32 %53, 4
br i1 %54, label %58, label %55
55: ; preds = %52
%56 = load i32, ptr %5, align 4
%57 = icmp eq i32 %56, 9
br i1 %57, label %58, label %59
58: ; preds = %55, %52
br label %62
59: ; preds = %55
%60 = load i32, ptr %5, align 4
%61 = sub nsw i32 %60, 4
br label %62
62: ; preds = %59, %58
%63 = phi i32 [ 2, %58 ], [ %61, %59 ]
br label %64
64: ; preds = %62, %50
%65 = phi i32 [ %51, %50 ], [ %63, %62 ]
store i32 %65, ptr %8, align 4
%66 = load i32, ptr %6, align 4
%67 = icmp slt i32 %66, 4
br i1 %67, label %68, label %70
68: ; preds = %64
%69 = load i32, ptr %6, align 4
br label %82
70: ; preds = %64
%71 = load i32, ptr %6, align 4
%72 = icmp eq i32 %71, 4
br i1 %72, label %76, label %73
73: ; preds = %70
%74 = load i32, ptr %6, align 4
%75 = icmp eq i32 %74, 9
br i1 %75, label %76, label %77
76: ; preds = %73, %70
br label %80
77: ; preds = %73
%78 = load i32, ptr %6, align 4
%79 = sub nsw i32 %78, 4
br label %80
80: ; preds = %77, %76
%81 = phi i32 [ 2, %76 ], [ %79, %77 ]
br label %82
82: ; preds = %80, %68
%83 = phi i32 [ %69, %68 ], [ %81, %80 ]
store i32 %83, ptr %9, align 4
%84 = load i32, ptr %3, align 4
%85 = load i32, ptr %7, align 4
%86 = add nsw i32 %84, %85
%87 = load i32, ptr %8, align 4
%88 = add nsw i32 %86, %87
%89 = load i32, ptr %9, align 4
%90 = add nsw i32 %88, %89
store i32 %90, ptr %10, align 4
%91 = load i32, ptr %10, align 4
%92 = add nsw i32 %91, 1
%93 = sext i32 %92 to i64
%94 = mul i64 %93, 1
%95 = trunc i64 %94 to i32
%96 = call i64 @malloc(i32 noundef %95)
%97 = inttoptr i64 %96 to ptr
store ptr %97, ptr %11, align 8
%98 = load ptr, ptr %11, align 8
%99 = load i32, ptr %10, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds i8, ptr %98, i64 %100
store i8 0, ptr %101, align 1
store i32 0, ptr %12, align 4
store i32 0, ptr %13, align 4
%102 = load i32, ptr %13, align 4
%103 = load i32, ptr %3, align 4
%104 = icmp slt i32 %102, %103
br i1 %104, label %.lr.ph, label %118
.lr.ph: ; preds = %82
br label %105
105: ; preds = %.lr.ph, %112
%106 = load ptr, ptr %11, align 8
%107 = load i32, ptr %12, align 4
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds i8, ptr %106, i64 %108
store i8 77, ptr %109, align 1
%110 = load i32, ptr %12, align 4
%111 = add nsw i32 %110, 1
store i32 %111, ptr %12, align 4
br label %112
112: ; preds = %105
%113 = load i32, ptr %13, align 4
%114 = add nsw i32 %113, 1
store i32 %114, ptr %13, align 4
%115 = load i32, ptr %13, align 4
%116 = load i32, ptr %3, align 4
%117 = icmp slt i32 %115, %116
br i1 %117, label %105, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %112
br label %118
118: ; preds = %._crit_edge, %82
%119 = load i32, ptr %4, align 4
%120 = icmp slt i32 %119, 4
br i1 %120, label %121, label %138
121: ; preds = %118
store i32 0, ptr %14, align 4
%122 = load i32, ptr %14, align 4
%123 = load i32, ptr %4, align 4
%124 = icmp slt i32 %122, %123
br i1 %124, label %.lr.ph5, label %137
.lr.ph5: ; preds = %121
br label %125
125: ; preds = %.lr.ph5, %131
%126 = load ptr, ptr %11, align 8
%127 = load i32, ptr %12, align 4
%128 = add nsw i32 %127, 1
store i32 %128, ptr %12, align 4
%129 = sext i32 %127 to i64
%130 = getelementptr inbounds i8, ptr %126, i64 %129
store i8 67, ptr %130, align 1
br label %131
131: ; preds = %125
%132 = load i32, ptr %14, align 4
%133 = add nsw i32 %132, 1
store i32 %133, ptr %14, align 4
%134 = load i32, ptr %14, align 4
%135 = load i32, ptr %4, align 4
%136 = icmp slt i32 %134, %135
br i1 %136, label %125, label %._crit_edge6, !llvm.loop !8
._crit_edge6: ; preds = %131
br label %137
137: ; preds = %._crit_edge6, %121
br label %192
138: ; preds = %118
%139 = load i32, ptr %4, align 4
%140 = icmp eq i32 %139, 4
br i1 %140, label %141, label %152
141: ; preds = %138
%142 = load ptr, ptr %11, align 8
%143 = load i32, ptr %12, align 4
%144 = add nsw i32 %143, 1
store i32 %144, ptr %12, align 4
%145 = sext i32 %143 to i64
%146 = getelementptr inbounds i8, ptr %142, i64 %145
store i8 67, ptr %146, align 1
%147 = load ptr, ptr %11, align 8
%148 = load i32, ptr %12, align 4
%149 = add nsw i32 %148, 1
store i32 %149, ptr %12, align 4
%150 = sext i32 %148 to i64
%151 = getelementptr inbounds i8, ptr %147, i64 %150
store i8 68, ptr %151, align 1
br label %191
152: ; preds = %138
%153 = load i32, ptr %4, align 4
%154 = icmp eq i32 %153, 9
br i1 %154, label %155, label %166
155: ; preds = %152
%156 = load ptr, ptr %11, align 8
%157 = load i32, ptr %12, align 4
%158 = add nsw i32 %157, 1
store i32 %158, ptr %12, align 4
%159 = sext i32 %157 to i64
%160 = getelementptr inbounds i8, ptr %156, i64 %159
store i8 67, ptr %160, align 1
%161 = load ptr, ptr %11, align 8
%162 = load i32, ptr %12, align 4
%163 = add nsw i32 %162, 1
store i32 %163, ptr %12, align 4
%164 = sext i32 %162 to i64
%165 = getelementptr inbounds i8, ptr %161, i64 %164
store i8 77, ptr %165, align 1
br label %190
166: ; preds = %152
%167 = load ptr, ptr %11, align 8
%168 = load i32, ptr %12, align 4
%169 = add nsw i32 %168, 1
store i32 %169, ptr %12, align 4
%170 = sext i32 %168 to i64
%171 = getelementptr inbounds i8, ptr %167, i64 %170
store i8 68, ptr %171, align 1
store i32 0, ptr %15, align 4
%172 = load i32, ptr %15, align 4
%173 = load i32, ptr %4, align 4
%174 = sub nsw i32 %173, 5
%175 = icmp slt i32 %172, %174
br i1 %175, label %.lr.ph2, label %189
.lr.ph2: ; preds = %166
br label %176
176: ; preds = %.lr.ph2, %182
%177 = load ptr, ptr %11, align 8
%178 = load i32, ptr %12, align 4
%179 = add nsw i32 %178, 1
store i32 %179, ptr %12, align 4
%180 = sext i32 %178 to i64
%181 = getelementptr inbounds i8, ptr %177, i64 %180
store i8 67, ptr %181, align 1
br label %182
182: ; preds = %176
%183 = load i32, ptr %15, align 4
%184 = add nsw i32 %183, 1
store i32 %184, ptr %15, align 4
%185 = load i32, ptr %15, align 4
%186 = load i32, ptr %4, align 4
%187 = sub nsw i32 %186, 5
%188 = icmp slt i32 %185, %187
br i1 %188, label %176, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %182
br label %189
189: ; preds = %._crit_edge3, %166
br label %190
190: ; preds = %189, %155
br label %191
191: ; preds = %190, %141
br label %192
192: ; preds = %191, %137
%193 = load i32, ptr %5, align 4
%194 = icmp slt i32 %193, 4
br i1 %194, label %195, label %212
195: ; preds = %192
store i32 0, ptr %16, align 4
%196 = load i32, ptr %16, align 4
%197 = load i32, ptr %5, align 4
%198 = icmp slt i32 %196, %197
br i1 %198, label %.lr.ph11, label %211
.lr.ph11: ; preds = %195
br label %199
199: ; preds = %.lr.ph11, %205
%200 = load ptr, ptr %11, align 8
%201 = load i32, ptr %12, align 4
%202 = add nsw i32 %201, 1
store i32 %202, ptr %12, align 4
%203 = sext i32 %201 to i64
%204 = getelementptr inbounds i8, ptr %200, i64 %203
store i8 88, ptr %204, align 1
br label %205
205: ; preds = %199
%206 = load i32, ptr %16, align 4
%207 = add nsw i32 %206, 1
store i32 %207, ptr %16, align 4
%208 = load i32, ptr %16, align 4
%209 = load i32, ptr %5, align 4
%210 = icmp slt i32 %208, %209
br i1 %210, label %199, label %._crit_edge12, !llvm.loop !10
._crit_edge12: ; preds = %205
br label %211
211: ; preds = %._crit_edge12, %195
br label %266
212: ; preds = %192
%213 = load i32, ptr %5, align 4
%214 = icmp eq i32 %213, 4
br i1 %214, label %215, label %226
215: ; preds = %212
%216 = load ptr, ptr %11, align 8
%217 = load i32, ptr %12, align 4
%218 = add nsw i32 %217, 1
store i32 %218, ptr %12, align 4
%219 = sext i32 %217 to i64
%220 = getelementptr inbounds i8, ptr %216, i64 %219
store i8 88, ptr %220, align 1
%221 = load ptr, ptr %11, align 8
%222 = load i32, ptr %12, align 4
%223 = add nsw i32 %222, 1
store i32 %223, ptr %12, align 4
%224 = sext i32 %222 to i64
%225 = getelementptr inbounds i8, ptr %221, i64 %224
store i8 76, ptr %225, align 1
br label %265
226: ; preds = %212
%227 = load i32, ptr %5, align 4
%228 = icmp eq i32 %227, 9
br i1 %228, label %229, label %240
229: ; preds = %226
%230 = load ptr, ptr %11, align 8
%231 = load i32, ptr %12, align 4
%232 = add nsw i32 %231, 1
store i32 %232, ptr %12, align 4
%233 = sext i32 %231 to i64
%234 = getelementptr inbounds i8, ptr %230, i64 %233
store i8 88, ptr %234, align 1
%235 = load ptr, ptr %11, align 8
%236 = load i32, ptr %12, align 4
%237 = add nsw i32 %236, 1
store i32 %237, ptr %12, align 4
%238 = sext i32 %236 to i64
%239 = getelementptr inbounds i8, ptr %235, i64 %238
store i8 67, ptr %239, align 1
br label %264
240: ; preds = %226
%241 = load ptr, ptr %11, align 8
%242 = load i32, ptr %12, align 4
%243 = add nsw i32 %242, 1
store i32 %243, ptr %12, align 4
%244 = sext i32 %242 to i64
%245 = getelementptr inbounds i8, ptr %241, i64 %244
store i8 76, ptr %245, align 1
store i32 0, ptr %17, align 4
%246 = load i32, ptr %17, align 4
%247 = load i32, ptr %5, align 4
%248 = sub nsw i32 %247, 5
%249 = icmp slt i32 %246, %248
br i1 %249, label %.lr.ph8, label %263
.lr.ph8: ; preds = %240
br label %250
250: ; preds = %.lr.ph8, %256
%251 = load ptr, ptr %11, align 8
%252 = load i32, ptr %12, align 4
%253 = add nsw i32 %252, 1
store i32 %253, ptr %12, align 4
%254 = sext i32 %252 to i64
%255 = getelementptr inbounds i8, ptr %251, i64 %254
store i8 88, ptr %255, align 1
br label %256
256: ; preds = %250
%257 = load i32, ptr %17, align 4
%258 = add nsw i32 %257, 1
store i32 %258, ptr %17, align 4
%259 = load i32, ptr %17, align 4
%260 = load i32, ptr %5, align 4
%261 = sub nsw i32 %260, 5
%262 = icmp slt i32 %259, %261
br i1 %262, label %250, label %._crit_edge9, !llvm.loop !11
._crit_edge9: ; preds = %256
br label %263
263: ; preds = %._crit_edge9, %240
br label %264
264: ; preds = %263, %229
br label %265
265: ; preds = %264, %215
br label %266
266: ; preds = %265, %211
%267 = load i32, ptr %6, align 4
%268 = icmp slt i32 %267, 4
br i1 %268, label %269, label %286
269: ; preds = %266
store i32 0, ptr %18, align 4
%270 = load i32, ptr %18, align 4
%271 = load i32, ptr %6, align 4
%272 = icmp slt i32 %270, %271
br i1 %272, label %.lr.ph17, label %285
.lr.ph17: ; preds = %269
br label %273
273: ; preds = %.lr.ph17, %279
%274 = load ptr, ptr %11, align 8
%275 = load i32, ptr %12, align 4
%276 = add nsw i32 %275, 1
store i32 %276, ptr %12, align 4
%277 = sext i32 %275 to i64
%278 = getelementptr inbounds i8, ptr %274, i64 %277
store i8 73, ptr %278, align 1
br label %279
279: ; preds = %273
%280 = load i32, ptr %18, align 4
%281 = add nsw i32 %280, 1
store i32 %281, ptr %18, align 4
%282 = load i32, ptr %18, align 4
%283 = load i32, ptr %6, align 4
%284 = icmp slt i32 %282, %283
br i1 %284, label %273, label %._crit_edge18, !llvm.loop !12
._crit_edge18: ; preds = %279
br label %285
285: ; preds = %._crit_edge18, %269
br label %340
286: ; preds = %266
%287 = load i32, ptr %6, align 4
%288 = icmp eq i32 %287, 4
br i1 %288, label %289, label %300
289: ; preds = %286
%290 = load ptr, ptr %11, align 8
%291 = load i32, ptr %12, align 4
%292 = add nsw i32 %291, 1
store i32 %292, ptr %12, align 4
%293 = sext i32 %291 to i64
%294 = getelementptr inbounds i8, ptr %290, i64 %293
store i8 73, ptr %294, align 1
%295 = load ptr, ptr %11, align 8
%296 = load i32, ptr %12, align 4
%297 = add nsw i32 %296, 1
store i32 %297, ptr %12, align 4
%298 = sext i32 %296 to i64
%299 = getelementptr inbounds i8, ptr %295, i64 %298
store i8 86, ptr %299, align 1
br label %339
300: ; preds = %286
%301 = load i32, ptr %6, align 4
%302 = icmp eq i32 %301, 9
br i1 %302, label %303, label %314
303: ; preds = %300
%304 = load ptr, ptr %11, align 8
%305 = load i32, ptr %12, align 4
%306 = add nsw i32 %305, 1
store i32 %306, ptr %12, align 4
%307 = sext i32 %305 to i64
%308 = getelementptr inbounds i8, ptr %304, i64 %307
store i8 73, ptr %308, align 1
%309 = load ptr, ptr %11, align 8
%310 = load i32, ptr %12, align 4
%311 = add nsw i32 %310, 1
store i32 %311, ptr %12, align 4
%312 = sext i32 %310 to i64
%313 = getelementptr inbounds i8, ptr %309, i64 %312
store i8 88, ptr %313, align 1
br label %338
314: ; preds = %300
%315 = load ptr, ptr %11, align 8
%316 = load i32, ptr %12, align 4
%317 = add nsw i32 %316, 1
store i32 %317, ptr %12, align 4
%318 = sext i32 %316 to i64
%319 = getelementptr inbounds i8, ptr %315, i64 %318
store i8 86, ptr %319, align 1
store i32 0, ptr %19, align 4
%320 = load i32, ptr %19, align 4
%321 = load i32, ptr %6, align 4
%322 = sub nsw i32 %321, 5
%323 = icmp slt i32 %320, %322
br i1 %323, label %.lr.ph14, label %337
.lr.ph14: ; preds = %314
br label %324
324: ; preds = %.lr.ph14, %330
%325 = load ptr, ptr %11, align 8
%326 = load i32, ptr %12, align 4
%327 = add nsw i32 %326, 1
store i32 %327, ptr %12, align 4
%328 = sext i32 %326 to i64
%329 = getelementptr inbounds i8, ptr %325, i64 %328
store i8 73, ptr %329, align 1
br label %330
330: ; preds = %324
%331 = load i32, ptr %19, align 4
%332 = add nsw i32 %331, 1
store i32 %332, ptr %19, align 4
%333 = load i32, ptr %19, align 4
%334 = load i32, ptr %6, align 4
%335 = sub nsw i32 %334, 5
%336 = icmp slt i32 %333, %335
br i1 %336, label %324, label %._crit_edge15, !llvm.loop !13
._crit_edge15: ; preds = %330
br label %337
337: ; preds = %._crit_edge15, %314
br label %338
338: ; preds = %337, %303
br label %339
339: ; preds = %338, %289
br label %340
340: ; preds = %339, %285
%341 = load ptr, ptr %11, align 8
ret ptr %341
}
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
|
; ModuleID = '/tmp/tmpq5630peh.c'
source_filename = "/tmp/tmpq5630peh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"SANTA_CRUZ\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"AUDIGY_2_ZS\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"MP3_PLUS\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"EXTIGY\00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c"DELTA_44\00", align 1
@.str.5 = private unnamed_addr constant [8 x i8] c"FIREBOX\00", align 1
@.str.6 = private unnamed_addr constant [13 x i8] c"EDIROL_FA_66\00", align 1
@.str.7 = private unnamed_addr constant [6 x i8] c"HPSDR\00", align 1
@.str.8 = private unnamed_addr constant [7 x i8] c"SDR-IQ\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.9 = private unnamed_addr constant [26 x i8] c"getSoundcardId: %s id=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getSoundcardId(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 7, ptr %3, align 4
%4 = load ptr, ptr %2, 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 0, ptr %3, align 4
br label %56
8: ; preds = %1
%9 = load ptr, ptr %2, 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 1, ptr %3, align 4
br label %55
13: ; preds = %8
%14 = load ptr, ptr %2, 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 %3, align 4
br label %54
18: ; preds = %13
%19 = load ptr, ptr %2, 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 3, ptr %3, align 4
br label %53
23: ; preds = %18
%24 = load ptr, ptr %2, 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 4, ptr %3, align 4
br label %52
28: ; preds = %23
%29 = load ptr, ptr %2, 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 5, ptr %3, align 4
br label %51
33: ; preds = %28
%34 = load ptr, ptr %2, 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 6, ptr %3, align 4
br label %50
38: ; preds = %33
%39 = load ptr, ptr %2, 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 8, ptr %3, align 4
br label %49
43: ; preds = %38
%44 = load ptr, ptr %2, 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 9, ptr %3, align 4
br label %48
48: ; preds = %47, %43
br label %49
49: ; preds = %48, %42
br label %50
50: ; preds = %49, %37
br label %51
51: ; preds = %50, %32
br label %52
52: ; preds = %51, %27
br label %53
53: ; preds = %52, %22
br label %54
54: ; preds = %53, %17
br label %55
55: ; preds = %54, %12
br label %56
56: ; preds = %55, %7
%57 = load i32, ptr @stderr, align 4
%58 = load ptr, ptr %2, align 8
%59 = load i32, ptr %3, align 4
%60 = call i32 @fprintf(i32 noundef %57, ptr noundef @.str.9, ptr noundef %58, i32 noundef %59)
%61 = load i32, ptr %3, align 4
ret i32 %61
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq5630peh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"SANTA_CRUZ\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"AUDIGY_2_ZS\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"MP3_PLUS\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"EXTIGY\00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c"DELTA_44\00", align 1
@.str.5 = private unnamed_addr constant [8 x i8] c"FIREBOX\00", align 1
@.str.6 = private unnamed_addr constant [13 x i8] c"EDIROL_FA_66\00", align 1
@.str.7 = private unnamed_addr constant [6 x i8] c"HPSDR\00", align 1
@.str.8 = private unnamed_addr constant [7 x i8] c"SDR-IQ\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.9 = private unnamed_addr constant [26 x i8] c"getSoundcardId: %s id=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getSoundcardId(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 7, ptr %3, align 4
%4 = load ptr, ptr %2, 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 0, ptr %3, align 4
br label %56
8: ; preds = %1
%9 = load ptr, ptr %2, 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 1, ptr %3, align 4
br label %55
13: ; preds = %8
%14 = load ptr, ptr %2, 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 %3, align 4
br label %54
18: ; preds = %13
%19 = load ptr, ptr %2, 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 3, ptr %3, align 4
br label %53
23: ; preds = %18
%24 = load ptr, ptr %2, 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 4, ptr %3, align 4
br label %52
28: ; preds = %23
%29 = load ptr, ptr %2, 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 5, ptr %3, align 4
br label %51
33: ; preds = %28
%34 = load ptr, ptr %2, 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 6, ptr %3, align 4
br label %50
38: ; preds = %33
%39 = load ptr, ptr %2, 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 8, ptr %3, align 4
br label %49
43: ; preds = %38
%44 = load ptr, ptr %2, 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 9, ptr %3, align 4
br label %48
48: ; preds = %47, %43
br label %49
49: ; preds = %48, %42
br label %50
50: ; preds = %49, %37
br label %51
51: ; preds = %50, %32
br label %52
52: ; preds = %51, %27
br label %53
53: ; preds = %52, %22
br label %54
54: ; preds = %53, %17
br label %55
55: ; preds = %54, %12
br label %56
56: ; preds = %55, %7
%57 = load i32, ptr @stderr, align 4
%58 = load ptr, ptr %2, align 8
%59 = load i32, ptr %3, align 4
%60 = call i32 @fprintf(i32 noundef %57, ptr noundef @.str.9, ptr noundef %58, i32 noundef %59)
%61 = load i32, ptr %3, align 4
ret i32 %61
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpeaju2t9u.c'
source_filename = "/tmp/tmpeaju2t9u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ASN1_GENERALIZEDTIME_it = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ASN1_GENERALIZEDTIME_new() #0 {
%1 = call i64 @ASN1_item_new(ptr noundef @ASN1_GENERALIZEDTIME_it)
%2 = inttoptr i64 %1 to ptr
ret ptr %2
}
declare i64 @ASN1_item_new(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpeaju2t9u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ASN1_GENERALIZEDTIME_it = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ASN1_GENERALIZEDTIME_new() #0 {
%1 = call i64 @ASN1_item_new(ptr noundef @ASN1_GENERALIZEDTIME_it)
%2 = inttoptr i64 %1 to ptr
ret ptr %2
}
declare i64 @ASN1_item_new(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzheso8p8.c'
source_filename = "/tmp/tmpzheso8p8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@strdata._strdata = internal global [101 x i8] zeroinitializer, align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @strdata(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 = %61, %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 %64
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 i8, ptr %11, i64 %13
%15 = load i8, ptr %14, align 1
%16 = zext i8 %15 to i32
%17 = icmp eq i32 %16, 0
br i1 %17, label %36, label %18
18: ; preds = %10
%19 = load ptr, ptr %3, align 8
%20 = load i32, ptr %5, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %19, i64 %21
%23 = load i8, ptr %22, align 1
%24 = zext i8 %23 to i32
%25 = icmp sge i32 %24, 48
br i1 %25, label %26, label %34
26: ; preds = %18
%27 = load ptr, ptr %3, align 8
%28 = load i32, ptr %5, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %27, i64 %29
%31 = load i8, ptr %30, align 1
%32 = zext i8 %31 to i32
%33 = icmp sle i32 %32, 57
br label %34
34: ; preds = %26, %18
%35 = phi i1 [ false, %18 ], [ %33, %26 ]
br label %36
36: ; preds = %34, %10
%37 = phi i1 [ true, %10 ], [ %35, %34 ]
%38 = zext i1 %37 to i32
%39 = call i32 @assert(i32 noundef %38)
%40 = load ptr, ptr %3, align 8
%41 = load i32, ptr %5, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %40, i64 %42
%44 = load i8, ptr %43, align 1
%45 = zext i8 %44 to i32
%46 = icmp eq i32 %45, 0
br i1 %46, label %47, label %51
47: ; preds = %36
%48 = load i32, ptr %5, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [101 x i8], ptr @strdata._strdata, i64 0, i64 %49
store i8 46, ptr %50, align 1
br label %60
51: ; preds = %36
%52 = load ptr, ptr %3, align 8
%53 = load i32, ptr %5, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %52, i64 %54
%56 = load i8, ptr %55, align 1
%57 = load i32, ptr %5, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [101 x i8], ptr @strdata._strdata, i64 0, i64 %58
store i8 %56, ptr %59, align 1
br label %60
60: ; preds = %51, %47
br label %61
61: ; preds = %60
%62 = load i32, ptr %5, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %5, align 4
br label %6, !llvm.loop !6
64: ; preds = %6
%65 = load i32, ptr %5, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [101 x i8], ptr @strdata._strdata, i64 0, i64 %66
store i8 0, ptr %67, align 1
ret ptr @strdata._strdata
}
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzheso8p8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@strdata._strdata = internal global [101 x i8] zeroinitializer, align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @strdata(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 %66
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %60
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %5, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i8, ptr %10, i64 %12
%14 = load i8, ptr %13, align 1
%15 = zext i8 %14 to i32
%16 = icmp eq i32 %15, 0
br i1 %16, label %35, label %17
17: ; preds = %9
%18 = load ptr, ptr %3, align 8
%19 = load i32, ptr %5, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
%22 = load i8, ptr %21, align 1
%23 = zext i8 %22 to i32
%24 = icmp sge i32 %23, 48
br i1 %24, label %25, label %33
25: ; preds = %17
%26 = load ptr, ptr %3, align 8
%27 = load i32, ptr %5, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
%30 = load i8, ptr %29, align 1
%31 = zext i8 %30 to i32
%32 = icmp sle i32 %31, 57
br label %33
33: ; preds = %25, %17
%34 = phi i1 [ false, %17 ], [ %32, %25 ]
br label %35
35: ; preds = %33, %9
%36 = phi i1 [ true, %9 ], [ %34, %33 ]
%37 = zext i1 %36 to i32
%38 = call i32 @assert(i32 noundef %37)
%39 = load ptr, ptr %3, align 8
%40 = load i32, ptr %5, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8, ptr %39, i64 %41
%43 = load i8, ptr %42, align 1
%44 = zext i8 %43 to i32
%45 = icmp eq i32 %44, 0
br i1 %45, label %46, label %50
46: ; preds = %35
%47 = load i32, ptr %5, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [101 x i8], ptr @strdata._strdata, i64 0, i64 %48
store i8 46, ptr %49, align 1
br label %59
50: ; preds = %35
%51 = load ptr, ptr %3, align 8
%52 = load i32, ptr %5, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8, ptr %51, i64 %53
%55 = load i8, ptr %54, align 1
%56 = load i32, ptr %5, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [101 x i8], ptr @strdata._strdata, i64 0, i64 %57
store i8 %55, ptr %58, align 1
br label %59
59: ; preds = %50, %46
br label %60
60: ; preds = %59
%61 = load i32, ptr %5, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %5, align 4
%63 = load i32, ptr %5, align 4
%64 = load i32, ptr %4, align 4
%65 = icmp slt i32 %63, %64
br i1 %65, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %60
br label %66
66: ; preds = %._crit_edge, %2
%67 = load i32, ptr %5, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [101 x i8], ptr @strdata._strdata, i64 0, i64 %68
store i8 0, ptr %69, align 1
ret ptr @strdata._strdata
}
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpa5j0w9jd.c'
source_filename = "/tmp/tmpa5j0w9jd.c"
target datalayout = "e-m:e-p270: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 @ft_putnbr_fd(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [10 x i8], align 1
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%9 = load i32, ptr %3, align 4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %2
%12 = load i32, ptr %4, align 4
%13 = call i32 @ft_putchar_fd(i8 noundef signext 45, i32 noundef %12)
br label %15
14: ; preds = %2
br label %15
15: ; preds = %14, %11
%16 = phi i32 [ %13, %11 ], [ 0, %14 ]
%17 = load i32, ptr %5, align 4
%18 = add nsw i32 %17, %16
store i32 %18, ptr %5, align 4
%19 = load i32, ptr %3, align 4
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %15
%22 = load i32, ptr %4, align 4
%23 = call i32 @ft_putchar_fd(i8 noundef signext 48, i32 noundef %22)
br label %25
24: ; preds = %15
br label %25
25: ; preds = %24, %21
%26 = phi i32 [ %23, %21 ], [ 0, %24 ]
%27 = load i32, ptr %5, align 4
%28 = add nsw i32 %27, %26
store i32 %28, ptr %5, align 4
store i32 -1, ptr %6, align 4
br label %29
29: ; preds = %38, %25
%30 = load i32, ptr %6, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %6, align 4
%32 = icmp sge i32 %31, 0
br i1 %32, label %33, label %36
33: ; preds = %29
%34 = load i32, ptr %3, align 4
%35 = icmp ne i32 %34, 0
br label %36
36: ; preds = %33, %29
%37 = phi i1 [ false, %29 ], [ %35, %33 ]
br i1 %37, label %38, label %54
38: ; preds = %36
%39 = load i32, ptr %3, align 4
%40 = srem i32 %39, 10
store i32 %40, ptr %7, align 4
%41 = load i32, ptr %7, align 4
%42 = icmp slt i32 %41, 0
%43 = zext i1 %42 to i64
%44 = select i1 %42, i32 -1, i32 1
%45 = load i32, ptr %7, align 4
%46 = mul nsw i32 %45, %44
store i32 %46, ptr %7, align 4
%47 = load i32, ptr %7, align 4
%48 = trunc i32 %47 to i8
%49 = load i32, ptr %6, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [10 x i8], ptr %8, i64 0, i64 %50
store i8 %48, ptr %51, align 1
%52 = load i32, ptr %3, align 4
%53 = sdiv i32 %52, 10
store i32 %53, ptr %3, align 4
br label %29, !llvm.loop !6
54: ; preds = %36
br label %55
55: ; preds = %59, %54
%56 = load i32, ptr %6, align 4
%57 = add nsw i32 %56, -1
store i32 %57, ptr %6, align 4
%58 = icmp ne i32 %57, -1
br i1 %58, label %59, label %71
59: ; preds = %55
%60 = load i32, ptr %6, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [10 x i8], ptr %8, i64 0, i64 %61
%63 = load i8, ptr %62, align 1
%64 = sext i8 %63 to i32
%65 = add nsw i32 %64, 48
%66 = trunc i32 %65 to i8
%67 = load i32, ptr %4, align 4
%68 = call i32 @ft_putchar_fd(i8 noundef signext %66, i32 noundef %67)
%69 = load i32, ptr %5, align 4
%70 = add nsw i32 %69, %68
store i32 %70, ptr %5, align 4
br label %55, !llvm.loop !8
71: ; preds = %55
%72 = load i32, ptr %5, align 4
ret i32 %72
}
declare i32 @ft_putchar_fd(i8 noundef signext, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa5j0w9jd.c"
target datalayout = "e-m:e-p270: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 @ft_putnbr_fd(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [10 x i8], align 1
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%9 = load i32, ptr %3, align 4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %2
%12 = load i32, ptr %4, align 4
%13 = call i32 @ft_putchar_fd(i8 noundef signext 45, i32 noundef %12)
br label %15
14: ; preds = %2
br label %15
15: ; preds = %14, %11
%16 = phi i32 [ %13, %11 ], [ 0, %14 ]
%17 = load i32, ptr %5, align 4
%18 = add nsw i32 %17, %16
store i32 %18, ptr %5, align 4
%19 = load i32, ptr %3, align 4
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %15
%22 = load i32, ptr %4, align 4
%23 = call i32 @ft_putchar_fd(i8 noundef signext 48, i32 noundef %22)
br label %25
24: ; preds = %15
br label %25
25: ; preds = %24, %21
%26 = phi i32 [ %23, %21 ], [ 0, %24 ]
%27 = load i32, ptr %5, align 4
%28 = add nsw i32 %27, %26
store i32 %28, ptr %5, align 4
store i32 -1, ptr %6, align 4
br label %29
29: ; preds = %38, %25
%30 = load i32, ptr %6, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %6, align 4
%32 = icmp sge i32 %31, 0
br i1 %32, label %33, label %36
33: ; preds = %29
%34 = load i32, ptr %3, align 4
%35 = icmp ne i32 %34, 0
br label %36
36: ; preds = %33, %29
%37 = phi i1 [ false, %29 ], [ %35, %33 ]
br i1 %37, label %38, label %54
38: ; preds = %36
%39 = load i32, ptr %3, align 4
%40 = srem i32 %39, 10
store i32 %40, ptr %7, align 4
%41 = load i32, ptr %7, align 4
%42 = icmp slt i32 %41, 0
%43 = zext i1 %42 to i64
%44 = select i1 %42, i32 -1, i32 1
%45 = load i32, ptr %7, align 4
%46 = mul nsw i32 %45, %44
store i32 %46, ptr %7, align 4
%47 = load i32, ptr %7, align 4
%48 = trunc i32 %47 to i8
%49 = load i32, ptr %6, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [10 x i8], ptr %8, i64 0, i64 %50
store i8 %48, ptr %51, align 1
%52 = load i32, ptr %3, align 4
%53 = sdiv i32 %52, 10
store i32 %53, ptr %3, align 4
br label %29, !llvm.loop !6
54: ; preds = %36
%55 = load i32, ptr %6, align 4
%56 = add nsw i32 %55, -1
store i32 %56, ptr %6, align 4
%57 = icmp ne i32 %56, -1
br i1 %57, label %.lr.ph, label %73
.lr.ph: ; preds = %54
br label %58
58: ; preds = %.lr.ph, %58
%59 = load i32, ptr %6, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [10 x i8], ptr %8, i64 0, i64 %60
%62 = load i8, ptr %61, align 1
%63 = sext i8 %62 to i32
%64 = add nsw i32 %63, 48
%65 = trunc i32 %64 to i8
%66 = load i32, ptr %4, align 4
%67 = call i32 @ft_putchar_fd(i8 noundef signext %65, i32 noundef %66)
%68 = load i32, ptr %5, align 4
%69 = add nsw i32 %68, %67
store i32 %69, ptr %5, align 4
%70 = load i32, ptr %6, align 4
%71 = add nsw i32 %70, -1
store i32 %71, ptr %6, align 4
%72 = icmp ne i32 %71, -1
br i1 %72, label %58, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %58
br label %73
73: ; preds = %._crit_edge, %54
%74 = load i32, ptr %5, align 4
ret i32 %74
}
declare i32 @ft_putchar_fd(i8 noundef signext, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp0nx7axdj.c'
source_filename = "/tmp/tmp0nx7axdj.c"
target datalayout = "e-m:e-p270: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/tmp0nx7axdj.c"
target datalayout = "e-m:e-p270: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/tmprgdda16s.c'
source_filename = "/tmp/tmprgdda16s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__ogg_fdcosqf.sqrt2 = internal global float 0x3FF6A09E60000000, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @__ogg_fdcosqf(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca float, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%10 = load i32, ptr %5, align 4
switch i32 %10, label %30 [
i32 0, label %11
i32 1, label %11
i32 2, label %12
]
11: ; preds = %4, %4
br label %40
12: ; preds = %4
%13 = load float, ptr @__ogg_fdcosqf.sqrt2, align 4
%14 = load ptr, ptr %6, align 8
%15 = getelementptr inbounds float, ptr %14, i64 1
%16 = load float, ptr %15, align 4
%17 = fmul float %13, %16
store float %17, ptr %9, align 4
%18 = load ptr, ptr %6, align 8
%19 = getelementptr inbounds float, ptr %18, i64 0
%20 = load float, ptr %19, align 4
%21 = load float, ptr %9, align 4
%22 = fsub float %20, %21
%23 = load ptr, ptr %6, align 8
%24 = getelementptr inbounds float, ptr %23, i64 1
store float %22, ptr %24, align 4
%25 = load float, ptr %9, align 4
%26 = load ptr, ptr %6, align 8
%27 = getelementptr inbounds float, ptr %26, i64 0
%28 = load float, ptr %27, align 4
%29 = fadd float %28, %25
store float %29, ptr %27, align 4
br label %40
30: ; preds = %4
%31 = load i32, ptr %5, align 4
%32 = load ptr, ptr %6, align 8
%33 = load ptr, ptr %7, align 8
%34 = load ptr, ptr %7, align 8
%35 = load i32, ptr %5, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds float, ptr %34, i64 %36
%38 = load ptr, ptr %8, align 8
%39 = call i32 @dcsqf1(i32 noundef %31, ptr noundef %32, ptr noundef %33, ptr noundef %37, ptr noundef %38)
br label %40
40: ; preds = %30, %12, %11
ret void
}
declare i32 @dcsqf1(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprgdda16s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__ogg_fdcosqf.sqrt2 = internal global float 0x3FF6A09E60000000, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @__ogg_fdcosqf(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca float, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%10 = load i32, ptr %5, align 4
switch i32 %10, label %30 [
i32 0, label %11
i32 1, label %11
i32 2, label %12
]
11: ; preds = %4, %4
br label %40
12: ; preds = %4
%13 = load float, ptr @__ogg_fdcosqf.sqrt2, align 4
%14 = load ptr, ptr %6, align 8
%15 = getelementptr inbounds float, ptr %14, i64 1
%16 = load float, ptr %15, align 4
%17 = fmul float %13, %16
store float %17, ptr %9, align 4
%18 = load ptr, ptr %6, align 8
%19 = getelementptr inbounds float, ptr %18, i64 0
%20 = load float, ptr %19, align 4
%21 = load float, ptr %9, align 4
%22 = fsub float %20, %21
%23 = load ptr, ptr %6, align 8
%24 = getelementptr inbounds float, ptr %23, i64 1
store float %22, ptr %24, align 4
%25 = load float, ptr %9, align 4
%26 = load ptr, ptr %6, align 8
%27 = getelementptr inbounds float, ptr %26, i64 0
%28 = load float, ptr %27, align 4
%29 = fadd float %28, %25
store float %29, ptr %27, align 4
br label %40
30: ; preds = %4
%31 = load i32, ptr %5, align 4
%32 = load ptr, ptr %6, align 8
%33 = load ptr, ptr %7, align 8
%34 = load ptr, ptr %7, align 8
%35 = load i32, ptr %5, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds float, ptr %34, i64 %36
%38 = load ptr, ptr %8, align 8
%39 = call i32 @dcsqf1(i32 noundef %31, ptr noundef %32, ptr noundef %33, ptr noundef %37, ptr noundef %38)
br label %40
40: ; preds = %30, %12, %11
ret void
}
declare i32 @dcsqf1(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfhq86_ru.c'
source_filename = "/tmp/tmpfhq86_ru.c"
target datalayout = "e-m:e-p270: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 @con_showCursor() #0 {
%1 = call i32 @curs_set(i32 noundef 1)
ret void
}
declare i32 @curs_set(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/tmpfhq86_ru.c"
target datalayout = "e-m:e-p270: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 @con_showCursor() #0 {
%1 = call i32 @curs_set(i32 noundef 1)
ret void
}
declare i32 @curs_set(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/tmp37lr7thr.c'
source_filename = "/tmp/tmp37lr7thr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\1B[5;31m%c\1B[0m\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c".:-=+*GH4\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_heart() #0 {
%1 = alloca float, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
store float 1.500000e+00, ptr %1, align 4
br label %5
5: ; preds = %55, %0
%6 = load float, ptr %1, align 4
%7 = fcmp ogt float %6, 0xBFF19999A0000000
br i1 %7, label %8, label %58
8: ; preds = %5
store float -1.500000e+00, ptr %2, align 4
br label %9
9: ; preds = %50, %8
%10 = load float, ptr %2, align 4
%11 = fcmp olt float %10, 1.500000e+00
br i1 %11, label %12, label %53
12: ; preds = %9
%13 = load float, ptr %2, align 4
%14 = load float, ptr %2, align 4
%15 = load float, ptr %1, align 4
%16 = load float, ptr %1, align 4
%17 = fmul float %15, %16
%18 = call float @llvm.fmuladd.f32(float %13, float %14, float %17)
%19 = fsub float %18, 1.000000e+00
store float %19, ptr %3, align 4
%20 = load float, ptr %3, align 4
%21 = load float, ptr %3, align 4
%22 = fmul float %20, %21
%23 = load float, ptr %3, align 4
%24 = load float, ptr %2, align 4
%25 = load float, ptr %2, align 4
%26 = fmul float %24, %25
%27 = load float, ptr %1, align 4
%28 = fmul float %26, %27
%29 = load float, ptr %1, align 4
%30 = fmul float %28, %29
%31 = load float, ptr %1, align 4
%32 = fmul float %30, %31
%33 = fneg float %32
%34 = call float @llvm.fmuladd.f32(float %22, float %23, float %33)
store float %34, ptr %4, align 4
%35 = load float, ptr %4, align 4
%36 = fcmp ole float %35, 0.000000e+00
br i1 %36, label %37, label %45
37: ; preds = %12
%38 = load float, ptr %4, align 4
%39 = fmul float %38, -8.000000e+00
%40 = fptosi float %39 to i32
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [10 x i8], ptr @.str.1, i64 0, i64 %41
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
br label %46
45: ; preds = %12
br label %46
46: ; preds = %45, %37
%47 = phi i32 [ %44, %37 ], [ 32, %45 ]
%48 = trunc i32 %47 to i8
%49 = call i32 @printf(ptr noundef @.str, i8 noundef signext %48)
br label %50
50: ; preds = %46
%51 = load float, ptr %2, align 4
%52 = fadd float %51, 0x3FA99999A0000000
store float %52, ptr %2, align 4
br label %9, !llvm.loop !6
53: ; preds = %9
%54 = call i32 @putchar(i8 noundef signext 10)
br label %55
55: ; preds = %53
%56 = load float, ptr %1, align 4
%57 = fsub float %56, 0x3FB99999A0000000
store float %57, ptr %1, align 4
br label %5, !llvm.loop !8
58: ; preds = %5
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1
declare i32 @printf(ptr noundef, i8 noundef signext) #2
declare i32 @putchar(i8 noundef signext) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp37lr7thr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\1B[5;31m%c\1B[0m\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c".:-=+*GH4\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_heart() #0 {
%1 = alloca float, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
store float 1.500000e+00, ptr %1, align 4
%5 = load float, ptr %1, align 4
%6 = fcmp ogt float %5, 0xBFF19999A0000000
br i1 %6, label %.lr.ph2, label %60
.lr.ph2: ; preds = %0
br label %7
7: ; preds = %.lr.ph2, %55
store float -1.500000e+00, ptr %2, align 4
%8 = load float, ptr %2, align 4
%9 = fcmp olt float %8, 1.500000e+00
br i1 %9, label %.lr.ph, label %53
.lr.ph: ; preds = %7
br label %10
10: ; preds = %.lr.ph, %48
%11 = load float, ptr %2, align 4
%12 = load float, ptr %2, align 4
%13 = load float, ptr %1, align 4
%14 = load float, ptr %1, align 4
%15 = fmul float %13, %14
%16 = call float @llvm.fmuladd.f32(float %11, float %12, float %15)
%17 = fsub float %16, 1.000000e+00
store float %17, ptr %3, align 4
%18 = load float, ptr %3, align 4
%19 = load float, ptr %3, align 4
%20 = fmul float %18, %19
%21 = load float, ptr %3, align 4
%22 = load float, ptr %2, align 4
%23 = load float, ptr %2, align 4
%24 = fmul float %22, %23
%25 = load float, ptr %1, align 4
%26 = fmul float %24, %25
%27 = load float, ptr %1, align 4
%28 = fmul float %26, %27
%29 = load float, ptr %1, align 4
%30 = fmul float %28, %29
%31 = fneg float %30
%32 = call float @llvm.fmuladd.f32(float %20, float %21, float %31)
store float %32, ptr %4, align 4
%33 = load float, ptr %4, align 4
%34 = fcmp ole float %33, 0.000000e+00
br i1 %34, label %35, label %43
35: ; preds = %10
%36 = load float, ptr %4, align 4
%37 = fmul float %36, -8.000000e+00
%38 = fptosi float %37 to i32
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [10 x i8], ptr @.str.1, i64 0, i64 %39
%41 = load i8, ptr %40, align 1
%42 = sext i8 %41 to i32
br label %44
43: ; preds = %10
br label %44
44: ; preds = %43, %35
%45 = phi i32 [ %42, %35 ], [ 32, %43 ]
%46 = trunc i32 %45 to i8
%47 = call i32 @printf(ptr noundef @.str, i8 noundef signext %46)
br label %48
48: ; preds = %44
%49 = load float, ptr %2, align 4
%50 = fadd float %49, 0x3FA99999A0000000
store float %50, ptr %2, align 4
%51 = load float, ptr %2, align 4
%52 = fcmp olt float %51, 1.500000e+00
br i1 %52, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %48
br label %53
53: ; preds = %._crit_edge, %7
%54 = call i32 @putchar(i8 noundef signext 10)
br label %55
55: ; preds = %53
%56 = load float, ptr %1, align 4
%57 = fsub float %56, 0x3FB99999A0000000
store float %57, ptr %1, align 4
%58 = load float, ptr %1, align 4
%59 = fcmp ogt float %58, 0xBFF19999A0000000
br i1 %59, label %7, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %55
br label %60
60: ; preds = %._crit_edge3, %0
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1
declare i32 @printf(ptr noundef, i8 noundef signext) #2
declare i32 @putchar(i8 noundef signext) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmphly4eacg.c'
source_filename = "/tmp/tmphly4eacg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"child[%d]\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"parent[%d]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (...) @fork()
store i32 %3, ptr %2, align 4
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %17
5: ; preds = %0
%6 = call i32 (...) @getpid()
%7 = call i32 @printf(ptr noundef @.str, i32 noundef %6)
%8 = call i32 (...) @fork()
store i32 %8, ptr %2, align 4
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %15
10: ; preds = %5
%11 = call i32 (...) @getpid()
%12 = call i32 @printf(ptr noundef @.str, i32 noundef %11)
%13 = call i32 @sleep(i32 noundef 20)
%14 = call i32 @exit(i32 noundef 0) #3
unreachable
15: ; preds = %5
%16 = call i32 @exit(i32 noundef 0) #3
unreachable
17: ; preds = %0
%18 = load i32, ptr %2, align 4
%19 = call i32 @waitpid(i32 noundef %18, i32 noundef 0, i32 noundef 0)
%20 = call i32 (...) @getpid()
%21 = call i32 @printf(ptr noundef @.str.1, i32 noundef %20)
%22 = call i32 @sleep(i32 noundef 60)
ret i32 0
}
declare i32 @fork(...) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @getpid(...) #1
declare i32 @sleep(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @waitpid(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" }
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/tmphly4eacg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"child[%d]\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"parent[%d]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (...) @fork()
store i32 %3, ptr %2, align 4
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %17
5: ; preds = %0
%6 = call i32 (...) @getpid()
%7 = call i32 @printf(ptr noundef @.str, i32 noundef %6)
%8 = call i32 (...) @fork()
store i32 %8, ptr %2, align 4
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %15
10: ; preds = %5
%11 = call i32 (...) @getpid()
%12 = call i32 @printf(ptr noundef @.str, i32 noundef %11)
%13 = call i32 @sleep(i32 noundef 20)
%14 = call i32 @exit(i32 noundef 0) #3
unreachable
15: ; preds = %5
%16 = call i32 @exit(i32 noundef 0) #3
unreachable
17: ; preds = %0
%18 = load i32, ptr %2, align 4
%19 = call i32 @waitpid(i32 noundef %18, i32 noundef 0, i32 noundef 0)
%20 = call i32 (...) @getpid()
%21 = call i32 @printf(ptr noundef @.str.1, i32 noundef %20)
%22 = call i32 @sleep(i32 noundef 60)
ret i32 0
}
declare i32 @fork(...) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @getpid(...) #1
declare i32 @sleep(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @waitpid(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" }
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/tmp8x5zb41b.c'
source_filename = "/tmp/tmp8x5zb41b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = call i32 (...) @setup()
br label %2
2: ; preds = %0, %2
%3 = call i32 (...) @loop()
br label %2
}
declare i32 @setup(...) #1
declare i32 @loop(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8x5zb41b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = call i32 (...) @setup()
br label %2
2: ; preds = %2, %0
%3 = call i32 (...) @loop()
br label %2
}
declare i32 @setup(...) #1
declare i32 @loop(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdch1g9fd.c'
source_filename = "/tmp/tmpdch1g9fd.c"
target datalayout = "e-m:e-p270: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/tmpdch1g9fd.c"
target datalayout = "e-m:e-p270: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/tmpl_8tqt4p.c'
source_filename = "/tmp/tmpl_8tqt4p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@thr_fun.n = internal global i32 0, align 4
@.str = private unnamed_addr constant [17 x i8] c"this is turn %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @thr_fun(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @thr_fun.n, align 4
%4 = add nsw i32 %3, 1
store i32 %4, ptr @thr_fun.n, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
%6 = call i32 @sleep(i32 noundef 1)
ret ptr null
}
declare i32 @printf(ptr noundef, i32 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/tmpl_8tqt4p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@thr_fun.n = internal global i32 0, align 4
@.str = private unnamed_addr constant [17 x i8] c"this is turn %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @thr_fun(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @thr_fun.n, align 4
%4 = add nsw i32 %3, 1
store i32 %4, ptr @thr_fun.n, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
%6 = call i32 @sleep(i32 noundef 1)
ret ptr null
}
declare i32 @printf(ptr noundef, i32 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/tmp31x_cno0.c'
source_filename = "/tmp/tmp31x_cno0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @imprimeVetor(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
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %17, %2
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %20
10: ; preds = %6
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i32, ptr %11, i64 %13
%15 = load i32, ptr %14, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str, 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
br label %6, !llvm.loop !6
20: ; preds = %6
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp31x_cno0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @imprimeVetor(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
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %.lr.ph, label %22
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %16
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %5, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i32, ptr %10, i64 %12
%14 = load i32, ptr %13, align 4
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %14)
br label %16
16: ; preds = %9
%17 = load i32, ptr %5, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %5, align 4
%19 = load i32, ptr %5, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %22
22: ; preds = %._crit_edge, %2
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpflt2x7re.c'
source_filename = "/tmp/tmpflt2x7re.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIG_DFL = 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/tmpflt2x7re.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIG_DFL = 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/tmp8ee7v9uw.c'
source_filename = "/tmp/tmp8ee7v9uw.c"
target datalayout = "e-m:e-p270: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/tmp8ee7v9uw.c"
target datalayout = "e-m:e-p270: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/tmpw81tlv12.c'
source_filename = "/tmp/tmpw81tlv12.c"
target datalayout = "e-m:e-p270: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 @f_max_int16_t(ptr noalias noundef %0, ptr noalias noundef %1, i64 noundef %2, ptr noalias noundef %3, ptr noalias noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i64, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i64 %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store i32 %5, ptr %12, align 4
store i32 0, ptr %13, align 4
br label %15
15: ; preds = %66, %6
%16 = load i32, ptr %13, align 4
%17 = load i32, ptr %12, align 4
%18 = icmp ult i32 %16, %17
br i1 %18, label %19, label %69
19: ; preds = %15
%20 = load ptr, ptr %10, align 8
%21 = load i32, ptr %13, align 4
%22 = zext i32 %21 to i64
%23 = getelementptr inbounds i64, ptr %20, i64 %22
%24 = load i64, ptr %23, align 8
%25 = load ptr, ptr %11, align 8
%26 = load i32, ptr %13, align 4
%27 = zext i32 %26 to i64
%28 = getelementptr inbounds i64, ptr %25, i64 %27
%29 = load i64, ptr %28, align 8
%30 = icmp sgt i64 %24, %29
br i1 %30, label %31, label %37
31: ; preds = %19
%32 = load ptr, ptr %10, align 8
%33 = load i32, ptr %13, align 4
%34 = zext i32 %33 to i64
%35 = getelementptr inbounds i64, ptr %32, i64 %34
%36 = load i64, ptr %35, align 8
br label %43
37: ; preds = %19
%38 = load ptr, ptr %11, align 8
%39 = load i32, ptr %13, align 4
%40 = zext i32 %39 to i64
%41 = getelementptr inbounds i64, ptr %38, i64 %40
%42 = load i64, ptr %41, align 8
br label %43
43: ; preds = %37, %31
%44 = phi i64 [ %36, %31 ], [ %42, %37 ]
store i64 %44, ptr %14, align 8
%45 = load ptr, ptr %8, align 8
%46 = load i32, ptr %13, align 4
%47 = zext i32 %46 to i64
%48 = getelementptr inbounds i64, ptr %45, i64 %47
%49 = load i64, ptr %48, align 8
%50 = load i64, ptr %9, align 8
%51 = icmp slt i64 %49, %50
br i1 %51, label %52, label %54
52: ; preds = %43
%53 = load i64, ptr %14, align 8
br label %60
54: ; preds = %43
%55 = load ptr, ptr %11, align 8
%56 = load i32, ptr %13, align 4
%57 = zext i32 %56 to i64
%58 = getelementptr inbounds i64, ptr %55, i64 %57
%59 = load i64, ptr %58, align 8
br label %60
60: ; preds = %54, %52
%61 = phi i64 [ %53, %52 ], [ %59, %54 ]
%62 = load ptr, ptr %7, align 8
%63 = load i32, ptr %13, align 4
%64 = zext i32 %63 to i64
%65 = getelementptr inbounds i64, ptr %62, i64 %64
store i64 %61, ptr %65, align 8
br label %66
66: ; preds = %60
%67 = load i32, ptr %13, align 4
%68 = add i32 %67, 1
store i32 %68, ptr %13, align 4
br label %15, !llvm.loop !6
69: ; preds = %15
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw81tlv12.c"
target datalayout = "e-m:e-p270: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 @f_max_int16_t(ptr noalias noundef %0, ptr noalias noundef %1, i64 noundef %2, ptr noalias noundef %3, ptr noalias noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i64, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i64 %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store i32 %5, ptr %12, align 4
store i32 0, ptr %13, align 4
%15 = load i32, ptr %13, align 4
%16 = load i32, ptr %12, align 4
%17 = icmp ult i32 %15, %16
br i1 %17, label %.lr.ph, label %71
.lr.ph: ; preds = %6
br label %18
18: ; preds = %.lr.ph, %65
%19 = load ptr, ptr %10, align 8
%20 = load i32, ptr %13, align 4
%21 = zext i32 %20 to i64
%22 = getelementptr inbounds i64, ptr %19, i64 %21
%23 = load i64, ptr %22, align 8
%24 = load ptr, ptr %11, align 8
%25 = load i32, ptr %13, align 4
%26 = zext i32 %25 to i64
%27 = getelementptr inbounds i64, ptr %24, i64 %26
%28 = load i64, ptr %27, align 8
%29 = icmp sgt i64 %23, %28
br i1 %29, label %30, label %36
30: ; preds = %18
%31 = load ptr, ptr %10, align 8
%32 = load i32, ptr %13, align 4
%33 = zext i32 %32 to i64
%34 = getelementptr inbounds i64, ptr %31, i64 %33
%35 = load i64, ptr %34, align 8
br label %42
36: ; preds = %18
%37 = load ptr, ptr %11, align 8
%38 = load i32, ptr %13, align 4
%39 = zext i32 %38 to i64
%40 = getelementptr inbounds i64, ptr %37, i64 %39
%41 = load i64, ptr %40, align 8
br label %42
42: ; preds = %36, %30
%43 = phi i64 [ %35, %30 ], [ %41, %36 ]
store i64 %43, ptr %14, align 8
%44 = load ptr, ptr %8, align 8
%45 = load i32, ptr %13, align 4
%46 = zext i32 %45 to i64
%47 = getelementptr inbounds i64, ptr %44, i64 %46
%48 = load i64, ptr %47, align 8
%49 = load i64, ptr %9, align 8
%50 = icmp slt i64 %48, %49
br i1 %50, label %51, label %53
51: ; preds = %42
%52 = load i64, ptr %14, align 8
br label %59
53: ; preds = %42
%54 = load ptr, ptr %11, align 8
%55 = load i32, ptr %13, align 4
%56 = zext i32 %55 to i64
%57 = getelementptr inbounds i64, ptr %54, i64 %56
%58 = load i64, ptr %57, align 8
br label %59
59: ; preds = %53, %51
%60 = phi i64 [ %52, %51 ], [ %58, %53 ]
%61 = load ptr, ptr %7, align 8
%62 = load i32, ptr %13, align 4
%63 = zext i32 %62 to i64
%64 = getelementptr inbounds i64, ptr %61, i64 %63
store i64 %60, ptr %64, align 8
br label %65
65: ; preds = %59
%66 = load i32, ptr %13, align 4
%67 = add i32 %66, 1
store i32 %67, ptr %13, align 4
%68 = load i32, ptr %13, align 4
%69 = load i32, ptr %12, align 4
%70 = icmp ult i32 %68, %69
br i1 %70, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %65
br label %71
71: ; preds = %._crit_edge, %6
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpzaalcvlw.c'
source_filename = "/tmp/tmpzaalcvlw.c"
target datalayout = "e-m:e-p270: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 @papif_flips(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %7, align 8
%13 = load ptr, ptr %8, align 8
%14 = load ptr, ptr %9, align 8
%15 = call i32 @PAPI_flips(ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14)
%16 = load ptr, ptr %10, align 8
store i32 %15, ptr %16, align 4
ret void
}
declare i32 @PAPI_flips(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzaalcvlw.c"
target datalayout = "e-m:e-p270: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 @papif_flips(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %7, align 8
%13 = load ptr, ptr %8, align 8
%14 = load ptr, ptr %9, align 8
%15 = call i32 @PAPI_flips(ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14)
%16 = load ptr, ptr %10, align 8
store i32 %15, ptr %16, align 4
ret void
}
declare i32 @PAPI_flips(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyl2u2l6s.c'
source_filename = "/tmp/tmpyl2u2l6s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"*pToInt = %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"%d interpreted as a float = %f\0A\00", align 1
@.str.2 = private unnamed_addr constant [60 x i8] c"Address %p has int value %d; address %p has float value %f\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 ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 1135846729, ptr %1, align 4
store ptr %1, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = load i32, ptr %7, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %8)
store ptr %1, ptr %3, align 8
%10 = load ptr, ptr %2, align 8
%11 = load i32, ptr %10, align 4
%12 = load ptr, ptr %3, align 8
%13 = load float, ptr %12, align 4
%14 = fpext float %13 to double
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %11, double noundef %14)
%16 = call i64 @malloc(i32 noundef 4)
%17 = inttoptr i64 %16 to ptr
store ptr %17, ptr %4, align 8
%18 = load ptr, ptr %4, align 8
store i32 100, ptr %18, align 4
%19 = load ptr, ptr %4, align 8
store float 0x400921FA00000000, ptr %19, align 4
%20 = call i64 @malloc(i32 noundef 40)
%21 = inttoptr i64 %20 to ptr
store ptr %21, ptr %5, align 8
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds i32, ptr %22, i64 0
store i32 100, ptr %23, align 4
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds i32, ptr %24, i64 1
store i32 90, ptr %25, align 4
%26 = call i64 @malloc(i32 noundef 8)
%27 = inttoptr i64 %26 to ptr
store ptr %27, ptr %6, align 8
%28 = load ptr, ptr %6, align 8
store i32 100, ptr %28, align 4
%29 = load ptr, ptr %6, align 8
%30 = getelementptr inbounds i8, ptr %29, i64 4
store float 0x400921FA00000000, ptr %30, align 4
%31 = load ptr, ptr %6, align 8
%32 = load ptr, ptr %6, align 8
%33 = load i32, ptr %32, align 4
%34 = load ptr, ptr %6, align 8
%35 = getelementptr inbounds i8, ptr %34, i64 4
%36 = load ptr, ptr %6, align 8
%37 = getelementptr inbounds i8, ptr %36, i64 4
%38 = load float, ptr %37, align 4
%39 = fpext float %38 to double
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %31, i32 noundef %33, ptr noundef %35, double noundef %39)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyl2u2l6s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"*pToInt = %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"%d interpreted as a float = %f\0A\00", align 1
@.str.2 = private unnamed_addr constant [60 x i8] c"Address %p has int value %d; address %p has float value %f\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 ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 1135846729, ptr %1, align 4
store ptr %1, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = load i32, ptr %7, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %8)
store ptr %1, ptr %3, align 8
%10 = load ptr, ptr %2, align 8
%11 = load i32, ptr %10, align 4
%12 = load ptr, ptr %3, align 8
%13 = load float, ptr %12, align 4
%14 = fpext float %13 to double
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %11, double noundef %14)
%16 = call i64 @malloc(i32 noundef 4)
%17 = inttoptr i64 %16 to ptr
store ptr %17, ptr %4, align 8
%18 = load ptr, ptr %4, align 8
store i32 100, ptr %18, align 4
%19 = load ptr, ptr %4, align 8
store float 0x400921FA00000000, ptr %19, align 4
%20 = call i64 @malloc(i32 noundef 40)
%21 = inttoptr i64 %20 to ptr
store ptr %21, ptr %5, align 8
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds i32, ptr %22, i64 0
store i32 100, ptr %23, align 4
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds i32, ptr %24, i64 1
store i32 90, ptr %25, align 4
%26 = call i64 @malloc(i32 noundef 8)
%27 = inttoptr i64 %26 to ptr
store ptr %27, ptr %6, align 8
%28 = load ptr, ptr %6, align 8
store i32 100, ptr %28, align 4
%29 = load ptr, ptr %6, align 8
%30 = getelementptr inbounds i8, ptr %29, i64 4
store float 0x400921FA00000000, ptr %30, align 4
%31 = load ptr, ptr %6, align 8
%32 = load ptr, ptr %6, align 8
%33 = load i32, ptr %32, align 4
%34 = load ptr, ptr %6, align 8
%35 = getelementptr inbounds i8, ptr %34, i64 4
%36 = load ptr, ptr %6, align 8
%37 = getelementptr inbounds i8, ptr %36, i64 4
%38 = load float, ptr %37, align 4
%39 = fpext float %38 to double
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %31, i32 noundef %33, ptr noundef %35, double noundef %39)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsn2erggi.c'
source_filename = "/tmp/tmpsn2erggi.c"
target datalayout = "e-m:e-p270: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/tmpsn2erggi.c"
target datalayout = "e-m:e-p270: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/tmpoo_ak71d.c'
source_filename = "/tmp/tmpoo_ak71d.c"
target datalayout = "e-m:e-p270: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 @lm_insert(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = call i32 @strlen(ptr noundef %9)
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %6, align 8
%13 = call i32 @strlen(ptr noundef %12)
%14 = call i32 @lm_insert_n(ptr noundef %7, ptr noundef %8, i32 noundef %10, ptr noundef %11, i32 noundef %13)
ret i32 %14
}
declare i32 @lm_insert_n(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoo_ak71d.c"
target datalayout = "e-m:e-p270: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 @lm_insert(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = call i32 @strlen(ptr noundef %9)
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %6, align 8
%13 = call i32 @strlen(ptr noundef %12)
%14 = call i32 @lm_insert_n(ptr noundef %7, ptr noundef %8, i32 noundef %10, ptr noundef %11, i32 noundef %13)
ret i32 %14
}
declare i32 @lm_insert_n(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkpgmplft.c'
source_filename = "/tmp/tmpkpgmplft.c"
target datalayout = "e-m:e-p270: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/tmpkpgmplft.c"
target datalayout = "e-m:e-p270: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/tmpgg_mp533.c'
source_filename = "/tmp/tmpgg_mp533.c"
target datalayout = "e-m:e-p270: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/tmpgg_mp533.c"
target datalayout = "e-m:e-p270: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/tmpzbuvqyix.c'
source_filename = "/tmp/tmpzbuvqyix.c"
target datalayout = "e-m:e-p270: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/tmpzbuvqyix.c"
target datalayout = "e-m:e-p270: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/tmpheaj4ui7.c'
source_filename = "/tmp/tmpheaj4ui7.c"
target datalayout = "e-m:e-p270: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 @st_strtok_string_r1(ptr noundef %0, ptr noundef %1, ptr noundef %2, i8 noundef signext %3, i8 noundef signext %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i8, align 1
%11 = alloca i8, align 1
%12 = alloca ptr, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store i8 %3, ptr %10, align 1
store i8 %4, ptr %11, align 1
%13 = load i8, ptr %10, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %21
16: ; preds = %5
%17 = load ptr, ptr %7, align 8
%18 = load ptr, ptr %8, align 8
%19 = load ptr, ptr %9, align 8
%20 = call ptr @__st_strtok_r1(ptr noundef %17, ptr noundef %18, ptr noundef %19)
store ptr %20, ptr %6, align 8
br label %118
21: ; preds = %5
%22 = load ptr, ptr %7, align 8
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %27
24: ; preds = %21
%25 = load ptr, ptr %9, align 8
%26 = load ptr, ptr %25, align 8
store ptr %26, ptr %7, align 8
br label %30
27: ; preds = %21
%28 = load ptr, ptr %7, align 8
%29 = load ptr, ptr %9, align 8
store ptr %28, ptr %29, align 8
br label %30
30: ; preds = %27, %24
%31 = load ptr, ptr %9, align 8
%32 = load ptr, ptr %31, align 8
%33 = icmp eq ptr %32, null
br i1 %33, label %34, label %35
34: ; preds = %30
store ptr null, ptr %6, align 8
br label %118
35: ; preds = %30
%36 = load ptr, ptr %7, align 8
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = load i8, ptr %10, align 1
%40 = sext i8 %39 to i32
%41 = icmp ne i32 %38, %40
br i1 %41, label %42, label %47
42: ; preds = %35
%43 = load ptr, ptr %7, align 8
%44 = load ptr, ptr %8, align 8
%45 = load ptr, ptr %9, align 8
%46 = call ptr @__st_strtok_r1(ptr noundef %43, ptr noundef %44, ptr noundef %45)
store ptr %46, ptr %6, align 8
br label %118
47: ; preds = %35
%48 = load ptr, ptr %7, align 8
store ptr %48, ptr %12, align 8
%49 = load ptr, ptr %7, align 8
%50 = getelementptr inbounds i8, ptr %49, i32 1
store ptr %50, ptr %7, align 8
br label %51
51: ; preds = %84, %71, %47
%52 = load ptr, ptr %7, align 8
%53 = load i8, ptr %52, align 1
%54 = sext i8 %53 to i32
%55 = icmp ne i32 %54, 0
br i1 %55, label %56, label %87
56: ; preds = %51
%57 = load ptr, ptr %7, align 8
%58 = load i8, ptr %57, align 1
%59 = sext i8 %58 to i32
%60 = load i8, ptr %11, align 1
%61 = sext i8 %60 to i32
%62 = icmp eq i32 %59, %61
br i1 %62, label %63, label %74
63: ; preds = %56
%64 = load ptr, ptr %7, align 8
%65 = getelementptr inbounds i8, ptr %64, i32 1
store ptr %65, ptr %7, align 8
%66 = load ptr, ptr %7, align 8
%67 = load i8, ptr %66, align 1
%68 = sext i8 %67 to i32
%69 = icmp eq i32 %68, 0
br i1 %69, label %70, label %71
70: ; preds = %63
br label %87
71: ; preds = %63
%72 = load ptr, ptr %7, align 8
%73 = getelementptr inbounds i8, ptr %72, i32 1
store ptr %73, ptr %7, align 8
br label %51, !llvm.loop !6
74: ; preds = %56
%75 = load ptr, ptr %7, align 8
%76 = load i8, ptr %75, align 1
%77 = sext i8 %76 to i32
%78 = load i8, ptr %10, align 1
%79 = sext i8 %78 to i32
%80 = icmp eq i32 %77, %79
br i1 %80, label %81, label %84
81: ; preds = %74
%82 = load ptr, ptr %7, align 8
%83 = getelementptr inbounds i8, ptr %82, i32 1
store ptr %83, ptr %7, align 8
br label %87
84: ; preds = %74
%85 = load ptr, ptr %7, align 8
%86 = getelementptr inbounds i8, ptr %85, i32 1
store ptr %86, ptr %7, align 8
br label %51, !llvm.loop !6
87: ; preds = %81, %70, %51
br label %88
88: ; preds = %107, %87
%89 = load ptr, ptr %7, align 8
%90 = load i8, ptr %89, align 1
%91 = sext i8 %90 to i32
%92 = icmp ne i32 %91, 0
br i1 %92, label %93, label %110
93: ; preds = %88
%94 = load ptr, ptr %7, align 8
%95 = load i8, ptr %94, align 1
%96 = sext i8 %95 to i32
%97 = load ptr, ptr %8, align 8
%98 = load i8, ptr %97, align 1
%99 = sext i8 %98 to i32
%100 = icmp eq i32 %96, %99
br i1 %100, label %101, label %107
101: ; preds = %93
%102 = load ptr, ptr %7, align 8
store i8 0, ptr %102, align 1
%103 = load ptr, ptr %7, align 8
%104 = getelementptr inbounds i8, ptr %103, i64 1
%105 = load ptr, ptr %9, align 8
store ptr %104, ptr %105, align 8
%106 = load ptr, ptr %12, align 8
store ptr %106, ptr %6, align 8
br label %118
107: ; preds = %93
%108 = load ptr, ptr %7, align 8
%109 = getelementptr inbounds i8, ptr %108, i32 1
store ptr %109, ptr %7, align 8
br label %88, !llvm.loop !8
110: ; preds = %88
%111 = load ptr, ptr %12, align 8
%112 = load ptr, ptr %7, align 8
%113 = icmp eq ptr %111, %112
br i1 %113, label %114, label %115
114: ; preds = %110
store ptr null, ptr %6, align 8
br label %118
115: ; preds = %110
%116 = load ptr, ptr %9, align 8
store ptr null, ptr %116, align 8
%117 = load ptr, ptr %12, align 8
store ptr %117, ptr %6, align 8
br label %118
118: ; preds = %115, %114, %101, %42, %34, %16
%119 = load ptr, ptr %6, align 8
ret ptr %119
}
declare ptr @__st_strtok_r1(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpheaj4ui7.c"
target datalayout = "e-m:e-p270: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 @st_strtok_string_r1(ptr noundef %0, ptr noundef %1, ptr noundef %2, i8 noundef signext %3, i8 noundef signext %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i8, align 1
%11 = alloca i8, align 1
%12 = alloca ptr, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store i8 %3, ptr %10, align 1
store i8 %4, ptr %11, align 1
%13 = load i8, ptr %10, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %21
16: ; preds = %5
%17 = load ptr, ptr %7, align 8
%18 = load ptr, ptr %8, align 8
%19 = load ptr, ptr %9, align 8
%20 = call ptr @__st_strtok_r1(ptr noundef %17, ptr noundef %18, ptr noundef %19)
store ptr %20, ptr %6, align 8
br label %124
21: ; preds = %5
%22 = load ptr, ptr %7, align 8
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %27
24: ; preds = %21
%25 = load ptr, ptr %9, align 8
%26 = load ptr, ptr %25, align 8
store ptr %26, ptr %7, align 8
br label %30
27: ; preds = %21
%28 = load ptr, ptr %7, align 8
%29 = load ptr, ptr %9, align 8
store ptr %28, ptr %29, align 8
br label %30
30: ; preds = %27, %24
%31 = load ptr, ptr %9, align 8
%32 = load ptr, ptr %31, align 8
%33 = icmp eq ptr %32, null
br i1 %33, label %34, label %35
34: ; preds = %30
store ptr null, ptr %6, align 8
br label %124
35: ; preds = %30
%36 = load ptr, ptr %7, align 8
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = load i8, ptr %10, align 1
%40 = sext i8 %39 to i32
%41 = icmp ne i32 %38, %40
br i1 %41, label %42, label %47
42: ; preds = %35
%43 = load ptr, ptr %7, align 8
%44 = load ptr, ptr %8, align 8
%45 = load ptr, ptr %9, align 8
%46 = call ptr @__st_strtok_r1(ptr noundef %43, ptr noundef %44, ptr noundef %45)
store ptr %46, ptr %6, align 8
br label %124
47: ; preds = %35
%48 = load ptr, ptr %7, align 8
store ptr %48, ptr %12, align 8
%49 = load ptr, ptr %7, align 8
%50 = getelementptr inbounds i8, ptr %49, i32 1
store ptr %50, ptr %7, align 8
%51 = load ptr, ptr %7, align 8
%52 = load i8, ptr %51, align 1
%53 = sext i8 %52 to i32
%54 = icmp ne i32 %53, 0
br i1 %54, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %47
br label %55
55: ; preds = %.lr.ph, %.backedge
%56 = load ptr, ptr %7, align 8
%57 = load i8, ptr %56, align 1
%58 = sext i8 %57 to i32
%59 = load i8, ptr %11, align 1
%60 = sext i8 %59 to i32
%61 = icmp eq i32 %58, %60
br i1 %61, label %62, label %77
62: ; preds = %55
%63 = load ptr, ptr %7, align 8
%64 = getelementptr inbounds i8, ptr %63, i32 1
store ptr %64, ptr %7, align 8
%65 = load ptr, ptr %7, align 8
%66 = load i8, ptr %65, align 1
%67 = sext i8 %66 to i32
%68 = icmp eq i32 %67, 0
br i1 %68, label %69, label %70
69: ; preds = %62
br label %90
70: ; preds = %62
%71 = load ptr, ptr %7, align 8
%72 = getelementptr inbounds i8, ptr %71, i32 1
store ptr %72, ptr %7, align 8
br label %.backedge
.backedge: ; preds = %70, %87
%73 = load ptr, ptr %7, align 8
%74 = load i8, ptr %73, align 1
%75 = sext i8 %74 to i32
%76 = icmp ne i32 %75, 0
br i1 %76, label %55, label %..loopexit_crit_edge, !llvm.loop !6
77: ; preds = %55
%78 = load ptr, ptr %7, align 8
%79 = load i8, ptr %78, align 1
%80 = sext i8 %79 to i32
%81 = load i8, ptr %10, align 1
%82 = sext i8 %81 to i32
%83 = icmp eq i32 %80, %82
br i1 %83, label %84, label %87
84: ; preds = %77
%85 = load ptr, ptr %7, align 8
%86 = getelementptr inbounds i8, ptr %85, i32 1
store ptr %86, ptr %7, align 8
br label %90
87: ; preds = %77
%88 = load ptr, ptr %7, align 8
%89 = getelementptr inbounds i8, ptr %88, i32 1
store ptr %89, ptr %7, align 8
br label %.backedge
..loopexit_crit_edge: ; preds = %.backedge
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %47
br label %90
90: ; preds = %.loopexit, %84, %69
%91 = load ptr, ptr %7, align 8
%92 = load i8, ptr %91, align 1
%93 = sext i8 %92 to i32
%94 = icmp ne i32 %93, 0
br i1 %94, label %.lr.ph1, label %116
.lr.ph1: ; preds = %90
br label %95
95: ; preds = %.lr.ph1, %109
%96 = load ptr, ptr %7, align 8
%97 = load i8, ptr %96, align 1
%98 = sext i8 %97 to i32
%99 = load ptr, ptr %8, align 8
%100 = load i8, ptr %99, align 1
%101 = sext i8 %100 to i32
%102 = icmp eq i32 %98, %101
br i1 %102, label %103, label %109
103: ; preds = %95
%104 = load ptr, ptr %7, align 8
store i8 0, ptr %104, align 1
%105 = load ptr, ptr %7, align 8
%106 = getelementptr inbounds i8, ptr %105, i64 1
%107 = load ptr, ptr %9, align 8
store ptr %106, ptr %107, align 8
%108 = load ptr, ptr %12, align 8
store ptr %108, ptr %6, align 8
br label %124
109: ; preds = %95
%110 = load ptr, ptr %7, align 8
%111 = getelementptr inbounds i8, ptr %110, i32 1
store ptr %111, ptr %7, align 8
%112 = load ptr, ptr %7, align 8
%113 = load i8, ptr %112, align 1
%114 = sext i8 %113 to i32
%115 = icmp ne i32 %114, 0
br i1 %115, label %95, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %109
br label %116
116: ; preds = %._crit_edge, %90
%117 = load ptr, ptr %12, align 8
%118 = load ptr, ptr %7, align 8
%119 = icmp eq ptr %117, %118
br i1 %119, label %120, label %121
120: ; preds = %116
store ptr null, ptr %6, align 8
br label %124
121: ; preds = %116
%122 = load ptr, ptr %9, align 8
store ptr null, ptr %122, align 8
%123 = load ptr, ptr %12, align 8
store ptr %123, ptr %6, align 8
br label %124
124: ; preds = %121, %120, %103, %42, %34, %16
%125 = load ptr, ptr %6, align 8
ret ptr %125
}
declare ptr @__st_strtok_r1(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpv64ivs5i.c'
source_filename = "/tmp/tmpv64ivs5i.c"
target datalayout = "e-m:e-p270: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 @iRobot_LED(i16 noundef zeroext %0, i16 noundef zeroext %1, i16 noundef zeroext %2) #0 {
%4 = alloca i16, align 2
%5 = alloca i16, align 2
%6 = alloca i16, align 2
%7 = alloca [4 x i8], align 1
store i16 %0, ptr %4, align 2
store i16 %1, ptr %5, align 2
store i16 %2, ptr %6, align 2
%8 = getelementptr inbounds [4 x i8], ptr %7, i64 0, i64 0
store i8 -117, ptr %8, align 1
%9 = getelementptr inbounds i8, ptr %8, i64 1
%10 = load i16, ptr %4, align 2
%11 = trunc i16 %10 to i8
store i8 %11, ptr %9, align 1
%12 = getelementptr inbounds i8, ptr %9, i64 1
%13 = load i16, ptr %5, align 2
%14 = trunc i16 %13 to i8
store i8 %14, ptr %12, align 1
%15 = getelementptr inbounds i8, ptr %12, i64 1
%16 = load i16, ptr %6, align 2
%17 = trunc i16 %16 to i8
store i8 %17, ptr %15, align 1
%18 = getelementptr inbounds [4 x i8], ptr %7, i64 0, i64 0
%19 = call i32 @SerialWriteString(ptr noundef %18)
ret void
}
declare i32 @SerialWriteString(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv64ivs5i.c"
target datalayout = "e-m:e-p270: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 @iRobot_LED(i16 noundef zeroext %0, i16 noundef zeroext %1, i16 noundef zeroext %2) #0 {
%4 = alloca i16, align 2
%5 = alloca i16, align 2
%6 = alloca i16, align 2
%7 = alloca [4 x i8], align 1
store i16 %0, ptr %4, align 2
store i16 %1, ptr %5, align 2
store i16 %2, ptr %6, align 2
%8 = getelementptr inbounds [4 x i8], ptr %7, i64 0, i64 0
store i8 -117, ptr %8, align 1
%9 = getelementptr inbounds i8, ptr %8, i64 1
%10 = load i16, ptr %4, align 2
%11 = trunc i16 %10 to i8
store i8 %11, ptr %9, align 1
%12 = getelementptr inbounds i8, ptr %9, i64 1
%13 = load i16, ptr %5, align 2
%14 = trunc i16 %13 to i8
store i8 %14, ptr %12, align 1
%15 = getelementptr inbounds i8, ptr %12, i64 1
%16 = load i16, ptr %6, align 2
%17 = trunc i16 %16 to i8
store i8 %17, ptr %15, align 1
%18 = getelementptr inbounds [4 x i8], ptr %7, i64 0, i64 0
%19 = call i32 @SerialWriteString(ptr noundef %18)
ret void
}
declare i32 @SerialWriteString(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpw1prin1q.c'
source_filename = "/tmp/tmpw1prin1q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @deg2rad(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
store double %0, ptr %2, align 8
%4 = load double, ptr %2, align 8
%5 = load double, ptr @M_PI, align 8
%6 = fmul double %4, %5
%7 = fdiv double %6, 1.800000e+02
store double %7, ptr %3, align 8
%8 = load double, ptr %3, align 8
ret double %8
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw1prin1q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @deg2rad(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
store double %0, ptr %2, align 8
%4 = load double, ptr %2, align 8
%5 = load double, ptr @M_PI, align 8
%6 = fmul double %4, %5
%7 = fdiv double %6, 1.800000e+02
store double %7, ptr %3, align 8
%8 = load double, ptr %3, align 8
ret double %8
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7t0h_zh1.c'
source_filename = "/tmp/tmp7t0h_zh1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@IEEE1284_MODE_ECP = dso_local global i32 0, align 4
@IEEE1284_MODE_ECPRLE = dso_local global i32 0, align 4
@O_RDWR = dso_local global i32 0, align 4
@PPCLAIM = dso_local global i32 0, align 4
@PPGETMODE = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7t0h_zh1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@IEEE1284_MODE_ECP = dso_local global i32 0, align 4
@IEEE1284_MODE_ECPRLE = dso_local global i32 0, align 4
@O_RDWR = dso_local global i32 0, align 4
@PPCLAIM = dso_local global i32 0, align 4
@PPGETMODE = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4_odut8l.c'
source_filename = "/tmp/tmp4_odut8l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.termios = type { i32 }
@STDIN_FILENO = dso_local global i32 0, align 4
@ICANON = dso_local global i32 0, align 4
@ECHO = dso_local global i32 0, align 4
@TCSANOW = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [5 x i8] c"\1B[1D\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"\1B[1B\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"\1B[1A\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"\1B[1C\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [7 x i8] c"\1B[1;1H\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"\1B[2J\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 %struct.termios, align 4
%8 = alloca %struct.termios, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr @STDIN_FILENO, align 4
%10 = call i32 @tcgetattr(i32 noundef %9, ptr noundef %7)
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %7, i64 4, i1 false)
%11 = load i32, ptr @ICANON, align 4
%12 = xor i32 %11, -1
%13 = getelementptr inbounds %struct.termios, ptr %7, i32 0, i32 0
%14 = load i32, ptr %13, align 4
%15 = and i32 %14, %12
store i32 %15, ptr %13, align 4
%16 = load i32, ptr @ECHO, align 4
%17 = xor i32 %16, -1
%18 = getelementptr inbounds %struct.termios, ptr %7, i32 0, i32 0
%19 = load i32, ptr %18, align 4
%20 = and i32 %19, %17
store i32 %20, ptr %18, align 4
%21 = load i32, ptr @STDIN_FILENO, align 4
%22 = load i32, ptr @TCSANOW, align 4
%23 = call i32 @tcsetattr(i32 noundef %21, i32 noundef %22, ptr noundef %7)
br label %24
24: ; preds = %2, %37
%25 = call i32 (...) @getchar()
store i32 %25, ptr %6, align 4
%26 = load i32, ptr %6, align 4
switch i32 %26, label %36 [
i32 104, label %27
i32 106, label %29
i32 107, label %31
i32 108, label %33
i32 113, label %35
]
27: ; preds = %24
%28 = call i32 @printf(ptr noundef @.str)
br label %37
29: ; preds = %24
%30 = call i32 @printf(ptr noundef @.str.1)
br label %37
31: ; preds = %24
%32 = call i32 @printf(ptr noundef @.str.2)
br label %37
33: ; preds = %24
%34 = call i32 @printf(ptr noundef @.str.3)
br label %37
35: ; preds = %24
br label %40
36: ; preds = %24
br label %37
37: ; preds = %36, %33, %31, %29, %27
%38 = load i32, ptr @stdout, align 4
%39 = call i32 @fflush(i32 noundef %38)
br label %24
40: ; preds = %35
%41 = load i32, ptr @STDIN_FILENO, align 4
%42 = load i32, ptr @TCSANOW, align 4
%43 = call i32 @tcsetattr(i32 noundef %41, i32 noundef %42, ptr noundef %8)
%44 = call i32 @printf(ptr noundef @.str.4)
%45 = call i32 @printf(ptr noundef @.str.5)
%46 = load i32, ptr @stdout, align 4
%47 = call i32 @fflush(i32 noundef %46)
ret i32 0
}
declare i32 @tcgetattr(i32 noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @tcsetattr(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @getchar(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @fflush(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4_odut8l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.termios = type { i32 }
@STDIN_FILENO = dso_local global i32 0, align 4
@ICANON = dso_local global i32 0, align 4
@ECHO = dso_local global i32 0, align 4
@TCSANOW = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [5 x i8] c"\1B[1D\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"\1B[1B\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"\1B[1A\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"\1B[1C\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [7 x i8] c"\1B[1;1H\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"\1B[2J\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 %struct.termios, align 4
%8 = alloca %struct.termios, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr @STDIN_FILENO, align 4
%10 = call i32 @tcgetattr(i32 noundef %9, ptr noundef %7)
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %7, i64 4, i1 false)
%11 = load i32, ptr @ICANON, align 4
%12 = xor i32 %11, -1
%13 = getelementptr inbounds %struct.termios, ptr %7, i32 0, i32 0
%14 = load i32, ptr %13, align 4
%15 = and i32 %14, %12
store i32 %15, ptr %13, align 4
%16 = load i32, ptr @ECHO, align 4
%17 = xor i32 %16, -1
%18 = getelementptr inbounds %struct.termios, ptr %7, i32 0, i32 0
%19 = load i32, ptr %18, align 4
%20 = and i32 %19, %17
store i32 %20, ptr %18, align 4
%21 = load i32, ptr @STDIN_FILENO, align 4
%22 = load i32, ptr @TCSANOW, align 4
%23 = call i32 @tcsetattr(i32 noundef %21, i32 noundef %22, ptr noundef %7)
br label %24
24: ; preds = %37, %2
%25 = call i32 (...) @getchar()
store i32 %25, ptr %6, align 4
%26 = load i32, ptr %6, align 4
switch i32 %26, label %36 [
i32 104, label %27
i32 106, label %29
i32 107, label %31
i32 108, label %33
i32 113, label %35
]
27: ; preds = %24
%28 = call i32 @printf(ptr noundef @.str)
br label %37
29: ; preds = %24
%30 = call i32 @printf(ptr noundef @.str.1)
br label %37
31: ; preds = %24
%32 = call i32 @printf(ptr noundef @.str.2)
br label %37
33: ; preds = %24
%34 = call i32 @printf(ptr noundef @.str.3)
br label %37
35: ; preds = %24
br label %40
36: ; preds = %24
br label %37
37: ; preds = %36, %33, %31, %29, %27
%38 = load i32, ptr @stdout, align 4
%39 = call i32 @fflush(i32 noundef %38)
br label %24
40: ; preds = %35
%41 = load i32, ptr @STDIN_FILENO, align 4
%42 = load i32, ptr @TCSANOW, align 4
%43 = call i32 @tcsetattr(i32 noundef %41, i32 noundef %42, ptr noundef %8)
%44 = call i32 @printf(ptr noundef @.str.4)
%45 = call i32 @printf(ptr noundef @.str.5)
%46 = load i32, ptr @stdout, align 4
%47 = call i32 @fflush(i32 noundef %46)
ret i32 0
}
declare i32 @tcgetattr(i32 noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @tcsetattr(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @getchar(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @fflush(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5j4xp463.c'
source_filename = "/tmp/tmp5j4xp463.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"%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
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %2, align 4
br label %3
3: ; preds = %10, %0
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 255
br i1 %5, label %6, label %13
6: ; preds = %3
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = call i32 @printf(ptr noundef @.str, i32 noundef %7, i32 noundef %8)
br label %10
10: ; preds = %6
%11 = load i32, ptr %2, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %2, align 4
br label %3, !llvm.loop !6
13: ; preds = %3
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5j4xp463.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"%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
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp slt i32 %3, 255
br i1 %4, label %.lr.ph, label %14
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %9
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %2, align 4
%8 = call i32 @printf(ptr noundef @.str, i32 noundef %6, i32 noundef %7)
br label %9
9: ; preds = %5
%10 = load i32, ptr %2, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %2, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp slt i32 %12, 255
br i1 %13, label %5, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %9
br label %14
14: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp4fzd6png.c'
source_filename = "/tmp/tmp4fzd6png.c"
target datalayout = "e-m:e-p270: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/tmp4fzd6png.c"
target datalayout = "e-m:e-p270: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/tmpcb5wynv5.c'
source_filename = "/tmp/tmpcb5wynv5.c"
target datalayout = "e-m:e-p270: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 @sortFirst(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
br label %7
7: ; preds = %37, %2
%8 = load i32, ptr %6, align 4
%9 = load i32, ptr %4, align 4
%10 = sub nsw i32 %9, 1
%11 = icmp slt i32 %8, %10
br i1 %11, label %12, label %40
12: ; preds = %7
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %6, 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 ptr, ptr %3, align 8
%19 = load i32, ptr %6, align 4
%20 = add nsw i32 %19, 1
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i32, ptr %18, i64 %21
%23 = load i32, ptr %22, align 4
%24 = icmp sgt i32 %17, %23
br i1 %24, label %25, label %36
25: ; preds = %12
%26 = load ptr, ptr %3, align 8
%27 = load i32, ptr %6, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i32, ptr %26, i64 %28
%30 = load ptr, ptr %3, align 8
%31 = load i32, ptr %6, align 4
%32 = add nsw i32 %31, 1
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i32, ptr %30, i64 %33
%35 = call i32 @swap(ptr noundef %29, ptr noundef %34)
store i32 1, ptr %5, align 4
br label %36
36: ; preds = %25, %12
br label %37
37: ; preds = %36
%38 = load i32, ptr %6, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %6, align 4
br label %7, !llvm.loop !6
40: ; preds = %7
%41 = load i32, ptr %5, align 4
ret i32 %41
}
declare i32 @swap(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcb5wynv5.c"
target datalayout = "e-m:e-p270: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 @sortFirst(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%7 = load i32, ptr %6, align 4
%8 = load i32, ptr %4, align 4
%9 = sub nsw i32 %8, 1
%10 = icmp slt i32 %7, %9
br i1 %10, label %.lr.ph, label %43
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %36
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %6, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i32, ptr %12, i64 %14
%16 = load i32, ptr %15, align 4
%17 = load ptr, ptr %3, align 8
%18 = load i32, ptr %6, align 4
%19 = add nsw i32 %18, 1
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i32, ptr %17, i64 %20
%22 = load i32, ptr %21, align 4
%23 = icmp sgt i32 %16, %22
br i1 %23, label %24, label %35
24: ; preds = %11
%25 = load ptr, ptr %3, align 8
%26 = load i32, ptr %6, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i32, ptr %25, i64 %27
%29 = load ptr, ptr %3, align 8
%30 = load i32, ptr %6, align 4
%31 = add nsw i32 %30, 1
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i32, ptr %29, i64 %32
%34 = call i32 @swap(ptr noundef %28, ptr noundef %33)
store i32 1, ptr %5, align 4
br label %35
35: ; preds = %24, %11
br label %36
36: ; preds = %35
%37 = load i32, ptr %6, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %6, align 4
%39 = load i32, ptr %6, align 4
%40 = load i32, ptr %4, align 4
%41 = sub nsw i32 %40, 1
%42 = icmp slt i32 %39, %41
br i1 %42, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %36
br label %43
43: ; preds = %._crit_edge, %2
%44 = load i32, ptr %5, align 4
ret i32 %44
}
declare i32 @swap(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp4jum8gi7.c'
source_filename = "/tmp/tmp4jum8gi7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@I2C_SLAVE_FORCE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [66 x i8] c"\0A---------------------------------------------------------------\0A\00", align 1
@.str.1 = private unnamed_addr constant [36 x i8] c"Reduced volume at 0x%02x by -0.5dB\0A\00", align 1
@.str.2 = private unnamed_addr constant [65 x i8] c"---------------------------------------------------------------\0A\00", align 1
@.str.3 = private unnamed_addr constant [34 x i8] c"Raised volume at 0x%02x by 0.5dB\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @setVolumeSwitch(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr @I2C_SLAVE_FORCE, align 4
%10 = load i32, ptr %6, align 4
%11 = call i32 @ioctl(i32 noundef %8, i32 noundef %9, i32 noundef %10)
%12 = load i32, ptr %5, align 4
%13 = call i32 @getVolume(i32 noundef %12, i32 noundef 1)
store i32 %13, ptr %7, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %26
16: ; preds = %3
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%18 = load i32, ptr %6, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %18)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%21 = load i32, ptr %7, align 4
%22 = add nsw i32 %21, 1
%23 = load i32, ptr %5, align 4
%24 = load i32, ptr %6, align 4
%25 = call i32 @setVolume(i32 noundef 0, i32 noundef %22, i32 noundef %23, i32 noundef %24)
br label %45
26: ; preds = %3
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%28 = load i32, ptr %6, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %28)
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%31 = load i32, ptr %7, align 4
%32 = icmp sgt i32 %31, 0
br i1 %32, label %33, label %39
33: ; preds = %26
%34 = load i32, ptr %7, align 4
%35 = sub nsw i32 %34, 1
%36 = load i32, ptr %5, align 4
%37 = load i32, ptr %6, align 4
%38 = call i32 @setVolume(i32 noundef 0, i32 noundef %35, i32 noundef %36, i32 noundef %37)
br label %44
39: ; preds = %26
%40 = load i32, ptr %7, align 4
%41 = load i32, ptr %5, align 4
%42 = load i32, ptr %6, align 4
%43 = call i32 @setVolume(i32 noundef 0, i32 noundef %40, i32 noundef %41, i32 noundef %42)
br label %44
44: ; preds = %39, %33
br label %45
45: ; preds = %44, %16
ret void
}
declare i32 @ioctl(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @getVolume(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @setVolume(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/tmp4jum8gi7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@I2C_SLAVE_FORCE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [66 x i8] c"\0A---------------------------------------------------------------\0A\00", align 1
@.str.1 = private unnamed_addr constant [36 x i8] c"Reduced volume at 0x%02x by -0.5dB\0A\00", align 1
@.str.2 = private unnamed_addr constant [65 x i8] c"---------------------------------------------------------------\0A\00", align 1
@.str.3 = private unnamed_addr constant [34 x i8] c"Raised volume at 0x%02x by 0.5dB\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @setVolumeSwitch(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr @I2C_SLAVE_FORCE, align 4
%10 = load i32, ptr %6, align 4
%11 = call i32 @ioctl(i32 noundef %8, i32 noundef %9, i32 noundef %10)
%12 = load i32, ptr %5, align 4
%13 = call i32 @getVolume(i32 noundef %12, i32 noundef 1)
store i32 %13, ptr %7, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %26
16: ; preds = %3
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%18 = load i32, ptr %6, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %18)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%21 = load i32, ptr %7, align 4
%22 = add nsw i32 %21, 1
%23 = load i32, ptr %5, align 4
%24 = load i32, ptr %6, align 4
%25 = call i32 @setVolume(i32 noundef 0, i32 noundef %22, i32 noundef %23, i32 noundef %24)
br label %45
26: ; preds = %3
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%28 = load i32, ptr %6, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %28)
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%31 = load i32, ptr %7, align 4
%32 = icmp sgt i32 %31, 0
br i1 %32, label %33, label %39
33: ; preds = %26
%34 = load i32, ptr %7, align 4
%35 = sub nsw i32 %34, 1
%36 = load i32, ptr %5, align 4
%37 = load i32, ptr %6, align 4
%38 = call i32 @setVolume(i32 noundef 0, i32 noundef %35, i32 noundef %36, i32 noundef %37)
br label %44
39: ; preds = %26
%40 = load i32, ptr %7, align 4
%41 = load i32, ptr %5, align 4
%42 = load i32, ptr %6, align 4
%43 = call i32 @setVolume(i32 noundef 0, i32 noundef %40, i32 noundef %41, i32 noundef %42)
br label %44
44: ; preds = %39, %33
br label %45
45: ; preds = %44, %16
ret void
}
declare i32 @ioctl(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @getVolume(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @setVolume(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/tmp94h3k6j9.c'
source_filename = "/tmp/tmp94h3k6j9.c"
target datalayout = "e-m:e-p270: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 @encoding_length_test() #0 {
%1 = call i32 @varint_encoding_length(i32 noundef 2)
%2 = icmp eq i32 %1, 1
%3 = zext i1 %2 to i32
%4 = call i32 @tassert(i32 noundef %3)
%5 = call i32 @varint_encoding_length(i32 noundef 16383)
%6 = icmp eq i32 %5, 2
%7 = zext i1 %6 to i32
%8 = call i32 @tassert(i32 noundef %7)
%9 = call i32 @varint_encoding_length(i32 noundef 2097151)
%10 = icmp eq i32 %9, 3
%11 = zext i1 %10 to i32
%12 = call i32 @tassert(i32 noundef %11)
%13 = call i32 @varint_encoding_length(i32 noundef 268435455)
%14 = icmp eq i32 %13, 4
%15 = zext i1 %14 to i32
%16 = call i32 @tassert(i32 noundef %15)
%17 = call i32 @varint_encoding_length(i32 noundef -1)
%18 = icmp eq i32 %17, 5
%19 = zext i1 %18 to i32
%20 = call i32 @tassert(i32 noundef %19)
%21 = call i32 @varint_encoding_length(i32 noundef -1)
%22 = icmp eq i32 %21, 6
%23 = zext i1 %22 to i32
%24 = call i32 @tassert(i32 noundef %23)
%25 = call i32 @varint_encoding_length(i32 noundef -1)
%26 = icmp eq i32 %25, 7
%27 = zext i1 %26 to i32
%28 = call i32 @tassert(i32 noundef %27)
%29 = call i32 @varint_encoding_length(i32 noundef -1)
%30 = icmp eq i32 %29, 8
%31 = zext i1 %30 to i32
%32 = call i32 @tassert(i32 noundef %31)
%33 = call i32 @varint_encoding_length(i32 noundef -1)
%34 = icmp eq i32 %33, 9
%35 = zext i1 %34 to i32
%36 = call i32 @tassert(i32 noundef %35)
%37 = call i32 @varint_encoding_length(i32 noundef -1)
%38 = icmp eq i32 %37, 10
%39 = zext i1 %38 to i32
%40 = call i32 @tassert(i32 noundef %39)
ret void
}
declare i32 @tassert(i32 noundef) #1
declare i32 @varint_encoding_length(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/tmp94h3k6j9.c"
target datalayout = "e-m:e-p270: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 @encoding_length_test() #0 {
%1 = call i32 @varint_encoding_length(i32 noundef 2)
%2 = icmp eq i32 %1, 1
%3 = zext i1 %2 to i32
%4 = call i32 @tassert(i32 noundef %3)
%5 = call i32 @varint_encoding_length(i32 noundef 16383)
%6 = icmp eq i32 %5, 2
%7 = zext i1 %6 to i32
%8 = call i32 @tassert(i32 noundef %7)
%9 = call i32 @varint_encoding_length(i32 noundef 2097151)
%10 = icmp eq i32 %9, 3
%11 = zext i1 %10 to i32
%12 = call i32 @tassert(i32 noundef %11)
%13 = call i32 @varint_encoding_length(i32 noundef 268435455)
%14 = icmp eq i32 %13, 4
%15 = zext i1 %14 to i32
%16 = call i32 @tassert(i32 noundef %15)
%17 = call i32 @varint_encoding_length(i32 noundef -1)
%18 = icmp eq i32 %17, 5
%19 = zext i1 %18 to i32
%20 = call i32 @tassert(i32 noundef %19)
%21 = call i32 @varint_encoding_length(i32 noundef -1)
%22 = icmp eq i32 %21, 6
%23 = zext i1 %22 to i32
%24 = call i32 @tassert(i32 noundef %23)
%25 = call i32 @varint_encoding_length(i32 noundef -1)
%26 = icmp eq i32 %25, 7
%27 = zext i1 %26 to i32
%28 = call i32 @tassert(i32 noundef %27)
%29 = call i32 @varint_encoding_length(i32 noundef -1)
%30 = icmp eq i32 %29, 8
%31 = zext i1 %30 to i32
%32 = call i32 @tassert(i32 noundef %31)
%33 = call i32 @varint_encoding_length(i32 noundef -1)
%34 = icmp eq i32 %33, 9
%35 = zext i1 %34 to i32
%36 = call i32 @tassert(i32 noundef %35)
%37 = call i32 @varint_encoding_length(i32 noundef -1)
%38 = icmp eq i32 %37, 10
%39 = zext i1 %38 to i32
%40 = call i32 @tassert(i32 noundef %39)
ret void
}
declare i32 @tassert(i32 noundef) #1
declare i32 @varint_encoding_length(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/tmppzds8ia5.c'
source_filename = "/tmp/tmppzds8ia5.c"
target datalayout = "e-m:e-p270: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 1337, ptr %6, align 4
%7 = call i32 @ArrayFunction(ptr noundef %6)
ret i32 0
}
declare i32 @ArrayFunction(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppzds8ia5.c"
target datalayout = "e-m:e-p270: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 1337, ptr %6, align 4
%7 = call i32 @ArrayFunction(ptr noundef %6)
ret i32 0
}
declare i32 @ArrayFunction(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp05yhol1i.c'
source_filename = "/tmp/tmp05yhol1i.c"
target datalayout = "e-m:e-p270: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 @readv(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = call i32 @vectorio(i32 noundef %7, ptr noundef %8, i32 noundef %9, i32 noundef 1)
ret i32 %10
}
declare i32 @vectorio(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp05yhol1i.c"
target datalayout = "e-m:e-p270: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 @readv(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = call i32 @vectorio(i32 noundef %7, ptr noundef %8, i32 noundef %9, i32 noundef 1)
ret i32 %10
}
declare i32 @vectorio(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkvhst33w.c'
source_filename = "/tmp/tmpkvhst33w.c"
target datalayout = "e-m:e-p270: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/tmpkvhst33w.c"
target datalayout = "e-m:e-p270: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/tmpbfg5tc5x.c'
source_filename = "/tmp/tmpbfg5tc5x.c"
target datalayout = "e-m:e-p270: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/tmpbfg5tc5x.c"
target datalayout = "e-m:e-p270: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/tmpsaalw1fv.c'
source_filename = "/tmp/tmpsaalw1fv.c"
target datalayout = "e-m:e-p270: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/tmpsaalw1fv.c"
target datalayout = "e-m:e-p270: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/tmp4mdjxc1d.c'
source_filename = "/tmp/tmp4mdjxc1d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [16 x i8] c"socket() failed\00", align 1
@INADDR_ANY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [14 x i8] c"bind() failed\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"listen() failed\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"accept() failed\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.5 = private unnamed_addr constant [24 x i8] c"fdopen() reading failed\00", align 1
@.str.6 = private unnamed_addr constant [15 x i8] c"fgets() failed\00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.8 = private unnamed_addr constant [24 x i8] c"fdopen() writing failed\00", align 1
@.str.9 = private unnamed_addr constant [6 x i8] c"ls %s\00", align 1
@.str.10 = private unnamed_addr constant [15 x i8] c"popen() failed\00", align 1
@EOF = 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 %struct.sockaddr_in, align 4
%9 = alloca %struct.sockaddr_in, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca [1024 x i8], align 16
%13 = alloca [1024 x i8], align 16
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%17 = load i32, ptr @AF_INET, align 4
%18 = load i32, ptr @SOCK_STREAM, align 4
%19 = call i32 @socket(i32 noundef %17, i32 noundef %18, i32 noundef 0)
store i32 %19, ptr %6, align 4
%20 = load i32, ptr %6, align 4
%21 = icmp eq i32 %20, -1
br i1 %21, label %22, label %25
22: ; preds = %2
%23 = call i32 @perror(ptr noundef @.str)
%24 = call i32 @exit(i32 noundef 1) #3
unreachable
25: ; preds = %2
%26 = call i32 @memset(ptr noundef %8, i32 noundef 0, i32 noundef 12)
%27 = load i32, ptr @AF_INET, align 4
%28 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 2
store i32 %27, ptr %28, align 4
%29 = load i32, ptr @INADDR_ANY, align 4
%30 = call i32 @htonl(i32 noundef %29)
%31 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 1
%32 = getelementptr inbounds %struct.TYPE_2__, ptr %31, i32 0, i32 0
store i32 %30, ptr %32, align 4
%33 = call i32 @htons(i32 noundef 15000)
%34 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 0
store i32 %33, ptr %34, align 4
%35 = load i32, ptr %6, align 4
%36 = call i32 @bind(i32 noundef %35, ptr noundef %8, i32 noundef 12)
%37 = icmp eq i32 %36, -1
br i1 %37, label %38, label %41
38: ; preds = %25
%39 = call i32 @perror(ptr noundef @.str.1)
%40 = call i32 @exit(i32 noundef 1) #3
unreachable
41: ; preds = %25
%42 = load i32, ptr %6, align 4
%43 = call i32 @listen(i32 noundef %42, i32 noundef 5)
%44 = icmp eq i32 %43, -1
br i1 %44, label %45, label %48
45: ; preds = %41
%46 = call i32 @perror(ptr noundef @.str.2)
%47 = call i32 @exit(i32 noundef 1) #3
unreachable
48: ; preds = %41
br label %49
49: ; preds = %48, %103
store i32 12, ptr %10, align 4
%50 = load i32, ptr %6, align 4
%51 = call i32 @accept(i32 noundef %50, ptr noundef %9, ptr noundef %10)
store i32 %51, ptr %7, align 4
%52 = load i32, ptr %7, align 4
%53 = icmp eq i32 %52, -1
br i1 %53, label %54, label %57
54: ; preds = %49
%55 = call i32 @perror(ptr noundef @.str.3)
%56 = call i32 @exit(i32 noundef 1) #3
unreachable
57: ; preds = %49
%58 = load i32, ptr %7, align 4
%59 = call ptr @fdopen(i32 noundef %58, ptr noundef @.str.4)
store ptr %59, ptr %14, align 8
%60 = load ptr, ptr %14, align 8
%61 = icmp eq ptr %60, null
br i1 %61, label %62, label %65
62: ; preds = %57
%63 = call i32 @perror(ptr noundef @.str.5)
%64 = call i32 @exit(i32 noundef 1) #3
unreachable
65: ; preds = %57
%66 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
%67 = load ptr, ptr %14, align 8
%68 = call ptr @fgets(ptr noundef %66, i32 noundef 1024, ptr noundef %67)
%69 = icmp eq ptr %68, null
br i1 %69, label %70, label %73
70: ; preds = %65
%71 = call i32 @perror(ptr noundef @.str.6)
%72 = call i32 @exit(i32 noundef 1) #3
unreachable
73: ; preds = %65
%74 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
%75 = call i32 @sanitize(ptr noundef %74)
%76 = load i32, ptr %7, align 4
%77 = call ptr @fdopen(i32 noundef %76, ptr noundef @.str.7)
store ptr %77, ptr %15, align 8
%78 = load ptr, ptr %15, align 8
%79 = icmp eq ptr %78, null
br i1 %79, label %80, label %83
80: ; preds = %73
%81 = call i32 @perror(ptr noundef @.str.8)
%82 = call i32 @exit(i32 noundef 1) #3
unreachable
83: ; preds = %73
%84 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
%85 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
%86 = call i32 @snprintf(ptr noundef %84, i32 noundef 1024, ptr noundef @.str.9, ptr noundef %85)
%87 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
%88 = call ptr @popen(ptr noundef %87, ptr noundef @.str.4)
store ptr %88, ptr %16, align 8
%89 = icmp eq ptr %88, null
br i1 %89, label %90, label %93
90: ; preds = %83
%91 = call i32 @perror(ptr noundef @.str.10)
%92 = call i32 @exit(i32 noundef 1) #3
unreachable
93: ; preds = %83
br label %94
94: ; preds = %99, %93
%95 = load ptr, ptr %16, align 8
%96 = call i32 @getc(ptr noundef %95)
store i32 %96, ptr %11, align 4
%97 = load i32, ptr @EOF, align 4
%98 = icmp ne i32 %96, %97
br i1 %98, label %99, label %103
99: ; preds = %94
%100 = load i32, ptr %11, align 4
%101 = load ptr, ptr %15, align 8
%102 = call i32 @putc(i32 noundef %100, ptr noundef %101)
br label %94, !llvm.loop !6
103: ; preds = %94
%104 = load ptr, ptr %15, align 8
%105 = call i32 @fflush(ptr noundef %104)
%106 = load ptr, ptr %16, align 8
%107 = call i32 @pclose(ptr noundef %106)
%108 = load ptr, ptr %14, align 8
%109 = call i32 @fclose(ptr noundef %108)
%110 = load ptr, ptr %15, align 8
%111 = call i32 @fclose(ptr noundef %110)
br label %49
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @htonl(i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @listen(i32 noundef, i32 noundef) #1
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @fdopen(i32 noundef, ptr noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @sanitize(ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @popen(ptr noundef, ptr noundef) #1
declare i32 @getc(ptr noundef) #1
declare i32 @putc(i32 noundef, ptr noundef) #1
declare i32 @fflush(ptr noundef) #1
declare i32 @pclose(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4mdjxc1d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [16 x i8] c"socket() failed\00", align 1
@INADDR_ANY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [14 x i8] c"bind() failed\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"listen() failed\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"accept() failed\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.5 = private unnamed_addr constant [24 x i8] c"fdopen() reading failed\00", align 1
@.str.6 = private unnamed_addr constant [15 x i8] c"fgets() failed\00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.8 = private unnamed_addr constant [24 x i8] c"fdopen() writing failed\00", align 1
@.str.9 = private unnamed_addr constant [6 x i8] c"ls %s\00", align 1
@.str.10 = private unnamed_addr constant [15 x i8] c"popen() failed\00", align 1
@EOF = 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 %struct.sockaddr_in, align 4
%9 = alloca %struct.sockaddr_in, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca [1024 x i8], align 16
%13 = alloca [1024 x i8], align 16
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%17 = load i32, ptr @AF_INET, align 4
%18 = load i32, ptr @SOCK_STREAM, align 4
%19 = call i32 @socket(i32 noundef %17, i32 noundef %18, i32 noundef 0)
store i32 %19, ptr %6, align 4
%20 = load i32, ptr %6, align 4
%21 = icmp eq i32 %20, -1
br i1 %21, label %22, label %25
22: ; preds = %2
%23 = call i32 @perror(ptr noundef @.str)
%24 = call i32 @exit(i32 noundef 1) #3
unreachable
25: ; preds = %2
%26 = call i32 @memset(ptr noundef %8, i32 noundef 0, i32 noundef 12)
%27 = load i32, ptr @AF_INET, align 4
%28 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 2
store i32 %27, ptr %28, align 4
%29 = load i32, ptr @INADDR_ANY, align 4
%30 = call i32 @htonl(i32 noundef %29)
%31 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 1
%32 = getelementptr inbounds %struct.TYPE_2__, ptr %31, i32 0, i32 0
store i32 %30, ptr %32, align 4
%33 = call i32 @htons(i32 noundef 15000)
%34 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 0
store i32 %33, ptr %34, align 4
%35 = load i32, ptr %6, align 4
%36 = call i32 @bind(i32 noundef %35, ptr noundef %8, i32 noundef 12)
%37 = icmp eq i32 %36, -1
br i1 %37, label %38, label %41
38: ; preds = %25
%39 = call i32 @perror(ptr noundef @.str.1)
%40 = call i32 @exit(i32 noundef 1) #3
unreachable
41: ; preds = %25
%42 = load i32, ptr %6, align 4
%43 = call i32 @listen(i32 noundef %42, i32 noundef 5)
%44 = icmp eq i32 %43, -1
br i1 %44, label %45, label %48
45: ; preds = %41
%46 = call i32 @perror(ptr noundef @.str.2)
%47 = call i32 @exit(i32 noundef 1) #3
unreachable
48: ; preds = %41
store i32 12, ptr %10, align 4
%49 = load i32, ptr %6, align 4
%50 = call i32 @accept(i32 noundef %49, ptr noundef %9, ptr noundef %10)
store i32 %50, ptr %7, align 4
%51 = load i32, ptr %7, align 4
%52 = icmp eq i32 %51, -1
br i1 %52, label %53, label %.lr.ph2
.lr.ph2: ; preds = %48
br label %56
._crit_edge3: ; preds = %105
br label %53
53: ; preds = %._crit_edge3, %48
%54 = call i32 @perror(ptr noundef @.str.3)
%55 = call i32 @exit(i32 noundef 1) #3
unreachable
56: ; preds = %.lr.ph2, %105
%57 = load i32, ptr %7, align 4
%58 = call ptr @fdopen(i32 noundef %57, ptr noundef @.str.4)
store ptr %58, ptr %14, align 8
%59 = load ptr, ptr %14, align 8
%60 = icmp eq ptr %59, null
br i1 %60, label %61, label %64
61: ; preds = %56
%62 = call i32 @perror(ptr noundef @.str.5)
%63 = call i32 @exit(i32 noundef 1) #3
unreachable
64: ; preds = %56
%65 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
%66 = load ptr, ptr %14, align 8
%67 = call ptr @fgets(ptr noundef %65, i32 noundef 1024, ptr noundef %66)
%68 = icmp eq ptr %67, null
br i1 %68, label %69, label %72
69: ; preds = %64
%70 = call i32 @perror(ptr noundef @.str.6)
%71 = call i32 @exit(i32 noundef 1) #3
unreachable
72: ; preds = %64
%73 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
%74 = call i32 @sanitize(ptr noundef %73)
%75 = load i32, ptr %7, align 4
%76 = call ptr @fdopen(i32 noundef %75, ptr noundef @.str.7)
store ptr %76, ptr %15, align 8
%77 = load ptr, ptr %15, align 8
%78 = icmp eq ptr %77, null
br i1 %78, label %79, label %82
79: ; preds = %72
%80 = call i32 @perror(ptr noundef @.str.8)
%81 = call i32 @exit(i32 noundef 1) #3
unreachable
82: ; preds = %72
%83 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
%84 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
%85 = call i32 @snprintf(ptr noundef %83, i32 noundef 1024, ptr noundef @.str.9, ptr noundef %84)
%86 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
%87 = call ptr @popen(ptr noundef %86, ptr noundef @.str.4)
store ptr %87, ptr %16, align 8
%88 = icmp eq ptr %87, null
br i1 %88, label %89, label %92
89: ; preds = %82
%90 = call i32 @perror(ptr noundef @.str.10)
%91 = call i32 @exit(i32 noundef 1) #3
unreachable
92: ; preds = %82
%93 = load ptr, ptr %16, align 8
%94 = call i32 @getc(ptr noundef %93)
store i32 %94, ptr %11, align 4
%95 = load i32, ptr @EOF, align 4
%96 = icmp ne i32 %94, %95
br i1 %96, label %.lr.ph, label %105
.lr.ph: ; preds = %92
br label %97
97: ; preds = %.lr.ph, %97
%98 = load i32, ptr %11, align 4
%99 = load ptr, ptr %15, align 8
%100 = call i32 @putc(i32 noundef %98, ptr noundef %99)
%101 = load ptr, ptr %16, align 8
%102 = call i32 @getc(ptr noundef %101)
store i32 %102, ptr %11, align 4
%103 = load i32, ptr @EOF, align 4
%104 = icmp ne i32 %102, %103
br i1 %104, label %97, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %97
br label %105
105: ; preds = %._crit_edge, %92
%106 = load ptr, ptr %15, align 8
%107 = call i32 @fflush(ptr noundef %106)
%108 = load ptr, ptr %16, align 8
%109 = call i32 @pclose(ptr noundef %108)
%110 = load ptr, ptr %14, align 8
%111 = call i32 @fclose(ptr noundef %110)
%112 = load ptr, ptr %15, align 8
%113 = call i32 @fclose(ptr noundef %112)
store i32 12, ptr %10, align 4
%114 = load i32, ptr %6, align 4
%115 = call i32 @accept(i32 noundef %114, ptr noundef %9, ptr noundef %10)
store i32 %115, ptr %7, align 4
%116 = load i32, ptr %7, align 4
%117 = icmp eq i32 %116, -1
br i1 %117, label %._crit_edge3, label %56
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @htonl(i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @listen(i32 noundef, i32 noundef) #1
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @fdopen(i32 noundef, ptr noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @sanitize(ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @popen(ptr noundef, ptr noundef) #1
declare i32 @getc(ptr noundef) #1
declare i32 @putc(i32 noundef, ptr noundef) #1
declare i32 @fflush(ptr noundef) #1
declare i32 @pclose(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpje3hthqt.c'
source_filename = "/tmp/tmpje3hthqt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [11 x i8] c"fork error\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"/sdcard/host_heartbeat\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"su -c stop adbd\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"sleep 2\00", align 1
@.str.4 = private unnamed_addr constant [17 x i8] c"su -c start adbd\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 %struct.stat, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = call i32 (...) @fork()
store i32 %10, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp slt i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = call i32 @printf(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %46
15: ; preds = %2
%16 = load i32, ptr %6, align 4
%17 = icmp sgt i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %15
store i32 0, ptr %3, align 4
br label %46
19: ; preds = %15
store i32 0, ptr %9, align 4
br label %20
20: ; preds = %27, %19
%21 = load i32, ptr %9, align 4
%22 = call i32 (...) @getdtablesize()
%23 = icmp slt i32 %21, %22
br i1 %23, label %24, label %30
24: ; preds = %20
%25 = load i32, ptr %9, align 4
%26 = call i32 @close(i32 noundef %25)
br label %27
27: ; preds = %24
%28 = load i32, ptr %9, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %9, align 4
br label %20, !llvm.loop !6
30: ; preds = %20
%31 = call i32 (...) @setsid()
br label %32
32: ; preds = %30, %45
%33 = call i32 @sleep(i32 noundef 120)
%34 = call i32 @stat(ptr noundef @.str.1, ptr noundef %7)
%35 = call i32 @time(ptr noundef %8)
%36 = load i32, ptr %8, align 4
%37 = getelementptr inbounds %struct.stat, ptr %7, i32 0, i32 0
%38 = load i32, ptr %37, align 4
%39 = sub nsw i32 %36, %38
%40 = icmp sgt i32 %39, 120
br i1 %40, label %41, label %45
41: ; preds = %32
%42 = call i32 @system(ptr noundef @.str.2)
%43 = call i32 @system(ptr noundef @.str.3)
%44 = call i32 @system(ptr noundef @.str.4)
br label %45
45: ; preds = %41, %32
br label %32
46: ; preds = %18, %13
%47 = load i32, ptr %3, align 4
ret i32 %47
}
declare i32 @fork(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @getdtablesize(...) #1
declare i32 @close(i32 noundef) #1
declare i32 @setsid(...) #1
declare i32 @sleep(i32 noundef) #1
declare i32 @stat(ptr noundef, ptr noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpje3hthqt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [11 x i8] c"fork error\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"/sdcard/host_heartbeat\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"su -c stop adbd\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"sleep 2\00", align 1
@.str.4 = private unnamed_addr constant [17 x i8] c"su -c start adbd\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 %struct.stat, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = call i32 (...) @fork()
store i32 %10, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp slt i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = call i32 @printf(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %48
15: ; preds = %2
%16 = load i32, ptr %6, align 4
%17 = icmp sgt i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %15
store i32 0, ptr %3, align 4
br label %48
19: ; preds = %15
store i32 0, ptr %9, align 4
%20 = load i32, ptr %9, align 4
%21 = call i32 (...) @getdtablesize()
%22 = icmp slt i32 %20, %21
br i1 %22, label %.lr.ph, label %32
.lr.ph: ; preds = %19
br label %23
23: ; preds = %.lr.ph, %26
%24 = load i32, ptr %9, align 4
%25 = call i32 @close(i32 noundef %24)
br label %26
26: ; preds = %23
%27 = load i32, ptr %9, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %9, align 4
%29 = load i32, ptr %9, align 4
%30 = call i32 (...) @getdtablesize()
%31 = icmp slt i32 %29, %30
br i1 %31, label %23, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %32
32: ; preds = %._crit_edge, %19
%33 = call i32 (...) @setsid()
br label %34
34: ; preds = %47, %32
%35 = call i32 @sleep(i32 noundef 120)
%36 = call i32 @stat(ptr noundef @.str.1, ptr noundef %7)
%37 = call i32 @time(ptr noundef %8)
%38 = load i32, ptr %8, align 4
%39 = getelementptr inbounds %struct.stat, ptr %7, i32 0, i32 0
%40 = load i32, ptr %39, align 4
%41 = sub nsw i32 %38, %40
%42 = icmp sgt i32 %41, 120
br i1 %42, label %43, label %47
43: ; preds = %34
%44 = call i32 @system(ptr noundef @.str.2)
%45 = call i32 @system(ptr noundef @.str.3)
%46 = call i32 @system(ptr noundef @.str.4)
br label %47
47: ; preds = %43, %34
br label %34
48: ; preds = %18, %13
%49 = load i32, ptr %3, align 4
ret i32 %49
}
declare i32 @fork(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @getdtablesize(...) #1
declare i32 @close(i32 noundef) #1
declare i32 @setsid(...) #1
declare i32 @sleep(i32 noundef) #1
declare i32 @stat(ptr noundef, ptr noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpnxsh3otd.c'
source_filename = "/tmp/tmpnxsh3otd.c"
target datalayout = "e-m:e-p270: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 @sum_UINT8(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %15, %2
%7 = load i64, ptr %4, align 8
%8 = icmp sgt i64 %7, 0
br i1 %8, label %9, label %18
9: ; preds = %6
%10 = load ptr, ptr %3, align 8
%11 = getelementptr inbounds i32, ptr %10, i32 1
store ptr %11, ptr %3, align 8
%12 = load i32, ptr %10, align 4
%13 = load i32, ptr %5, align 4
%14 = add nsw i32 %13, %12
store i32 %14, ptr %5, align 4
br label %15
15: ; preds = %9
%16 = load i64, ptr %4, align 8
%17 = add nsw i64 %16, -1
store i64 %17, ptr %4, align 8
br label %6, !llvm.loop !6
18: ; preds = %6
%19 = load i32, ptr %5, align 4
ret i32 %19
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpnxsh3otd.c"
target datalayout = "e-m:e-p270: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 @sum_UINT8(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i32 0, ptr %5, align 4
%6 = load i64, ptr %4, align 8
%7 = icmp sgt i64 %6, 0
br i1 %7, label %.lr.ph, label %19
.lr.ph: ; preds = %2
br label %8
8: ; preds = %.lr.ph, %14
%9 = load ptr, ptr %3, align 8
%10 = getelementptr inbounds i32, ptr %9, i32 1
store ptr %10, ptr %3, align 8
%11 = load i32, ptr %9, align 4
%12 = load i32, ptr %5, align 4
%13 = add nsw i32 %12, %11
store i32 %13, ptr %5, align 4
br label %14
14: ; preds = %8
%15 = load i64, ptr %4, align 8
%16 = add nsw i64 %15, -1
store i64 %16, ptr %4, align 8
%17 = load i64, ptr %4, align 8
%18 = icmp sgt i64 %17, 0
br i1 %18, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %19
19: ; preds = %._crit_edge, %2
%20 = load i32, ptr %5, align 4
ret i32 %20
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmptp_d_s2b.c'
source_filename = "/tmp/tmptp_d_s2b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"There were %d arguments provided:\0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"argument #%d\09-\09%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %7)
store i32 0, ptr %6, align 4
br label %9
9: ; preds = %21, %2
%10 = load i32, ptr %6, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %24
13: ; preds = %9
%14 = load i32, ptr %6, align 4
%15 = load ptr, ptr %5, align 8
%16 = load i32, ptr %6, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds ptr, ptr %15, i64 %17
%19 = load ptr, ptr %18, align 8
%20 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %14, ptr noundef %19)
br label %21
21: ; preds = %13
%22 = load i32, ptr %6, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %6, align 4
br label %9, !llvm.loop !6
24: ; preds = %9
%25 = load i32, ptr %3, align 4
ret i32 %25
}
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/tmptp_d_s2b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"There were %d arguments provided:\0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"argument #%d\09-\09%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %7)
store i32 0, ptr %6, align 4
%9 = load i32, ptr %6, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph, label %26
.lr.ph: ; preds = %2
br label %12
12: ; preds = %.lr.ph, %20
%13 = load i32, ptr %6, align 4
%14 = load ptr, ptr %5, align 8
%15 = load i32, ptr %6, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds ptr, ptr %14, i64 %16
%18 = load ptr, ptr %17, align 8
%19 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %13, ptr noundef %18)
br label %20
20: ; preds = %12
%21 = load i32, ptr %6, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %6, align 4
%23 = load i32, ptr %6, align 4
%24 = load i32, ptr %4, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %26
26: ; preds = %._crit_edge, %2
%27 = load i32, ptr %3, align 4
ret i32 %27
}
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/tmp9n0370xa.c'
source_filename = "/tmp/tmp9n0370xa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lu\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp sgt i32 %8, 1
br i1 %9, label %10, label %15
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 1
%13 = load ptr, ptr %12, align 8
%14 = call i32 @atol(ptr noundef %13)
br label %16
15: ; preds = %2
br label %16
16: ; preds = %15, %10
%17 = phi i32 [ %14, %10 ], [ 75634, %15 ]
%18 = sext i32 %17 to i64
store i64 %18, ptr %6, align 8
%19 = load i32, ptr %4, align 4
%20 = icmp sgt i32 %19, 2
br i1 %20, label %21, label %26
21: ; preds = %16
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 2
%24 = load ptr, ptr %23, align 8
%25 = call i32 @atoi(ptr noundef %24)
br label %27
26: ; preds = %16
br label %27
27: ; preds = %26, %21
%28 = phi i32 [ %25, %21 ], [ 10, %26 ]
store i32 %28, ptr %7, align 4
br label %29
29: ; preds = %33, %27
%30 = load i32, ptr %7, align 4
%31 = add nsw i32 %30, -1
store i32 %31, ptr %7, align 4
%32 = icmp ne i32 %30, 0
br i1 %32, label %33, label %38
33: ; preds = %29
%34 = load i64, ptr %6, align 8
%35 = call i64 @expt_mod(i64 noundef %34, i32 noundef 1547, i32 noundef 91261)
store i64 %35, ptr %6, align 8
%36 = urem i64 %35, 2
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str, i64 noundef %36)
br label %29, !llvm.loop !6
38: ; preds = %29
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret i32 0
}
declare i32 @atol(ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i64 @expt_mod(i64 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/tmp9n0370xa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lu\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp sgt i32 %8, 1
br i1 %9, label %10, label %15
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 1
%13 = load ptr, ptr %12, align 8
%14 = call i32 @atol(ptr noundef %13)
br label %16
15: ; preds = %2
br label %16
16: ; preds = %15, %10
%17 = phi i32 [ %14, %10 ], [ 75634, %15 ]
%18 = sext i32 %17 to i64
store i64 %18, ptr %6, align 8
%19 = load i32, ptr %4, align 4
%20 = icmp sgt i32 %19, 2
br i1 %20, label %21, label %26
21: ; preds = %16
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 2
%24 = load ptr, ptr %23, align 8
%25 = call i32 @atoi(ptr noundef %24)
br label %27
26: ; preds = %16
br label %27
27: ; preds = %26, %21
%28 = phi i32 [ %25, %21 ], [ 10, %26 ]
store i32 %28, ptr %7, align 4
%29 = load i32, ptr %7, align 4
%30 = add nsw i32 %29, -1
store i32 %30, ptr %7, align 4
%31 = icmp ne i32 %29, 0
br i1 %31, label %.lr.ph, label %40
.lr.ph: ; preds = %27
br label %32
32: ; preds = %.lr.ph, %32
%33 = load i64, ptr %6, align 8
%34 = call i64 @expt_mod(i64 noundef %33, i32 noundef 1547, i32 noundef 91261)
store i64 %34, ptr %6, align 8
%35 = urem i64 %34, 2
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str, i64 noundef %35)
%37 = load i32, ptr %7, align 4
%38 = add nsw i32 %37, -1
store i32 %38, ptr %7, align 4
%39 = icmp ne i32 %37, 0
br i1 %39, label %32, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %40
40: ; preds = %._crit_edge, %27
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret i32 0
}
declare i32 @atol(ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i64 @expt_mod(i64 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/tmpe2ephwbo.c'
source_filename = "/tmp/tmpe2ephwbo.c"
target datalayout = "e-m:e-p270: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.iwreq = type { ptr, %struct.TYPE_3__ }
%struct.TYPE_3__ = type { %struct.TYPE_4__ }
%struct.TYPE_4__ = type { ptr, i64, i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [7 x i8] c"apcli0\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"p\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local zeroext i8 @get_failreason() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.iwreq, align 8
%3 = alloca [10 x i8], align 1
%4 = load i32, ptr @AF_INET, align 4
%5 = load i32, ptr @SOCK_DGRAM, align 4
%6 = call i32 @socket(i32 noundef %4, i32 noundef %5, i32 noundef 0)
store i32 %6, ptr %1, align 4
%7 = getelementptr inbounds [10 x i8], ptr %3, i64 0, i64 0
%8 = call i32 @memset(ptr noundef %7, i32 noundef 0, i32 noundef 10)
%9 = getelementptr inbounds %struct.iwreq, ptr %2, i32 0, i32 0
%10 = load ptr, ptr %9, align 8
%11 = call i32 @strcpy(ptr noundef %10, ptr noundef @.str)
%12 = getelementptr inbounds [10 x i8], ptr %3, i64 0, i64 0
%13 = call i32 @strcpy(ptr noundef %12, ptr noundef @.str.1)
%14 = getelementptr inbounds [10 x i8], ptr %3, i64 0, i64 0
%15 = call i32 @strlen(ptr noundef %14)
%16 = getelementptr inbounds %struct.iwreq, ptr %2, i32 0, i32 1
%17 = getelementptr inbounds %struct.TYPE_3__, ptr %16, i32 0, i32 0
%18 = getelementptr inbounds %struct.TYPE_4__, ptr %17, i32 0, i32 2
store i32 %15, ptr %18, align 8
%19 = getelementptr inbounds [10 x i8], ptr %3, i64 0, i64 0
%20 = getelementptr inbounds %struct.iwreq, ptr %2, i32 0, i32 1
%21 = getelementptr inbounds %struct.TYPE_3__, ptr %20, i32 0, i32 0
%22 = getelementptr inbounds %struct.TYPE_4__, ptr %21, i32 0, i32 0
store ptr %19, ptr %22, align 8
%23 = getelementptr inbounds %struct.iwreq, ptr %2, i32 0, i32 1
%24 = getelementptr inbounds %struct.TYPE_3__, ptr %23, i32 0, i32 0
%25 = getelementptr inbounds %struct.TYPE_4__, ptr %24, i32 0, i32 1
store i64 0, ptr %25, align 8
%26 = load i32, ptr %1, align 4
%27 = call i32 @ioctl(i32 noundef %26, i32 noundef 35838, ptr noundef %2)
%28 = load i32, ptr %1, align 4
%29 = call i32 @close(i32 noundef %28)
%30 = getelementptr inbounds [10 x i8], ptr %3, i64 0, i64 0
%31 = load i8, ptr %30, align 1
ret i8 %31
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe2ephwbo.c"
target datalayout = "e-m:e-p270: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.iwreq = type { ptr, %struct.TYPE_3__ }
%struct.TYPE_3__ = type { %struct.TYPE_4__ }
%struct.TYPE_4__ = type { ptr, i64, i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [7 x i8] c"apcli0\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"p\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local zeroext i8 @get_failreason() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.iwreq, align 8
%3 = alloca [10 x i8], align 1
%4 = load i32, ptr @AF_INET, align 4
%5 = load i32, ptr @SOCK_DGRAM, align 4
%6 = call i32 @socket(i32 noundef %4, i32 noundef %5, i32 noundef 0)
store i32 %6, ptr %1, align 4
%7 = getelementptr inbounds [10 x i8], ptr %3, i64 0, i64 0
%8 = call i32 @memset(ptr noundef %7, i32 noundef 0, i32 noundef 10)
%9 = getelementptr inbounds %struct.iwreq, ptr %2, i32 0, i32 0
%10 = load ptr, ptr %9, align 8
%11 = call i32 @strcpy(ptr noundef %10, ptr noundef @.str)
%12 = getelementptr inbounds [10 x i8], ptr %3, i64 0, i64 0
%13 = call i32 @strcpy(ptr noundef %12, ptr noundef @.str.1)
%14 = getelementptr inbounds [10 x i8], ptr %3, i64 0, i64 0
%15 = call i32 @strlen(ptr noundef %14)
%16 = getelementptr inbounds %struct.iwreq, ptr %2, i32 0, i32 1
%17 = getelementptr inbounds %struct.TYPE_3__, ptr %16, i32 0, i32 0
%18 = getelementptr inbounds %struct.TYPE_4__, ptr %17, i32 0, i32 2
store i32 %15, ptr %18, align 8
%19 = getelementptr inbounds [10 x i8], ptr %3, i64 0, i64 0
%20 = getelementptr inbounds %struct.iwreq, ptr %2, i32 0, i32 1
%21 = getelementptr inbounds %struct.TYPE_3__, ptr %20, i32 0, i32 0
%22 = getelementptr inbounds %struct.TYPE_4__, ptr %21, i32 0, i32 0
store ptr %19, ptr %22, align 8
%23 = getelementptr inbounds %struct.iwreq, ptr %2, i32 0, i32 1
%24 = getelementptr inbounds %struct.TYPE_3__, ptr %23, i32 0, i32 0
%25 = getelementptr inbounds %struct.TYPE_4__, ptr %24, i32 0, i32 1
store i64 0, ptr %25, align 8
%26 = load i32, ptr %1, align 4
%27 = call i32 @ioctl(i32 noundef %26, i32 noundef 35838, ptr noundef %2)
%28 = load i32, ptr %1, align 4
%29 = call i32 @close(i32 noundef %28)
%30 = getelementptr inbounds [10 x i8], ptr %3, i64 0, i64 0
%31 = load i8, ptr %30, align 1
ret i8 %31
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkvk3m5ki.c'
source_filename = "/tmp/tmpkvk3m5ki.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\09\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"N\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @has_diff_genotype(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
store i32 0, ptr %7, align 4
%10 = load ptr, ptr %4, align 8
%11 = call ptr @strtok(ptr noundef %10, ptr noundef @.str)
store ptr %11, ptr %8, align 8
store i32 0, ptr %9, align 4
br label %12
12: ; preds = %40, %3
%13 = load ptr, ptr %8, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %15, label %44
15: ; preds = %12
%16 = load i32, ptr %9, align 4
%17 = load i32, ptr %5, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %23, label %19
19: ; preds = %15
%20 = load ptr, ptr %8, align 8
%21 = call i64 @strcmp(ptr noundef %20, ptr noundef @.str.1)
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %19, %15
br label %40
24: ; preds = %19
%25 = load ptr, ptr %6, align 8
%26 = call i64 @strcmp(ptr noundef %25, ptr noundef @.str.1)
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %32
28: ; preds = %24
%29 = load ptr, ptr %6, align 8
%30 = load ptr, ptr %8, align 8
%31 = call i32 @strcpy(ptr noundef %29, ptr noundef %30)
br label %39
32: ; preds = %24
%33 = load ptr, ptr %6, align 8
%34 = load ptr, ptr %8, align 8
%35 = call i64 @strcmp(ptr noundef %33, ptr noundef %34)
%36 = icmp ne i64 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %32
store i32 1, ptr %7, align 4
br label %44
38: ; preds = %32
br label %39
39: ; preds = %38, %28
br label %40
40: ; preds = %39, %23
%41 = load i32, ptr %9, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %9, align 4
%43 = call ptr @strtok(ptr noundef null, ptr noundef @.str)
store ptr %43, ptr %8, align 8
br label %12, !llvm.loop !6
44: ; preds = %37, %12
%45 = load i32, ptr %7, align 4
ret i32 %45
}
declare ptr @strtok(ptr noundef, ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkvk3m5ki.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\09\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"N\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @has_diff_genotype(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
store i32 0, ptr %7, align 4
%10 = load ptr, ptr %4, align 8
%11 = call ptr @strtok(ptr noundef %10, ptr noundef @.str)
store ptr %11, ptr %8, align 8
store i32 0, ptr %9, align 4
%12 = load ptr, ptr %8, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %3
br label %14
14: ; preds = %.lr.ph, %39
%15 = load i32, ptr %9, align 4
%16 = load i32, ptr %5, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %22, label %18
18: ; preds = %14
%19 = load ptr, ptr %8, align 8
%20 = call i64 @strcmp(ptr noundef %19, ptr noundef @.str.1)
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %18, %14
br label %39
23: ; preds = %18
%24 = load ptr, ptr %6, align 8
%25 = call i64 @strcmp(ptr noundef %24, ptr noundef @.str.1)
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %31
27: ; preds = %23
%28 = load ptr, ptr %6, align 8
%29 = load ptr, ptr %8, align 8
%30 = call i32 @strcpy(ptr noundef %28, ptr noundef %29)
br label %38
31: ; preds = %23
%32 = load ptr, ptr %6, align 8
%33 = load ptr, ptr %8, align 8
%34 = call i64 @strcmp(ptr noundef %32, ptr noundef %33)
%35 = icmp ne i64 %34, 0
br i1 %35, label %36, label %37
36: ; preds = %31
store i32 1, ptr %7, align 4
br label %45
37: ; preds = %31
br label %38
38: ; preds = %37, %27
br label %39
39: ; preds = %38, %22
%40 = load i32, ptr %9, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %9, align 4
%42 = call ptr @strtok(ptr noundef null, ptr noundef @.str)
store ptr %42, ptr %8, align 8
%43 = load ptr, ptr %8, align 8
%44 = icmp ne ptr %43, null
br i1 %44, label %14, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %39
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %3
br label %45
45: ; preds = %.loopexit, %36
%46 = load i32, ptr %7, align 4
ret i32 %46
}
declare ptr @strtok(ptr noundef, ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpk4tag8bx.c'
source_filename = "/tmp/tmpk4tag8bx.c"
target datalayout = "e-m:e-p270: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/tmpk4tag8bx.c"
target datalayout = "e-m:e-p270: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/tmprwa1lg7c.c'
source_filename = "/tmp/tmprwa1lg7c.c"
target datalayout = "e-m:e-p270: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 @ft_atoi(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
br label %5
5: ; preds = %10, %1
%6 = load ptr, ptr %2, align 8
%7 = load i8, ptr %6, align 1
%8 = call i64 @ft_isspace(i8 noundef signext %7)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %5
%11 = load ptr, ptr %2, align 8
%12 = getelementptr inbounds i8, ptr %11, i32 1
store ptr %12, ptr %2, align 8
br label %5, !llvm.loop !6
13: ; preds = %5
%14 = load ptr, ptr %2, align 8
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 43
br i1 %17, label %18, label %21
18: ; preds = %13
%19 = load ptr, ptr %2, align 8
%20 = getelementptr inbounds i8, ptr %19, i32 1
store ptr %20, ptr %2, align 8
br label %30
21: ; preds = %13
%22 = load ptr, ptr %2, align 8
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 45
br i1 %25, label %26, label %29
26: ; preds = %21
store i32 1, ptr %3, align 4
%27 = load ptr, ptr %2, align 8
%28 = getelementptr inbounds i8, ptr %27, i32 1
store ptr %28, ptr %2, align 8
br label %29
29: ; preds = %26, %21
br label %30
30: ; preds = %29, %18
br label %31
31: ; preds = %43, %30
%32 = load ptr, ptr %2, align 8
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp sle i32 %34, 57
br i1 %35, label %36, label %41
36: ; preds = %31
%37 = load ptr, ptr %2, align 8
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = icmp sge i32 %39, 48
br label %41
41: ; preds = %36, %31
%42 = phi i1 [ false, %31 ], [ %40, %36 ]
br i1 %42, label %43, label %53
43: ; preds = %41
%44 = load i32, ptr %4, align 4
%45 = mul nsw i32 %44, 10
%46 = load ptr, ptr %2, align 8
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
%49 = sub nsw i32 %48, 48
%50 = sub nsw i32 %45, %49
store i32 %50, ptr %4, align 4
%51 = load ptr, ptr %2, align 8
%52 = getelementptr inbounds i8, ptr %51, i32 1
store ptr %52, ptr %2, align 8
br label %31, !llvm.loop !8
53: ; preds = %41
%54 = load i32, ptr %3, align 4
%55 = icmp ne i32 %54, 0
br i1 %55, label %59, label %56
56: ; preds = %53
%57 = load i32, ptr %4, align 4
%58 = sub nsw i32 0, %57
store i32 %58, ptr %4, align 4
br label %59
59: ; preds = %56, %53
%60 = load i32, ptr %4, align 4
ret i32 %60
}
declare i64 @ft_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/tmprwa1lg7c.c"
target datalayout = "e-m:e-p270: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 @ft_atoi(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
%5 = load ptr, ptr %2, align 8
%6 = load i8, ptr %5, align 1
%7 = call i64 @ft_isspace(i8 noundef signext %6)
%8 = icmp ne i64 %7, 0
br i1 %8, label %.lr.ph, label %16
.lr.ph: ; preds = %1
br label %9
9: ; preds = %.lr.ph, %9
%10 = load ptr, ptr %2, align 8
%11 = getelementptr inbounds i8, ptr %10, i32 1
store ptr %11, ptr %2, align 8
%12 = load ptr, ptr %2, align 8
%13 = load i8, ptr %12, align 1
%14 = call i64 @ft_isspace(i8 noundef signext %13)
%15 = icmp ne i64 %14, 0
br i1 %15, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %9
br label %16
16: ; preds = %._crit_edge, %1
%17 = load ptr, ptr %2, align 8
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 43
br i1 %20, label %21, label %24
21: ; preds = %16
%22 = load ptr, ptr %2, align 8
%23 = getelementptr inbounds i8, ptr %22, i32 1
store ptr %23, ptr %2, align 8
br label %33
24: ; preds = %16
%25 = load ptr, ptr %2, align 8
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 45
br i1 %28, label %29, label %32
29: ; preds = %24
store i32 1, ptr %3, align 4
%30 = load ptr, ptr %2, align 8
%31 = getelementptr inbounds i8, ptr %30, i32 1
store ptr %31, ptr %2, align 8
br label %32
32: ; preds = %29, %24
br label %33
33: ; preds = %32, %21
br label %34
34: ; preds = %46, %33
%35 = load ptr, ptr %2, align 8
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp sle i32 %37, 57
br i1 %38, label %39, label %44
39: ; preds = %34
%40 = load ptr, ptr %2, align 8
%41 = load i8, ptr %40, align 1
%42 = sext i8 %41 to i32
%43 = icmp sge i32 %42, 48
br label %44
44: ; preds = %39, %34
%45 = phi i1 [ false, %34 ], [ %43, %39 ]
br i1 %45, label %46, label %56
46: ; preds = %44
%47 = load i32, ptr %4, align 4
%48 = mul nsw i32 %47, 10
%49 = load ptr, ptr %2, align 8
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = sub nsw i32 %51, 48
%53 = sub nsw i32 %48, %52
store i32 %53, ptr %4, align 4
%54 = load ptr, ptr %2, align 8
%55 = getelementptr inbounds i8, ptr %54, i32 1
store ptr %55, ptr %2, align 8
br label %34, !llvm.loop !8
56: ; preds = %44
%57 = load i32, ptr %3, align 4
%58 = icmp ne i32 %57, 0
br i1 %58, label %62, label %59
59: ; preds = %56
%60 = load i32, ptr %4, align 4
%61 = sub nsw i32 0, %60
store i32 %61, ptr %4, align 4
br label %62
62: ; preds = %59, %56
%63 = load i32, ptr %4, align 4
ret i32 %63
}
declare i64 @ft_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/tmp170z5q1w.c'
source_filename = "/tmp/tmp170z5q1w.c"
target datalayout = "e-m:e-p270: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 [35 x i8] c"Multi-threaded Distance Generator \00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"(C) 2015-2016 LRR-TUM v%s\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"0.2\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printTitle() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = load i32, ptr @stderr, align 4
%4 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %3, ptr noundef @.str.1, ptr noundef @.str.2)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp170z5q1w.c"
target datalayout = "e-m:e-p270: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 [35 x i8] c"Multi-threaded Distance Generator \00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"(C) 2015-2016 LRR-TUM v%s\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"0.2\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printTitle() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = load i32, ptr @stderr, align 4
%4 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %3, ptr noundef @.str.1, ptr noundef @.str.2)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprj7_6bhd.c'
source_filename = "/tmp/tmprj7_6bhd.c"
target datalayout = "e-m:e-p270: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/tmprj7_6bhd.c"
target datalayout = "e-m:e-p270: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/tmpggn7hi7k.c'
source_filename = "/tmp/tmpggn7hi7k.c"
target datalayout = "e-m:e-p270: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 @xor_encode_uint(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i64 %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store i64 %4, ptr %10, align 8
store i32 0, ptr %11, align 4
br label %12
12: ; preds = %17, %5
%13 = load i32, ptr %11, align 4
%14 = zext i32 %13 to i64
%15 = load i64, ptr %8, align 8
%16 = icmp ult i64 %14, %15
br i1 %16, label %17, label %37
17: ; preds = %12
%18 = load ptr, ptr %7, align 8
%19 = load i32, ptr %11, align 4
%20 = zext i32 %19 to i64
%21 = getelementptr inbounds i32, ptr %18, i64 %20
%22 = load i32, ptr %21, align 4
%23 = load ptr, ptr %9, align 8
%24 = load i32, ptr %11, align 4
%25 = zext i32 %24 to i64
%26 = load i64, ptr %10, align 8
%27 = urem i64 %25, %26
%28 = getelementptr inbounds i32, ptr %23, i64 %27
%29 = load i32, ptr %28, align 4
%30 = xor i32 %22, %29
%31 = load ptr, ptr %6, align 8
%32 = load i32, ptr %11, align 4
%33 = zext i32 %32 to i64
%34 = getelementptr inbounds i32, ptr %31, i64 %33
store i32 %30, ptr %34, align 4
%35 = load i32, ptr %11, align 4
%36 = add i32 %35, 1
store i32 %36, ptr %11, align 4
br label %12, !llvm.loop !6
37: ; preds = %12
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpggn7hi7k.c"
target datalayout = "e-m:e-p270: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 @xor_encode_uint(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i64 %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store i64 %4, ptr %10, align 8
store i32 0, ptr %11, align 4
%12 = load i32, ptr %11, align 4
%13 = zext i32 %12 to i64
%14 = load i64, ptr %8, align 8
%15 = icmp ult i64 %13, %14
br i1 %15, label %.lr.ph, label %40
.lr.ph: ; preds = %5
br label %16
16: ; preds = %.lr.ph, %16
%17 = load ptr, ptr %7, align 8
%18 = load i32, ptr %11, align 4
%19 = zext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %17, i64 %19
%21 = load i32, ptr %20, align 4
%22 = load ptr, ptr %9, align 8
%23 = load i32, ptr %11, align 4
%24 = zext i32 %23 to i64
%25 = load i64, ptr %10, align 8
%26 = urem i64 %24, %25
%27 = getelementptr inbounds i32, ptr %22, i64 %26
%28 = load i32, ptr %27, align 4
%29 = xor i32 %21, %28
%30 = load ptr, ptr %6, align 8
%31 = load i32, ptr %11, align 4
%32 = zext i32 %31 to i64
%33 = getelementptr inbounds i32, ptr %30, i64 %32
store i32 %29, ptr %33, align 4
%34 = load i32, ptr %11, align 4
%35 = add i32 %34, 1
store i32 %35, ptr %11, align 4
%36 = load i32, ptr %11, align 4
%37 = zext i32 %36 to i64
%38 = load i64, ptr %8, align 8
%39 = icmp ult i64 %37, %38
br i1 %39, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %40
40: ; preds = %._crit_edge, %5
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp9tn3v9x4.c'
source_filename = "/tmp/tmp9tn3v9x4.c"
target datalayout = "e-m:e-p270: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 @reverseWords(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %8, label %7
7: ; preds = %1
br label %46
8: ; preds = %1
%9 = load ptr, ptr %2, align 8
store ptr %9, ptr %3, align 8
%10 = load ptr, ptr %2, align 8
store ptr %10, ptr %4, align 8
br label %11
11: ; preds = %40, %8
%12 = load ptr, ptr %4, align 8
%13 = load i8, ptr %12, align 1
%14 = icmp ne i8 %13, 0
br i1 %14, label %15, label %41
15: ; preds = %11
%16 = load ptr, ptr %4, align 8
%17 = getelementptr inbounds i8, ptr %16, i32 1
store ptr %17, ptr %4, align 8
%18 = load ptr, ptr %4, align 8
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %27
22: ; preds = %15
%23 = load ptr, ptr %3, align 8
%24 = load ptr, ptr %4, align 8
%25 = getelementptr inbounds i8, ptr %24, i64 -1
%26 = call i32 @reverse(ptr noundef %23, ptr noundef %25)
br label %40
27: ; preds = %15
%28 = load ptr, ptr %4, align 8
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 32
br i1 %31, label %32, label %39
32: ; preds = %27
%33 = load ptr, ptr %3, align 8
%34 = load ptr, ptr %4, align 8
%35 = getelementptr inbounds i8, ptr %34, i64 -1
%36 = call i32 @reverse(ptr noundef %33, ptr noundef %35)
%37 = load ptr, ptr %4, align 8
%38 = getelementptr inbounds i8, ptr %37, i64 1
store ptr %38, ptr %3, align 8
br label %39
39: ; preds = %32, %27
br label %40
40: ; preds = %39, %22
br label %11, !llvm.loop !6
41: ; preds = %11
%42 = load ptr, ptr %2, align 8
%43 = load ptr, ptr %4, align 8
%44 = getelementptr inbounds i8, ptr %43, i64 -1
%45 = call i32 @reverse(ptr noundef %42, ptr noundef %44)
br label %46
46: ; preds = %41, %7
ret void
}
declare i32 @reverse(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9tn3v9x4.c"
target datalayout = "e-m:e-p270: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 @reverseWords(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %8, label %7
7: ; preds = %1
br label %48
8: ; preds = %1
%9 = load ptr, ptr %2, align 8
store ptr %9, ptr %3, align 8
%10 = load ptr, ptr %2, align 8
store ptr %10, ptr %4, align 8
%11 = load ptr, ptr %4, align 8
%12 = load i8, ptr %11, align 1
%13 = icmp ne i8 %12, 0
br i1 %13, label %.lr.ph, label %43
.lr.ph: ; preds = %8
br label %14
14: ; preds = %.lr.ph, %39
%15 = load ptr, ptr %4, align 8
%16 = getelementptr inbounds i8, ptr %15, i32 1
store ptr %16, ptr %4, align 8
%17 = load ptr, ptr %4, align 8
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %26
21: ; preds = %14
%22 = load ptr, ptr %3, align 8
%23 = load ptr, ptr %4, align 8
%24 = getelementptr inbounds i8, ptr %23, i64 -1
%25 = call i32 @reverse(ptr noundef %22, ptr noundef %24)
br label %39
26: ; preds = %14
%27 = load ptr, ptr %4, align 8
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 32
br i1 %30, label %31, label %38
31: ; preds = %26
%32 = load ptr, ptr %3, align 8
%33 = load ptr, ptr %4, align 8
%34 = getelementptr inbounds i8, ptr %33, i64 -1
%35 = call i32 @reverse(ptr noundef %32, ptr noundef %34)
%36 = load ptr, ptr %4, align 8
%37 = getelementptr inbounds i8, ptr %36, i64 1
store ptr %37, ptr %3, align 8
br label %38
38: ; preds = %31, %26
br label %39
39: ; preds = %38, %21
%40 = load ptr, ptr %4, align 8
%41 = load i8, ptr %40, align 1
%42 = icmp ne i8 %41, 0
br i1 %42, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %39
br label %43
43: ; preds = %._crit_edge, %8
%44 = load ptr, ptr %2, align 8
%45 = load ptr, ptr %4, align 8
%46 = getelementptr inbounds i8, ptr %45, i64 -1
%47 = call i32 @reverse(ptr noundef %44, ptr noundef %46)
br label %48
48: ; preds = %43, %7
ret void
}
declare i32 @reverse(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp7ihmm7f5.c'
source_filename = "/tmp/tmp7ihmm7f5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_GETFL = dso_local global i32 0, align 4
@O_NONBLOCK = dso_local global i32 0, align 4
@F_SETFL = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @block(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = load i32, ptr @F_GETFL, align 4
%6 = call i32 (i32, i32, ...) @fcntl(i32 noundef %4, i32 noundef %5)
store i32 %6, ptr %3, align 4
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %1
br label %18
9: ; preds = %1
%10 = load i32, ptr @O_NONBLOCK, align 4
%11 = xor i32 %10, -1
%12 = load i32, ptr %3, align 4
%13 = and i32 %12, %11
store i32 %13, ptr %3, align 4
%14 = load i32, ptr %2, align 4
%15 = load i32, ptr @F_SETFL, align 4
%16 = load i32, ptr %3, align 4
%17 = call i32 (i32, i32, ...) @fcntl(i32 noundef %14, i32 noundef %15, i32 noundef %16)
br label %18
18: ; preds = %9, %8
ret void
}
declare i32 @fcntl(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/tmp7ihmm7f5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_GETFL = dso_local global i32 0, align 4
@O_NONBLOCK = dso_local global i32 0, align 4
@F_SETFL = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @block(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = load i32, ptr @F_GETFL, align 4
%6 = call i32 (i32, i32, ...) @fcntl(i32 noundef %4, i32 noundef %5)
store i32 %6, ptr %3, align 4
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %1
br label %18
9: ; preds = %1
%10 = load i32, ptr @O_NONBLOCK, align 4
%11 = xor i32 %10, -1
%12 = load i32, ptr %3, align 4
%13 = and i32 %12, %11
store i32 %13, ptr %3, align 4
%14 = load i32, ptr %2, align 4
%15 = load i32, ptr @F_SETFL, align 4
%16 = load i32, ptr %3, align 4
%17 = call i32 (i32, i32, ...) @fcntl(i32 noundef %14, i32 noundef %15, i32 noundef %16)
br label %18
18: ; preds = %9, %8
ret void
}
declare i32 @fcntl(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/tmpxe7vztkc.c'
source_filename = "/tmp/tmpxe7vztkc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 2, ptr %2, align 4
store i32 1, ptr %3, align 4
%4 = load i32, ptr %2, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp slt i32 %4, %5
%7 = zext i1 %6 to i32
%8 = call i32 @__VERIFIER_assert(i32 noundef %7)
ret i32 0
}
declare i32 @__VERIFIER_assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxe7vztkc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 2, ptr %2, align 4
store i32 1, ptr %3, align 4
%4 = load i32, ptr %2, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp slt i32 %4, %5
%7 = zext i1 %6 to i32
%8 = call i32 @__VERIFIER_assert(i32 noundef %7)
ret i32 0
}
declare i32 @__VERIFIER_assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpoljzixf8.c'
source_filename = "/tmp/tmpoljzixf8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"dec = %d; octal = %o; hex = %x\0A\00", align 1
@.str.1 = private unnamed_addr constant [35 x i8] c"dec = %#d; octal = %#o; hex = %#x\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i16, align 2
store i32 0, ptr %1, align 4
store i16 100, ptr %2, align 2
%3 = load i16, ptr %2, align 2
%4 = load i16, ptr %2, align 2
%5 = load i16, ptr %2, align 2
%6 = call i32 @printf(ptr noundef @.str, i16 noundef signext %3, i16 noundef signext %4, i16 noundef signext %5)
%7 = load i16, ptr %2, align 2
%8 = load i16, ptr %2, align 2
%9 = load i16, ptr %2, align 2
%10 = call i32 @printf(ptr noundef @.str.1, i16 noundef signext %7, i16 noundef signext %8, i16 noundef signext %9)
ret i32 0
}
declare i32 @printf(ptr noundef, i16 noundef signext, i16 noundef signext, i16 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoljzixf8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"dec = %d; octal = %o; hex = %x\0A\00", align 1
@.str.1 = private unnamed_addr constant [35 x i8] c"dec = %#d; octal = %#o; hex = %#x\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i16, align 2
store i32 0, ptr %1, align 4
store i16 100, ptr %2, align 2
%3 = load i16, ptr %2, align 2
%4 = load i16, ptr %2, align 2
%5 = load i16, ptr %2, align 2
%6 = call i32 @printf(ptr noundef @.str, i16 noundef signext %3, i16 noundef signext %4, i16 noundef signext %5)
%7 = load i16, ptr %2, align 2
%8 = load i16, ptr %2, align 2
%9 = load i16, ptr %2, align 2
%10 = call i32 @printf(ptr noundef @.str.1, i16 noundef signext %7, i16 noundef signext %8, i16 noundef signext %9)
ret i32 0
}
declare i32 @printf(ptr noundef, i16 noundef signext, i16 noundef signext, i16 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp697tw72q.c'
source_filename = "/tmp/tmp697tw72q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"quotes.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [200 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca [20 x i8], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%10 = call i32 (...) @getNum()
store i32 %10, ptr %3, align 4
%11 = load i32, ptr %3, align 4
%12 = icmp eq i32 %11, 40
br i1 %12, label %13, label %14
13: ; preds = %0
store i32 57, ptr %3, align 4
br label %14
14: ; preds = %13, %0
%15 = load i32, ptr %3, align 4
%16 = icmp eq i32 %15, 50
br i1 %16, label %17, label %18
17: ; preds = %14
store i32 58, ptr %3, align 4
br label %18
18: ; preds = %17, %14
%19 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %19, ptr %4, align 8
store i32 0, ptr %5, align 4
br label %20
20: ; preds = %35, %18
%21 = load i32, ptr %5, align 4
%22 = load i32, ptr %3, align 4
%23 = icmp ne i32 %21, %22
br i1 %23, label %24, label %36
24: ; preds = %20
%25 = load ptr, ptr %4, align 8
%26 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 0
%27 = call i32 @fscanf(ptr noundef %25, ptr noundef @.str.2, ptr noundef %26)
%28 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 0
%29 = load i8, ptr %28, align 16
%30 = call i64 @isdigit(i8 noundef signext %29)
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %35
32: ; preds = %24
%33 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 0
%34 = call i32 @atoi(ptr noundef %33)
store i32 %34, ptr %5, align 4
br label %35
35: ; preds = %32, %24
br label %20, !llvm.loop !6
36: ; preds = %20
%37 = getelementptr inbounds [200 x i8], ptr %2, i64 0, i64 0
%38 = load ptr, ptr %4, align 8
%39 = call i32 @fgets(ptr noundef %37, i32 noundef 180, ptr noundef %38)
%40 = load ptr, ptr %4, align 8
%41 = call i32 @fclose(ptr noundef %40)
%42 = getelementptr inbounds [200 x i8], ptr %2, i64 0, i64 0
%43 = call i32 @strlen(ptr noundef %42)
store i32 %43, ptr %8, align 4
store i32 1, ptr %7, align 4
br label %44
44: ; preds = %57, %36
%45 = load i32, ptr %7, align 4
%46 = load i32, ptr %8, align 4
%47 = icmp sle i32 %45, %46
br i1 %47, label %48, label %60
48: ; preds = %44
%49 = load i32, ptr %7, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [200 x i8], ptr %2, i64 0, i64 %50
%52 = load i8, ptr %51, align 1
%53 = load i32, ptr %7, align 4
%54 = sub nsw i32 %53, 1
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [200 x i8], ptr %2, i64 0, i64 %55
store i8 %52, ptr %56, align 1
br label %57
57: ; preds = %48
%58 = load i32, ptr %7, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %7, align 4
br label %44, !llvm.loop !8
60: ; preds = %44
%61 = getelementptr inbounds [200 x i8], ptr %2, i64 0, i64 0
%62 = call ptr @strchr(ptr noundef %61, i8 noundef signext 10)
store ptr %62, ptr %9, align 8
%63 = icmp ne ptr %62, null
br i1 %63, label %64, label %66
64: ; preds = %60
%65 = load ptr, ptr %9, align 8
store i8 0, ptr %65, align 1
br label %66
66: ; preds = %64, %60
%67 = getelementptr inbounds [200 x i8], ptr %2, i64 0, i64 0
%68 = load i32, ptr %3, align 4
%69 = call i32 @sendMessage(ptr noundef %67, i32 noundef %68)
ret i32 0
}
declare i32 @getNum(...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @isdigit(i8 noundef signext) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @sendMessage(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp697tw72q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"quotes.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [200 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca [20 x i8], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%10 = call i32 (...) @getNum()
store i32 %10, ptr %3, align 4
%11 = load i32, ptr %3, align 4
%12 = icmp eq i32 %11, 40
br i1 %12, label %13, label %14
13: ; preds = %0
store i32 57, ptr %3, align 4
br label %14
14: ; preds = %13, %0
%15 = load i32, ptr %3, align 4
%16 = icmp eq i32 %15, 50
br i1 %16, label %17, label %18
17: ; preds = %14
store i32 58, ptr %3, align 4
br label %18
18: ; preds = %17, %14
%19 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %19, ptr %4, align 8
store i32 0, ptr %5, align 4
%20 = load i32, ptr %5, align 4
%21 = load i32, ptr %3, align 4
%22 = icmp ne i32 %20, %21
br i1 %22, label %.lr.ph, label %38
.lr.ph: ; preds = %18
br label %23
23: ; preds = %.lr.ph, %34
%24 = load ptr, ptr %4, align 8
%25 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 0
%26 = call i32 @fscanf(ptr noundef %24, ptr noundef @.str.2, ptr noundef %25)
%27 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 0
%28 = load i8, ptr %27, align 16
%29 = call i64 @isdigit(i8 noundef signext %28)
%30 = icmp ne i64 %29, 0
br i1 %30, label %31, label %34
31: ; preds = %23
%32 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 0
%33 = call i32 @atoi(ptr noundef %32)
store i32 %33, ptr %5, align 4
br label %34
34: ; preds = %31, %23
%35 = load i32, ptr %5, align 4
%36 = load i32, ptr %3, align 4
%37 = icmp ne i32 %35, %36
br i1 %37, label %23, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %34
br label %38
38: ; preds = %._crit_edge, %18
%39 = getelementptr inbounds [200 x i8], ptr %2, i64 0, i64 0
%40 = load ptr, ptr %4, align 8
%41 = call i32 @fgets(ptr noundef %39, i32 noundef 180, ptr noundef %40)
%42 = load ptr, ptr %4, align 8
%43 = call i32 @fclose(ptr noundef %42)
%44 = getelementptr inbounds [200 x i8], ptr %2, i64 0, i64 0
%45 = call i32 @strlen(ptr noundef %44)
store i32 %45, ptr %8, align 4
store i32 1, ptr %7, align 4
%46 = load i32, ptr %7, align 4
%47 = load i32, ptr %8, align 4
%48 = icmp sle i32 %46, %47
br i1 %48, label %.lr.ph2, label %64
.lr.ph2: ; preds = %38
br label %49
49: ; preds = %.lr.ph2, %58
%50 = load i32, ptr %7, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [200 x i8], ptr %2, i64 0, i64 %51
%53 = load i8, ptr %52, align 1
%54 = load i32, ptr %7, align 4
%55 = sub nsw i32 %54, 1
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [200 x i8], ptr %2, i64 0, i64 %56
store i8 %53, ptr %57, align 1
br label %58
58: ; preds = %49
%59 = load i32, ptr %7, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %7, align 4
%61 = load i32, ptr %7, align 4
%62 = load i32, ptr %8, align 4
%63 = icmp sle i32 %61, %62
br i1 %63, label %49, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %58
br label %64
64: ; preds = %._crit_edge3, %38
%65 = getelementptr inbounds [200 x i8], ptr %2, i64 0, i64 0
%66 = call ptr @strchr(ptr noundef %65, i8 noundef signext 10)
store ptr %66, ptr %9, align 8
%67 = icmp ne ptr %66, null
br i1 %67, label %68, label %70
68: ; preds = %64
%69 = load ptr, ptr %9, align 8
store i8 0, ptr %69, align 1
br label %70
70: ; preds = %68, %64
%71 = getelementptr inbounds [200 x i8], ptr %2, i64 0, i64 0
%72 = load i32, ptr %3, align 4
%73 = call i32 @sendMessage(ptr noundef %71, i32 noundef %72)
ret i32 0
}
declare i32 @getNum(...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @isdigit(i8 noundef signext) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @sendMessage(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpp56blrg8.c'
source_filename = "/tmp/tmpp56blrg8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Decimal\09\09shift left by\09result\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"%d\09\09%d\09\09%d\0A\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"\0A\0ADecimal\09\09shift right by\09result\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 255, ptr %7, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 1, ptr %8, align 4
br label %10
10: ; preds = %21, %2
%11 = load i32, ptr %8, align 4
%12 = icmp slt i32 %11, 8
br i1 %12, label %13, label %24
13: ; preds = %10
%14 = load i32, ptr %7, align 4
%15 = load i32, ptr %8, align 4
%16 = shl i32 %14, %15
store i32 %16, ptr %6, align 4
%17 = load i32, ptr %7, align 4
%18 = load i32, ptr %8, align 4
%19 = load i32, ptr %6, align 4
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %17, i32 noundef %18, i32 noundef %19)
br label %21
21: ; preds = %13
%22 = load i32, ptr %8, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %8, align 4
br label %10, !llvm.loop !6
24: ; preds = %10
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 1, ptr %8, align 4
br label %26
26: ; preds = %37, %24
%27 = load i32, ptr %8, align 4
%28 = icmp slt i32 %27, 8
br i1 %28, label %29, label %40
29: ; preds = %26
%30 = load i32, ptr %7, align 4
%31 = load i32, ptr %8, align 4
%32 = lshr i32 %30, %31
store i32 %32, ptr %6, align 4
%33 = load i32, ptr %7, align 4
%34 = load i32, ptr %8, align 4
%35 = load i32, ptr %6, align 4
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %33, i32 noundef %34, i32 noundef %35)
br label %37
37: ; preds = %29
%38 = load i32, ptr %8, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %8, align 4
br label %26, !llvm.loop !8
40: ; preds = %26
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp56blrg8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Decimal\09\09shift left by\09result\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"%d\09\09%d\09\09%d\0A\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"\0A\0ADecimal\09\09shift right by\09result\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 255, ptr %7, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 1, ptr %8, align 4
%10 = load i32, ptr %8, align 4
%11 = icmp slt i32 %10, 8
br i1 %11, label %.lr.ph, label %25
.lr.ph: ; preds = %2
br label %12
12: ; preds = %.lr.ph, %20
%13 = load i32, ptr %7, align 4
%14 = load i32, ptr %8, align 4
%15 = shl i32 %13, %14
store i32 %15, ptr %6, align 4
%16 = load i32, ptr %7, align 4
%17 = load i32, ptr %8, align 4
%18 = load i32, ptr %6, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %16, i32 noundef %17, i32 noundef %18)
br label %20
20: ; preds = %12
%21 = load i32, ptr %8, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %8, align 4
%23 = load i32, ptr %8, align 4
%24 = icmp slt i32 %23, 8
br i1 %24, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %25
25: ; preds = %._crit_edge, %2
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 1, ptr %8, align 4
%27 = load i32, ptr %8, align 4
%28 = icmp slt i32 %27, 8
br i1 %28, label %.lr.ph2, label %42
.lr.ph2: ; preds = %25
br label %29
29: ; preds = %.lr.ph2, %37
%30 = load i32, ptr %7, align 4
%31 = load i32, ptr %8, align 4
%32 = lshr i32 %30, %31
store i32 %32, ptr %6, align 4
%33 = load i32, ptr %7, align 4
%34 = load i32, ptr %8, align 4
%35 = load i32, ptr %6, align 4
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %33, i32 noundef %34, i32 noundef %35)
br label %37
37: ; preds = %29
%38 = load i32, ptr %8, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %8, align 4
%40 = load i32, ptr %8, align 4
%41 = icmp slt i32 %40, 8
br i1 %41, label %29, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %37
br label %42
42: ; preds = %._crit_edge3, %25
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp0u13sxwm.c'
source_filename = "/tmp/tmp0u13sxwm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"names.in\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stdin = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [10 x i8] c"names.out\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [4 x i8] c"%hd\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"%s\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 ptr, align 8
%5 = alloca i16, align 2
%6 = alloca i16, align 2
%7 = alloca i16, align 2
%8 = alloca i64, align 8
store i32 0, ptr %1, align 4
%9 = load i32, ptr @stdin, align 4
%10 = call i32 @freopen(ptr noundef @.str, ptr noundef @.str.1, i32 noundef %9)
%11 = load i32, ptr @stdout, align 4
%12 = call i32 @freopen(ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef %11)
%13 = call i64 @malloc(i32 noundef 21)
%14 = inttoptr i64 %13 to ptr
store ptr %14, ptr %2, align 8
%15 = call i64 @malloc(i32 noundef 21)
%16 = inttoptr i64 %15 to ptr
store ptr %16, ptr %3, align 8
%17 = call i64 @malloc(i32 noundef 21)
%18 = inttoptr i64 %17 to ptr
store ptr %18, ptr %4, align 8
%19 = call i32 (ptr, ...) @scanf(ptr noundef @.str.4, ptr noundef %5)
store i16 0, ptr %6, align 2
br label %20
20: ; preds = %70, %0
%21 = load i16, ptr %6, align 2
%22 = sext i16 %21 to i32
%23 = load i16, ptr %5, align 2
%24 = sext i16 %23 to i32
%25 = icmp slt i32 %22, %24
br i1 %25, label %26, label %75
26: ; preds = %20
%27 = load ptr, ptr %2, align 8
%28 = call i32 (ptr, ...) @scanf(ptr noundef @.str.5, ptr noundef %27)
%29 = load i16, ptr %6, align 2
%30 = sext i16 %29 to i32
%31 = icmp eq i32 %30, 0
br i1 %31, label %32, label %39
32: ; preds = %26
%33 = load ptr, ptr %3, align 8
%34 = load ptr, ptr %2, align 8
%35 = call i32 @strcpy(ptr noundef %33, ptr noundef %34)
%36 = load ptr, ptr %4, align 8
%37 = load ptr, ptr %2, align 8
%38 = call i32 @strcpy(ptr noundef %36, ptr noundef %37)
br label %39
39: ; preds = %32, %26
%40 = load ptr, ptr %2, align 8
%41 = call i64 @strlen(ptr noundef %40)
store i64 %41, ptr %8, align 8
store i16 1, ptr %7, align 2
br label %42
42: ; preds = %64, %39
%43 = load i16, ptr %7, align 2
%44 = sext i16 %43 to i64
%45 = load i64, ptr %8, align 8
%46 = icmp ule i64 %44, %45
br i1 %46, label %47, label %69
47: ; preds = %42
%48 = load ptr, ptr %4, align 8
%49 = load ptr, ptr %2, align 8
%50 = load i16, ptr %7, align 2
%51 = call ptr @next(ptr noundef %49, i16 noundef signext %50)
%52 = call i64 @strcmp(ptr noundef %48, ptr noundef %51)
%53 = icmp sgt i64 %52, 0
br i1 %53, label %54, label %63
54: ; preds = %47
%55 = load ptr, ptr %3, align 8
%56 = load ptr, ptr %2, align 8
%57 = call i32 @strcpy(ptr noundef %55, ptr noundef %56)
%58 = load ptr, ptr %4, align 8
%59 = load ptr, ptr %2, align 8
%60 = load i16, ptr %7, align 2
%61 = call ptr @next(ptr noundef %59, i16 noundef signext %60)
%62 = call i32 @strcpy(ptr noundef %58, ptr noundef %61)
br label %63
63: ; preds = %54, %47
br label %64
64: ; preds = %63
%65 = load i16, ptr %7, align 2
%66 = sext i16 %65 to i32
%67 = add nsw i32 %66, 1
%68 = trunc i32 %67 to i16
store i16 %68, ptr %7, align 2
br label %42, !llvm.loop !6
69: ; preds = %42
br label %70
70: ; preds = %69
%71 = load i16, ptr %6, align 2
%72 = sext i16 %71 to i32
%73 = add nsw i32 %72, 1
%74 = trunc i32 %73 to i16
store i16 %74, ptr %6, align 2
br label %20, !llvm.loop !8
75: ; preds = %20
%76 = load ptr, ptr %3, align 8
%77 = call i32 @printf(ptr noundef @.str.6, ptr noundef %76)
ret i32 0
}
declare i32 @freopen(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare ptr @next(ptr noundef, i16 noundef signext) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp0u13sxwm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"names.in\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stdin = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [10 x i8] c"names.out\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [4 x i8] c"%hd\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"%s\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 ptr, align 8
%5 = alloca i16, align 2
%6 = alloca i16, align 2
%7 = alloca i16, align 2
%8 = alloca i64, align 8
store i32 0, ptr %1, align 4
%9 = load i32, ptr @stdin, align 4
%10 = call i32 @freopen(ptr noundef @.str, ptr noundef @.str.1, i32 noundef %9)
%11 = load i32, ptr @stdout, align 4
%12 = call i32 @freopen(ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef %11)
%13 = call i64 @malloc(i32 noundef 21)
%14 = inttoptr i64 %13 to ptr
store ptr %14, ptr %2, align 8
%15 = call i64 @malloc(i32 noundef 21)
%16 = inttoptr i64 %15 to ptr
store ptr %16, ptr %3, align 8
%17 = call i64 @malloc(i32 noundef 21)
%18 = inttoptr i64 %17 to ptr
store ptr %18, ptr %4, align 8
%19 = call i32 (ptr, ...) @scanf(ptr noundef @.str.4, ptr noundef %5)
store i16 0, ptr %6, align 2
%20 = load i16, ptr %6, align 2
%21 = sext i16 %20 to i32
%22 = load i16, ptr %5, align 2
%23 = sext i16 %22 to i32
%24 = icmp slt i32 %21, %23
br i1 %24, label %.lr.ph2, label %82
.lr.ph2: ; preds = %0
br label %25
25: ; preds = %.lr.ph2, %72
%26 = load ptr, ptr %2, align 8
%27 = call i32 (ptr, ...) @scanf(ptr noundef @.str.5, ptr noundef %26)
%28 = load i16, ptr %6, align 2
%29 = sext i16 %28 to i32
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %38
31: ; preds = %25
%32 = load ptr, ptr %3, align 8
%33 = load ptr, ptr %2, align 8
%34 = call i32 @strcpy(ptr noundef %32, ptr noundef %33)
%35 = load ptr, ptr %4, align 8
%36 = load ptr, ptr %2, align 8
%37 = call i32 @strcpy(ptr noundef %35, ptr noundef %36)
br label %38
38: ; preds = %31, %25
%39 = load ptr, ptr %2, align 8
%40 = call i64 @strlen(ptr noundef %39)
store i64 %40, ptr %8, align 8
store i16 1, ptr %7, align 2
%41 = load i16, ptr %7, align 2
%42 = sext i16 %41 to i64
%43 = load i64, ptr %8, align 8
%44 = icmp ule i64 %42, %43
br i1 %44, label %.lr.ph, label %71
.lr.ph: ; preds = %38
br label %45
45: ; preds = %.lr.ph, %62
%46 = load ptr, ptr %4, align 8
%47 = load ptr, ptr %2, align 8
%48 = load i16, ptr %7, align 2
%49 = call ptr @next(ptr noundef %47, i16 noundef signext %48)
%50 = call i64 @strcmp(ptr noundef %46, ptr noundef %49)
%51 = icmp sgt i64 %50, 0
br i1 %51, label %52, label %61
52: ; preds = %45
%53 = load ptr, ptr %3, align 8
%54 = load ptr, ptr %2, align 8
%55 = call i32 @strcpy(ptr noundef %53, ptr noundef %54)
%56 = load ptr, ptr %4, align 8
%57 = load ptr, ptr %2, align 8
%58 = load i16, ptr %7, align 2
%59 = call ptr @next(ptr noundef %57, i16 noundef signext %58)
%60 = call i32 @strcpy(ptr noundef %56, ptr noundef %59)
br label %61
61: ; preds = %52, %45
br label %62
62: ; preds = %61
%63 = load i16, ptr %7, align 2
%64 = sext i16 %63 to i32
%65 = add nsw i32 %64, 1
%66 = trunc i32 %65 to i16
store i16 %66, ptr %7, align 2
%67 = load i16, ptr %7, align 2
%68 = sext i16 %67 to i64
%69 = load i64, ptr %8, align 8
%70 = icmp ule i64 %68, %69
br i1 %70, label %45, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %62
br label %71
71: ; preds = %._crit_edge, %38
br label %72
72: ; preds = %71
%73 = load i16, ptr %6, align 2
%74 = sext i16 %73 to i32
%75 = add nsw i32 %74, 1
%76 = trunc i32 %75 to i16
store i16 %76, ptr %6, align 2
%77 = load i16, ptr %6, align 2
%78 = sext i16 %77 to i32
%79 = load i16, ptr %5, align 2
%80 = sext i16 %79 to i32
%81 = icmp slt i32 %78, %80
br i1 %81, label %25, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %72
br label %82
82: ; preds = %._crit_edge3, %0
%83 = load ptr, ptr %3, align 8
%84 = call i32 @printf(ptr noundef @.str.6, ptr noundef %83)
ret i32 0
}
declare i32 @freopen(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare ptr @next(ptr noundef, i16 noundef signext) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpodql9ns8.c'
source_filename = "/tmp/tmpodql9ns8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.termios = type { i32 }
@__const.main.search_cmd = private unnamed_addr constant [3 x i8] c"\DB\00{", align 1
@.str = private unnamed_addr constant [13 x i8] c"/dev/ttyUSB0\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@O_NOCTTY = dso_local global i32 0, align 4
@O_NDELAY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [19 x i8] c"ERROR: open failed\00", align 1
@B115200 = dso_local global i32 0, align 4
@TCSANOW = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [3 x i8] c"r+\00", align 1
@.str.3 = private unnamed_addr constant [34 x i8] c"ERROR: search sensor write failed\00", align 1
@.str.4 = private unnamed_addr constant [33 x i8] c"ERROR: search sensor read failed\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 %struct.termios, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca [3 x i8], align 1
%10 = alloca [256 x i8], align 16
%11 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %9, ptr align 1 @__const.main.search_cmd, i64 3, i1 false)
%12 = load i32, ptr @O_RDWR, align 4
%13 = load i32, ptr @O_NOCTTY, align 4
%14 = or i32 %12, %13
%15 = load i32, ptr @O_NDELAY, align 4
%16 = or i32 %14, %15
%17 = call i32 @open(ptr noundef @.str, i32 noundef %16)
store i32 %17, ptr %7, align 4
%18 = load i32, ptr %7, align 4
%19 = icmp eq i32 %18, -1
br i1 %19, label %20, label %23
20: ; preds = %2
%21 = call i32 @perror(ptr noundef @.str.1)
%22 = call i32 @exit(i32 noundef 1) #4
unreachable
23: ; preds = %2
%24 = load i32, ptr %7, align 4
%25 = call i32 @tcgetattr(i32 noundef %24, ptr noundef %6)
%26 = call i32 @cfmakeraw(ptr noundef %6)
%27 = load i32, ptr @B115200, align 4
%28 = call i32 @cfsetospeed(ptr noundef %6, i32 noundef %27)
%29 = load i32, ptr @B115200, align 4
%30 = call i32 @cfsetispeed(ptr noundef %6, i32 noundef %29)
%31 = load i32, ptr %7, align 4
%32 = load i32, ptr @TCSANOW, align 4
%33 = call i32 @tcsetattr(i32 noundef %31, i32 noundef %32, ptr noundef %6)
%34 = load i32, ptr %7, align 4
%35 = call i32 @close(i32 noundef %34)
%36 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.2)
store ptr %36, ptr %8, align 8
%37 = getelementptr inbounds [3 x i8], ptr %9, i64 0, i64 0
%38 = load ptr, ptr %8, align 8
%39 = call i32 @fwrite(ptr noundef %37, i32 noundef 1, i32 noundef 3, ptr noundef %38)
store i32 %39, ptr %11, align 4
%40 = load i32, ptr %11, align 4
%41 = icmp slt i32 %40, 1
br i1 %41, label %42, label %45
42: ; preds = %23
%43 = call i32 @perror(ptr noundef @.str.3)
%44 = call i32 @exit(i32 noundef 1) #4
unreachable
45: ; preds = %23
%46 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
%47 = load ptr, ptr %8, align 8
%48 = call i32 @fread(ptr noundef %46, i32 noundef 1, i32 noundef 132, ptr noundef %47)
store i32 %48, ptr %11, align 4
%49 = load i32, ptr %11, align 4
%50 = icmp slt i32 %49, 1
br i1 %50, label %51, label %54
51: ; preds = %45
%52 = call i32 @perror(ptr noundef @.str.4)
%53 = call i32 @exit(i32 noundef 1) #4
unreachable
54: ; preds = %45
%55 = load i32, ptr %7, align 4
%56 = call i32 @close(i32 noundef %55)
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 @open(ptr noundef, i32 noundef) #2
declare i32 @perror(ptr noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i32 @tcgetattr(i32 noundef, ptr noundef) #2
declare i32 @cfmakeraw(ptr noundef) #2
declare i32 @cfsetospeed(ptr noundef, i32 noundef) #2
declare i32 @cfsetispeed(ptr noundef, i32 noundef) #2
declare i32 @tcsetattr(i32 noundef, i32 noundef, ptr noundef) #2
declare i32 @close(i32 noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpodql9ns8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.termios = type { i32 }
@__const.main.search_cmd = private unnamed_addr constant [3 x i8] c"\DB\00{", align 1
@.str = private unnamed_addr constant [13 x i8] c"/dev/ttyUSB0\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@O_NOCTTY = dso_local global i32 0, align 4
@O_NDELAY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [19 x i8] c"ERROR: open failed\00", align 1
@B115200 = dso_local global i32 0, align 4
@TCSANOW = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [3 x i8] c"r+\00", align 1
@.str.3 = private unnamed_addr constant [34 x i8] c"ERROR: search sensor write failed\00", align 1
@.str.4 = private unnamed_addr constant [33 x i8] c"ERROR: search sensor read failed\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 %struct.termios, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca [3 x i8], align 1
%10 = alloca [256 x i8], align 16
%11 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %9, ptr align 1 @__const.main.search_cmd, i64 3, i1 false)
%12 = load i32, ptr @O_RDWR, align 4
%13 = load i32, ptr @O_NOCTTY, align 4
%14 = or i32 %12, %13
%15 = load i32, ptr @O_NDELAY, align 4
%16 = or i32 %14, %15
%17 = call i32 @open(ptr noundef @.str, i32 noundef %16)
store i32 %17, ptr %7, align 4
%18 = load i32, ptr %7, align 4
%19 = icmp eq i32 %18, -1
br i1 %19, label %20, label %23
20: ; preds = %2
%21 = call i32 @perror(ptr noundef @.str.1)
%22 = call i32 @exit(i32 noundef 1) #4
unreachable
23: ; preds = %2
%24 = load i32, ptr %7, align 4
%25 = call i32 @tcgetattr(i32 noundef %24, ptr noundef %6)
%26 = call i32 @cfmakeraw(ptr noundef %6)
%27 = load i32, ptr @B115200, align 4
%28 = call i32 @cfsetospeed(ptr noundef %6, i32 noundef %27)
%29 = load i32, ptr @B115200, align 4
%30 = call i32 @cfsetispeed(ptr noundef %6, i32 noundef %29)
%31 = load i32, ptr %7, align 4
%32 = load i32, ptr @TCSANOW, align 4
%33 = call i32 @tcsetattr(i32 noundef %31, i32 noundef %32, ptr noundef %6)
%34 = load i32, ptr %7, align 4
%35 = call i32 @close(i32 noundef %34)
%36 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.2)
store ptr %36, ptr %8, align 8
%37 = getelementptr inbounds [3 x i8], ptr %9, i64 0, i64 0
%38 = load ptr, ptr %8, align 8
%39 = call i32 @fwrite(ptr noundef %37, i32 noundef 1, i32 noundef 3, ptr noundef %38)
store i32 %39, ptr %11, align 4
%40 = load i32, ptr %11, align 4
%41 = icmp slt i32 %40, 1
br i1 %41, label %42, label %45
42: ; preds = %23
%43 = call i32 @perror(ptr noundef @.str.3)
%44 = call i32 @exit(i32 noundef 1) #4
unreachable
45: ; preds = %23
%46 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
%47 = load ptr, ptr %8, align 8
%48 = call i32 @fread(ptr noundef %46, i32 noundef 1, i32 noundef 132, ptr noundef %47)
store i32 %48, ptr %11, align 4
%49 = load i32, ptr %11, align 4
%50 = icmp slt i32 %49, 1
br i1 %50, label %51, label %54
51: ; preds = %45
%52 = call i32 @perror(ptr noundef @.str.4)
%53 = call i32 @exit(i32 noundef 1) #4
unreachable
54: ; preds = %45
%55 = load i32, ptr %7, align 4
%56 = call i32 @close(i32 noundef %55)
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 @open(ptr noundef, i32 noundef) #2
declare i32 @perror(ptr noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i32 @tcgetattr(i32 noundef, ptr noundef) #2
declare i32 @cfmakeraw(ptr noundef) #2
declare i32 @cfsetospeed(ptr noundef, i32 noundef) #2
declare i32 @cfsetispeed(ptr noundef, i32 noundef) #2
declare i32 @tcsetattr(i32 noundef, i32 noundef, ptr noundef) #2
declare i32 @close(i32 noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2pqeew67.c'
source_filename = "/tmp/tmp2pqeew67.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"************\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"name\09name\0A\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%8s\0A\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"name\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"%-8s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef @.str.3)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef @.str.3)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2pqeew67.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"************\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"name\09name\0A\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%8s\0A\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"name\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"%-8s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef @.str.3)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef @.str.3)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyryh_w9y.c'
source_filename = "/tmp/tmpyryh_w9y.c"
target datalayout = "e-m:e-p270: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.arr = private unnamed_addr constant [14 x i8] c"geeksforgeeks\00", align 1
@.str = private unnamed_addr constant [30 x i8] c"Sorted character array is %sn\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [14 x i8], align 1
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %2, ptr align 1 @__const.main.arr, i64 14, i1 false)
%3 = getelementptr inbounds [14 x i8], ptr %2, i64 0, i64 0
%4 = call i32 @countSort(ptr noundef %3)
%5 = getelementptr inbounds [14 x i8], ptr %2, i64 0, i64 0
%6 = call i32 @printf(ptr noundef @.str, ptr noundef %5)
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 @countSort(ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyryh_w9y.c"
target datalayout = "e-m:e-p270: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.arr = private unnamed_addr constant [14 x i8] c"geeksforgeeks\00", align 1
@.str = private unnamed_addr constant [30 x i8] c"Sorted character array is %sn\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [14 x i8], align 1
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %2, ptr align 1 @__const.main.arr, i64 14, i1 false)
%3 = getelementptr inbounds [14 x i8], ptr %2, i64 0, i64 0
%4 = call i32 @countSort(ptr noundef %3)
%5 = getelementptr inbounds [14 x i8], ptr %2, i64 0, i64 0
%6 = call i32 @printf(ptr noundef @.str, ptr noundef %5)
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 @countSort(ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpx7faz1td.c'
source_filename = "/tmp/tmpx7faz1td.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter any number : \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"\0AEnter any number again: \00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"\0A ------------------------- \00", align 1
@.str.4 = private unnamed_addr constant [60 x i8] c"\0A Sum: %d, \09 Difference: %d, \0A Product: %d, \09 Quotient: %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 i32, align 4
store i32 0, ptr %1, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%11 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%12 = load i32, ptr %2, align 4
%13 = load i32, ptr %3, align 4
%14 = add nsw i32 %12, %13
store i32 %14, ptr %4, align 4
%15 = load i32, ptr %2, align 4
%16 = load i32, ptr %3, align 4
%17 = sub nsw i32 %15, %16
store i32 %17, ptr %5, align 4
%18 = load i32, ptr %2, align 4
%19 = load i32, ptr %3, align 4
%20 = mul nsw i32 %18, %19
store i32 %20, ptr %6, align 4
%21 = load i32, ptr %2, align 4
%22 = load i32, ptr %3, align 4
%23 = sdiv i32 %21, %22
store i32 %23, ptr %7, align 4
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%25 = load i32, ptr %4, align 4
%26 = load i32, ptr %5, align 4
%27 = load i32, ptr %6, align 4
%28 = load i32, ptr %7, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %25, i32 noundef %26, i32 noundef %27, i32 noundef %28)
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/tmpx7faz1td.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter any number : \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"\0AEnter any number again: \00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"\0A ------------------------- \00", align 1
@.str.4 = private unnamed_addr constant [60 x i8] c"\0A Sum: %d, \09 Difference: %d, \0A Product: %d, \09 Quotient: %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 i32, align 4
store i32 0, ptr %1, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%11 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%12 = load i32, ptr %2, align 4
%13 = load i32, ptr %3, align 4
%14 = add nsw i32 %12, %13
store i32 %14, ptr %4, align 4
%15 = load i32, ptr %2, align 4
%16 = load i32, ptr %3, align 4
%17 = sub nsw i32 %15, %16
store i32 %17, ptr %5, align 4
%18 = load i32, ptr %2, align 4
%19 = load i32, ptr %3, align 4
%20 = mul nsw i32 %18, %19
store i32 %20, ptr %6, align 4
%21 = load i32, ptr %2, align 4
%22 = load i32, ptr %3, align 4
%23 = sdiv i32 %21, %22
store i32 %23, ptr %7, align 4
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%25 = load i32, ptr %4, align 4
%26 = load i32, ptr %5, align 4
%27 = load i32, ptr %6, align 4
%28 = load i32, ptr %7, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %25, i32 noundef %26, i32 noundef %27, i32 noundef %28)
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/tmpb2ixzvdl.c'
source_filename = "/tmp/tmpb2ixzvdl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Buy low, sell high.\0A\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"Program error!\0A\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"Bye.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %3
3: ; preds = %16, %0
%4 = call i32 (...) @get_choice()
store i32 %4, ptr %2, align 4
%5 = icmp ne i32 %4, 113
br i1 %5, label %6, label %17
6: ; preds = %3
%7 = load i32, ptr %2, align 4
switch i32 %7, label %14 [
i32 97, label %8
i32 98, label %10
i32 99, label %12
]
8: ; preds = %6
%9 = call i32 @printf(ptr noundef @.str)
br label %16
10: ; preds = %6
%11 = call i32 @putchar(i8 noundef signext 7)
br label %16
12: ; preds = %6
%13 = call i32 (...) @count()
br label %16
14: ; preds = %6
%15 = call i32 @printf(ptr noundef @.str.1)
br label %16
16: ; preds = %14, %12, %10, %8
br label %3, !llvm.loop !6
17: ; preds = %3
%18 = call i32 @printf(ptr noundef @.str.2)
ret i32 0
}
declare i32 @get_choice(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @putchar(i8 noundef signext) #1
declare i32 @count(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpb2ixzvdl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Buy low, sell high.\0A\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"Program error!\0A\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"Bye.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (...) @get_choice()
store i32 %3, ptr %2, align 4
%4 = icmp ne i32 %3, 113
br i1 %4, label %.lr.ph, label %18
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %15
%6 = load i32, ptr %2, align 4
switch i32 %6, label %13 [
i32 97, label %7
i32 98, label %9
i32 99, label %11
]
7: ; preds = %5
%8 = call i32 @printf(ptr noundef @.str)
br label %15
9: ; preds = %5
%10 = call i32 @putchar(i8 noundef signext 7)
br label %15
11: ; preds = %5
%12 = call i32 (...) @count()
br label %15
13: ; preds = %5
%14 = call i32 @printf(ptr noundef @.str.1)
br label %15
15: ; preds = %13, %11, %9, %7
%16 = call i32 (...) @get_choice()
store i32 %16, ptr %2, align 4
%17 = icmp ne i32 %16, 113
br i1 %17, label %5, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %18
18: ; preds = %._crit_edge, %0
%19 = call i32 @printf(ptr noundef @.str.2)
ret i32 0
}
declare i32 @get_choice(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @putchar(i8 noundef signext) #1
declare i32 @count(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpraxvb5cq.c'
source_filename = "/tmp/tmpraxvb5cq.c"
target datalayout = "e-m:e-p270: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.rlimit = type { i32, i32 }
@.str = private unnamed_addr constant [18 x i8] c"/proc/self/status\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"VmPeak:\00", align 1
@RLIMIT_MEMLOCK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @mln_adjust_limit(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca [256 x i8], align 16
%6 = alloca i32, align 4
%7 = alloca %struct.rlimit, align 4
store i32 %0, ptr %3, align 4
%8 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %8, ptr %4, align 8
store i32 0, ptr %6, align 4
%9 = load ptr, ptr %4, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %12, label %11
11: ; preds = %1
store i32 -1, ptr %2, align 4
br label %39
12: ; preds = %1
br label %13
13: ; preds = %27, %12
%14 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
%15 = load ptr, ptr %4, align 8
%16 = call i64 @fgets(ptr noundef %14, i32 noundef 256, ptr noundef %15)
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %28
18: ; preds = %13
%19 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
%20 = call i64 @strncmp(ptr noundef %19, ptr noundef @.str.2, i32 noundef 7)
%21 = icmp eq i64 0, %20
br i1 %21, label %22, label %27
22: ; preds = %18
%23 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
%24 = getelementptr inbounds i8, ptr %23, i64 8
%25 = call i64 @atoi(ptr noundef %24)
%26 = trunc i64 %25 to i32
store i32 %26, ptr %6, align 4
br label %28
27: ; preds = %18
br label %13, !llvm.loop !6
28: ; preds = %22, %13
%29 = load ptr, ptr %4, align 8
%30 = call i32 @fclose(ptr noundef %29)
%31 = load i32, ptr %6, align 4
%32 = mul i32 %31, 1024
%33 = load i32, ptr %3, align 4
%34 = add i32 %32, %33
%35 = getelementptr inbounds %struct.rlimit, ptr %7, i32 0, i32 1
store i32 %34, ptr %35, align 4
%36 = getelementptr inbounds %struct.rlimit, ptr %7, i32 0, i32 0
store i32 %34, ptr %36, align 4
%37 = load i32, ptr @RLIMIT_MEMLOCK, align 4
%38 = call i32 @setrlimit(i32 noundef %37, ptr noundef %7)
store i32 %38, ptr %2, align 4
br label %39
39: ; preds = %28, %11
%40 = load i32, ptr %2, align 4
ret i32 %40
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i64 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @atoi(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @setrlimit(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/tmpraxvb5cq.c"
target datalayout = "e-m:e-p270: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.rlimit = type { i32, i32 }
@.str = private unnamed_addr constant [18 x i8] c"/proc/self/status\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"VmPeak:\00", align 1
@RLIMIT_MEMLOCK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @mln_adjust_limit(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca [256 x i8], align 16
%6 = alloca i32, align 4
%7 = alloca %struct.rlimit, align 4
store i32 %0, ptr %3, align 4
%8 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %8, ptr %4, align 8
store i32 0, ptr %6, align 4
%9 = load ptr, ptr %4, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %12, label %11
11: ; preds = %1
store i32 -1, ptr %2, align 4
br label %41
12: ; preds = %1
%13 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
%14 = load ptr, ptr %4, align 8
%15 = call i64 @fgets(ptr noundef %13, i32 noundef 256, ptr noundef %14)
%16 = icmp ne i64 %15, 0
br i1 %16, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %12
br label %21
17: ; preds = %21
%18 = load ptr, ptr %4, align 8
%19 = call i64 @fgets(ptr noundef %13, i32 noundef 256, ptr noundef %18)
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %..loopexit_crit_edge, !llvm.loop !6
21: ; preds = %.lr.ph, %17
%22 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
%23 = call i64 @strncmp(ptr noundef %22, ptr noundef @.str.2, i32 noundef 7)
%24 = icmp eq i64 0, %23
br i1 %24, label %25, label %17
25: ; preds = %21
%26 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
%27 = getelementptr inbounds i8, ptr %26, i64 8
%28 = call i64 @atoi(ptr noundef %27)
%29 = trunc i64 %28 to i32
store i32 %29, ptr %6, align 4
br label %30
..loopexit_crit_edge: ; preds = %17
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %12
br label %30
30: ; preds = %.loopexit, %25
%31 = load ptr, ptr %4, align 8
%32 = call i32 @fclose(ptr noundef %31)
%33 = load i32, ptr %6, align 4
%34 = mul i32 %33, 1024
%35 = load i32, ptr %3, align 4
%36 = add i32 %34, %35
%37 = getelementptr inbounds %struct.rlimit, ptr %7, i32 0, i32 1
store i32 %36, ptr %37, align 4
%38 = getelementptr inbounds %struct.rlimit, ptr %7, i32 0, i32 0
store i32 %36, ptr %38, align 4
%39 = load i32, ptr @RLIMIT_MEMLOCK, align 4
%40 = call i32 @setrlimit(i32 noundef %39, ptr noundef %7)
store i32 %40, ptr %2, align 4
br label %41
41: ; preds = %30, %11
%42 = load i32, ptr %2, align 4
ret i32 %42
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i64 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @atoi(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @setrlimit(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/tmp48pow41y.c'
source_filename = "/tmp/tmp48pow41y.c"
target datalayout = "e-m:e-p270: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 @putf8_dec(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = load i32, ptr %6, align 4
%8 = add nsw i32 %7, -1
store i32 %8, ptr %6, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds i8, ptr %5, i64 %9
%11 = load i8, ptr %10, align 1
%12 = call i64 @putf8_isutf(i8 noundef signext %11)
%13 = icmp ne i64 %12, 0
br i1 %13, label %39, label %14
14: ; preds = %2
%15 = load ptr, ptr %3, align 8
%16 = load ptr, ptr %4, align 8
%17 = load i32, ptr %16, align 4
%18 = add nsw i32 %17, -1
store i32 %18, ptr %16, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %15, i64 %19
%21 = load i8, ptr %20, align 1
%22 = call i64 @putf8_isutf(i8 noundef signext %21)
%23 = icmp ne i64 %22, 0
br i1 %23, label %39, label %24
24: ; preds = %14
%25 = load ptr, ptr %3, align 8
%26 = load ptr, ptr %4, align 8
%27 = load i32, ptr %26, align 4
%28 = add nsw i32 %27, -1
store i32 %28, ptr %26, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %25, i64 %29
%31 = load i8, ptr %30, align 1
%32 = call i64 @putf8_isutf(i8 noundef signext %31)
%33 = icmp ne i64 %32, 0
br i1 %33, label %39, label %34
34: ; preds = %24
%35 = load ptr, ptr %4, align 8
%36 = load i32, ptr %35, align 4
%37 = add nsw i32 %36, -1
store i32 %37, ptr %35, align 4
%38 = icmp ne i32 %37, 0
br label %39
39: ; preds = %34, %24, %14, %2
%40 = phi i1 [ true, %24 ], [ true, %14 ], [ true, %2 ], [ %38, %34 ]
%41 = zext i1 %40 to i32
ret void
}
declare i64 @putf8_isutf(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp48pow41y.c"
target datalayout = "e-m:e-p270: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 @putf8_dec(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = load i32, ptr %6, align 4
%8 = add nsw i32 %7, -1
store i32 %8, ptr %6, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds i8, ptr %5, i64 %9
%11 = load i8, ptr %10, align 1
%12 = call i64 @putf8_isutf(i8 noundef signext %11)
%13 = icmp ne i64 %12, 0
br i1 %13, label %39, label %14
14: ; preds = %2
%15 = load ptr, ptr %3, align 8
%16 = load ptr, ptr %4, align 8
%17 = load i32, ptr %16, align 4
%18 = add nsw i32 %17, -1
store i32 %18, ptr %16, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %15, i64 %19
%21 = load i8, ptr %20, align 1
%22 = call i64 @putf8_isutf(i8 noundef signext %21)
%23 = icmp ne i64 %22, 0
br i1 %23, label %39, label %24
24: ; preds = %14
%25 = load ptr, ptr %3, align 8
%26 = load ptr, ptr %4, align 8
%27 = load i32, ptr %26, align 4
%28 = add nsw i32 %27, -1
store i32 %28, ptr %26, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %25, i64 %29
%31 = load i8, ptr %30, align 1
%32 = call i64 @putf8_isutf(i8 noundef signext %31)
%33 = icmp ne i64 %32, 0
br i1 %33, label %39, label %34
34: ; preds = %24
%35 = load ptr, ptr %4, align 8
%36 = load i32, ptr %35, align 4
%37 = add nsw i32 %36, -1
store i32 %37, ptr %35, align 4
%38 = icmp ne i32 %37, 0
br label %39
39: ; preds = %34, %24, %14, %2
%40 = phi i1 [ true, %24 ], [ true, %14 ], [ true, %2 ], [ %38, %34 ]
%41 = zext i1 %40 to i32
ret void
}
declare i64 @putf8_isutf(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8qu8zfdp.c'
source_filename = "/tmp/tmp8qu8zfdp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"out put sth: %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 [10 x i8], align 1
%7 = alloca [20 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = getelementptr inbounds [10 x i8], ptr %6, i64 0, i64 0
%9 = call i32 @scanf(ptr noundef @.str, ptr noundef %8)
%10 = call i32 (...) @getchar()
%11 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%12 = call i32 @gets(ptr noundef %11)
%13 = getelementptr inbounds [10 x i8], ptr %6, i64 0, i64 0
%14 = call i32 @printf(ptr noundef @.str.1, ptr noundef %13)
%15 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%16 = call i32 @printf(ptr noundef @.str.1, ptr noundef %15)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @getchar(...) #1
declare i32 @gets(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8qu8zfdp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"out put sth: %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 [10 x i8], align 1
%7 = alloca [20 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = getelementptr inbounds [10 x i8], ptr %6, i64 0, i64 0
%9 = call i32 @scanf(ptr noundef @.str, ptr noundef %8)
%10 = call i32 (...) @getchar()
%11 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%12 = call i32 @gets(ptr noundef %11)
%13 = getelementptr inbounds [10 x i8], ptr %6, i64 0, i64 0
%14 = call i32 @printf(ptr noundef @.str.1, ptr noundef %13)
%15 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%16 = call i32 @printf(ptr noundef @.str.1, ptr noundef %15)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @getchar(...) #1
declare i32 @gets(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp68r2n2n1.c'
source_filename = "/tmp/tmp68r2n2n1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [5 x i8] c"exit\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"quit\00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c"error: command `%s` does not exist\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @execline(i32 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i32, align 4
%4 = alloca [1024 x i8], align 16
%5 = alloca i64, align 8
%6 = alloca [100 x ptr], align 16
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%10 = load i32, ptr %3, align 4
%11 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%12 = call i64 @readline(i32 noundef %10, ptr noundef %11, i32 noundef 1024)
store i64 %12, ptr %5, align 8
store i64 0, ptr %7, align 8
%13 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%14 = call ptr @strtok(ptr noundef %13, ptr noundef @.str)
%15 = load i64, ptr %7, align 8
%16 = add i64 %15, 1
store i64 %16, ptr %7, align 8
%17 = getelementptr inbounds [100 x ptr], ptr %6, i64 0, i64 %15
store ptr %14, ptr %17, align 8
br label %18
18: ; preds = %22, %1
%19 = call ptr @strtok(ptr noundef null, ptr noundef @.str)
%20 = load i64, ptr %7, align 8
%21 = getelementptr inbounds [100 x ptr], ptr %6, i64 0, i64 %20
store ptr %19, ptr %21, align 8
br label %22
22: ; preds = %18
%23 = load i64, ptr %7, align 8
%24 = add i64 %23, 1
store i64 %24, ptr %7, align 8
%25 = getelementptr inbounds [100 x ptr], ptr %6, i64 0, i64 %23
%26 = load ptr, ptr %25, align 8
%27 = icmp ne ptr %26, null
br i1 %27, label %18, label %28, !llvm.loop !6
28: ; preds = %22
%29 = getelementptr inbounds [100 x ptr], ptr %6, i64 0, i64 0
%30 = load ptr, ptr %29, align 16
%31 = call i32 @strcmp(ptr noundef %30, ptr noundef @.str.1)
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %38
33: ; preds = %28
%34 = getelementptr inbounds [100 x ptr], ptr %6, i64 0, i64 0
%35 = load ptr, ptr %34, align 16
%36 = call i32 @strcmp(ptr noundef %35, ptr noundef @.str.2)
%37 = icmp ne i32 %36, 0
br i1 %37, label %40, label %38
38: ; preds = %33, %28
%39 = call i32 @exit(i32 noundef 0) #3
unreachable
40: ; preds = %33
%41 = call i32 (...) @fork()
store i32 %41, ptr %8, align 4
%42 = load i32, ptr %8, align 4
%43 = icmp ne i32 %42, 0
br i1 %43, label %55, label %44
44: ; preds = %40
%45 = getelementptr inbounds [100 x ptr], ptr %6, i64 0, i64 0
%46 = load ptr, ptr %45, align 16
%47 = getelementptr inbounds [100 x ptr], ptr %6, i64 0, i64 0
%48 = call i64 @execvp(ptr noundef %46, ptr noundef %47)
%49 = icmp slt i64 %48, 0
br i1 %49, label %50, label %55
50: ; preds = %44
%51 = getelementptr inbounds [100 x ptr], ptr %6, i64 0, i64 0
%52 = load ptr, ptr %51, align 16
%53 = call i32 @printf(ptr noundef @.str.3, ptr noundef %52)
%54 = call i32 @exit(i32 noundef 0) #3
unreachable
55: ; preds = %44, %40
%56 = load i32, ptr %8, align 4
%57 = call i32 @waitpid(i32 noundef %56, ptr noundef %9, i32 noundef 0)
br label %58
58: ; preds = %55
%59 = load i64, ptr %2, align 8
ret i64 %59
}
declare i64 @readline(i32 noundef, ptr noundef, i32 noundef) #1
declare ptr @strtok(ptr noundef, ptr noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fork(...) #1
declare i64 @execvp(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @waitpid(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp68r2n2n1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [5 x i8] c"exit\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"quit\00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c"error: command `%s` does not exist\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @execline(i32 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i32, align 4
%4 = alloca [1024 x i8], align 16
%5 = alloca i64, align 8
%6 = alloca [100 x ptr], align 16
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%10 = load i32, ptr %3, align 4
%11 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%12 = call i64 @readline(i32 noundef %10, ptr noundef %11, i32 noundef 1024)
store i64 %12, ptr %5, align 8
store i64 0, ptr %7, align 8
%13 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%14 = call ptr @strtok(ptr noundef %13, ptr noundef @.str)
%15 = load i64, ptr %7, align 8
%16 = add i64 %15, 1
store i64 %16, ptr %7, align 8
%17 = getelementptr inbounds [100 x ptr], ptr %6, i64 0, i64 %15
store ptr %14, ptr %17, align 8
br label %18
18: ; preds = %22, %1
%19 = call ptr @strtok(ptr noundef null, ptr noundef @.str)
%20 = load i64, ptr %7, align 8
%21 = getelementptr inbounds [100 x ptr], ptr %6, i64 0, i64 %20
store ptr %19, ptr %21, align 8
br label %22
22: ; preds = %18
%23 = load i64, ptr %7, align 8
%24 = add i64 %23, 1
store i64 %24, ptr %7, align 8
%25 = getelementptr inbounds [100 x ptr], ptr %6, i64 0, i64 %23
%26 = load ptr, ptr %25, align 8
%27 = icmp ne ptr %26, null
br i1 %27, label %18, label %28, !llvm.loop !6
28: ; preds = %22
%29 = getelementptr inbounds [100 x ptr], ptr %6, i64 0, i64 0
%30 = load ptr, ptr %29, align 16
%31 = call i32 @strcmp(ptr noundef %30, ptr noundef @.str.1)
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %38
33: ; preds = %28
%34 = getelementptr inbounds [100 x ptr], ptr %6, i64 0, i64 0
%35 = load ptr, ptr %34, align 16
%36 = call i32 @strcmp(ptr noundef %35, ptr noundef @.str.2)
%37 = icmp ne i32 %36, 0
br i1 %37, label %40, label %38
38: ; preds = %33, %28
%39 = call i32 @exit(i32 noundef 0) #3
unreachable
40: ; preds = %33
%41 = call i32 (...) @fork()
store i32 %41, ptr %8, align 4
%42 = load i32, ptr %8, align 4
%43 = icmp ne i32 %42, 0
br i1 %43, label %55, label %44
44: ; preds = %40
%45 = getelementptr inbounds [100 x ptr], ptr %6, i64 0, i64 0
%46 = load ptr, ptr %45, align 16
%47 = getelementptr inbounds [100 x ptr], ptr %6, i64 0, i64 0
%48 = call i64 @execvp(ptr noundef %46, ptr noundef %47)
%49 = icmp slt i64 %48, 0
br i1 %49, label %50, label %55
50: ; preds = %44
%51 = getelementptr inbounds [100 x ptr], ptr %6, i64 0, i64 0
%52 = load ptr, ptr %51, align 16
%53 = call i32 @printf(ptr noundef @.str.3, ptr noundef %52)
%54 = call i32 @exit(i32 noundef 0) #3
unreachable
55: ; preds = %44, %40
%56 = load i32, ptr %8, align 4
%57 = call i32 @waitpid(i32 noundef %56, ptr noundef %9, i32 noundef 0)
br label %58
58: ; preds = %55
%59 = load i64, ptr %2, align 8
ret i64 %59
}
declare i64 @readline(i32 noundef, ptr noundef, i32 noundef) #1
declare ptr @strtok(ptr noundef, ptr noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fork(...) #1
declare i64 @execvp(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @waitpid(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpnl12_aw9.c'
source_filename = "/tmp/tmpnl12_aw9.c"
target datalayout = "e-m:e-p270: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 [256 x [256 x [3 x i8]]], align 16
%7 = alloca [256 x [256 x [3 x i8]]], align 16
%8 = alloca [256 x [256 x [3 x i8]]], align 16
%9 = alloca [256 x [256 x [3 x i8]]], align 16
%10 = alloca [256 x [256 x i8]], align 16
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%13 = getelementptr inbounds [256 x [256 x [3 x i8]]], ptr %6, i64 0, i64 0
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 1
%16 = load ptr, ptr %15, align 8
%17 = call i32 @iie_load_PPM(ptr noundef %13, ptr noundef %16)
store i32 0, ptr %11, align 4
br label %18
18: ; preds = %117, %2
%19 = load i32, ptr %11, align 4
%20 = icmp slt i32 %19, 256
br i1 %20, label %21, label %120
21: ; preds = %18
store i32 0, ptr %12, align 4
br label %22
22: ; preds = %113, %21
%23 = load i32, ptr %12, align 4
%24 = icmp slt i32 %23, 256
br i1 %24, label %25, label %116
25: ; preds = %22
%26 = load i32, ptr %11, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [256 x [256 x [3 x i8]]], ptr %6, i64 0, i64 %27
%29 = load i32, ptr %12, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [256 x [3 x i8]], ptr %28, i64 0, i64 %30
%32 = getelementptr inbounds [3 x i8], ptr %31, i64 0, i64 0
%33 = load i8, ptr %32, align 1
%34 = load i32, ptr %11, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [256 x [256 x [3 x i8]]], ptr %7, i64 0, i64 %35
%37 = load i32, ptr %12, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [256 x [3 x i8]], ptr %36, i64 0, i64 %38
%40 = getelementptr inbounds [3 x i8], ptr %39, i64 0, i64 0
store i8 %33, ptr %40, align 1
%41 = load i32, ptr %11, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [256 x [256 x [3 x i8]]], ptr %7, i64 0, i64 %42
%44 = load i32, ptr %12, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [256 x [3 x i8]], ptr %43, i64 0, i64 %45
%47 = getelementptr inbounds [3 x i8], ptr %46, i64 0, i64 1
store i8 0, ptr %47, align 1
%48 = load i32, ptr %11, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [256 x [256 x [3 x i8]]], ptr %7, i64 0, i64 %49
%51 = load i32, ptr %12, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [256 x [3 x i8]], ptr %50, i64 0, i64 %52
%54 = getelementptr inbounds [3 x i8], ptr %53, i64 0, i64 2
store i8 0, ptr %54, align 1
%55 = load i32, ptr %11, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [256 x [256 x [3 x i8]]], ptr %8, i64 0, i64 %56
%58 = load i32, ptr %12, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [256 x [3 x i8]], ptr %57, i64 0, i64 %59
%61 = getelementptr inbounds [3 x i8], ptr %60, i64 0, i64 0
store i8 0, ptr %61, align 1
%62 = load i32, ptr %11, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [256 x [256 x [3 x i8]]], ptr %6, i64 0, i64 %63
%65 = load i32, ptr %12, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [256 x [3 x i8]], ptr %64, i64 0, i64 %66
%68 = getelementptr inbounds [3 x i8], ptr %67, i64 0, i64 1
%69 = load i8, ptr %68, align 1
%70 = load i32, ptr %11, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [256 x [256 x [3 x i8]]], ptr %8, i64 0, i64 %71
%73 = load i32, ptr %12, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [256 x [3 x i8]], ptr %72, i64 0, i64 %74
%76 = getelementptr inbounds [3 x i8], ptr %75, i64 0, i64 1
store i8 %69, ptr %76, align 1
%77 = load i32, ptr %11, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [256 x [256 x [3 x i8]]], ptr %8, i64 0, i64 %78
%80 = load i32, ptr %12, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [256 x [3 x i8]], ptr %79, i64 0, i64 %81
%83 = getelementptr inbounds [3 x i8], ptr %82, i64 0, i64 2
store i8 0, ptr %83, align 1
%84 = load i32, ptr %11, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [256 x [256 x [3 x i8]]], ptr %9, i64 0, i64 %85
%87 = load i32, ptr %12, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [256 x [3 x i8]], ptr %86, i64 0, i64 %88
%90 = getelementptr inbounds [3 x i8], ptr %89, i64 0, i64 0
store i8 0, ptr %90, align 1
%91 = load i32, ptr %11, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds [256 x [256 x [3 x i8]]], ptr %9, i64 0, i64 %92
%94 = load i32, ptr %12, align 4
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds [256 x [3 x i8]], ptr %93, i64 0, i64 %95
%97 = getelementptr inbounds [3 x i8], ptr %96, i64 0, i64 1
store i8 0, ptr %97, align 1
%98 = load i32, ptr %11, align 4
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds [256 x [256 x [3 x i8]]], ptr %6, i64 0, i64 %99
%101 = load i32, ptr %12, align 4
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds [256 x [3 x i8]], ptr %100, i64 0, i64 %102
%104 = getelementptr inbounds [3 x i8], ptr %103, i64 0, i64 2
%105 = load i8, ptr %104, align 1
%106 = load i32, ptr %11, align 4
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds [256 x [256 x [3 x i8]]], ptr %9, i64 0, i64 %107
%109 = load i32, ptr %12, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds [256 x [3 x i8]], ptr %108, i64 0, i64 %110
%112 = getelementptr inbounds [3 x i8], ptr %111, i64 0, i64 2
store i8 %105, ptr %112, align 1
br label %113
113: ; preds = %25
%114 = load i32, ptr %12, align 4
%115 = add nsw i32 %114, 1
store i32 %115, ptr %12, align 4
br label %22, !llvm.loop !6
116: ; preds = %22
br label %117
117: ; preds = %116
%118 = load i32, ptr %11, align 4
%119 = add nsw i32 %118, 1
store i32 %119, ptr %11, align 4
br label %18, !llvm.loop !8
120: ; preds = %18
store i32 0, ptr %11, align 4
br label %121
121: ; preds = %173, %120
%122 = load i32, ptr %11, align 4
%123 = icmp slt i32 %122, 256
br i1 %123, label %124, label %176
124: ; preds = %121
store i32 0, ptr %12, align 4
br label %125
125: ; preds = %169, %124
%126 = load i32, ptr %12, align 4
%127 = icmp slt i32 %126, 256
br i1 %127, label %128, label %172
128: ; preds = %125
%129 = load i32, ptr %11, align 4
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds [256 x [256 x [3 x i8]]], ptr %7, i64 0, i64 %130
%132 = load i32, ptr %12, align 4
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds [256 x [3 x i8]], ptr %131, i64 0, i64 %133
%135 = getelementptr inbounds [3 x i8], ptr %134, i64 0, i64 0
%136 = load i8, ptr %135, align 1
%137 = zext i8 %136 to i32
%138 = sitofp i32 %137 to double
%139 = load i32, ptr %11, align 4
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds [256 x [256 x [3 x i8]]], ptr %8, i64 0, i64 %140
%142 = load i32, ptr %12, align 4
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds [256 x [3 x i8]], ptr %141, i64 0, i64 %143
%145 = getelementptr inbounds [3 x i8], ptr %144, i64 0, i64 1
%146 = load i8, ptr %145, align 1
%147 = zext i8 %146 to i32
%148 = sitofp i32 %147 to double
%149 = fmul double 5.870000e-01, %148
%150 = call double @llvm.fmuladd.f64(double 2.990000e-01, double %138, double %149)
%151 = load i32, ptr %11, align 4
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds [256 x [256 x [3 x i8]]], ptr %9, i64 0, i64 %152
%154 = load i32, ptr %12, align 4
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds [256 x [3 x i8]], ptr %153, i64 0, i64 %155
%157 = getelementptr inbounds [3 x i8], ptr %156, i64 0, i64 2
%158 = load i8, ptr %157, align 1
%159 = zext i8 %158 to i32
%160 = sitofp i32 %159 to double
%161 = call double @llvm.fmuladd.f64(double 1.140000e-01, double %160, double %150)
%162 = fptoui double %161 to i8
%163 = load i32, ptr %11, align 4
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds [256 x [256 x i8]], ptr %10, i64 0, i64 %164
%166 = load i32, ptr %12, align 4
%167 = sext i32 %166 to i64
%168 = getelementptr inbounds [256 x i8], ptr %165, i64 0, i64 %167
store i8 %162, ptr %168, align 1
br label %169
169: ; preds = %128
%170 = load i32, ptr %12, align 4
%171 = add nsw i32 %170, 1
store i32 %171, ptr %12, align 4
br label %125, !llvm.loop !9
172: ; preds = %125
br label %173
173: ; preds = %172
%174 = load i32, ptr %11, align 4
%175 = add nsw i32 %174, 1
store i32 %175, ptr %11, align 4
br label %121, !llvm.loop !10
176: ; preds = %121
%177 = getelementptr inbounds [256 x [256 x i8]], ptr %10, i64 0, i64 0
%178 = load ptr, ptr %5, align 8
%179 = load i32, ptr %4, align 4
%180 = sub nsw i32 %179, 1
%181 = sext i32 %180 to i64
%182 = getelementptr inbounds ptr, ptr %178, i64 %181
%183 = load ptr, ptr %182, align 8
%184 = call i32 @iie_save_PGM(ptr noundef %177, ptr noundef %183)
ret i32 0
}
declare i32 @iie_load_PPM(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare i32 @iie_save_PGM(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 = { 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}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnl12_aw9.c"
target datalayout = "e-m:e-p270: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 [256 x [256 x [3 x i8]]], align 16
%7 = alloca [256 x [256 x [3 x i8]]], align 16
%8 = alloca [256 x [256 x [3 x i8]]], align 16
%9 = alloca [256 x [256 x [3 x i8]]], align 16
%10 = alloca [256 x [256 x i8]], align 16
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%13 = getelementptr inbounds [256 x [256 x [3 x i8]]], ptr %6, i64 0, i64 0
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 1
%16 = load ptr, ptr %15, align 8
%17 = call i32 @iie_load_PPM(ptr noundef %13, ptr noundef %16)
store i32 0, ptr %11, align 4
%18 = load i32, ptr %11, align 4
%19 = icmp slt i32 %18, 256
br i1 %19, label %.lr.ph2, label %122
.lr.ph2: ; preds = %2
br label %20
20: ; preds = %.lr.ph2, %117
store i32 0, ptr %12, align 4
%21 = load i32, ptr %12, align 4
%22 = icmp slt i32 %21, 256
br i1 %22, label %.lr.ph, label %116
.lr.ph: ; preds = %20
br label %23
23: ; preds = %.lr.ph, %111
%24 = load i32, ptr %11, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [256 x [256 x [3 x i8]]], ptr %6, i64 0, i64 %25
%27 = load i32, ptr %12, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [256 x [3 x i8]], ptr %26, i64 0, i64 %28
%30 = getelementptr inbounds [3 x i8], ptr %29, i64 0, i64 0
%31 = load i8, ptr %30, align 1
%32 = load i32, ptr %11, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [256 x [256 x [3 x i8]]], ptr %7, i64 0, i64 %33
%35 = load i32, ptr %12, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [256 x [3 x i8]], ptr %34, i64 0, i64 %36
%38 = getelementptr inbounds [3 x i8], ptr %37, i64 0, i64 0
store i8 %31, ptr %38, align 1
%39 = load i32, ptr %11, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [256 x [256 x [3 x i8]]], ptr %7, i64 0, i64 %40
%42 = load i32, ptr %12, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [256 x [3 x i8]], ptr %41, i64 0, i64 %43
%45 = getelementptr inbounds [3 x i8], ptr %44, i64 0, i64 1
store i8 0, ptr %45, align 1
%46 = load i32, ptr %11, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [256 x [256 x [3 x i8]]], ptr %7, i64 0, i64 %47
%49 = load i32, ptr %12, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [256 x [3 x i8]], ptr %48, i64 0, i64 %50
%52 = getelementptr inbounds [3 x i8], ptr %51, i64 0, i64 2
store i8 0, ptr %52, align 1
%53 = load i32, ptr %11, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [256 x [256 x [3 x i8]]], ptr %8, i64 0, i64 %54
%56 = load i32, ptr %12, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [256 x [3 x i8]], ptr %55, i64 0, i64 %57
%59 = getelementptr inbounds [3 x i8], ptr %58, i64 0, i64 0
store i8 0, ptr %59, align 1
%60 = load i32, ptr %11, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [256 x [256 x [3 x i8]]], ptr %6, i64 0, i64 %61
%63 = load i32, ptr %12, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [256 x [3 x i8]], ptr %62, i64 0, i64 %64
%66 = getelementptr inbounds [3 x i8], ptr %65, i64 0, i64 1
%67 = load i8, ptr %66, align 1
%68 = load i32, ptr %11, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [256 x [256 x [3 x i8]]], ptr %8, i64 0, i64 %69
%71 = load i32, ptr %12, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [256 x [3 x i8]], ptr %70, i64 0, i64 %72
%74 = getelementptr inbounds [3 x i8], ptr %73, i64 0, i64 1
store i8 %67, ptr %74, align 1
%75 = load i32, ptr %11, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [256 x [256 x [3 x i8]]], ptr %8, i64 0, i64 %76
%78 = load i32, ptr %12, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [256 x [3 x i8]], ptr %77, i64 0, i64 %79
%81 = getelementptr inbounds [3 x i8], ptr %80, i64 0, i64 2
store i8 0, ptr %81, align 1
%82 = load i32, ptr %11, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [256 x [256 x [3 x i8]]], ptr %9, i64 0, i64 %83
%85 = load i32, ptr %12, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [256 x [3 x i8]], ptr %84, i64 0, i64 %86
%88 = getelementptr inbounds [3 x i8], ptr %87, i64 0, i64 0
store i8 0, ptr %88, align 1
%89 = load i32, ptr %11, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [256 x [256 x [3 x i8]]], ptr %9, i64 0, i64 %90
%92 = load i32, ptr %12, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [256 x [3 x i8]], ptr %91, i64 0, i64 %93
%95 = getelementptr inbounds [3 x i8], ptr %94, i64 0, i64 1
store i8 0, ptr %95, align 1
%96 = load i32, ptr %11, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [256 x [256 x [3 x i8]]], ptr %6, i64 0, i64 %97
%99 = load i32, ptr %12, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [256 x [3 x i8]], ptr %98, i64 0, i64 %100
%102 = getelementptr inbounds [3 x i8], ptr %101, i64 0, i64 2
%103 = load i8, ptr %102, align 1
%104 = load i32, ptr %11, align 4
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds [256 x [256 x [3 x i8]]], ptr %9, i64 0, i64 %105
%107 = load i32, ptr %12, align 4
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds [256 x [3 x i8]], ptr %106, i64 0, i64 %108
%110 = getelementptr inbounds [3 x i8], ptr %109, i64 0, i64 2
store i8 %103, ptr %110, align 1
br label %111
111: ; preds = %23
%112 = load i32, ptr %12, align 4
%113 = add nsw i32 %112, 1
store i32 %113, ptr %12, align 4
%114 = load i32, ptr %12, align 4
%115 = icmp slt i32 %114, 256
br i1 %115, label %23, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %111
br label %116
116: ; preds = %._crit_edge, %20
br label %117
117: ; preds = %116
%118 = load i32, ptr %11, align 4
%119 = add nsw i32 %118, 1
store i32 %119, ptr %11, align 4
%120 = load i32, ptr %11, align 4
%121 = icmp slt i32 %120, 256
br i1 %121, label %20, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %117
br label %122
122: ; preds = %._crit_edge3, %2
store i32 0, ptr %11, align 4
%123 = load i32, ptr %11, align 4
%124 = icmp slt i32 %123, 256
br i1 %124, label %.lr.ph8, label %180
.lr.ph8: ; preds = %122
br label %125
125: ; preds = %.lr.ph8, %175
store i32 0, ptr %12, align 4
%126 = load i32, ptr %12, align 4
%127 = icmp slt i32 %126, 256
br i1 %127, label %.lr.ph5, label %174
.lr.ph5: ; preds = %125
br label %128
128: ; preds = %.lr.ph5, %169
%129 = load i32, ptr %11, align 4
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds [256 x [256 x [3 x i8]]], ptr %7, i64 0, i64 %130
%132 = load i32, ptr %12, align 4
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds [256 x [3 x i8]], ptr %131, i64 0, i64 %133
%135 = getelementptr inbounds [3 x i8], ptr %134, i64 0, i64 0
%136 = load i8, ptr %135, align 1
%137 = zext i8 %136 to i32
%138 = sitofp i32 %137 to double
%139 = load i32, ptr %11, align 4
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds [256 x [256 x [3 x i8]]], ptr %8, i64 0, i64 %140
%142 = load i32, ptr %12, align 4
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds [256 x [3 x i8]], ptr %141, i64 0, i64 %143
%145 = getelementptr inbounds [3 x i8], ptr %144, i64 0, i64 1
%146 = load i8, ptr %145, align 1
%147 = zext i8 %146 to i32
%148 = sitofp i32 %147 to double
%149 = fmul double 5.870000e-01, %148
%150 = call double @llvm.fmuladd.f64(double 2.990000e-01, double %138, double %149)
%151 = load i32, ptr %11, align 4
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds [256 x [256 x [3 x i8]]], ptr %9, i64 0, i64 %152
%154 = load i32, ptr %12, align 4
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds [256 x [3 x i8]], ptr %153, i64 0, i64 %155
%157 = getelementptr inbounds [3 x i8], ptr %156, i64 0, i64 2
%158 = load i8, ptr %157, align 1
%159 = zext i8 %158 to i32
%160 = sitofp i32 %159 to double
%161 = call double @llvm.fmuladd.f64(double 1.140000e-01, double %160, double %150)
%162 = fptoui double %161 to i8
%163 = load i32, ptr %11, align 4
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds [256 x [256 x i8]], ptr %10, i64 0, i64 %164
%166 = load i32, ptr %12, align 4
%167 = sext i32 %166 to i64
%168 = getelementptr inbounds [256 x i8], ptr %165, i64 0, i64 %167
store i8 %162, ptr %168, align 1
br label %169
169: ; preds = %128
%170 = load i32, ptr %12, align 4
%171 = add nsw i32 %170, 1
store i32 %171, ptr %12, align 4
%172 = load i32, ptr %12, align 4
%173 = icmp slt i32 %172, 256
br i1 %173, label %128, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %169
br label %174
174: ; preds = %._crit_edge6, %125
br label %175
175: ; preds = %174
%176 = load i32, ptr %11, align 4
%177 = add nsw i32 %176, 1
store i32 %177, ptr %11, align 4
%178 = load i32, ptr %11, align 4
%179 = icmp slt i32 %178, 256
br i1 %179, label %125, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %175
br label %180
180: ; preds = %._crit_edge9, %122
%181 = getelementptr inbounds [256 x [256 x i8]], ptr %10, i64 0, i64 0
%182 = load ptr, ptr %5, align 8
%183 = load i32, ptr %4, align 4
%184 = sub nsw i32 %183, 1
%185 = sext i32 %184 to i64
%186 = getelementptr inbounds ptr, ptr %182, i64 %185
%187 = load ptr, ptr %186, align 8
%188 = call i32 @iie_save_PGM(ptr noundef %181, ptr noundef %187)
ret i32 0
}
declare i32 @iie_load_PPM(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare i32 @iie_save_PGM(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 = { 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}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpm9__6b2r.c'
source_filename = "/tmp/tmpm9__6b2r.c"
target datalayout = "e-m:e-p270: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 @find_neighbors(i64 noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, ptr noundef %5) #0 {
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i64 %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i64 %2, ptr %9, align 8
store i64 %3, ptr %10, align 8
store i64 %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%15 = load i64, ptr %7, align 8
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
br label %16
16: ; preds = %24, %6
%17 = load i32, ptr %14, align 4
%18 = icmp slt i32 %17, 4
br i1 %18, label %19, label %27
19: ; preds = %16
%20 = load ptr, ptr %12, align 8
%21 = load i32, ptr %14, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i32, ptr %20, i64 %22
store i32 0, ptr %23, align 4
br label %24
24: ; preds = %19
%25 = load i32, ptr %14, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %14, align 4
br label %16, !llvm.loop !6
27: ; preds = %16
%28 = load i64, ptr %10, align 8
%29 = icmp ne i64 %28, 0
br i1 %29, label %30, label %47
30: ; preds = %27
%31 = load ptr, ptr %8, align 8
%32 = load i64, ptr %11, align 8
%33 = mul nsw i64 %32, %15
%34 = getelementptr inbounds i32, ptr %31, i64 %33
%35 = load i64, ptr %10, align 8
%36 = sub nsw i64 %35, 1
%37 = getelementptr inbounds i32, ptr %34, i64 %36
%38 = load i32, ptr %37, align 4
%39 = and i32 %38, 15
%40 = icmp eq i32 %39, 15
br i1 %40, label %41, label %46
41: ; preds = %30
%42 = load i32, ptr %13, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %13, align 4
%44 = load ptr, ptr %12, align 8
%45 = getelementptr inbounds i32, ptr %44, i64 0
store i32 1, ptr %45, align 4
br label %46
46: ; preds = %41, %30
br label %47
47: ; preds = %46, %27
%48 = load i64, ptr %10, align 8
%49 = load i64, ptr %7, align 8
%50 = sub nsw i64 %49, 1
%51 = icmp ne i64 %48, %50
br i1 %51, label %52, label %69
52: ; preds = %47
%53 = load ptr, ptr %8, align 8
%54 = load i64, ptr %11, align 8
%55 = mul nsw i64 %54, %15
%56 = getelementptr inbounds i32, ptr %53, i64 %55
%57 = load i64, ptr %10, align 8
%58 = add nsw i64 %57, 1
%59 = getelementptr inbounds i32, ptr %56, i64 %58
%60 = load i32, ptr %59, align 4
%61 = and i32 %60, 15
%62 = icmp eq i32 %61, 15
br i1 %62, label %63, label %68
63: ; preds = %52
%64 = load i32, ptr %13, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %13, align 4
%66 = load ptr, ptr %12, align 8
%67 = getelementptr inbounds i32, ptr %66, i64 2
store i32 1, ptr %67, align 4
br label %68
68: ; preds = %63, %52
br label %69
69: ; preds = %68, %47
%70 = load i64, ptr %11, align 8
%71 = icmp ne i64 %70, 0
br i1 %71, label %72, label %89
72: ; preds = %69
%73 = load ptr, ptr %8, align 8
%74 = load i64, ptr %11, align 8
%75 = sub nsw i64 %74, 1
%76 = mul nsw i64 %75, %15
%77 = getelementptr inbounds i32, ptr %73, i64 %76
%78 = load i64, ptr %10, align 8
%79 = getelementptr inbounds i32, ptr %77, i64 %78
%80 = load i32, ptr %79, align 4
%81 = and i32 %80, 15
%82 = icmp eq i32 %81, 15
br i1 %82, label %83, label %88
83: ; preds = %72
%84 = load i32, ptr %13, align 4
%85 = add nsw i32 %84, 1
store i32 %85, ptr %13, align 4
%86 = load ptr, ptr %12, align 8
%87 = getelementptr inbounds i32, ptr %86, i64 3
store i32 1, ptr %87, align 4
br label %88
88: ; preds = %83, %72
br label %89
89: ; preds = %88, %69
%90 = load i64, ptr %11, align 8
%91 = load i64, ptr %9, align 8
%92 = sub nsw i64 %91, 1
%93 = icmp ne i64 %90, %92
br i1 %93, label %94, label %111
94: ; preds = %89
%95 = load ptr, ptr %8, align 8
%96 = load i64, ptr %11, align 8
%97 = add nsw i64 %96, 1
%98 = mul nsw i64 %97, %15
%99 = getelementptr inbounds i32, ptr %95, i64 %98
%100 = load i64, ptr %10, align 8
%101 = getelementptr inbounds i32, ptr %99, i64 %100
%102 = load i32, ptr %101, align 4
%103 = and i32 %102, 15
%104 = icmp eq i32 %103, 15
br i1 %104, label %105, label %110
105: ; preds = %94
%106 = load i32, ptr %13, align 4
%107 = add nsw i32 %106, 1
store i32 %107, ptr %13, align 4
%108 = load ptr, ptr %12, align 8
%109 = getelementptr inbounds i32, ptr %108, i64 1
store i32 1, ptr %109, align 4
br label %110
110: ; preds = %105, %94
br label %111
111: ; preds = %110, %89
%112 = load i32, ptr %13, align 4
ret i32 %112
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpm9__6b2r.c"
target datalayout = "e-m:e-p270: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 @find_neighbors(i64 noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, ptr noundef %5) #0 {
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i64 %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i64 %2, ptr %9, align 8
store i64 %3, ptr %10, align 8
store i64 %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%15 = load i64, ptr %7, align 8
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
%16 = load i32, ptr %14, align 4
%17 = icmp slt i32 %16, 4
br i1 %17, label %.lr.ph, label %28
.lr.ph: ; preds = %6
br label %18
18: ; preds = %.lr.ph, %23
%19 = load ptr, ptr %12, align 8
%20 = load i32, ptr %14, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i32, ptr %19, i64 %21
store i32 0, ptr %22, align 4
br label %23
23: ; preds = %18
%24 = load i32, ptr %14, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %14, align 4
%26 = load i32, ptr %14, align 4
%27 = icmp slt i32 %26, 4
br i1 %27, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %28
28: ; preds = %._crit_edge, %6
%29 = load i64, ptr %10, align 8
%30 = icmp ne i64 %29, 0
br i1 %30, label %31, label %48
31: ; preds = %28
%32 = load ptr, ptr %8, align 8
%33 = load i64, ptr %11, align 8
%34 = mul nsw i64 %33, %15
%35 = getelementptr inbounds i32, ptr %32, i64 %34
%36 = load i64, ptr %10, align 8
%37 = sub nsw i64 %36, 1
%38 = getelementptr inbounds i32, ptr %35, i64 %37
%39 = load i32, ptr %38, align 4
%40 = and i32 %39, 15
%41 = icmp eq i32 %40, 15
br i1 %41, label %42, label %47
42: ; preds = %31
%43 = load i32, ptr %13, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %13, align 4
%45 = load ptr, ptr %12, align 8
%46 = getelementptr inbounds i32, ptr %45, i64 0
store i32 1, ptr %46, align 4
br label %47
47: ; preds = %42, %31
br label %48
48: ; preds = %47, %28
%49 = load i64, ptr %10, align 8
%50 = load i64, ptr %7, align 8
%51 = sub nsw i64 %50, 1
%52 = icmp ne i64 %49, %51
br i1 %52, label %53, label %70
53: ; preds = %48
%54 = load ptr, ptr %8, align 8
%55 = load i64, ptr %11, align 8
%56 = mul nsw i64 %55, %15
%57 = getelementptr inbounds i32, ptr %54, i64 %56
%58 = load i64, ptr %10, align 8
%59 = add nsw i64 %58, 1
%60 = getelementptr inbounds i32, ptr %57, i64 %59
%61 = load i32, ptr %60, align 4
%62 = and i32 %61, 15
%63 = icmp eq i32 %62, 15
br i1 %63, label %64, label %69
64: ; preds = %53
%65 = load i32, ptr %13, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %13, align 4
%67 = load ptr, ptr %12, align 8
%68 = getelementptr inbounds i32, ptr %67, i64 2
store i32 1, ptr %68, align 4
br label %69
69: ; preds = %64, %53
br label %70
70: ; preds = %69, %48
%71 = load i64, ptr %11, align 8
%72 = icmp ne i64 %71, 0
br i1 %72, label %73, label %90
73: ; preds = %70
%74 = load ptr, ptr %8, align 8
%75 = load i64, ptr %11, align 8
%76 = sub nsw i64 %75, 1
%77 = mul nsw i64 %76, %15
%78 = getelementptr inbounds i32, ptr %74, i64 %77
%79 = load i64, ptr %10, align 8
%80 = getelementptr inbounds i32, ptr %78, i64 %79
%81 = load i32, ptr %80, align 4
%82 = and i32 %81, 15
%83 = icmp eq i32 %82, 15
br i1 %83, label %84, label %89
84: ; preds = %73
%85 = load i32, ptr %13, align 4
%86 = add nsw i32 %85, 1
store i32 %86, ptr %13, align 4
%87 = load ptr, ptr %12, align 8
%88 = getelementptr inbounds i32, ptr %87, i64 3
store i32 1, ptr %88, align 4
br label %89
89: ; preds = %84, %73
br label %90
90: ; preds = %89, %70
%91 = load i64, ptr %11, align 8
%92 = load i64, ptr %9, align 8
%93 = sub nsw i64 %92, 1
%94 = icmp ne i64 %91, %93
br i1 %94, label %95, label %112
95: ; preds = %90
%96 = load ptr, ptr %8, align 8
%97 = load i64, ptr %11, align 8
%98 = add nsw i64 %97, 1
%99 = mul nsw i64 %98, %15
%100 = getelementptr inbounds i32, ptr %96, i64 %99
%101 = load i64, ptr %10, align 8
%102 = getelementptr inbounds i32, ptr %100, i64 %101
%103 = load i32, ptr %102, align 4
%104 = and i32 %103, 15
%105 = icmp eq i32 %104, 15
br i1 %105, label %106, label %111
106: ; preds = %95
%107 = load i32, ptr %13, align 4
%108 = add nsw i32 %107, 1
store i32 %108, ptr %13, align 4
%109 = load ptr, ptr %12, align 8
%110 = getelementptr inbounds i32, ptr %109, i64 1
store i32 1, ptr %110, align 4
br label %111
111: ; preds = %106, %95
br label %112
112: ; preds = %111, %90
%113 = load i32, ptr %13, align 4
ret i32 %113
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp57fktzgj.c'
source_filename = "/tmp/tmp57fktzgj.c"
target datalayout = "e-m:e-p270: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 @_local_free(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load ptr, ptr %3, align 8
%5 = call i32 @free(ptr noundef %4)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp57fktzgj.c"
target datalayout = "e-m:e-p270: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 @_local_free(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load ptr, ptr %3, align 8
%5 = call i32 @free(ptr noundef %4)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpy9igfuow.c'
source_filename = "/tmp/tmpy9igfuow.c"
target datalayout = "e-m:e-p270: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 @xstrdup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = icmp ne ptr %4, null
br i1 %5, label %7, label %6
6: ; preds = %1
store ptr null, ptr %2, align 8
br label %13
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
%9 = load ptr, ptr %3, align 8
%10 = call i64 @strlen(ptr noundef %9)
%11 = add nsw i64 %10, 1
%12 = call ptr @xmemdup(ptr noundef %8, i64 noundef %11)
store ptr %12, ptr %2, align 8
br label %13
13: ; preds = %7, %6
%14 = load ptr, ptr %2, align 8
ret ptr %14
}
declare ptr @xmemdup(ptr noundef, i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy9igfuow.c"
target datalayout = "e-m:e-p270: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 @xstrdup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = icmp ne ptr %4, null
br i1 %5, label %7, label %6
6: ; preds = %1
store ptr null, ptr %2, align 8
br label %13
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
%9 = load ptr, ptr %3, align 8
%10 = call i64 @strlen(ptr noundef %9)
%11 = add nsw i64 %10, 1
%12 = call ptr @xmemdup(ptr noundef %8, i64 noundef %11)
store ptr %12, ptr %2, align 8
br label %13
13: ; preds = %7, %6
%14 = load ptr, ptr %2, align 8
ret ptr %14
}
declare ptr @xmemdup(ptr noundef, i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7ewfzhl_.c'
source_filename = "/tmp/tmp7ewfzhl_.c"
target datalayout = "e-m:e-p270: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/tmp7ewfzhl_.c"
target datalayout = "e-m:e-p270: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/tmpc8knjqew.c'
source_filename = "/tmp/tmpc8knjqew.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"sizeof (void ) %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"sizeof (void *) %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"sizeof (char) %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"sizeof (short) %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [28 x i8] c"sizeof (unsigned short) %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"sizeof (int) %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [26 x i8] c"sizeof (unsigned int) %d\0A\00", align 1
@.str.7 = private unnamed_addr constant [18 x i8] c"sizeof (long) %d\0A\00", align 1
@.str.8 = private unnamed_addr constant [27 x i8] c"sizeof (unsigned long) %d\0A\00", align 1
@.str.9 = private unnamed_addr constant [20 x i8] c"sizeof (double) %d\0A\00", align 1
@.str.10 = private unnamed_addr constant [23 x i8] c"sizeof (long long) %d\0A\00", align 1
@.str.11 = private unnamed_addr constant [32 x i8] c"sizeof (unsigned long long) %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str, i32 noundef 1)
%3 = call i32 @printf(ptr noundef @.str.1, i32 noundef 8)
%4 = call i32 @printf(ptr noundef @.str.2, i32 noundef 1)
%5 = call i32 @printf(ptr noundef @.str.3, i32 noundef 2)
%6 = call i32 @printf(ptr noundef @.str.4, i32 noundef 2)
%7 = call i32 @printf(ptr noundef @.str.5, i32 noundef 4)
%8 = call i32 @printf(ptr noundef @.str.6, i32 noundef 4)
%9 = call i32 @printf(ptr noundef @.str.7, i32 noundef 8)
%10 = call i32 @printf(ptr noundef @.str.8, i32 noundef 8)
%11 = call i32 @printf(ptr noundef @.str.9, i32 noundef 8)
%12 = call i32 @printf(ptr noundef @.str.10, i32 noundef 8)
%13 = call i32 @printf(ptr noundef @.str.11, i32 noundef 8)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc8knjqew.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"sizeof (void ) %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"sizeof (void *) %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"sizeof (char) %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"sizeof (short) %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [28 x i8] c"sizeof (unsigned short) %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"sizeof (int) %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [26 x i8] c"sizeof (unsigned int) %d\0A\00", align 1
@.str.7 = private unnamed_addr constant [18 x i8] c"sizeof (long) %d\0A\00", align 1
@.str.8 = private unnamed_addr constant [27 x i8] c"sizeof (unsigned long) %d\0A\00", align 1
@.str.9 = private unnamed_addr constant [20 x i8] c"sizeof (double) %d\0A\00", align 1
@.str.10 = private unnamed_addr constant [23 x i8] c"sizeof (long long) %d\0A\00", align 1
@.str.11 = private unnamed_addr constant [32 x i8] c"sizeof (unsigned long long) %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str, i32 noundef 1)
%3 = call i32 @printf(ptr noundef @.str.1, i32 noundef 8)
%4 = call i32 @printf(ptr noundef @.str.2, i32 noundef 1)
%5 = call i32 @printf(ptr noundef @.str.3, i32 noundef 2)
%6 = call i32 @printf(ptr noundef @.str.4, i32 noundef 2)
%7 = call i32 @printf(ptr noundef @.str.5, i32 noundef 4)
%8 = call i32 @printf(ptr noundef @.str.6, i32 noundef 4)
%9 = call i32 @printf(ptr noundef @.str.7, i32 noundef 8)
%10 = call i32 @printf(ptr noundef @.str.8, i32 noundef 8)
%11 = call i32 @printf(ptr noundef @.str.9, i32 noundef 8)
%12 = call i32 @printf(ptr noundef @.str.10, i32 noundef 8)
%13 = call i32 @printf(ptr noundef @.str.11, i32 noundef 8)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpor1us3sz.c'
source_filename = "/tmp/tmpor1us3sz.c"
target datalayout = "e-m:e-p270: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 @Cig_PowerNormalize(ptr noundef %0, ptr noundef %1, i32 noundef %2, float noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca float, align 4
%9 = alloca i32, align 4
%10 = alloca float, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store float %3, ptr %8, align 4
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %5, align 8
%13 = icmp ne ptr %11, %12
br i1 %13, label %14, label %22
14: ; preds = %4
%15 = load ptr, ptr %6, align 8
%16 = load ptr, ptr %5, align 8
%17 = load i32, ptr %7, align 4
%18 = sext i32 %17 to i64
%19 = mul i64 %18, 4
%20 = trunc i64 %19 to i32
%21 = call i32 @memcpy(ptr noundef %15, ptr noundef %16, i32 noundef %20)
br label %22
22: ; preds = %14, %4
store float 0.000000e+00, ptr %10, align 4
%23 = load float, ptr %8, align 4
%24 = fpext float %23 to double
%25 = fcmp oeq double %24, 1.000000e+00
br i1 %25, label %26, label %43
26: ; preds = %22
store i32 0, ptr %9, align 4
br label %27
27: ; preds = %39, %26
%28 = load i32, ptr %9, align 4
%29 = load i32, ptr %7, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %31, label %42
31: ; preds = %27
%32 = load ptr, ptr %6, align 8
%33 = load i32, ptr %9, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds float, ptr %32, i64 %34
%36 = load float, ptr %35, align 4
%37 = load float, ptr %10, align 4
%38 = fadd float %37, %36
store float %38, ptr %10, align 4
br label %39
39: ; preds = %31
%40 = load i32, ptr %9, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %9, align 4
br label %27, !llvm.loop !6
42: ; preds = %27
br label %71
43: ; preds = %22
store i32 0, ptr %9, align 4
br label %44
44: ; preds = %67, %43
%45 = load i32, ptr %9, align 4
%46 = load i32, ptr %7, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %48, label %70
48: ; preds = %44
%49 = load ptr, ptr %6, align 8
%50 = load i32, ptr %9, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds float, ptr %49, i64 %51
%53 = load float, ptr %52, align 4
%54 = load float, ptr %8, align 4
%55 = call float @pow(float noundef %53, float noundef %54)
%56 = load ptr, ptr %6, align 8
%57 = load i32, ptr %9, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds float, ptr %56, i64 %58
store float %55, ptr %59, align 4
%60 = load ptr, ptr %6, align 8
%61 = load i32, ptr %9, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds float, ptr %60, i64 %62
%64 = load float, ptr %63, align 4
%65 = load float, ptr %10, align 4
%66 = fadd float %65, %64
store float %66, ptr %10, align 4
br label %67
67: ; preds = %48
%68 = load i32, ptr %9, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %9, align 4
br label %44, !llvm.loop !8
70: ; preds = %44
br label %71
71: ; preds = %70, %42
store i32 0, ptr %9, align 4
br label %72
72: ; preds = %84, %71
%73 = load i32, ptr %9, align 4
%74 = load i32, ptr %7, align 4
%75 = icmp slt i32 %73, %74
br i1 %75, label %76, label %87
76: ; preds = %72
%77 = load float, ptr %10, align 4
%78 = load ptr, ptr %6, align 8
%79 = load i32, ptr %9, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds float, ptr %78, i64 %80
%82 = load float, ptr %81, align 4
%83 = fdiv float %82, %77
store float %83, ptr %81, align 4
br label %84
84: ; preds = %76
%85 = load i32, ptr %9, align 4
%86 = add nsw i32 %85, 1
store i32 %86, ptr %9, align 4
br label %72, !llvm.loop !9
87: ; preds = %72
ret void
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare float @pow(float noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpor1us3sz.c"
target datalayout = "e-m:e-p270: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 @Cig_PowerNormalize(ptr noundef %0, ptr noundef %1, i32 noundef %2, float noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca float, align 4
%9 = alloca i32, align 4
%10 = alloca float, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store float %3, ptr %8, align 4
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %5, align 8
%13 = icmp ne ptr %11, %12
br i1 %13, label %14, label %22
14: ; preds = %4
%15 = load ptr, ptr %6, align 8
%16 = load ptr, ptr %5, align 8
%17 = load i32, ptr %7, align 4
%18 = sext i32 %17 to i64
%19 = mul i64 %18, 4
%20 = trunc i64 %19 to i32
%21 = call i32 @memcpy(ptr noundef %15, ptr noundef %16, i32 noundef %20)
br label %22
22: ; preds = %14, %4
store float 0.000000e+00, ptr %10, align 4
%23 = load float, ptr %8, align 4
%24 = fpext float %23 to double
%25 = fcmp oeq double %24, 1.000000e+00
br i1 %25, label %26, label %45
26: ; preds = %22
store i32 0, ptr %9, align 4
%27 = load i32, ptr %9, align 4
%28 = load i32, ptr %7, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %.lr.ph2, label %44
.lr.ph2: ; preds = %26
br label %30
30: ; preds = %.lr.ph2, %38
%31 = load ptr, ptr %6, align 8
%32 = load i32, ptr %9, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds float, ptr %31, i64 %33
%35 = load float, ptr %34, align 4
%36 = load float, ptr %10, align 4
%37 = fadd float %36, %35
store float %37, ptr %10, align 4
br label %38
38: ; preds = %30
%39 = load i32, ptr %9, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %9, align 4
%41 = load i32, ptr %9, align 4
%42 = load i32, ptr %7, align 4
%43 = icmp slt i32 %41, %42
br i1 %43, label %30, label %._crit_edge3, !llvm.loop !6
._crit_edge3: ; preds = %38
br label %44
44: ; preds = %._crit_edge3, %26
br label %75
45: ; preds = %22
store i32 0, ptr %9, align 4
%46 = load i32, ptr %9, align 4
%47 = load i32, ptr %7, align 4
%48 = icmp slt i32 %46, %47
br i1 %48, label %.lr.ph, label %74
.lr.ph: ; preds = %45
br label %49
49: ; preds = %.lr.ph, %68
%50 = load ptr, ptr %6, align 8
%51 = load i32, ptr %9, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds float, ptr %50, i64 %52
%54 = load float, ptr %53, align 4
%55 = load float, ptr %8, align 4
%56 = call float @pow(float noundef %54, float noundef %55)
%57 = load ptr, ptr %6, align 8
%58 = load i32, ptr %9, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds float, ptr %57, i64 %59
store float %56, ptr %60, align 4
%61 = load ptr, ptr %6, align 8
%62 = load i32, ptr %9, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds float, ptr %61, i64 %63
%65 = load float, ptr %64, align 4
%66 = load float, ptr %10, align 4
%67 = fadd float %66, %65
store float %67, ptr %10, align 4
br label %68
68: ; preds = %49
%69 = load i32, ptr %9, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %9, align 4
%71 = load i32, ptr %9, align 4
%72 = load i32, ptr %7, align 4
%73 = icmp slt i32 %71, %72
br i1 %73, label %49, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %68
br label %74
74: ; preds = %._crit_edge, %45
br label %75
75: ; preds = %74, %44
store i32 0, ptr %9, align 4
%76 = load i32, ptr %9, align 4
%77 = load i32, ptr %7, align 4
%78 = icmp slt i32 %76, %77
br i1 %78, label %.lr.ph5, label %93
.lr.ph5: ; preds = %75
br label %79
79: ; preds = %.lr.ph5, %87
%80 = load float, ptr %10, align 4
%81 = load ptr, ptr %6, align 8
%82 = load i32, ptr %9, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds float, ptr %81, i64 %83
%85 = load float, ptr %84, align 4
%86 = fdiv float %85, %80
store float %86, ptr %84, align 4
br label %87
87: ; preds = %79
%88 = load i32, ptr %9, align 4
%89 = add nsw i32 %88, 1
store i32 %89, ptr %9, align 4
%90 = load i32, ptr %9, align 4
%91 = load i32, ptr %7, align 4
%92 = icmp slt i32 %90, %91
br i1 %92, label %79, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %87
br label %93
93: ; preds = %._crit_edge6, %75
ret void
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare float @pow(float noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp_4to26is.c'
source_filename = "/tmp/tmp_4to26is.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getfloat(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
br label %7
7: ; preds = %11, %1
%8 = call i32 (...) @getch()
store i32 %8, ptr %4, align 4
%9 = call i64 @isspace(i32 noundef %8)
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %7
br label %7, !llvm.loop !6
12: ; preds = %7
%13 = load i32, ptr %4, align 4
%14 = call i64 @isdigit(i32 noundef %13)
%15 = icmp ne i64 %14, 0
br i1 %15, label %29, label %16
16: ; preds = %12
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr @EOF, align 4
%19 = icmp ne i32 %17, %18
br i1 %19, label %20, label %29
20: ; preds = %16
%21 = load i32, ptr %4, align 4
%22 = icmp ne i32 %21, 43
br i1 %22, label %23, label %29
23: ; preds = %20
%24 = load i32, ptr %4, align 4
%25 = icmp ne i32 %24, 45
br i1 %25, label %26, label %29
26: ; preds = %23
%27 = load i32, ptr %4, align 4
%28 = call i32 @ungetch(i32 noundef %27)
store i32 0, ptr %2, align 4
br label %117
29: ; preds = %23, %20, %16, %12
%30 = load i32, ptr %4, align 4
%31 = icmp eq i32 %30, 45
%32 = zext i1 %31 to i64
%33 = select i1 %31, i32 -1, i32 1
store i32 %33, ptr %5, align 4
%34 = load i32, ptr %4, align 4
%35 = icmp eq i32 %34, 43
br i1 %35, label %39, label %36
36: ; preds = %29
%37 = load i32, ptr %4, align 4
%38 = icmp eq i32 %37, 45
br i1 %38, label %39, label %48
39: ; preds = %36, %29
%40 = call i32 (...) @getch()
store i32 %40, ptr %4, align 4
%41 = load i32, ptr %4, align 4
%42 = call i64 @isdigit(i32 noundef %41)
%43 = icmp ne i64 %42, 0
br i1 %43, label %47, label %44
44: ; preds = %39
%45 = load i32, ptr %4, align 4
%46 = call i32 @ungetch(i32 noundef %45)
store i32 0, ptr %2, align 4
br label %117
47: ; preds = %39
br label %48
48: ; preds = %47, %36
%49 = load ptr, ptr %3, align 8
store float 0.000000e+00, ptr %49, align 4
br label %50
50: ; preds = %62, %48
%51 = load i32, ptr %4, align 4
%52 = call i64 @isdigit(i32 noundef %51)
%53 = icmp ne i64 %52, 0
br i1 %53, label %54, label %64
54: ; preds = %50
%55 = load ptr, ptr %3, align 8
%56 = load float, ptr %55, align 4
%57 = load i32, ptr %4, align 4
%58 = sub nsw i32 %57, 48
%59 = sitofp i32 %58 to float
%60 = call float @llvm.fmuladd.f32(float 1.000000e+01, float %56, float %59)
%61 = load ptr, ptr %3, align 8
store float %60, ptr %61, align 4
br label %62
62: ; preds = %54
%63 = call i32 (...) @getch()
store i32 %63, ptr %4, align 4
br label %50, !llvm.loop !8
64: ; preds = %50
%65 = load i32, ptr %4, align 4
%66 = icmp eq i32 %65, 46
br i1 %66, label %67, label %69
67: ; preds = %64
%68 = call i32 (...) @getch()
store i32 %68, ptr %4, align 4
br label %83
69: ; preds = %64
%70 = load i32, ptr %5, align 4
%71 = sitofp i32 %70 to float
%72 = load ptr, ptr %3, align 8
%73 = load float, ptr %72, align 4
%74 = fmul float %73, %71
store float %74, ptr %72, align 4
%75 = load i32, ptr %4, align 4
%76 = load i32, ptr @EOF, align 4
%77 = icmp ne i32 %75, %76
br i1 %77, label %78, label %81
78: ; preds = %69
%79 = load i32, ptr %4, align 4
%80 = call i32 @ungetch(i32 noundef %79)
br label %81
81: ; preds = %78, %69
%82 = load i32, ptr %4, align 4
store i32 %82, ptr %2, align 4
br label %117
83: ; preds = %67
store i32 1, ptr %6, align 4
br label %84
84: ; preds = %99, %83
%85 = load i32, ptr %4, align 4
%86 = call i64 @isdigit(i32 noundef %85)
%87 = icmp ne i64 %86, 0
br i1 %87, label %88, label %103
88: ; preds = %84
%89 = load ptr, ptr %3, align 8
%90 = load float, ptr %89, align 4
%91 = load i32, ptr %4, align 4
%92 = sub nsw i32 %91, 48
%93 = load i32, ptr %6, align 4
%94 = call i32 @pow(double noundef 1.000000e+01, i32 noundef %93)
%95 = sdiv i32 %92, %94
%96 = sitofp i32 %95 to float
%97 = fadd float %90, %96
%98 = load ptr, ptr %3, align 8
store float %97, ptr %98, align 4
br label %99
99: ; preds = %88
%100 = call i32 (...) @getch()
store i32 %100, ptr %4, align 4
%101 = load i32, ptr %6, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %6, align 4
br label %84, !llvm.loop !9
103: ; preds = %84
%104 = load i32, ptr %5, align 4
%105 = sitofp i32 %104 to float
%106 = load ptr, ptr %3, align 8
%107 = load float, ptr %106, align 4
%108 = fmul float %107, %105
store float %108, ptr %106, align 4
%109 = load i32, ptr %4, align 4
%110 = load i32, ptr @EOF, align 4
%111 = icmp ne i32 %109, %110
br i1 %111, label %112, label %115
112: ; preds = %103
%113 = load i32, ptr %4, align 4
%114 = call i32 @ungetch(i32 noundef %113)
br label %115
115: ; preds = %112, %103
%116 = load i32, ptr %4, align 4
store i32 %116, ptr %2, align 4
br label %117
117: ; preds = %115, %81, %44, %26
%118 = load i32, ptr %2, align 4
ret i32 %118
}
declare i64 @isspace(i32 noundef) #1
declare i32 @getch(...) #1
declare i64 @isdigit(i32 noundef) #1
declare i32 @ungetch(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
declare i32 @pow(double noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_4to26is.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getfloat(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
br label %7
7: ; preds = %7, %1
%8 = call i32 (...) @getch()
store i32 %8, ptr %4, align 4
%9 = call i64 @isspace(i32 noundef %8)
%10 = icmp ne i64 %9, 0
br i1 %10, label %7, label %11, !llvm.loop !6
11: ; preds = %7
%12 = load i32, ptr %4, align 4
%13 = call i64 @isdigit(i32 noundef %12)
%14 = icmp ne i64 %13, 0
br i1 %14, label %28, label %15
15: ; preds = %11
%16 = load i32, ptr %4, align 4
%17 = load i32, ptr @EOF, align 4
%18 = icmp ne i32 %16, %17
br i1 %18, label %19, label %28
19: ; preds = %15
%20 = load i32, ptr %4, align 4
%21 = icmp ne i32 %20, 43
br i1 %21, label %22, label %28
22: ; preds = %19
%23 = load i32, ptr %4, align 4
%24 = icmp ne i32 %23, 45
br i1 %24, label %25, label %28
25: ; preds = %22
%26 = load i32, ptr %4, align 4
%27 = call i32 @ungetch(i32 noundef %26)
store i32 0, ptr %2, align 4
br label %120
28: ; preds = %22, %19, %15, %11
%29 = load i32, ptr %4, align 4
%30 = icmp eq i32 %29, 45
%31 = zext i1 %30 to i64
%32 = select i1 %30, i32 -1, i32 1
store i32 %32, ptr %5, align 4
%33 = load i32, ptr %4, align 4
%34 = icmp eq i32 %33, 43
br i1 %34, label %38, label %35
35: ; preds = %28
%36 = load i32, ptr %4, align 4
%37 = icmp eq i32 %36, 45
br i1 %37, label %38, label %47
38: ; preds = %35, %28
%39 = call i32 (...) @getch()
store i32 %39, ptr %4, align 4
%40 = load i32, ptr %4, align 4
%41 = call i64 @isdigit(i32 noundef %40)
%42 = icmp ne i64 %41, 0
br i1 %42, label %46, label %43
43: ; preds = %38
%44 = load i32, ptr %4, align 4
%45 = call i32 @ungetch(i32 noundef %44)
store i32 0, ptr %2, align 4
br label %120
46: ; preds = %38
br label %47
47: ; preds = %46, %35
%48 = load ptr, ptr %3, align 8
store float 0.000000e+00, ptr %48, align 4
%49 = load i32, ptr %4, align 4
%50 = call i64 @isdigit(i32 noundef %49)
%51 = icmp ne i64 %50, 0
br i1 %51, label %.lr.ph, label %65
.lr.ph: ; preds = %47
br label %52
52: ; preds = %.lr.ph, %60
%53 = load ptr, ptr %3, align 8
%54 = load float, ptr %53, align 4
%55 = load i32, ptr %4, align 4
%56 = sub nsw i32 %55, 48
%57 = sitofp i32 %56 to float
%58 = call float @llvm.fmuladd.f32(float 1.000000e+01, float %54, float %57)
%59 = load ptr, ptr %3, align 8
store float %58, ptr %59, align 4
br label %60
60: ; preds = %52
%61 = call i32 (...) @getch()
store i32 %61, ptr %4, align 4
%62 = load i32, ptr %4, align 4
%63 = call i64 @isdigit(i32 noundef %62)
%64 = icmp ne i64 %63, 0
br i1 %64, label %52, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %60
br label %65
65: ; preds = %._crit_edge, %47
%66 = load i32, ptr %4, align 4
%67 = icmp eq i32 %66, 46
br i1 %67, label %68, label %70
68: ; preds = %65
%69 = call i32 (...) @getch()
store i32 %69, ptr %4, align 4
br label %84
70: ; preds = %65
%71 = load i32, ptr %5, align 4
%72 = sitofp i32 %71 to float
%73 = load ptr, ptr %3, align 8
%74 = load float, ptr %73, align 4
%75 = fmul float %74, %72
store float %75, ptr %73, align 4
%76 = load i32, ptr %4, align 4
%77 = load i32, ptr @EOF, align 4
%78 = icmp ne i32 %76, %77
br i1 %78, label %79, label %82
79: ; preds = %70
%80 = load i32, ptr %4, align 4
%81 = call i32 @ungetch(i32 noundef %80)
br label %82
82: ; preds = %79, %70
%83 = load i32, ptr %4, align 4
store i32 %83, ptr %2, align 4
br label %120
84: ; preds = %68
store i32 1, ptr %6, align 4
%85 = load i32, ptr %4, align 4
%86 = call i64 @isdigit(i32 noundef %85)
%87 = icmp ne i64 %86, 0
br i1 %87, label %.lr.ph2, label %106
.lr.ph2: ; preds = %84
br label %88
88: ; preds = %.lr.ph2, %99
%89 = load ptr, ptr %3, align 8
%90 = load float, ptr %89, align 4
%91 = load i32, ptr %4, align 4
%92 = sub nsw i32 %91, 48
%93 = load i32, ptr %6, align 4
%94 = call i32 @pow(double noundef 1.000000e+01, i32 noundef %93)
%95 = sdiv i32 %92, %94
%96 = sitofp i32 %95 to float
%97 = fadd float %90, %96
%98 = load ptr, ptr %3, align 8
store float %97, ptr %98, align 4
br label %99
99: ; preds = %88
%100 = call i32 (...) @getch()
store i32 %100, ptr %4, align 4
%101 = load i32, ptr %6, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %6, align 4
%103 = load i32, ptr %4, align 4
%104 = call i64 @isdigit(i32 noundef %103)
%105 = icmp ne i64 %104, 0
br i1 %105, label %88, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %99
br label %106
106: ; preds = %._crit_edge3, %84
%107 = load i32, ptr %5, align 4
%108 = sitofp i32 %107 to float
%109 = load ptr, ptr %3, align 8
%110 = load float, ptr %109, align 4
%111 = fmul float %110, %108
store float %111, ptr %109, align 4
%112 = load i32, ptr %4, align 4
%113 = load i32, ptr @EOF, align 4
%114 = icmp ne i32 %112, %113
br i1 %114, label %115, label %118
115: ; preds = %106
%116 = load i32, ptr %4, align 4
%117 = call i32 @ungetch(i32 noundef %116)
br label %118
118: ; preds = %115, %106
%119 = load i32, ptr %4, align 4
store i32 %119, ptr %2, align 4
br label %120
120: ; preds = %118, %82, %43, %25
%121 = load i32, ptr %2, align 4
ret i32 %121
}
declare i64 @isspace(i32 noundef) #1
declare i32 @getch(...) #1
declare i64 @isdigit(i32 noundef) #1
declare i32 @ungetch(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
declare i32 @pow(double noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp68kdsba5.c'
source_filename = "/tmp/tmp68kdsba5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"send test error...\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"data sent: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @socketSend(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = load i32, ptr %3, align 4
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i64 @strlen(ptr noundef %8)
%10 = trunc i64 %9 to i32
%11 = call i32 @send(i32 noundef %6, ptr noundef %7, i32 noundef %10, i32 noundef 0)
store i32 %11, ptr %5, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp eq i32 %12, -1
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %19
16: ; preds = %2
%17 = load i32, ptr %5, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %17)
br label %19
19: ; preds = %16, %14
%20 = load i32, ptr %5, align 4
ret i32 %20
}
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp68kdsba5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"send test error...\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"data sent: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @socketSend(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = load i32, ptr %3, align 4
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i64 @strlen(ptr noundef %8)
%10 = trunc i64 %9 to i32
%11 = call i32 @send(i32 noundef %6, ptr noundef %7, i32 noundef %10, i32 noundef 0)
store i32 %11, ptr %5, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp eq i32 %12, -1
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %19
16: ; preds = %2
%17 = load i32, ptr %5, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %17)
br label %19
19: ; preds = %16, %14
%20 = load i32, ptr %5, align 4
ret i32 %20
}
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6gy0v4ld.c'
source_filename = "/tmp/tmp6gy0v4ld.c"
target datalayout = "e-m:e-p270: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 @readlig(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i8, align 1
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
br label %9
9: ; preds = %27, %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 %30
13: ; preds = %9
%14 = load i32, ptr %4, align 4
%15 = call i64 @read(i32 noundef %14, ptr noundef %8, i32 noundef 1)
%16 = icmp sle i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %13
br label %30
18: ; preds = %13
%19 = load i8, ptr %8, align 1
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 10
br i1 %21, label %22, label %23
22: ; preds = %18
br label %30
23: ; preds = %18
%24 = load i8, ptr %8, align 1
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds i8, ptr %25, i32 1
store ptr %26, ptr %5, align 8
store i8 %24, ptr %25, align 1
br label %27
27: ; preds = %23
%28 = load i32, ptr %7, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %7, align 4
br label %9, !llvm.loop !6
30: ; preds = %22, %17, %9
%31 = load ptr, ptr %5, align 8
store i8 0, ptr %31, align 1
%32 = load i32, ptr %7, align 4
ret i32 %32
}
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6gy0v4ld.c"
target datalayout = "e-m:e-p270: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 @readlig(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i8, align 1
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
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.ph, label %.loopexit
.lr.ph: ; preds = %3
br label %12
12: ; preds = %.lr.ph, %26
%13 = load i32, ptr %4, align 4
%14 = call i64 @read(i32 noundef %13, ptr noundef %8, i32 noundef 1)
%15 = icmp sle i64 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %12
br label %32
17: ; preds = %12
%18 = load i8, ptr %8, align 1
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 10
br i1 %20, label %21, label %22
21: ; preds = %17
br label %32
22: ; preds = %17
%23 = load i8, ptr %8, align 1
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %5, align 8
store i8 %23, ptr %24, align 1
br label %26
26: ; preds = %22
%27 = load i32, ptr %7, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %7, align 4
%29 = load i32, ptr %7, align 4
%30 = load i32, ptr %6, align 4
%31 = icmp slt i32 %29, %30
br i1 %31, label %12, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %26
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %3
br label %32
32: ; preds = %.loopexit, %21, %16
%33 = load ptr, ptr %5, align 8
store i8 0, ptr %33, align 1
%34 = load i32, ptr %7, align 4
ret i32 %34
}
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpvbh8bc9p.c'
source_filename = "/tmp/tmpvbh8bc9p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"Sending %d bytes!\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"Write failed, written %d/%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @meif_message_send(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr null, ptr %6, align 8
store i32 0, ptr %7, align 4
store i32 160, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
%13 = load ptr, ptr %4, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %16
15: ; preds = %2
store i32 -1, ptr %3, align 4
br label %71
16: ; preds = %2
%17 = load ptr, ptr %4, align 8
%18 = call i32 @meif_message_to_data(ptr noundef %17, ptr noundef %6)
store i32 %18, ptr %7, align 4
%19 = load i32, ptr %7, align 4
%20 = icmp slt i32 %19, 0
br i1 %20, label %24, label %21
21: ; preds = %16
%22 = load ptr, ptr %6, align 8
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %25
24: ; preds = %21, %16
store i32 -1, ptr %3, align 4
br label %71
25: ; preds = %21
%26 = load i32, ptr %7, align 4
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %26)
%28 = load ptr, ptr %4, align 8
%29 = call i32 @meif_message_log(ptr noundef %28)
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %31
31: ; preds = %64, %25
%32 = load i32, ptr %9, align 4
%33 = load i32, ptr %7, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %35, label %68
35: ; preds = %31
%36 = load i32, ptr %7, align 4
%37 = load i32, ptr %9, align 4
%38 = sub nsw i32 %36, %37
%39 = load i32, ptr %8, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %41, label %45
41: ; preds = %35
%42 = load i32, ptr %7, align 4
%43 = load i32, ptr %9, align 4
%44 = sub nsw i32 %42, %43
br label %47
45: ; preds = %35
%46 = load i32, ptr %8, align 4
br label %47
47: ; preds = %45, %41
%48 = phi i32 [ %44, %41 ], [ %46, %45 ]
store i32 %48, ptr %10, align 4
%49 = load i32, ptr %5, align 4
%50 = load ptr, ptr %6, align 8
%51 = load i32, ptr %9, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr i8, ptr %50, i64 %52
%54 = load i32, ptr %10, align 4
%55 = call i32 @bcm4751_serial_write(i32 noundef %49, ptr noundef %53, i32 noundef %54, ptr noundef null)
store i32 %55, ptr %11, align 4
%56 = load i32, ptr %11, align 4
%57 = icmp sle i32 %56, 0
br i1 %57, label %58, label %64
58: ; preds = %47
%59 = load i32, ptr %9, align 4
%60 = load i32, ptr %7, align 4
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %59, i32 noundef %60)
%62 = load ptr, ptr %6, align 8
%63 = call i32 @free(ptr noundef %62)
store i32 -1, ptr %3, align 4
br label %71
64: ; preds = %47
%65 = load i32, ptr %11, align 4
%66 = load i32, ptr %9, align 4
%67 = add nsw i32 %66, %65
store i32 %67, ptr %9, align 4
br label %31, !llvm.loop !6
68: ; preds = %31
%69 = load ptr, ptr %6, align 8
%70 = call i32 @free(ptr noundef %69)
store i32 0, ptr %3, align 4
br label %71
71: ; preds = %68, %58, %24, %15
%72 = load i32, ptr %3, align 4
ret i32 %72
}
declare i32 @meif_message_to_data(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @meif_message_log(ptr noundef) #1
declare i32 @bcm4751_serial_write(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvbh8bc9p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"Sending %d bytes!\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"Write failed, written %d/%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @meif_message_send(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr null, ptr %6, align 8
store i32 0, ptr %7, align 4
store i32 160, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
%13 = load ptr, ptr %4, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %16
15: ; preds = %2
store i32 -1, ptr %3, align 4
br label %73
16: ; preds = %2
%17 = load ptr, ptr %4, align 8
%18 = call i32 @meif_message_to_data(ptr noundef %17, ptr noundef %6)
store i32 %18, ptr %7, align 4
%19 = load i32, ptr %7, align 4
%20 = icmp slt i32 %19, 0
br i1 %20, label %24, label %21
21: ; preds = %16
%22 = load ptr, ptr %6, align 8
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %25
24: ; preds = %21, %16
store i32 -1, ptr %3, align 4
br label %73
25: ; preds = %21
%26 = load i32, ptr %7, align 4
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %26)
%28 = load ptr, ptr %4, align 8
%29 = call i32 @meif_message_log(ptr noundef %28)
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%31 = load i32, ptr %9, align 4
%32 = load i32, ptr %7, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %.lr.ph, label %70
.lr.ph: ; preds = %25
br label %34
34: ; preds = %.lr.ph, %63
%35 = load i32, ptr %7, align 4
%36 = load i32, ptr %9, align 4
%37 = sub nsw i32 %35, %36
%38 = load i32, ptr %8, align 4
%39 = icmp slt i32 %37, %38
br i1 %39, label %40, label %44
40: ; preds = %34
%41 = load i32, ptr %7, align 4
%42 = load i32, ptr %9, align 4
%43 = sub nsw i32 %41, %42
br label %46
44: ; preds = %34
%45 = load i32, ptr %8, align 4
br label %46
46: ; preds = %44, %40
%47 = phi i32 [ %43, %40 ], [ %45, %44 ]
store i32 %47, ptr %10, align 4
%48 = load i32, ptr %5, align 4
%49 = load ptr, ptr %6, align 8
%50 = load i32, ptr %9, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr i8, ptr %49, i64 %51
%53 = load i32, ptr %10, align 4
%54 = call i32 @bcm4751_serial_write(i32 noundef %48, ptr noundef %52, i32 noundef %53, ptr noundef null)
store i32 %54, ptr %11, align 4
%55 = load i32, ptr %11, align 4
%56 = icmp sle i32 %55, 0
br i1 %56, label %57, label %63
57: ; preds = %46
%58 = load i32, ptr %9, align 4
%59 = load i32, ptr %7, align 4
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %58, i32 noundef %59)
%61 = load ptr, ptr %6, align 8
%62 = call i32 @free(ptr noundef %61)
store i32 -1, ptr %3, align 4
br label %73
63: ; preds = %46
%64 = load i32, ptr %11, align 4
%65 = load i32, ptr %9, align 4
%66 = add nsw i32 %65, %64
store i32 %66, ptr %9, align 4
%67 = load i32, ptr %9, align 4
%68 = load i32, ptr %7, align 4
%69 = icmp slt i32 %67, %68
br i1 %69, label %34, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %63
br label %70
70: ; preds = %._crit_edge, %25
%71 = load ptr, ptr %6, align 8
%72 = call i32 @free(ptr noundef %71)
store i32 0, ptr %3, align 4
br label %73
73: ; preds = %70, %57, %24, %15
%74 = load i32, ptr %3, align 4
ret i32 %74
}
declare i32 @meif_message_to_data(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @meif_message_log(ptr noundef) #1
declare i32 @bcm4751_serial_write(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpi0pqln9e.c'
source_filename = "/tmp/tmpi0pqln9e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [72 x i8] c"Enter thresholds for A, B, C, D\0Ain that order, decreasing percentages >\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"%f %f %f %f\00", align 1
@.str.2 = private unnamed_addr constant [48 x i8] c"Thank you. Now enter student score (percent) > \00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.4 = private unnamed_addr constant [26 x i8] c"Student has an %c grade\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca i8, align 1
store i32 0, ptr %1, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%11 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %6)
%12 = load float, ptr %6, align 4
%13 = load float, ptr %2, align 4
%14 = fcmp oge float %12, %13
br i1 %14, label %15, label %16
15: ; preds = %0
store i8 65, ptr %7, align 1
br label %16
16: ; preds = %15, %0
%17 = load float, ptr %6, align 4
%18 = load float, ptr %2, align 4
%19 = fcmp olt float %17, %18
br i1 %19, label %20, label %25
20: ; preds = %16
%21 = load float, ptr %6, align 4
%22 = load float, ptr %3, align 4
%23 = fcmp oge float %21, %22
br i1 %23, label %24, label %25
24: ; preds = %20
store i8 66, ptr %7, align 1
br label %25
25: ; preds = %24, %20, %16
%26 = load float, ptr %6, align 4
%27 = load float, ptr %3, align 4
%28 = fcmp olt float %26, %27
br i1 %28, label %29, label %34
29: ; preds = %25
%30 = load float, ptr %6, align 4
%31 = load float, ptr %4, align 4
%32 = fcmp oge float %30, %31
br i1 %32, label %33, label %34
33: ; preds = %29
store i8 67, ptr %7, align 1
br label %34
34: ; preds = %33, %29, %25
%35 = load float, ptr %6, align 4
%36 = load float, ptr %4, align 4
%37 = fcmp olt float %35, %36
br i1 %37, label %38, label %43
38: ; preds = %34
%39 = load float, ptr %6, align 4
%40 = load float, ptr %5, align 4
%41 = fcmp oge float %39, %40
br i1 %41, label %42, label %43
42: ; preds = %38
store i8 68, ptr %7, align 1
br label %43
43: ; preds = %42, %38, %34
%44 = load float, ptr %6, align 4
%45 = load float, ptr %5, align 4
%46 = fcmp olt float %44, %45
br i1 %46, label %47, label %48
47: ; preds = %43
store i8 70, ptr %7, align 1
br label %48
48: ; preds = %47, %43
%49 = load i8, ptr %7, align 1
%50 = sext i8 %49 to i32
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %50)
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/tmpi0pqln9e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [72 x i8] c"Enter thresholds for A, B, C, D\0Ain that order, decreasing percentages >\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"%f %f %f %f\00", align 1
@.str.2 = private unnamed_addr constant [48 x i8] c"Thank you. Now enter student score (percent) > \00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.4 = private unnamed_addr constant [26 x i8] c"Student has an %c grade\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca i8, align 1
store i32 0, ptr %1, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%11 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %6)
%12 = load float, ptr %6, align 4
%13 = load float, ptr %2, align 4
%14 = fcmp oge float %12, %13
br i1 %14, label %15, label %16
15: ; preds = %0
store i8 65, ptr %7, align 1
br label %16
16: ; preds = %15, %0
%17 = load float, ptr %6, align 4
%18 = load float, ptr %2, align 4
%19 = fcmp olt float %17, %18
br i1 %19, label %20, label %25
20: ; preds = %16
%21 = load float, ptr %6, align 4
%22 = load float, ptr %3, align 4
%23 = fcmp oge float %21, %22
br i1 %23, label %24, label %25
24: ; preds = %20
store i8 66, ptr %7, align 1
br label %25
25: ; preds = %24, %20, %16
%26 = load float, ptr %6, align 4
%27 = load float, ptr %3, align 4
%28 = fcmp olt float %26, %27
br i1 %28, label %29, label %34
29: ; preds = %25
%30 = load float, ptr %6, align 4
%31 = load float, ptr %4, align 4
%32 = fcmp oge float %30, %31
br i1 %32, label %33, label %34
33: ; preds = %29
store i8 67, ptr %7, align 1
br label %34
34: ; preds = %33, %29, %25
%35 = load float, ptr %6, align 4
%36 = load float, ptr %4, align 4
%37 = fcmp olt float %35, %36
br i1 %37, label %38, label %43
38: ; preds = %34
%39 = load float, ptr %6, align 4
%40 = load float, ptr %5, align 4
%41 = fcmp oge float %39, %40
br i1 %41, label %42, label %43
42: ; preds = %38
store i8 68, ptr %7, align 1
br label %43
43: ; preds = %42, %38, %34
%44 = load float, ptr %6, align 4
%45 = load float, ptr %5, align 4
%46 = fcmp olt float %44, %45
br i1 %46, label %47, label %48
47: ; preds = %43
store i8 70, ptr %7, align 1
br label %48
48: ; preds = %47, %43
%49 = load i8, ptr %7, align 1
%50 = sext i8 %49 to i32
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %50)
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/tmp7urk4u18.c'
source_filename = "/tmp/tmp7urk4u18.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"What's your weight on the Earth? \00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
store i32 0, ptr %1, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 @checkInput(ptr noundef %2)
%5 = load double, ptr %2, align 8
%6 = call i32 @gravityOnMoon(double noundef %5)
%7 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %7
}
declare i32 @printf(ptr noundef) #1
declare i32 @checkInput(ptr noundef) #1
declare i32 @gravityOnMoon(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7urk4u18.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"What's your weight on the Earth? \00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
store i32 0, ptr %1, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 @checkInput(ptr noundef %2)
%5 = load double, ptr %2, align 8
%6 = call i32 @gravityOnMoon(double noundef %5)
%7 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %7
}
declare i32 @printf(ptr noundef) #1
declare i32 @checkInput(ptr noundef) #1
declare i32 @gravityOnMoon(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp37i960av.c'
source_filename = "/tmp/tmp37i960av.c"
target datalayout = "e-m:e-p270: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 @proximity_sensed(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @add_proximity_to_list(ptr noundef %5, ptr noundef %6)
ret void
}
declare i32 @add_proximity_to_list(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/tmp37i960av.c"
target datalayout = "e-m:e-p270: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 @proximity_sensed(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @add_proximity_to_list(ptr noundef %5, ptr noundef %6)
ret void
}
declare i32 @add_proximity_to_list(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"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.