llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmp_dd8w34c.c'
source_filename = "/tmp/tmp_dd8w34c.c"
target datalayout = "e-m:e-p270: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 @ComputeDash(ptr noundef %0, double noundef %1, double noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
store ptr %0, ptr %4, align 8
store double %1, ptr %5, align 8
store double %2, ptr %6, align 8
%13 = load ptr, ptr %4, align 8
%14 = getelementptr inbounds double, ptr %13, i64 5
%15 = load double, ptr %14, align 8
%16 = fadd double %15, 5.000000e-01
%17 = fptosi double %16 to i32
store i32 %17, ptr %7, align 4
%18 = load i32, ptr %7, align 4
%19 = mul nsw i32 2, %18
%20 = sitofp i32 %19 to double
%21 = fadd double %20, 2.100000e+00
%22 = fptosi double %21 to i32
store i32 %22, ptr %9, align 4
%23 = load double, ptr %5, align 8
%24 = load i32, ptr %9, align 4
%25 = sitofp i32 %24 to double
%26 = fdiv double %23, %25
store double %26, ptr %10, align 8
%27 = load ptr, ptr %4, align 8
%28 = getelementptr inbounds double, ptr %27, i64 4
%29 = load double, ptr %28, align 8
%30 = call i64 @fabs(double noundef %29)
%31 = sitofp i64 %30 to double
%32 = fmul double %31, 9.000000e-01
store double %32, ptr %11, align 8
%33 = load double, ptr %11, align 8
%34 = fneg double %33
%35 = load double, ptr %11, align 8
%36 = fneg double %35
%37 = load ptr, ptr %4, align 8
%38 = getelementptr inbounds double, ptr %37, i64 4
%39 = load double, ptr %38, align 8
%40 = fmul double 2.000000e+00, %39
%41 = fptosi double %40 to i32
%42 = load double, ptr %10, align 8
%43 = load ptr, ptr %4, align 8
%44 = getelementptr inbounds double, ptr %43, i64 4
%45 = load double, ptr %44, align 8
%46 = fmul double 2.000000e+00, %45
%47 = fptosi double %46 to i32
%48 = call double @LengthBezier(double noundef %34, i32 noundef 0, double noundef %36, i32 noundef %41, double noundef %42, i32 noundef %47, double noundef 1.000000e+00)
store double %48, ptr %12, align 8
%49 = load double, ptr %12, align 8
%50 = load double, ptr %6, align 8
%51 = fmul double 2.000000e+00, %50
%52 = fdiv double %49, %51
%53 = fptosi double %52 to i32
store i32 %53, ptr %8, align 4
%54 = load i32, ptr %8, align 4
%55 = icmp eq i32 %54, 0
br i1 %55, label %56, label %57
56: ; preds = %3
store i32 1, ptr %8, align 4
br label %57
57: ; preds = %56, %3
%58 = load double, ptr %12, align 8
%59 = load double, ptr %6, align 8
%60 = fmul double 2.000000e+00, %59
%61 = load i32, ptr %8, align 4
%62 = sitofp i32 %61 to double
%63 = fneg double %60
%64 = call double @llvm.fmuladd.f64(double %63, double %62, double %58)
%65 = call i64 @fabs(double noundef %64)
%66 = load double, ptr %12, align 8
%67 = load double, ptr %6, align 8
%68 = fmul double 2.000000e+00, %67
%69 = load i32, ptr %8, align 4
%70 = add nsw i32 %69, 1
%71 = sitofp i32 %70 to double
%72 = fneg double %68
%73 = call double @llvm.fmuladd.f64(double %72, double %71, double %66)
%74 = call i64 @fabs(double noundef %73)
%75 = icmp sgt i64 %65, %74
br i1 %75, label %76, label %79
76: ; preds = %57
%77 = load i32, ptr %8, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %8, align 4
br label %79
79: ; preds = %76, %57
%80 = load double, ptr %12, align 8
%81 = load i32, ptr %8, align 4
%82 = mul nsw i32 2, %81
%83 = sitofp i32 %82 to double
%84 = fdiv double %80, %83
ret double %84
}
declare i64 @fabs(double noundef) #1
declare double @LengthBezier(double noundef, i32 noundef, double noundef, i32 noundef, double noundef, i32 noundef, double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_dd8w34c.c"
target datalayout = "e-m:e-p270: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 @ComputeDash(ptr noundef %0, double noundef %1, double noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
store ptr %0, ptr %4, align 8
store double %1, ptr %5, align 8
store double %2, ptr %6, align 8
%13 = load ptr, ptr %4, align 8
%14 = getelementptr inbounds double, ptr %13, i64 5
%15 = load double, ptr %14, align 8
%16 = fadd double %15, 5.000000e-01
%17 = fptosi double %16 to i32
store i32 %17, ptr %7, align 4
%18 = load i32, ptr %7, align 4
%19 = mul nsw i32 2, %18
%20 = sitofp i32 %19 to double
%21 = fadd double %20, 2.100000e+00
%22 = fptosi double %21 to i32
store i32 %22, ptr %9, align 4
%23 = load double, ptr %5, align 8
%24 = load i32, ptr %9, align 4
%25 = sitofp i32 %24 to double
%26 = fdiv double %23, %25
store double %26, ptr %10, align 8
%27 = load ptr, ptr %4, align 8
%28 = getelementptr inbounds double, ptr %27, i64 4
%29 = load double, ptr %28, align 8
%30 = call i64 @fabs(double noundef %29)
%31 = sitofp i64 %30 to double
%32 = fmul double %31, 9.000000e-01
store double %32, ptr %11, align 8
%33 = load double, ptr %11, align 8
%34 = fneg double %33
%35 = load double, ptr %11, align 8
%36 = fneg double %35
%37 = load ptr, ptr %4, align 8
%38 = getelementptr inbounds double, ptr %37, i64 4
%39 = load double, ptr %38, align 8
%40 = fmul double 2.000000e+00, %39
%41 = fptosi double %40 to i32
%42 = load double, ptr %10, align 8
%43 = load ptr, ptr %4, align 8
%44 = getelementptr inbounds double, ptr %43, i64 4
%45 = load double, ptr %44, align 8
%46 = fmul double 2.000000e+00, %45
%47 = fptosi double %46 to i32
%48 = call double @LengthBezier(double noundef %34, i32 noundef 0, double noundef %36, i32 noundef %41, double noundef %42, i32 noundef %47, double noundef 1.000000e+00)
store double %48, ptr %12, align 8
%49 = load double, ptr %12, align 8
%50 = load double, ptr %6, align 8
%51 = fmul double 2.000000e+00, %50
%52 = fdiv double %49, %51
%53 = fptosi double %52 to i32
store i32 %53, ptr %8, align 4
%54 = load i32, ptr %8, align 4
%55 = icmp eq i32 %54, 0
br i1 %55, label %56, label %57
56: ; preds = %3
store i32 1, ptr %8, align 4
br label %57
57: ; preds = %56, %3
%58 = load double, ptr %12, align 8
%59 = load double, ptr %6, align 8
%60 = fmul double 2.000000e+00, %59
%61 = load i32, ptr %8, align 4
%62 = sitofp i32 %61 to double
%63 = fneg double %60
%64 = call double @llvm.fmuladd.f64(double %63, double %62, double %58)
%65 = call i64 @fabs(double noundef %64)
%66 = load double, ptr %12, align 8
%67 = load double, ptr %6, align 8
%68 = fmul double 2.000000e+00, %67
%69 = load i32, ptr %8, align 4
%70 = add nsw i32 %69, 1
%71 = sitofp i32 %70 to double
%72 = fneg double %68
%73 = call double @llvm.fmuladd.f64(double %72, double %71, double %66)
%74 = call i64 @fabs(double noundef %73)
%75 = icmp sgt i64 %65, %74
br i1 %75, label %76, label %79
76: ; preds = %57
%77 = load i32, ptr %8, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %8, align 4
br label %79
79: ; preds = %76, %57
%80 = load double, ptr %12, align 8
%81 = load i32, ptr %8, align 4
%82 = mul nsw i32 2, %81
%83 = sitofp i32 %82 to double
%84 = fdiv double %80, %83
ret double %84
}
declare i64 @fabs(double noundef) #1
declare double @LengthBezier(double noundef, i32 noundef, double noundef, i32 noundef, double noundef, i32 noundef, double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmidon3cw.c'
source_filename = "/tmp/tmpmidon3cw.c"
target datalayout = "e-m:e-p270: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 @unlink(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = call i32 (...) @__infer_nondet_int()
store i32 %4, ptr %3, align 4
%5 = load ptr, ptr %2, align 8
%6 = call i32 @__require_allocated_array(ptr noundef %5)
%7 = load i32, ptr %3, align 4
%8 = icmp sgt i32 %7, 0
%9 = zext i1 %8 to i64
%10 = select i1 %8, i32 0, i32 -1
ret i32 %10
}
declare i32 @__infer_nondet_int(...) #1
declare i32 @__require_allocated_array(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmidon3cw.c"
target datalayout = "e-m:e-p270: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 @unlink(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = call i32 (...) @__infer_nondet_int()
store i32 %4, ptr %3, align 4
%5 = load ptr, ptr %2, align 8
%6 = call i32 @__require_allocated_array(ptr noundef %5)
%7 = load i32, ptr %3, align 4
%8 = icmp sgt i32 %7, 0
%9 = zext i1 %8 to i64
%10 = select i1 %8, i32 0, i32 -1
ret i32 %10
}
declare i32 @__infer_nondet_int(...) #1
declare i32 @__require_allocated_array(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4qgd2ee0.c'
source_filename = "/tmp/tmp4qgd2ee0.c"
target datalayout = "e-m:e-p270: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.pollfd = type { i32, i32, i32 }
@.str = private unnamed_addr constant [14 x i8] c"/dev/poll_dev\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@POLLIN = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [5 x i8] c"poll\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"%d seconds elapsed, \0A\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"fd is readable\0A\00", align 1
@.str.4 = private unnamed_addr constant [19 x i8] c"\0AREAD %d byte: %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"read\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [1 x %struct.pollfd], align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [23 x i8], align 16
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = load i32, ptr @O_RDONLY, align 4
%9 = call i32 @open(ptr noundef @.str, i32 noundef %8)
store i32 %9, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = getelementptr inbounds [1 x %struct.pollfd], ptr %2, i64 0, i64 0
%12 = getelementptr inbounds %struct.pollfd, ptr %11, i32 0, i32 0
store i32 %10, ptr %12, align 4
%13 = load i32, ptr @POLLIN, align 4
%14 = getelementptr inbounds [1 x %struct.pollfd], ptr %2, i64 0, i64 0
%15 = getelementptr inbounds %struct.pollfd, ptr %14, i32 0, i32 1
store i32 %13, ptr %15, align 4
%16 = getelementptr inbounds [1 x %struct.pollfd], ptr %2, i64 0, i64 0
%17 = call i32 @poll(ptr noundef %16, i32 noundef 1, i32 noundef 100000)
store i32 %17, ptr %3, align 4
%18 = load i32, ptr %3, align 4
%19 = icmp eq i32 %18, -1
br i1 %19, label %20, label %22
20: ; preds = %0
%21 = call i32 @perror(ptr noundef @.str.1)
store i32 -1, ptr %1, align 4
br label %59
22: ; preds = %0
%23 = load i32, ptr %3, align 4
%24 = icmp ne i32 %23, 0
br i1 %24, label %27, label %25
25: ; preds = %22
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 100)
store i32 0, ptr %1, align 4
br label %59
27: ; preds = %22
%28 = getelementptr inbounds [1 x %struct.pollfd], ptr %2, i64 0, i64 0
%29 = getelementptr inbounds %struct.pollfd, ptr %28, i32 0, i32 2
%30 = load i32, ptr %29, align 4
%31 = load i32, ptr @POLLIN, align 4
%32 = and i32 %30, %31
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %54
34: ; preds = %27
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%36 = getelementptr inbounds [23 x i8], ptr %6, i64 0, i64 0
%37 = call i32 @memset(ptr noundef %36, i32 noundef 0, i32 noundef 23)
%38 = load i32, ptr %4, align 4
%39 = getelementptr inbounds [23 x i8], ptr %6, i64 0, i64 0
%40 = call i32 @read(i32 noundef %38, ptr noundef %39, i32 noundef 23)
store i32 %40, ptr %3, align 4
%41 = load i32, ptr %3, align 4
%42 = getelementptr inbounds [23 x i8], ptr %6, i64 0, i64 0
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %41, ptr noundef %42)
%44 = load i32, ptr %3, align 4
%45 = icmp eq i32 %44, -1
br i1 %45, label %46, label %50
46: ; preds = %34
%47 = call i32 @perror(ptr noundef @.str.5)
%48 = load i32, ptr @EXIT_FAILURE, align 4
%49 = call i32 @exit(i32 noundef %48) #3
unreachable
50: ; preds = %34
%51 = load i32, ptr %3, align 4
%52 = getelementptr inbounds [23 x i8], ptr %6, i64 0, i64 0
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %51, ptr noundef %52)
br label %54
54: ; preds = %50, %27
%55 = load i32, ptr %4, align 4
%56 = call i32 @close(i32 noundef %55)
%57 = load i32, ptr @EXIT_SUCCESS, align 4
%58 = call i32 @exit(i32 noundef %57) #3
unreachable
59: ; preds = %25, %20
%60 = load i32, ptr %1, align 4
ret i32 %60
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @poll(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4qgd2ee0.c"
target datalayout = "e-m:e-p270: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.pollfd = type { i32, i32, i32 }
@.str = private unnamed_addr constant [14 x i8] c"/dev/poll_dev\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@POLLIN = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [5 x i8] c"poll\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"%d seconds elapsed, \0A\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"fd is readable\0A\00", align 1
@.str.4 = private unnamed_addr constant [19 x i8] c"\0AREAD %d byte: %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"read\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [1 x %struct.pollfd], align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [23 x i8], align 16
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = load i32, ptr @O_RDONLY, align 4
%9 = call i32 @open(ptr noundef @.str, i32 noundef %8)
store i32 %9, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = getelementptr inbounds [1 x %struct.pollfd], ptr %2, i64 0, i64 0
%12 = getelementptr inbounds %struct.pollfd, ptr %11, i32 0, i32 0
store i32 %10, ptr %12, align 4
%13 = load i32, ptr @POLLIN, align 4
%14 = getelementptr inbounds [1 x %struct.pollfd], ptr %2, i64 0, i64 0
%15 = getelementptr inbounds %struct.pollfd, ptr %14, i32 0, i32 1
store i32 %13, ptr %15, align 4
%16 = getelementptr inbounds [1 x %struct.pollfd], ptr %2, i64 0, i64 0
%17 = call i32 @poll(ptr noundef %16, i32 noundef 1, i32 noundef 100000)
store i32 %17, ptr %3, align 4
%18 = load i32, ptr %3, align 4
%19 = icmp eq i32 %18, -1
br i1 %19, label %20, label %22
20: ; preds = %0
%21 = call i32 @perror(ptr noundef @.str.1)
store i32 -1, ptr %1, align 4
br label %59
22: ; preds = %0
%23 = load i32, ptr %3, align 4
%24 = icmp ne i32 %23, 0
br i1 %24, label %27, label %25
25: ; preds = %22
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 100)
store i32 0, ptr %1, align 4
br label %59
27: ; preds = %22
%28 = getelementptr inbounds [1 x %struct.pollfd], ptr %2, i64 0, i64 0
%29 = getelementptr inbounds %struct.pollfd, ptr %28, i32 0, i32 2
%30 = load i32, ptr %29, align 4
%31 = load i32, ptr @POLLIN, align 4
%32 = and i32 %30, %31
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %54
34: ; preds = %27
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%36 = getelementptr inbounds [23 x i8], ptr %6, i64 0, i64 0
%37 = call i32 @memset(ptr noundef %36, i32 noundef 0, i32 noundef 23)
%38 = load i32, ptr %4, align 4
%39 = getelementptr inbounds [23 x i8], ptr %6, i64 0, i64 0
%40 = call i32 @read(i32 noundef %38, ptr noundef %39, i32 noundef 23)
store i32 %40, ptr %3, align 4
%41 = load i32, ptr %3, align 4
%42 = getelementptr inbounds [23 x i8], ptr %6, i64 0, i64 0
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %41, ptr noundef %42)
%44 = load i32, ptr %3, align 4
%45 = icmp eq i32 %44, -1
br i1 %45, label %46, label %50
46: ; preds = %34
%47 = call i32 @perror(ptr noundef @.str.5)
%48 = load i32, ptr @EXIT_FAILURE, align 4
%49 = call i32 @exit(i32 noundef %48) #3
unreachable
50: ; preds = %34
%51 = load i32, ptr %3, align 4
%52 = getelementptr inbounds [23 x i8], ptr %6, i64 0, i64 0
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %51, ptr noundef %52)
br label %54
54: ; preds = %50, %27
%55 = load i32, ptr %4, align 4
%56 = call i32 @close(i32 noundef %55)
%57 = load i32, ptr @EXIT_SUCCESS, align 4
%58 = call i32 @exit(i32 noundef %57) #3
unreachable
59: ; preds = %25, %20
%60 = load i32, ptr %1, align 4
ret i32 %60
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @poll(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdyb5kuye.c'
source_filename = "/tmp/tmpdyb5kuye.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [41 x i8] c"epoll_wait with endless wait. aborting.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @epoll_wait(i32 noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
%10 = load i32, ptr %9, align 4
switch i32 %10, label %15 [
i32 -1, label %11
i32 0, label %14
]
11: ; preds = %4
%12 = call i32 @printf(ptr noundef @.str)
%13 = call i32 (...) @abort() #3
unreachable
14: ; preds = %4
store i32 0, ptr %5, align 4
br label %18
15: ; preds = %4
%16 = load i32, ptr %9, align 4
%17 = call i32 @runtime_block(i32 noundef %16)
store i32 0, ptr %5, align 4
br label %18
18: ; preds = %15, %14
%19 = load i32, ptr %5, align 4
ret i32 %19
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare i32 @runtime_block(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/tmpdyb5kuye.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [41 x i8] c"epoll_wait with endless wait. aborting.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @epoll_wait(i32 noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
%10 = load i32, ptr %9, align 4
switch i32 %10, label %15 [
i32 -1, label %11
i32 0, label %14
]
11: ; preds = %4
%12 = call i32 @printf(ptr noundef @.str)
%13 = call i32 (...) @abort() #3
unreachable
14: ; preds = %4
store i32 0, ptr %5, align 4
br label %18
15: ; preds = %4
%16 = load i32, ptr %9, align 4
%17 = call i32 @runtime_block(i32 noundef %16)
store i32 0, ptr %5, align 4
br label %18
18: ; preds = %15, %14
%19 = load i32, ptr %5, align 4
ret i32 %19
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare i32 @runtime_block(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/tmpj13nas4u.c'
source_filename = "/tmp/tmpj13nas4u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@towers.step = internal global i32 0, align 4
@.str = private unnamed_addr constant [21 x i8] c"Towers(%d %c %c %c)\0A\00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"\09\09\09Step %3d: Move %c to %c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @towers(i32 noundef %0, i8 noundef signext %1, i8 noundef signext %2, i8 noundef signext %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i8, align 1
%7 = alloca i8, align 1
%8 = alloca i8, align 1
store i32 %0, ptr %5, align 4
store i8 %1, ptr %6, align 1
store i8 %2, ptr %7, align 1
store i8 %3, ptr %8, align 1
%9 = load i32, ptr %5, align 4
%10 = load i8, ptr %6, align 1
%11 = load i8, ptr %7, align 1
%12 = load i8, ptr %8, align 1
%13 = sext i8 %12 to i32
%14 = call i32 (ptr, i32, i8, i8, ...) @printf(ptr noundef @.str, i32 noundef %9, i8 noundef signext %10, i8 noundef signext %11, i32 noundef %13)
%15 = load i32, ptr %5, align 4
%16 = icmp eq i32 %15, 1
br i1 %16, label %17, label %23
17: ; preds = %4
%18 = load i32, ptr @towers.step, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr @towers.step, align 4
%20 = load i8, ptr %6, align 1
%21 = load i8, ptr %7, align 1
%22 = call i32 (ptr, i32, i8, i8, ...) @printf(ptr noundef @.str.1, i32 noundef %19, i8 noundef signext %20, i8 noundef signext %21)
br label %39
23: ; preds = %4
%24 = load i32, ptr %5, align 4
%25 = sub nsw i32 %24, 1
%26 = load i8, ptr %6, align 1
%27 = load i8, ptr %8, align 1
%28 = load i8, ptr %7, align 1
call void @towers(i32 noundef %25, i8 noundef signext %26, i8 noundef signext %27, i8 noundef signext %28)
%29 = load i32, ptr @towers.step, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr @towers.step, align 4
%31 = load i8, ptr %6, align 1
%32 = load i8, ptr %7, align 1
%33 = call i32 (ptr, i32, i8, i8, ...) @printf(ptr noundef @.str.1, i32 noundef %30, i8 noundef signext %31, i8 noundef signext %32)
%34 = load i32, ptr %5, align 4
%35 = sub nsw i32 %34, 1
%36 = load i8, ptr %8, align 1
%37 = load i8, ptr %7, align 1
%38 = load i8, ptr %6, align 1
call void @towers(i32 noundef %35, i8 noundef signext %36, i8 noundef signext %37, i8 noundef signext %38)
br label %39
39: ; preds = %23, %17
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i8 noundef signext, 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/tmpj13nas4u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@towers.step = internal global i32 0, align 4
@.str = private unnamed_addr constant [21 x i8] c"Towers(%d %c %c %c)\0A\00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"\09\09\09Step %3d: Move %c to %c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @towers(i32 noundef %0, i8 noundef signext %1, i8 noundef signext %2, i8 noundef signext %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i8, align 1
%7 = alloca i8, align 1
%8 = alloca i8, align 1
store i32 %0, ptr %5, align 4
store i8 %1, ptr %6, align 1
store i8 %2, ptr %7, align 1
store i8 %3, ptr %8, align 1
%9 = load i32, ptr %5, align 4
%10 = load i8, ptr %6, align 1
%11 = load i8, ptr %7, align 1
%12 = load i8, ptr %8, align 1
%13 = sext i8 %12 to i32
%14 = call i32 (ptr, i32, i8, i8, ...) @printf(ptr noundef @.str, i32 noundef %9, i8 noundef signext %10, i8 noundef signext %11, i32 noundef %13)
%15 = load i32, ptr %5, align 4
%16 = icmp eq i32 %15, 1
br i1 %16, label %17, label %23
17: ; preds = %4
%18 = load i32, ptr @towers.step, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr @towers.step, align 4
%20 = load i8, ptr %6, align 1
%21 = load i8, ptr %7, align 1
%22 = call i32 (ptr, i32, i8, i8, ...) @printf(ptr noundef @.str.1, i32 noundef %19, i8 noundef signext %20, i8 noundef signext %21)
br label %39
23: ; preds = %4
%24 = load i32, ptr %5, align 4
%25 = sub nsw i32 %24, 1
%26 = load i8, ptr %6, align 1
%27 = load i8, ptr %8, align 1
%28 = load i8, ptr %7, align 1
call void @towers(i32 noundef %25, i8 noundef signext %26, i8 noundef signext %27, i8 noundef signext %28)
%29 = load i32, ptr @towers.step, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr @towers.step, align 4
%31 = load i8, ptr %6, align 1
%32 = load i8, ptr %7, align 1
%33 = call i32 (ptr, i32, i8, i8, ...) @printf(ptr noundef @.str.1, i32 noundef %30, i8 noundef signext %31, i8 noundef signext %32)
%34 = load i32, ptr %5, align 4
%35 = sub nsw i32 %34, 1
%36 = load i8, ptr %8, align 1
%37 = load i8, ptr %7, align 1
%38 = load i8, ptr %6, align 1
call void @towers(i32 noundef %35, i8 noundef signext %36, i8 noundef signext %37, i8 noundef signext %38)
br label %39
39: ; preds = %23, %17
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i8 noundef signext, 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/tmpdovvvy65.c'
source_filename = "/tmp/tmpdovvvy65.c"
target datalayout = "e-m:e-p270: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 @timlib_round_money(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 @round_money(double noundef %3)
ret double %4
}
declare double @round_money(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/tmpdovvvy65.c"
target datalayout = "e-m:e-p270: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 @timlib_round_money(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 @round_money(double noundef %3)
ret double %4
}
declare double @round_money(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/tmp7f7mb2rt.c'
source_filename = "/tmp/tmp7f7mb2rt.c"
target datalayout = "e-m:e-p270: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 @__builtin_isalnum(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i64 @isalpha(i32 noundef %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %10, label %6
6: ; preds = %1
%7 = load i32, ptr %2, align 4
%8 = call i64 @isdigit(i32 noundef %7)
%9 = icmp ne i64 %8, 0
br label %10
10: ; preds = %6, %1
%11 = phi i1 [ true, %1 ], [ %9, %6 ]
%12 = zext i1 %11 to i32
ret i32 %12
}
declare i64 @isalpha(i32 noundef) #1
declare i64 @isdigit(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/tmp7f7mb2rt.c"
target datalayout = "e-m:e-p270: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 @__builtin_isalnum(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i64 @isalpha(i32 noundef %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %10, label %6
6: ; preds = %1
%7 = load i32, ptr %2, align 4
%8 = call i64 @isdigit(i32 noundef %7)
%9 = icmp ne i64 %8, 0
br label %10
10: ; preds = %6, %1
%11 = phi i1 [ true, %1 ], [ %9, %6 ]
%12 = zext i1 %11 to i32
ret i32 %12
}
declare i64 @isalpha(i32 noundef) #1
declare i64 @isdigit(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/tmpq__d7jiz.c'
source_filename = "/tmp/tmpq__d7jiz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [43 x i8] c"The maximum solution occurs at Z=%lf with\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"X%d=%lf\09\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"X%d=0\09\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_result(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store i32 %2, ptr %9, align 4
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store i32 %5, ptr %12, align 4
%14 = load ptr, ptr %7, align 8
%15 = load i32, ptr %8, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds ptr, ptr %14, i64 %16
%18 = load ptr, ptr %17, align 8
%19 = load i32, ptr %9, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds double, ptr %18, i64 %20
%22 = load double, ptr %21, align 8
%23 = fptosi double %22 to i32
%24 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %23)
store i32 0, ptr %13, align 4
br label %25
25: ; preds = %65, %6
%26 = load i32, ptr %13, align 4
%27 = load i32, ptr %8, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %29, label %68
29: ; preds = %25
%30 = load ptr, ptr %11, align 8
%31 = load i32, ptr %13, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i32, ptr %30, i64 %32
%34 = load i32, ptr %33, align 4
%35 = sdiv i32 %34, 10
%36 = icmp eq i32 %35, 1
br i1 %36, label %37, label %64
37: ; preds = %29
%38 = load ptr, ptr %11, align 8
%39 = load i32, ptr %13, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i32, ptr %38, i64 %40
%42 = load i32, ptr %41, align 4
%43 = srem i32 %42, 10
%44 = load i32, ptr %12, align 4
%45 = icmp slt i32 %43, %44
br i1 %45, label %46, label %64
46: ; preds = %37
%47 = load ptr, ptr %11, align 8
%48 = load i32, ptr %13, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i32, ptr %47, i64 %49
%51 = load i32, ptr %50, align 4
%52 = srem i32 %51, 10
%53 = add nsw i32 %52, 1
%54 = load ptr, ptr %7, align 8
%55 = load i32, ptr %13, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds ptr, ptr %54, i64 %56
%58 = load ptr, ptr %57, align 8
%59 = load i32, ptr %9, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds double, ptr %58, i64 %60
%62 = load double, ptr %61, align 8
%63 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %53, double noundef %62)
br label %64
64: ; preds = %46, %37, %29
br label %65
65: ; preds = %64
%66 = load i32, ptr %13, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %13, align 4
br label %25, !llvm.loop !6
68: ; preds = %25
store i32 0, ptr %13, align 4
br label %69
69: ; preds = %100, %68
%70 = load i32, ptr %13, align 4
%71 = load i32, ptr %9, align 4
%72 = icmp slt i32 %70, %71
br i1 %72, label %73, label %103
73: ; preds = %69
%74 = load ptr, ptr %10, align 8
%75 = load i32, ptr %13, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i32, ptr %74, i64 %76
%78 = load i32, ptr %77, align 4
%79 = sdiv i32 %78, 10
%80 = icmp eq i32 %79, 1
br i1 %80, label %81, label %99
81: ; preds = %73
%82 = load ptr, ptr %10, align 8
%83 = load i32, ptr %13, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i32, ptr %82, i64 %84
%86 = load i32, ptr %85, align 4
%87 = srem i32 %86, 10
%88 = load i32, ptr %12, align 4
%89 = icmp slt i32 %87, %88
br i1 %89, label %90, label %99
90: ; preds = %81
%91 = load ptr, ptr %10, align 8
%92 = load i32, ptr %13, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i32, ptr %91, i64 %93
%95 = load i32, ptr %94, align 4
%96 = srem i32 %95, 10
%97 = add nsw i32 %96, 1
%98 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %97)
br label %99
99: ; preds = %90, %81, %73
br label %100
100: ; preds = %99
%101 = load i32, ptr %13, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %13, align 4
br label %69, !llvm.loop !8
103: ; preds = %69
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq__d7jiz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [43 x i8] c"The maximum solution occurs at Z=%lf with\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"X%d=%lf\09\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"X%d=0\09\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_result(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store i32 %2, ptr %9, align 4
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store i32 %5, ptr %12, align 4
%14 = load ptr, ptr %7, align 8
%15 = load i32, ptr %8, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds ptr, ptr %14, i64 %16
%18 = load ptr, ptr %17, align 8
%19 = load i32, ptr %9, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds double, ptr %18, i64 %20
%22 = load double, ptr %21, align 8
%23 = fptosi double %22 to i32
%24 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %23)
store i32 0, ptr %13, align 4
%25 = load i32, ptr %13, align 4
%26 = load i32, ptr %8, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %.lr.ph, label %70
.lr.ph: ; preds = %6
br label %28
28: ; preds = %.lr.ph, %64
%29 = load ptr, ptr %11, align 8
%30 = load i32, ptr %13, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i32, ptr %29, i64 %31
%33 = load i32, ptr %32, align 4
%34 = sdiv i32 %33, 10
%35 = icmp eq i32 %34, 1
br i1 %35, label %36, label %63
36: ; preds = %28
%37 = load ptr, ptr %11, align 8
%38 = load i32, ptr %13, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i32, ptr %37, i64 %39
%41 = load i32, ptr %40, align 4
%42 = srem i32 %41, 10
%43 = load i32, ptr %12, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %45, label %63
45: ; preds = %36
%46 = load ptr, ptr %11, align 8
%47 = load i32, ptr %13, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i32, ptr %46, i64 %48
%50 = load i32, ptr %49, align 4
%51 = srem i32 %50, 10
%52 = add nsw i32 %51, 1
%53 = load ptr, ptr %7, align 8
%54 = load i32, ptr %13, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds ptr, ptr %53, i64 %55
%57 = load ptr, ptr %56, align 8
%58 = load i32, ptr %9, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds double, ptr %57, i64 %59
%61 = load double, ptr %60, align 8
%62 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %52, double noundef %61)
br label %63
63: ; preds = %45, %36, %28
br label %64
64: ; preds = %63
%65 = load i32, ptr %13, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %13, align 4
%67 = load i32, ptr %13, align 4
%68 = load i32, ptr %8, align 4
%69 = icmp slt i32 %67, %68
br i1 %69, label %28, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %64
br label %70
70: ; preds = %._crit_edge, %6
store i32 0, ptr %13, align 4
%71 = load i32, ptr %13, align 4
%72 = load i32, ptr %9, align 4
%73 = icmp slt i32 %71, %72
br i1 %73, label %.lr.ph2, label %107
.lr.ph2: ; preds = %70
br label %74
74: ; preds = %.lr.ph2, %101
%75 = load ptr, ptr %10, align 8
%76 = load i32, ptr %13, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i32, ptr %75, i64 %77
%79 = load i32, ptr %78, align 4
%80 = sdiv i32 %79, 10
%81 = icmp eq i32 %80, 1
br i1 %81, label %82, label %100
82: ; preds = %74
%83 = load ptr, ptr %10, align 8
%84 = load i32, ptr %13, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i32, ptr %83, i64 %85
%87 = load i32, ptr %86, align 4
%88 = srem i32 %87, 10
%89 = load i32, ptr %12, align 4
%90 = icmp slt i32 %88, %89
br i1 %90, label %91, label %100
91: ; preds = %82
%92 = load ptr, ptr %10, align 8
%93 = load i32, ptr %13, align 4
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds i32, ptr %92, i64 %94
%96 = load i32, ptr %95, align 4
%97 = srem i32 %96, 10
%98 = add nsw i32 %97, 1
%99 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %98)
br label %100
100: ; preds = %91, %82, %74
br label %101
101: ; preds = %100
%102 = load i32, ptr %13, align 4
%103 = add nsw i32 %102, 1
store i32 %103, ptr %13, align 4
%104 = load i32, ptr %13, align 4
%105 = load i32, ptr %9, align 4
%106 = icmp slt i32 %104, %105
br i1 %106, label %74, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %101
br label %107
107: ; preds = %._crit_edge3, %70
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpybgh6fqt.c'
source_filename = "/tmp/tmpybgh6fqt.c"
target datalayout = "e-m:e-p270: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.string = private unnamed_addr constant [49 x i8] c"Mr. Billy Wilson A. Arante, with $100/hour rate.\00", align 16
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [49 x i8], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.string, i64 49, i1 false)
%3 = getelementptr inbounds [49 x i8], ptr %2, i64 0, i64 0
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
%5 = getelementptr inbounds [49 x i8], ptr %2, i64 0, i64 0
%6 = call i32 @convert_to_uppercase(ptr noundef %5)
%7 = getelementptr inbounds [49 x i8], ptr %2, i64 0, i64 0
%8 = call i32 @printf(ptr noundef @.str, ptr noundef %7)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ptr noundef) #2
declare i32 @convert_to_uppercase(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/tmpybgh6fqt.c"
target datalayout = "e-m:e-p270: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.string = private unnamed_addr constant [49 x i8] c"Mr. Billy Wilson A. Arante, with $100/hour rate.\00", align 16
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [49 x i8], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.string, i64 49, i1 false)
%3 = getelementptr inbounds [49 x i8], ptr %2, i64 0, i64 0
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
%5 = getelementptr inbounds [49 x i8], ptr %2, i64 0, i64 0
%6 = call i32 @convert_to_uppercase(ptr noundef %5)
%7 = getelementptr inbounds [49 x i8], ptr %2, i64 0, i64 0
%8 = call i32 @printf(ptr noundef @.str, ptr noundef %7)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ptr noundef) #2
declare i32 @convert_to_uppercase(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/tmp0uzbnei5.c'
source_filename = "/tmp/tmp0uzbnei5.c"
target datalayout = "e-m:e-p270: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/tmp0uzbnei5.c"
target datalayout = "e-m:e-p270: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/tmpesl_jmme.c'
source_filename = "/tmp/tmpesl_jmme.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [154 x i8] c"\0AYou're in the basement.I have to admit, the carpet you're standing on has some pretty questionable looking stains. You should probably get out of here.\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [75 x i8] c"\0ACongrats you're in a loft. Well done.... Not really. No one is impressed\0A\00", align 1
@.str.3 = private unnamed_addr constant [101 x i8] c"\0AYou're now in an Arena. Don't ask me how you got here. You're the one that decided to go this way.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @game_print_welcome_msg(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = call i32 @printf(ptr noundef @.str)
br label %25
7: ; preds = %1
%8 = load i32, ptr %2, align 4
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %12
10: ; preds = %7
%11 = call i32 @printf(ptr noundef @.str.1)
br label %24
12: ; preds = %7
%13 = load i32, ptr %2, align 4
%14 = icmp eq i32 %13, 2
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = call i32 @printf(ptr noundef @.str.2)
br label %23
17: ; preds = %12
%18 = load i32, ptr %2, align 4
%19 = icmp eq i32 %18, 3
br i1 %19, label %20, label %22
20: ; preds = %17
%21 = call i32 @printf(ptr noundef @.str.3)
br label %22
22: ; preds = %20, %17
br label %23
23: ; preds = %22, %15
br label %24
24: ; preds = %23, %10
br label %25
25: ; preds = %24, %5
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/tmpesl_jmme.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [154 x i8] c"\0AYou're in the basement.I have to admit, the carpet you're standing on has some pretty questionable looking stains. You should probably get out of here.\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [75 x i8] c"\0ACongrats you're in a loft. Well done.... Not really. No one is impressed\0A\00", align 1
@.str.3 = private unnamed_addr constant [101 x i8] c"\0AYou're now in an Arena. Don't ask me how you got here. You're the one that decided to go this way.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @game_print_welcome_msg(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = call i32 @printf(ptr noundef @.str)
br label %25
7: ; preds = %1
%8 = load i32, ptr %2, align 4
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %12
10: ; preds = %7
%11 = call i32 @printf(ptr noundef @.str.1)
br label %24
12: ; preds = %7
%13 = load i32, ptr %2, align 4
%14 = icmp eq i32 %13, 2
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = call i32 @printf(ptr noundef @.str.2)
br label %23
17: ; preds = %12
%18 = load i32, ptr %2, align 4
%19 = icmp eq i32 %18, 3
br i1 %19, label %20, label %22
20: ; preds = %17
%21 = call i32 @printf(ptr noundef @.str.3)
br label %22
22: ; preds = %20, %17
br label %23
23: ; preds = %22, %15
br label %24
24: ; preds = %23, %10
br label %25
25: ; preds = %24, %5
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/tmpk_8ln7qw.c'
source_filename = "/tmp/tmpk_8ln7qw.c"
target datalayout = "e-m:e-p270: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 [44 x i8] c"getloadavg: Could not obtain load average.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @load_avg(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca [3 x double], align 16
store ptr %0, ptr %3, align 8
%5 = getelementptr inbounds [3 x double], ptr %4, i64 0, i64 0
%6 = call i64 @getloadavg(ptr noundef %5, i32 noundef 3)
%7 = icmp slt i64 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %1
%9 = load i32, ptr @stderr, align 4
%10 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str)
store ptr null, ptr %2, align 8
br label %20
11: ; preds = %1
%12 = load ptr, ptr %3, align 8
%13 = getelementptr inbounds [3 x double], ptr %4, i64 0, i64 0
%14 = load double, ptr %13, align 16
%15 = getelementptr inbounds [3 x double], ptr %4, i64 0, i64 1
%16 = load double, ptr %15, align 8
%17 = getelementptr inbounds [3 x double], ptr %4, i64 0, i64 2
%18 = load double, ptr %17, align 16
%19 = call ptr @bprintf(ptr noundef %12, double noundef %14, double noundef %16, double noundef %18)
store ptr %19, ptr %2, align 8
br label %20
20: ; preds = %11, %8
%21 = load ptr, ptr %2, align 8
ret ptr %21
}
declare i64 @getloadavg(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare ptr @bprintf(ptr noundef, double noundef, double noundef, 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/tmpk_8ln7qw.c"
target datalayout = "e-m:e-p270: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 [44 x i8] c"getloadavg: Could not obtain load average.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @load_avg(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca [3 x double], align 16
store ptr %0, ptr %3, align 8
%5 = getelementptr inbounds [3 x double], ptr %4, i64 0, i64 0
%6 = call i64 @getloadavg(ptr noundef %5, i32 noundef 3)
%7 = icmp slt i64 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %1
%9 = load i32, ptr @stderr, align 4
%10 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str)
store ptr null, ptr %2, align 8
br label %20
11: ; preds = %1
%12 = load ptr, ptr %3, align 8
%13 = getelementptr inbounds [3 x double], ptr %4, i64 0, i64 0
%14 = load double, ptr %13, align 16
%15 = getelementptr inbounds [3 x double], ptr %4, i64 0, i64 1
%16 = load double, ptr %15, align 8
%17 = getelementptr inbounds [3 x double], ptr %4, i64 0, i64 2
%18 = load double, ptr %17, align 16
%19 = call ptr @bprintf(ptr noundef %12, double noundef %14, double noundef %16, double noundef %18)
store ptr %19, ptr %2, align 8
br label %20
20: ; preds = %11, %8
%21 = load ptr, ptr %2, align 8
ret ptr %21
}
declare i64 @getloadavg(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare ptr @bprintf(ptr noundef, double noundef, double noundef, 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/tmpzj0dg_yn.c'
source_filename = "/tmp/tmpzj0dg_yn.c"
target datalayout = "e-m:e-p270: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_DENIED = dso_local global i64 0, align 8
@RPC_AUTHERROR = dso_local global i32 0, align 4
@RPC_FAILED = dso_local global i32 0, align 4
@RPC_VERSMISMATCH = 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/tmpzj0dg_yn.c"
target datalayout = "e-m:e-p270: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_DENIED = dso_local global i64 0, align 8
@RPC_AUTHERROR = dso_local global i32 0, align 4
@RPC_FAILED = dso_local global i32 0, align 4
@RPC_VERSMISMATCH = 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/tmpdh26naxw.c'
source_filename = "/tmp/tmpdh26naxw.c"
target datalayout = "e-m:e-p270: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 @polymul(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %8, align 4
%15 = add nsw i32 %13, %14
%16 = sub nsw i32 %15, 1
store i32 %16, ptr %11, align 4
%17 = load i32, ptr %11, align 4
%18 = sext i32 %17 to i64
%19 = mul i64 %18, 8
%20 = trunc i64 %19 to i32
%21 = call i64 @malloc(i32 noundef %20)
%22 = inttoptr i64 %21 to ptr
store ptr %22, ptr %12, align 8
store i32 0, ptr %9, align 4
br label %23
23: ; preds = %33, %4
%24 = load i32, ptr %9, align 4
%25 = load i32, ptr %11, align 4
%26 = sub nsw i32 %25, 1
%27 = icmp sle i32 %24, %26
br i1 %27, label %28, label %36
28: ; preds = %23
%29 = load ptr, ptr %12, align 8
%30 = load i32, ptr %9, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds double, ptr %29, i64 %31
store double 0.000000e+00, ptr %32, align 8
br label %33
33: ; preds = %28
%34 = load i32, ptr %9, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %9, align 4
br label %23, !llvm.loop !6
36: ; preds = %23
store i32 0, ptr %9, align 4
br label %37
37: ; preds = %80, %36
%38 = load i32, ptr %9, align 4
%39 = load i32, ptr %6, align 4
%40 = sub nsw i32 %39, 1
%41 = icmp sle i32 %38, %40
br i1 %41, label %42, label %83
42: ; preds = %37
store i32 0, ptr %10, align 4
br label %43
43: ; preds = %76, %42
%44 = load i32, ptr %10, align 4
%45 = load i32, ptr %8, align 4
%46 = sub nsw i32 %45, 1
%47 = icmp sle i32 %44, %46
br i1 %47, label %48, label %79
48: ; preds = %43
%49 = load ptr, ptr %12, align 8
%50 = load i32, ptr %9, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds double, ptr %49, i64 %51
%53 = load i32, ptr %10, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds double, ptr %52, i64 %54
%56 = load double, ptr %55, align 8
%57 = load ptr, ptr %5, align 8
%58 = load i32, ptr %9, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds double, ptr %57, i64 %59
%61 = load double, ptr %60, align 8
%62 = fadd double %56, %61
%63 = load ptr, ptr %7, align 8
%64 = load i32, ptr %10, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds double, ptr %63, i64 %65
%67 = load double, ptr %66, align 8
%68 = fadd double %62, %67
%69 = load ptr, ptr %12, align 8
%70 = load i32, ptr %9, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds double, ptr %69, i64 %71
%73 = load i32, ptr %10, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds double, ptr %72, i64 %74
store double %68, ptr %75, align 8
br label %76
76: ; preds = %48
%77 = load i32, ptr %10, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %10, align 4
br label %43, !llvm.loop !8
79: ; preds = %43
br label %80
80: ; preds = %79
%81 = load i32, ptr %9, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %9, align 4
br label %37, !llvm.loop !9
83: ; preds = %37
%84 = load ptr, ptr %12, align 8
ret ptr %84
}
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}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdh26naxw.c"
target datalayout = "e-m:e-p270: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 @polymul(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %8, align 4
%15 = add nsw i32 %13, %14
%16 = sub nsw i32 %15, 1
store i32 %16, ptr %11, align 4
%17 = load i32, ptr %11, align 4
%18 = sext i32 %17 to i64
%19 = mul i64 %18, 8
%20 = trunc i64 %19 to i32
%21 = call i64 @malloc(i32 noundef %20)
%22 = inttoptr i64 %21 to ptr
store ptr %22, ptr %12, align 8
store i32 0, ptr %9, align 4
%23 = load i32, ptr %9, align 4
%24 = load i32, ptr %11, align 4
%25 = sub nsw i32 %24, 1
%26 = icmp sle i32 %23, %25
br i1 %26, label %.lr.ph, label %39
.lr.ph: ; preds = %4
br label %27
27: ; preds = %.lr.ph, %32
%28 = load ptr, ptr %12, align 8
%29 = load i32, ptr %9, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds double, ptr %28, i64 %30
store double 0.000000e+00, ptr %31, align 8
br label %32
32: ; preds = %27
%33 = load i32, ptr %9, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %9, align 4
%35 = load i32, ptr %9, align 4
%36 = load i32, ptr %11, align 4
%37 = sub nsw i32 %36, 1
%38 = icmp sle i32 %35, %37
br i1 %38, label %27, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %39
39: ; preds = %._crit_edge, %4
store i32 0, ptr %9, align 4
%40 = load i32, ptr %9, align 4
%41 = load i32, ptr %6, align 4
%42 = sub nsw i32 %41, 1
%43 = icmp sle i32 %40, %42
br i1 %43, label %.lr.ph5, label %92
.lr.ph5: ; preds = %39
br label %44
44: ; preds = %.lr.ph5, %85
store i32 0, ptr %10, align 4
%45 = load i32, ptr %10, align 4
%46 = load i32, ptr %8, align 4
%47 = sub nsw i32 %46, 1
%48 = icmp sle i32 %45, %47
br i1 %48, label %.lr.ph2, label %84
.lr.ph2: ; preds = %44
br label %49
49: ; preds = %.lr.ph2, %77
%50 = load ptr, ptr %12, align 8
%51 = load i32, ptr %9, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds double, ptr %50, i64 %52
%54 = load i32, ptr %10, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds double, ptr %53, i64 %55
%57 = load double, ptr %56, align 8
%58 = load ptr, ptr %5, align 8
%59 = load i32, ptr %9, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds double, ptr %58, i64 %60
%62 = load double, ptr %61, align 8
%63 = fadd double %57, %62
%64 = load ptr, ptr %7, align 8
%65 = load i32, ptr %10, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds double, ptr %64, i64 %66
%68 = load double, ptr %67, align 8
%69 = fadd double %63, %68
%70 = load ptr, ptr %12, align 8
%71 = load i32, ptr %9, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds double, ptr %70, i64 %72
%74 = load i32, ptr %10, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds double, ptr %73, i64 %75
store double %69, ptr %76, align 8
br label %77
77: ; preds = %49
%78 = load i32, ptr %10, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %10, align 4
%80 = load i32, ptr %10, align 4
%81 = load i32, ptr %8, align 4
%82 = sub nsw i32 %81, 1
%83 = icmp sle i32 %80, %82
br i1 %83, label %49, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %77
br label %84
84: ; preds = %._crit_edge3, %44
br label %85
85: ; preds = %84
%86 = load i32, ptr %9, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %9, align 4
%88 = load i32, ptr %9, align 4
%89 = load i32, ptr %6, align 4
%90 = sub nsw i32 %89, 1
%91 = icmp sle i32 %88, %90
br i1 %91, label %44, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %85
br label %92
92: ; preds = %._crit_edge6, %39
%93 = load ptr, ptr %12, align 8
ret ptr %93
}
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}
|
; ModuleID = '/tmp/tmpqjlerd6p.c'
source_filename = "/tmp/tmpqjlerd6p.c"
target datalayout = "e-m:e-p270: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/tmpqjlerd6p.c"
target datalayout = "e-m:e-p270: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/tmpaikop0zr.c'
source_filename = "/tmp/tmpaikop0zr.c"
target datalayout = "e-m:e-p270: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/tmpaikop0zr.c"
target datalayout = "e-m:e-p270: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/tmpiiv_yd51.c'
source_filename = "/tmp/tmpiiv_yd51.c"
target datalayout = "e-m:e-p270: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/tmpiiv_yd51.c"
target datalayout = "e-m:e-p270: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/tmp634xcw7h.c'
source_filename = "/tmp/tmp634xcw7h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Getaddrinfo() error\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Getaddrinfo(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
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
%10 = load ptr, ptr %6, align 8
%11 = load ptr, ptr %7, align 8
%12 = load ptr, ptr %8, align 8
%13 = load ptr, ptr %9, align 8
%14 = call i64 @getaddrinfo(ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13)
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %4
%17 = call i32 @perror(ptr noundef @.str)
store i32 -1, ptr %5, align 4
br label %19
18: ; preds = %4
store i32 0, ptr %5, align 4
br label %19
19: ; preds = %18, %16
%20 = load i32, ptr %5, align 4
ret i32 %20
}
declare i64 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp634xcw7h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Getaddrinfo() error\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Getaddrinfo(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
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
%10 = load ptr, ptr %6, align 8
%11 = load ptr, ptr %7, align 8
%12 = load ptr, ptr %8, align 8
%13 = load ptr, ptr %9, align 8
%14 = call i64 @getaddrinfo(ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13)
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %4
%17 = call i32 @perror(ptr noundef @.str)
store i32 -1, ptr %5, align 4
br label %19
18: ; preds = %4
store i32 0, ptr %5, align 4
br label %19
19: ; preds = %18, %16
%20 = load i32, ptr %5, align 4
ret i32 %20
}
declare i64 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9_mkwm97.c'
source_filename = "/tmp/tmp9_mkwm97.c"
target datalayout = "e-m:e-p270: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/tmp9_mkwm97.c"
target datalayout = "e-m:e-p270: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/tmpi6vvltc0.c'
source_filename = "/tmp/tmpi6vvltc0.c"
target datalayout = "e-m:e-p270: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/tmpi6vvltc0.c"
target datalayout = "e-m:e-p270: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_lkfxwd8.c'
source_filename = "/tmp/tmp_lkfxwd8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_lkfxwd8.c"
target datalayout = "e-m:e-p270: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/tmphafiopz1.c'
source_filename = "/tmp/tmphafiopz1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.buf = private unnamed_addr constant [10 x i8] c"01Hello78\00", align 1
@.str = private unnamed_addr constant [6 x i8] c"Hello\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 ptr, align 8
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 %6, ptr align 1 @__const.main.buf, i64 10, i1 false)
%8 = getelementptr inbounds [10 x i8], ptr %6, i64 0, i64 0
%9 = call ptr @memrmem(ptr noundef %8, i32 noundef 10, ptr noundef @.str, i32 noundef 5)
store ptr %9, ptr %7, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %12
11: ; preds = %2
store i32 1, ptr %3, align 4
br label %13
12: ; preds = %2
store i32 0, ptr %3, align 4
br label %13
13: ; preds = %12, %11
%14 = load i32, ptr %3, align 4
ret i32 %14
}
; 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 ptr @memrmem(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphafiopz1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.buf = private unnamed_addr constant [10 x i8] c"01Hello78\00", align 1
@.str = private unnamed_addr constant [6 x i8] c"Hello\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 ptr, align 8
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 %6, ptr align 1 @__const.main.buf, i64 10, i1 false)
%8 = getelementptr inbounds [10 x i8], ptr %6, i64 0, i64 0
%9 = call ptr @memrmem(ptr noundef %8, i32 noundef 10, ptr noundef @.str, i32 noundef 5)
store ptr %9, ptr %7, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %12
11: ; preds = %2
store i32 1, ptr %3, align 4
br label %13
12: ; preds = %2
store i32 0, ptr %3, align 4
br label %13
13: ; preds = %12, %11
%14 = load i32, ptr %3, align 4
ret i32 %14
}
; 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 ptr @memrmem(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpci2d_6qg.c'
source_filename = "/tmp/tmpci2d_6qg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"ALL GOOD\0A\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"IMPOSSIBLE\0A\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"%.6f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%5 = load i32, ptr %2, align 4
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %12
7: ; preds = %0
%8 = load i32, ptr %3, align 4
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %12
10: ; preds = %7
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %26
12: ; preds = %7, %0
%13 = load i32, ptr %3, align 4
%14 = icmp eq i32 %13, 1
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %25
17: ; preds = %12
%18 = load i32, ptr %2, align 4
%19 = sitofp i32 %18 to double
%20 = load i32, ptr %3, align 4
%21 = sitofp i32 %20 to double
%22 = fsub double 1.000000e+00, %21
%23 = fdiv double %19, %22
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %23)
br label %25
25: ; preds = %17, %15
br label %26
26: ; preds = %25, %10
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpci2d_6qg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"ALL GOOD\0A\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"IMPOSSIBLE\0A\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"%.6f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%5 = load i32, ptr %2, align 4
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %12
7: ; preds = %0
%8 = load i32, ptr %3, align 4
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %12
10: ; preds = %7
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %26
12: ; preds = %7, %0
%13 = load i32, ptr %3, align 4
%14 = icmp eq i32 %13, 1
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %25
17: ; preds = %12
%18 = load i32, ptr %2, align 4
%19 = sitofp i32 %18 to double
%20 = load i32, ptr %3, align 4
%21 = sitofp i32 %20 to double
%22 = fsub double 1.000000e+00, %21
%23 = fdiv double %19, %22
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %23)
br label %25
25: ; preds = %17, %15
br label %26
26: ; preds = %25, %10
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5qjtcwq3.c'
source_filename = "/tmp/tmp5qjtcwq3.c"
target datalayout = "e-m:e-p270: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/tmp5qjtcwq3.c"
target datalayout = "e-m:e-p270: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/tmp7k4hvogh.c'
source_filename = "/tmp/tmp7k4hvogh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @max_letter(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
%3 = alloca [625 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [7 x i32], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i8 %0, ptr %2, align 1
call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 625, i1 false)
store i32 0, ptr %4, align 4
br label %9
9: ; preds = %27, %1
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 25
br i1 %11, label %12, label %30
12: ; preds = %9
store i32 0, ptr %5, align 4
br label %13
13: ; preds = %23, %12
%14 = load i32, ptr %5, align 4
%15 = icmp slt i32 %14, 25
br i1 %15, label %16, label %26
16: ; preds = %13
%17 = load i32, ptr %5, align 4
%18 = mul nsw i32 %17, 25
%19 = load i32, ptr %4, align 4
%20 = add nsw i32 %18, %19
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [625 x i8], ptr %3, i64 0, i64 %21
store i8 90, ptr %22, align 1
br label %23
23: ; preds = %16
%24 = load i32, ptr %5, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %5, align 4
br label %13, !llvm.loop !6
26: ; preds = %13
br label %27
27: ; preds = %26
%28 = load i32, ptr %4, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %4, align 4
br label %9, !llvm.loop !8
30: ; preds = %9
call void @llvm.memset.p0.i64(ptr align 16 %6, i8 0, i64 28, i1 false)
store i32 0, ptr %7, align 4
br label %31
31: ; preds = %89, %30
%32 = load i32, ptr %7, align 4
%33 = icmp slt i32 %32, 25
br i1 %33, label %34, label %92
34: ; preds = %31
store i32 0, ptr %8, align 4
br label %35
35: ; preds = %85, %34
%36 = load i32, ptr %8, align 4
%37 = icmp slt i32 %36, 25
br i1 %37, label %38, label %88
38: ; preds = %35
%39 = load i32, ptr %7, align 4
%40 = load i32, ptr %8, align 4
%41 = call i64 @is_color(i32 noundef %39, i32 noundef %40)
%42 = icmp ne i64 %41, 0
br i1 %42, label %43, label %84
43: ; preds = %38
%44 = load i32, ptr %8, align 4
%45 = mul nsw i32 %44, 25
%46 = load i32, ptr %7, align 4
%47 = add nsw i32 %45, %46
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [625 x i8], ptr %3, i64 0, i64 %48
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = icmp eq i32 %51, 90
br i1 %52, label %53, label %84
53: ; preds = %43
%54 = load i32, ptr %7, align 4
%55 = load i32, ptr %8, align 4
%56 = load i8, ptr %2, align 1
%57 = call i32 @is_close(i32 noundef %54, i32 noundef %55, i8 noundef signext %56)
%58 = load i32, ptr %7, align 4
%59 = load i32, ptr %8, align 4
%60 = getelementptr inbounds [625 x i8], ptr %3, i64 0, i64 0
%61 = load i32, ptr %7, align 4
%62 = load i32, ptr %8, align 4
%63 = call signext i8 @get_cell(i32 noundef %61, i32 noundef %62)
%64 = call i32 @general_is_close(i32 noundef %58, i32 noundef %59, ptr noundef %60, i8 noundef signext %63)
%65 = or i32 %57, %64
%66 = icmp ne i32 %65, 0
br i1 %66, label %67, label %84
67: ; preds = %53
%68 = load i32, ptr %7, align 4
%69 = load i32, ptr %8, align 4
%70 = call signext i8 @get_cell(i32 noundef %68, i32 noundef %69)
%71 = load i32, ptr %8, align 4
%72 = mul nsw i32 %71, 25
%73 = load i32, ptr %7, align 4
%74 = add nsw i32 %72, %73
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [625 x i8], ptr %3, i64 0, i64 %75
store i8 %70, ptr %76, align 1
%77 = load i32, ptr %7, align 4
%78 = load i32, ptr %8, align 4
%79 = call signext i8 @get_cell(i32 noundef %77, i32 noundef %78)
%80 = call i64 @convert_char_int(i8 noundef signext %79)
%81 = getelementptr inbounds [7 x i32], ptr %6, i64 0, i64 %80
%82 = load i32, ptr %81, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %81, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %7, align 4
br label %84
84: ; preds = %67, %53, %43, %38
br label %85
85: ; preds = %84
%86 = load i32, ptr %8, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %8, align 4
br label %35, !llvm.loop !9
88: ; preds = %35
br label %89
89: ; preds = %88
%90 = load i32, ptr %7, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %7, align 4
br label %31, !llvm.loop !10
92: ; preds = %31
%93 = getelementptr inbounds [7 x i32], ptr %6, i64 0, i64 0
%94 = call i32 @max_array(ptr noundef %93)
%95 = call signext i8 @convert_int_char(i32 noundef %94)
ret i8 %95
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i64 @is_color(i32 noundef, i32 noundef) #2
declare i32 @is_close(i32 noundef, i32 noundef, i8 noundef signext) #2
declare i32 @general_is_close(i32 noundef, i32 noundef, ptr noundef, i8 noundef signext) #2
declare signext i8 @get_cell(i32 noundef, i32 noundef) #2
declare i64 @convert_char_int(i8 noundef signext) #2
declare signext i8 @convert_int_char(i32 noundef) #2
declare i32 @max_array(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7k4hvogh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @max_letter(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
%3 = alloca [625 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [7 x i32], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i8 %0, ptr %2, align 1
call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 625, i1 false)
store i32 0, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %9, 25
br i1 %10, label %.lr.ph2, label %32
.lr.ph2: ; preds = %1
br label %11
11: ; preds = %.lr.ph2, %27
store i32 0, ptr %5, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp slt i32 %12, 25
br i1 %13, label %.lr.ph, label %26
.lr.ph: ; preds = %11
br label %14
14: ; preds = %.lr.ph, %21
%15 = load i32, ptr %5, align 4
%16 = mul nsw i32 %15, 25
%17 = load i32, ptr %4, align 4
%18 = add nsw i32 %16, %17
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [625 x i8], ptr %3, i64 0, i64 %19
store i8 90, ptr %20, align 1
br label %21
21: ; preds = %14
%22 = load i32, ptr %5, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %5, align 4
%24 = load i32, ptr %5, align 4
%25 = icmp slt i32 %24, 25
br i1 %25, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %26
26: ; preds = %._crit_edge, %11
br label %27
27: ; preds = %26
%28 = load i32, ptr %4, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %4, align 4
%30 = load i32, ptr %4, align 4
%31 = icmp slt i32 %30, 25
br i1 %31, label %11, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %27
br label %32
32: ; preds = %._crit_edge3, %1
call void @llvm.memset.p0.i64(ptr align 16 %6, i8 0, i64 28, i1 false)
store i32 0, ptr %7, align 4
%33 = load i32, ptr %7, align 4
%34 = icmp slt i32 %33, 25
br i1 %34, label %.lr.ph8, label %96
.lr.ph8: ; preds = %32
br label %35
35: ; preds = %.lr.ph8, %91
store i32 0, ptr %8, align 4
%36 = load i32, ptr %8, align 4
%37 = icmp slt i32 %36, 25
br i1 %37, label %.lr.ph5, label %90
.lr.ph5: ; preds = %35
br label %38
38: ; preds = %.lr.ph5, %85
%39 = load i32, ptr %7, align 4
%40 = load i32, ptr %8, align 4
%41 = call i64 @is_color(i32 noundef %39, i32 noundef %40)
%42 = icmp ne i64 %41, 0
br i1 %42, label %43, label %84
43: ; preds = %38
%44 = load i32, ptr %8, align 4
%45 = mul nsw i32 %44, 25
%46 = load i32, ptr %7, align 4
%47 = add nsw i32 %45, %46
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [625 x i8], ptr %3, i64 0, i64 %48
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = icmp eq i32 %51, 90
br i1 %52, label %53, label %84
53: ; preds = %43
%54 = load i32, ptr %7, align 4
%55 = load i32, ptr %8, align 4
%56 = load i8, ptr %2, align 1
%57 = call i32 @is_close(i32 noundef %54, i32 noundef %55, i8 noundef signext %56)
%58 = load i32, ptr %7, align 4
%59 = load i32, ptr %8, align 4
%60 = getelementptr inbounds [625 x i8], ptr %3, i64 0, i64 0
%61 = load i32, ptr %7, align 4
%62 = load i32, ptr %8, align 4
%63 = call signext i8 @get_cell(i32 noundef %61, i32 noundef %62)
%64 = call i32 @general_is_close(i32 noundef %58, i32 noundef %59, ptr noundef %60, i8 noundef signext %63)
%65 = or i32 %57, %64
%66 = icmp ne i32 %65, 0
br i1 %66, label %67, label %84
67: ; preds = %53
%68 = load i32, ptr %7, align 4
%69 = load i32, ptr %8, align 4
%70 = call signext i8 @get_cell(i32 noundef %68, i32 noundef %69)
%71 = load i32, ptr %8, align 4
%72 = mul nsw i32 %71, 25
%73 = load i32, ptr %7, align 4
%74 = add nsw i32 %72, %73
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [625 x i8], ptr %3, i64 0, i64 %75
store i8 %70, ptr %76, align 1
%77 = load i32, ptr %7, align 4
%78 = load i32, ptr %8, align 4
%79 = call signext i8 @get_cell(i32 noundef %77, i32 noundef %78)
%80 = call i64 @convert_char_int(i8 noundef signext %79)
%81 = getelementptr inbounds [7 x i32], ptr %6, i64 0, i64 %80
%82 = load i32, ptr %81, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %81, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %7, align 4
br label %84
84: ; preds = %67, %53, %43, %38
br label %85
85: ; preds = %84
%86 = load i32, ptr %8, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %8, align 4
%88 = load i32, ptr %8, align 4
%89 = icmp slt i32 %88, 25
br i1 %89, label %38, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %85
br label %90
90: ; preds = %._crit_edge6, %35
br label %91
91: ; preds = %90
%92 = load i32, ptr %7, align 4
%93 = add nsw i32 %92, 1
store i32 %93, ptr %7, align 4
%94 = load i32, ptr %7, align 4
%95 = icmp slt i32 %94, 25
br i1 %95, label %35, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %91
br label %96
96: ; preds = %._crit_edge9, %32
%97 = getelementptr inbounds [7 x i32], ptr %6, i64 0, i64 0
%98 = call i32 @max_array(ptr noundef %97)
%99 = call signext i8 @convert_int_char(i32 noundef %98)
ret i8 %99
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i64 @is_color(i32 noundef, i32 noundef) #2
declare i32 @is_close(i32 noundef, i32 noundef, i8 noundef signext) #2
declare i32 @general_is_close(i32 noundef, i32 noundef, ptr noundef, i8 noundef signext) #2
declare signext i8 @get_cell(i32 noundef, i32 noundef) #2
declare i64 @convert_char_int(i8 noundef signext) #2
declare signext i8 @convert_int_char(i32 noundef) #2
declare i32 @max_array(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmptnun8yvu.c'
source_filename = "/tmp/tmptnun8yvu.c"
target datalayout = "e-m:e-p270: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 @strcspn(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 0, ptr %6, align 8
br label %7
7: ; preds = %21, %2
%8 = load ptr, ptr %4, align 8
%9 = load i8, ptr %8, align 1
%10 = icmp ne i8 %9, 0
br i1 %10, label %11, label %24
11: ; preds = %7
%12 = load ptr, ptr %5, align 8
%13 = load ptr, ptr %4, align 8
%14 = getelementptr inbounds i8, ptr %13, i32 1
store ptr %14, ptr %4, align 8
%15 = load i8, ptr %13, align 1
%16 = sext i8 %15 to i32
%17 = call i64 @strchr(ptr noundef %12, i32 noundef %16)
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %11
%20 = load i64, ptr %6, align 8
store i64 %20, ptr %3, align 8
br label %26
21: ; preds = %11
%22 = load i64, ptr %6, align 8
%23 = add i64 %22, 1
store i64 %23, ptr %6, align 8
br label %7, !llvm.loop !6
24: ; preds = %7
%25 = load i64, ptr %6, align 8
store i64 %25, ptr %3, align 8
br label %26
26: ; preds = %24, %19
%27 = load i64, ptr %3, align 8
ret i64 %27
}
declare i64 @strchr(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/tmptnun8yvu.c"
target datalayout = "e-m:e-p270: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 @strcspn(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 0, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load i8, ptr %7, align 1
%9 = icmp ne i8 %8, 0
br i1 %9, label %.lr.ph, label %26
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %20
%11 = load ptr, ptr %5, align 8
%12 = load ptr, ptr %4, align 8
%13 = getelementptr inbounds i8, ptr %12, i32 1
store ptr %13, ptr %4, align 8
%14 = load i8, ptr %12, align 1
%15 = sext i8 %14 to i32
%16 = call i64 @strchr(ptr noundef %11, i32 noundef %15)
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %10
%19 = load i64, ptr %6, align 8
store i64 %19, ptr %3, align 8
br label %28
20: ; preds = %10
%21 = load i64, ptr %6, align 8
%22 = add i64 %21, 1
store i64 %22, ptr %6, align 8
%23 = load ptr, ptr %4, align 8
%24 = load i8, ptr %23, align 1
%25 = icmp ne i8 %24, 0
br i1 %25, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %26
26: ; preds = %._crit_edge, %2
%27 = load i64, ptr %6, align 8
store i64 %27, ptr %3, align 8
br label %28
28: ; preds = %26, %18
%29 = load i64, ptr %3, align 8
ret i64 %29
}
declare i64 @strchr(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/tmpiiac5zrl.c'
source_filename = "/tmp/tmpiiac5zrl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @merge_sort(ptr noundef %0, i64 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%11 = load i64, ptr %6, align 8
%12 = mul i64 %11, 4
store i64 %12, ptr %9, align 8
%13 = load i64, ptr %9, align 8
%14 = call ptr @malloc(i64 noundef %13)
store ptr %14, ptr %10, align 8
%15 = load ptr, ptr %10, align 8
%16 = icmp eq ptr %15, null
br i1 %16, label %17, label %20
17: ; preds = %4
%18 = load i32, ptr @EXIT_FAILURE, align 4
%19 = call i32 @exit(i32 noundef %18) #3
unreachable
20: ; preds = %4
%21 = load ptr, ptr %10, align 8
%22 = load ptr, ptr %5, align 8
%23 = load i64, ptr %9, align 8
%24 = call i32 @memcpy(ptr noundef %21, ptr noundef %22, i64 noundef %23)
%25 = call i32 @omp_set_nested(i32 noundef 0)
%26 = load i32, ptr %8, align 4
%27 = call i32 @omp_set_max_active_levels(i32 noundef %26)
%28 = load i32, ptr %7, align 4
%29 = call i32 @omp_set_num_threads(i32 noundef %28)
%30 = load ptr, ptr %5, align 8
%31 = load ptr, ptr %10, align 8
%32 = load i64, ptr %6, align 8
%33 = call i32 @split(ptr noundef %30, ptr noundef %31, i32 noundef 0, i64 noundef %32)
%34 = load ptr, ptr %10, align 8
%35 = call i32 @free(ptr noundef %34)
ret void
}
declare ptr @malloc(i64 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @omp_set_nested(i32 noundef) #1
declare i32 @omp_set_max_active_levels(i32 noundef) #1
declare i32 @omp_set_num_threads(i32 noundef) #1
declare i32 @split(ptr noundef, ptr noundef, i32 noundef, i64 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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/tmpiiac5zrl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @merge_sort(ptr noundef %0, i64 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%11 = load i64, ptr %6, align 8
%12 = mul i64 %11, 4
store i64 %12, ptr %9, align 8
%13 = load i64, ptr %9, align 8
%14 = call ptr @malloc(i64 noundef %13)
store ptr %14, ptr %10, align 8
%15 = load ptr, ptr %10, align 8
%16 = icmp eq ptr %15, null
br i1 %16, label %17, label %20
17: ; preds = %4
%18 = load i32, ptr @EXIT_FAILURE, align 4
%19 = call i32 @exit(i32 noundef %18) #3
unreachable
20: ; preds = %4
%21 = load ptr, ptr %10, align 8
%22 = load ptr, ptr %5, align 8
%23 = load i64, ptr %9, align 8
%24 = call i32 @memcpy(ptr noundef %21, ptr noundef %22, i64 noundef %23)
%25 = call i32 @omp_set_nested(i32 noundef 0)
%26 = load i32, ptr %8, align 4
%27 = call i32 @omp_set_max_active_levels(i32 noundef %26)
%28 = load i32, ptr %7, align 4
%29 = call i32 @omp_set_num_threads(i32 noundef %28)
%30 = load ptr, ptr %5, align 8
%31 = load ptr, ptr %10, align 8
%32 = load i64, ptr %6, align 8
%33 = call i32 @split(ptr noundef %30, ptr noundef %31, i32 noundef 0, i64 noundef %32)
%34 = load ptr, ptr %10, align 8
%35 = call i32 @free(ptr noundef %34)
ret void
}
declare ptr @malloc(i64 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @omp_set_nested(i32 noundef) #1
declare i32 @omp_set_max_active_levels(i32 noundef) #1
declare i32 @omp_set_num_threads(i32 noundef) #1
declare i32 @split(ptr noundef, ptr noundef, i32 noundef, i64 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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/tmp0ooe649y.c'
source_filename = "/tmp/tmp0ooe649y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@AF_INET = 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/tmp0ooe649y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@AF_INET = 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/tmpij_4x3j3.c'
source_filename = "/tmp/tmpij_4x3j3.c"
target datalayout = "e-m:e-p270: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/tmpij_4x3j3.c"
target datalayout = "e-m:e-p270: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_jfwe098.c'
source_filename = "/tmp/tmp_jfwe098.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_jfwe098.c"
target datalayout = "e-m:e-p270: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/tmp3nvulnsu.c'
source_filename = "/tmp/tmp3nvulnsu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.test_remove_complex_2.items = private unnamed_addr constant [7 x i32] [i32 60, i32 44, i32 69, i32 67, i32 91, i32 89, i32 98], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_remove_complex_2() #0 {
%1 = alloca ptr, align 8
%2 = alloca [7 x i32], align 16
%3 = alloca i64, align 8
store ptr null, ptr %1, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.test_remove_complex_2.items, i64 28, i1 false)
store i64 0, ptr %3, align 8
br label %4
4: ; preds = %12, %0
%5 = load i64, ptr %3, align 8
%6 = icmp ult i64 %5, 7
br i1 %6, label %7, label %15
7: ; preds = %4
%8 = load i64, ptr %3, align 8
%9 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 %8
%10 = load i32, ptr %9, align 4
%11 = call i32 @insert(ptr noundef %1, i32 noundef %10)
br label %12
12: ; preds = %7
%13 = load i64, ptr %3, align 8
%14 = add i64 %13, 1
store i64 %14, ptr %3, align 8
br label %4, !llvm.loop !6
15: ; preds = %4
%16 = load ptr, ptr %1, align 8
%17 = call i32 @test_tree_properties(ptr noundef %16)
%18 = call i32 @remove_node(ptr noundef %1, i32 noundef 69)
%19 = call i32 @remove_node(ptr noundef %1, i32 noundef 91)
%20 = load ptr, ptr %1, align 8
%21 = call i32 @test_tree_properties(ptr noundef %20)
%22 = load ptr, ptr %1, align 8
%23 = call i32 @free_tree(ptr noundef %22)
store ptr null, ptr %1, align 8
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @insert(ptr noundef, i32 noundef) #2
declare i32 @test_tree_properties(ptr noundef) #2
declare i32 @remove_node(ptr noundef, i32 noundef) #2
declare i32 @free_tree(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3nvulnsu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.test_remove_complex_2.items = private unnamed_addr constant [7 x i32] [i32 60, i32 44, i32 69, i32 67, i32 91, i32 89, i32 98], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_remove_complex_2() #0 {
%1 = alloca ptr, align 8
%2 = alloca [7 x i32], align 16
%3 = alloca i64, align 8
store ptr null, ptr %1, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.test_remove_complex_2.items, i64 28, i1 false)
store i64 0, ptr %3, align 8
%4 = load i64, ptr %3, align 8
%5 = icmp ult i64 %4, 7
br i1 %5, label %.lr.ph, label %16
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %11
%7 = load i64, ptr %3, align 8
%8 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 %7
%9 = load i32, ptr %8, align 4
%10 = call i32 @insert(ptr noundef %1, i32 noundef %9)
br label %11
11: ; preds = %6
%12 = load i64, ptr %3, align 8
%13 = add i64 %12, 1
store i64 %13, ptr %3, align 8
%14 = load i64, ptr %3, align 8
%15 = icmp ult i64 %14, 7
br i1 %15, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %11
br label %16
16: ; preds = %._crit_edge, %0
%17 = load ptr, ptr %1, align 8
%18 = call i32 @test_tree_properties(ptr noundef %17)
%19 = call i32 @remove_node(ptr noundef %1, i32 noundef 69)
%20 = call i32 @remove_node(ptr noundef %1, i32 noundef 91)
%21 = load ptr, ptr %1, align 8
%22 = call i32 @test_tree_properties(ptr noundef %21)
%23 = load ptr, ptr %1, align 8
%24 = call i32 @free_tree(ptr noundef %23)
store ptr null, ptr %1, align 8
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @insert(ptr noundef, i32 noundef) #2
declare i32 @test_tree_properties(ptr noundef) #2
declare i32 @remove_node(ptr noundef, i32 noundef) #2
declare i32 @free_tree(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpd359ct55.c'
source_filename = "/tmp/tmpd359ct55.c"
target datalayout = "e-m:e-p270: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 @leftWallTower() #0 {
%1 = alloca i32, align 4
store i32 -5, ptr %1, align 4
%2 = call i32 (...) @glPushMatrix()
%3 = call i32 @glColor3f(double noundef 1.000000e+00, double noundef 0x3FE6666666666666, double noundef 0.000000e+00)
%4 = load i32, ptr %1, align 4
%5 = call i32 @glTranslatef(double noundef -1.700000e+00, double noundef 0.000000e+00, i32 noundef %4)
%6 = call i32 @glRotatef(i32 noundef -90, double noundef 1.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00)
%7 = call i32 (...) @gluNewQuadric()
%8 = call i32 @gluCylinder(i32 noundef %7, double noundef 4.500000e-01, double noundef 4.000000e-01, double noundef 1.350000e+00, i32 noundef 32, i32 noundef 32)
%9 = call i32 (...) @glPopMatrix()
%10 = call i32 (...) @glPushMatrix()
%11 = call i32 @glColor3f(double noundef 6.500000e-01, double noundef 0.000000e+00, double noundef 0.000000e+00)
%12 = load i32, ptr %1, align 4
%13 = call i32 @glTranslatef(double noundef -1.700000e+00, double noundef 1.350000e+00, i32 noundef %12)
%14 = call i32 @glRotatef(i32 noundef -90, double noundef 1.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00)
%15 = call i32 @glutSolidCone(double noundef 6.000000e-01, double noundef 4.000000e-01, i32 noundef 20, i32 noundef 16)
%16 = call i32 (...) @glPopMatrix()
ret void
}
declare i32 @glPushMatrix(...) #1
declare i32 @glColor3f(double noundef, double noundef, double noundef) #1
declare i32 @glTranslatef(double noundef, double noundef, i32 noundef) #1
declare i32 @glRotatef(i32 noundef, double noundef, double noundef, double noundef) #1
declare i32 @gluCylinder(i32 noundef, double noundef, double noundef, double noundef, i32 noundef, i32 noundef) #1
declare i32 @gluNewQuadric(...) #1
declare i32 @glPopMatrix(...) #1
declare i32 @glutSolidCone(double noundef, double 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/tmpd359ct55.c"
target datalayout = "e-m:e-p270: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 @leftWallTower() #0 {
%1 = alloca i32, align 4
store i32 -5, ptr %1, align 4
%2 = call i32 (...) @glPushMatrix()
%3 = call i32 @glColor3f(double noundef 1.000000e+00, double noundef 0x3FE6666666666666, double noundef 0.000000e+00)
%4 = load i32, ptr %1, align 4
%5 = call i32 @glTranslatef(double noundef -1.700000e+00, double noundef 0.000000e+00, i32 noundef %4)
%6 = call i32 @glRotatef(i32 noundef -90, double noundef 1.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00)
%7 = call i32 (...) @gluNewQuadric()
%8 = call i32 @gluCylinder(i32 noundef %7, double noundef 4.500000e-01, double noundef 4.000000e-01, double noundef 1.350000e+00, i32 noundef 32, i32 noundef 32)
%9 = call i32 (...) @glPopMatrix()
%10 = call i32 (...) @glPushMatrix()
%11 = call i32 @glColor3f(double noundef 6.500000e-01, double noundef 0.000000e+00, double noundef 0.000000e+00)
%12 = load i32, ptr %1, align 4
%13 = call i32 @glTranslatef(double noundef -1.700000e+00, double noundef 1.350000e+00, i32 noundef %12)
%14 = call i32 @glRotatef(i32 noundef -90, double noundef 1.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00)
%15 = call i32 @glutSolidCone(double noundef 6.000000e-01, double noundef 4.000000e-01, i32 noundef 20, i32 noundef 16)
%16 = call i32 (...) @glPopMatrix()
ret void
}
declare i32 @glPushMatrix(...) #1
declare i32 @glColor3f(double noundef, double noundef, double noundef) #1
declare i32 @glTranslatef(double noundef, double noundef, i32 noundef) #1
declare i32 @glRotatef(i32 noundef, double noundef, double noundef, double noundef) #1
declare i32 @gluCylinder(i32 noundef, double noundef, double noundef, double noundef, i32 noundef, i32 noundef) #1
declare i32 @gluNewQuadric(...) #1
declare i32 @glPopMatrix(...) #1
declare i32 @glutSolidCone(double noundef, double 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/tmp5885mkhk.c'
source_filename = "/tmp/tmp5885mkhk.c"
target datalayout = "e-m:e-p270: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/tmp5885mkhk.c"
target datalayout = "e-m:e-p270: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/tmptd5giiix.c'
source_filename = "/tmp/tmptd5giiix.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptd5giiix.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzlyib4mz.c'
source_filename = "/tmp/tmpzlyib4mz.c"
target datalayout = "e-m:e-p270: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 @bundle_raw_set_proc_flags(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
%10 = load i32, ptr %5, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %5, align 4
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %5, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i32, ptr %12, i64 %14
%16 = call i32 @sdnv_decode(ptr noundef %15, ptr noundef %9)
store i32 %16, ptr %7, align 4
%17 = load i32, ptr %4, align 4
%18 = call i32 @sdnv_encoding_len(i32 noundef %17)
store i32 %18, ptr %8, align 4
%19 = load i32, ptr %7, align 4
%20 = load i32, ptr %8, align 4
%21 = icmp eq i32 %19, %20
br i1 %21, label %22, label %29
22: ; preds = %2
%23 = load i32, ptr %4, align 4
%24 = load ptr, ptr %3, align 8
%25 = load i32, ptr %5, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i32, ptr %24, i64 %26
%28 = call i32 @sdnv_encode(i32 noundef %23, ptr noundef %27)
br label %30
29: ; preds = %2
store i32 1, ptr %6, align 4
br label %30
30: ; preds = %29, %22
%31 = load i32, ptr %6, align 4
ret i32 %31
}
declare i32 @sdnv_decode(ptr noundef, ptr noundef) #1
declare i32 @sdnv_encoding_len(i32 noundef) #1
declare i32 @sdnv_encode(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/tmpzlyib4mz.c"
target datalayout = "e-m:e-p270: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 @bundle_raw_set_proc_flags(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
%10 = load i32, ptr %5, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %5, align 4
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %5, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i32, ptr %12, i64 %14
%16 = call i32 @sdnv_decode(ptr noundef %15, ptr noundef %9)
store i32 %16, ptr %7, align 4
%17 = load i32, ptr %4, align 4
%18 = call i32 @sdnv_encoding_len(i32 noundef %17)
store i32 %18, ptr %8, align 4
%19 = load i32, ptr %7, align 4
%20 = load i32, ptr %8, align 4
%21 = icmp eq i32 %19, %20
br i1 %21, label %22, label %29
22: ; preds = %2
%23 = load i32, ptr %4, align 4
%24 = load ptr, ptr %3, align 8
%25 = load i32, ptr %5, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i32, ptr %24, i64 %26
%28 = call i32 @sdnv_encode(i32 noundef %23, ptr noundef %27)
br label %30
29: ; preds = %2
store i32 1, ptr %6, align 4
br label %30
30: ; preds = %29, %22
%31 = load i32, ptr %6, align 4
ret i32 %31
}
declare i32 @sdnv_decode(ptr noundef, ptr noundef) #1
declare i32 @sdnv_encoding_len(i32 noundef) #1
declare i32 @sdnv_encode(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/tmp4ekz6vha.c'
source_filename = "/tmp/tmp4ekz6vha.c"
target datalayout = "e-m:e-p270: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/tmp4ekz6vha.c"
target datalayout = "e-m:e-p270: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/tmp0_xebc2l.c'
source_filename = "/tmp/tmp0_xebc2l.c"
target datalayout = "e-m:e-p270: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/tmp0_xebc2l.c"
target datalayout = "e-m:e-p270: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/tmpm4ns_nos.c'
source_filename = "/tmp/tmpm4ns_nos.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_5__ = type { i32, i64, i64 }
%struct.TYPE_4__ = type { i64, i32, i32, i32 }
@PT_LOAD = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [29 x i8] c"+ Found .text segment (#%d)\0A\00", align 1
@.str.1 = private unnamed_addr constant [61 x i8] c" * Found LOAD segment (#%d) close to .text (offset: 0x%x)\0A\00", align 1
@.str.2 = private unnamed_addr constant [58 x i8] c"+ .text segment gap at offset 0x%x(0x%x bytes available)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @elfi_find_gap(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%16 = load ptr, ptr %5, align 8
store ptr %16, ptr %9, align 8
%17 = load ptr, ptr %9, align 8
%18 = getelementptr inbounds %struct.TYPE_5__, ptr %17, i32 0, i32 0
%19 = load i32, ptr %18, align 8
store i32 %19, ptr %12, align 4
%20 = load i32, ptr %6, align 4
store i32 %20, ptr %15, align 4
%21 = load ptr, ptr %9, align 8
%22 = load ptr, ptr %9, align 8
%23 = getelementptr inbounds %struct.TYPE_5__, ptr %22, i32 0, i32 2
%24 = load i64, ptr %23, align 8
%25 = trunc i64 %24 to i32
%26 = zext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %21, i64 %26
store ptr %27, ptr %10, align 8
store i32 0, ptr %13, align 4
br label %28
28: ; preds = %89, %4
%29 = load i32, ptr %13, align 4
%30 = load i32, ptr %12, align 4
%31 = icmp slt i32 %29, %30
br i1 %31, label %32, label %92
32: ; preds = %28
%33 = load ptr, ptr %10, align 8
%34 = getelementptr inbounds %struct.TYPE_4__, ptr %33, i32 0, i32 0
%35 = load i64, ptr %34, align 8
%36 = load i64, ptr @PT_LOAD, align 8
%37 = icmp eq i64 %35, %36
br i1 %37, label %38, label %55
38: ; preds = %32
%39 = load ptr, ptr %10, align 8
%40 = getelementptr inbounds %struct.TYPE_4__, ptr %39, i32 0, i32 1
%41 = load i32, ptr %40, align 8
%42 = and i32 %41, 17
%43 = icmp ne i32 %42, 0
br i1 %43, label %44, label %55
44: ; preds = %38
%45 = load i32, ptr %13, align 4
%46 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %45)
%47 = load ptr, ptr %10, align 8
store ptr %47, ptr %11, align 8
%48 = load ptr, ptr %10, align 8
%49 = getelementptr inbounds %struct.TYPE_4__, ptr %48, i32 0, i32 2
%50 = load i32, ptr %49, align 4
%51 = load ptr, ptr %10, align 8
%52 = getelementptr inbounds %struct.TYPE_4__, ptr %51, i32 0, i32 3
%53 = load i32, ptr %52, align 8
%54 = add nsw i32 %50, %53
store i32 %54, ptr %14, align 4
br label %81
55: ; preds = %38, %32
%56 = load ptr, ptr %10, align 8
%57 = getelementptr inbounds %struct.TYPE_4__, ptr %56, i32 0, i32 0
%58 = load i64, ptr %57, align 8
%59 = load i64, ptr @PT_LOAD, align 8
%60 = icmp eq i64 %58, %59
br i1 %60, label %61, label %80
61: ; preds = %55
%62 = load ptr, ptr %10, align 8
%63 = getelementptr inbounds %struct.TYPE_4__, ptr %62, i32 0, i32 2
%64 = load i32, ptr %63, align 4
%65 = load i32, ptr %14, align 4
%66 = sub nsw i32 %64, %65
%67 = load i32, ptr %15, align 4
%68 = icmp slt i32 %66, %67
br i1 %68, label %69, label %80
69: ; preds = %61
%70 = load i32, ptr %13, align 4
%71 = load ptr, ptr %10, align 8
%72 = getelementptr inbounds %struct.TYPE_4__, ptr %71, i32 0, i32 2
%73 = load i32, ptr %72, align 4
%74 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %70, i32 noundef %73)
%75 = load ptr, ptr %10, align 8
%76 = getelementptr inbounds %struct.TYPE_4__, ptr %75, i32 0, i32 2
%77 = load i32, ptr %76, align 4
%78 = load i32, ptr %14, align 4
%79 = sub nsw i32 %77, %78
store i32 %79, ptr %15, align 4
br label %80
80: ; preds = %69, %61, %55
br label %81
81: ; preds = %80, %44
%82 = load ptr, ptr %10, align 8
%83 = load ptr, ptr %9, align 8
%84 = getelementptr inbounds %struct.TYPE_5__, ptr %83, i32 0, i32 1
%85 = load i64, ptr %84, align 8
%86 = trunc i64 %85 to i32
%87 = zext i32 %86 to i64
%88 = getelementptr inbounds i8, ptr %82, i64 %87
store ptr %88, ptr %10, align 8
br label %89
89: ; preds = %81
%90 = load i32, ptr %13, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %13, align 4
br label %28, !llvm.loop !6
92: ; preds = %28
%93 = load i32, ptr %14, align 4
%94 = load ptr, ptr %7, align 8
store i32 %93, ptr %94, align 4
%95 = load i32, ptr %15, align 4
%96 = load ptr, ptr %8, align 8
store i32 %95, ptr %96, align 4
%97 = load i32, ptr %14, align 4
%98 = load i32, ptr %15, align 4
%99 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %97, i32 noundef %98)
%100 = load ptr, ptr %11, align 8
ret ptr %100
}
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/tmpm4ns_nos.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_5__ = type { i32, i64, i64 }
%struct.TYPE_4__ = type { i64, i32, i32, i32 }
@PT_LOAD = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [29 x i8] c"+ Found .text segment (#%d)\0A\00", align 1
@.str.1 = private unnamed_addr constant [61 x i8] c" * Found LOAD segment (#%d) close to .text (offset: 0x%x)\0A\00", align 1
@.str.2 = private unnamed_addr constant [58 x i8] c"+ .text segment gap at offset 0x%x(0x%x bytes available)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @elfi_find_gap(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%16 = load ptr, ptr %5, align 8
store ptr %16, ptr %9, align 8
%17 = load ptr, ptr %9, align 8
%18 = getelementptr inbounds %struct.TYPE_5__, ptr %17, i32 0, i32 0
%19 = load i32, ptr %18, align 8
store i32 %19, ptr %12, align 4
%20 = load i32, ptr %6, align 4
store i32 %20, ptr %15, align 4
%21 = load ptr, ptr %9, align 8
%22 = load ptr, ptr %9, align 8
%23 = getelementptr inbounds %struct.TYPE_5__, ptr %22, i32 0, i32 2
%24 = load i64, ptr %23, align 8
%25 = trunc i64 %24 to i32
%26 = zext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %21, i64 %26
store ptr %27, ptr %10, align 8
store i32 0, ptr %13, align 4
%28 = load i32, ptr %13, align 4
%29 = load i32, ptr %12, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %.lr.ph, label %94
.lr.ph: ; preds = %4
br label %31
31: ; preds = %.lr.ph, %88
%32 = load ptr, ptr %10, align 8
%33 = getelementptr inbounds %struct.TYPE_4__, ptr %32, i32 0, i32 0
%34 = load i64, ptr %33, align 8
%35 = load i64, ptr @PT_LOAD, align 8
%36 = icmp eq i64 %34, %35
br i1 %36, label %37, label %54
37: ; preds = %31
%38 = load ptr, ptr %10, align 8
%39 = getelementptr inbounds %struct.TYPE_4__, ptr %38, i32 0, i32 1
%40 = load i32, ptr %39, align 8
%41 = and i32 %40, 17
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %54
43: ; preds = %37
%44 = load i32, ptr %13, align 4
%45 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %44)
%46 = load ptr, ptr %10, align 8
store ptr %46, ptr %11, align 8
%47 = load ptr, ptr %10, align 8
%48 = getelementptr inbounds %struct.TYPE_4__, ptr %47, i32 0, i32 2
%49 = load i32, ptr %48, align 4
%50 = load ptr, ptr %10, align 8
%51 = getelementptr inbounds %struct.TYPE_4__, ptr %50, i32 0, i32 3
%52 = load i32, ptr %51, align 8
%53 = add nsw i32 %49, %52
store i32 %53, ptr %14, align 4
br label %80
54: ; preds = %37, %31
%55 = load ptr, ptr %10, align 8
%56 = getelementptr inbounds %struct.TYPE_4__, ptr %55, i32 0, i32 0
%57 = load i64, ptr %56, align 8
%58 = load i64, ptr @PT_LOAD, align 8
%59 = icmp eq i64 %57, %58
br i1 %59, label %60, label %79
60: ; preds = %54
%61 = load ptr, ptr %10, align 8
%62 = getelementptr inbounds %struct.TYPE_4__, ptr %61, i32 0, i32 2
%63 = load i32, ptr %62, align 4
%64 = load i32, ptr %14, align 4
%65 = sub nsw i32 %63, %64
%66 = load i32, ptr %15, align 4
%67 = icmp slt i32 %65, %66
br i1 %67, label %68, label %79
68: ; preds = %60
%69 = load i32, ptr %13, align 4
%70 = load ptr, ptr %10, align 8
%71 = getelementptr inbounds %struct.TYPE_4__, ptr %70, i32 0, i32 2
%72 = load i32, ptr %71, align 4
%73 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %69, i32 noundef %72)
%74 = load ptr, ptr %10, align 8
%75 = getelementptr inbounds %struct.TYPE_4__, ptr %74, i32 0, i32 2
%76 = load i32, ptr %75, align 4
%77 = load i32, ptr %14, align 4
%78 = sub nsw i32 %76, %77
store i32 %78, ptr %15, align 4
br label %79
79: ; preds = %68, %60, %54
br label %80
80: ; preds = %79, %43
%81 = load ptr, ptr %10, align 8
%82 = load ptr, ptr %9, align 8
%83 = getelementptr inbounds %struct.TYPE_5__, ptr %82, i32 0, i32 1
%84 = load i64, ptr %83, align 8
%85 = trunc i64 %84 to i32
%86 = zext i32 %85 to i64
%87 = getelementptr inbounds i8, ptr %81, i64 %86
store ptr %87, ptr %10, align 8
br label %88
88: ; preds = %80
%89 = load i32, ptr %13, align 4
%90 = add nsw i32 %89, 1
store i32 %90, ptr %13, align 4
%91 = load i32, ptr %13, align 4
%92 = load i32, ptr %12, align 4
%93 = icmp slt i32 %91, %92
br i1 %93, label %31, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %88
br label %94
94: ; preds = %._crit_edge, %4
%95 = load i32, ptr %14, align 4
%96 = load ptr, ptr %7, align 8
store i32 %95, ptr %96, align 4
%97 = load i32, ptr %15, align 4
%98 = load ptr, ptr %8, align 8
store i32 %97, ptr %98, align 4
%99 = load i32, ptr %14, align 4
%100 = load i32, ptr %15, align 4
%101 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %99, i32 noundef %100)
%102 = load ptr, ptr %11, align 8
ret ptr %102
}
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/tmpi8oj9ife.c'
source_filename = "/tmp/tmpi8oj9ife.c"
target datalayout = "e-m:e-p270: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 [47 x i8] c"Usage: %s type filename [type filename [...]]\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"localhost\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
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 = srem i32 %8, 2
%10 = icmp ne i32 %9, 1
br i1 %10, label %11, label %18
11: ; preds = %2
%12 = load i32, ptr @stderr, align 4
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 0
%15 = load ptr, ptr %14, align 8
%16 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str, ptr noundef %15)
%17 = call i32 @exit(i32 noundef -1) #3
unreachable
18: ; preds = %2
store i32 1, ptr %7, align 4
br label %19
19: ; preds = %46, %18
%20 = load i32, ptr %7, align 4
%21 = load i32, ptr %4, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %23, label %49
23: ; preds = %19
%24 = load ptr, ptr %5, align 8
%25 = load i32, ptr %7, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %24, i64 %26
%28 = load ptr, ptr %27, align 8
%29 = load ptr, ptr %5, align 8
%30 = load i32, ptr %7, align 4
%31 = add nsw i32 %30, 1
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds ptr, ptr %29, i64 %32
%34 = load ptr, ptr %33, align 8
%35 = call ptr @RepGetHost(ptr noundef %28, ptr noundef %34)
store ptr %35, ptr %6, align 8
%36 = load ptr, ptr %6, align 8
%37 = icmp ne ptr %36, null
br i1 %37, label %40, label %38
38: ; preds = %23
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %45
40: ; preds = %23
%41 = load ptr, ptr %6, align 8
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %41)
%43 = load ptr, ptr %6, align 8
%44 = call i32 @free(ptr noundef %43)
br label %45
45: ; preds = %40, %38
br label %46
46: ; preds = %45
%47 = load i32, ptr %7, align 4
%48 = add nsw i32 %47, 2
store i32 %48, ptr %7, align 4
br label %19, !llvm.loop !6
49: ; preds = %19
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @RepGetHost(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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/tmpi8oj9ife.c"
target datalayout = "e-m:e-p270: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 [47 x i8] c"Usage: %s type filename [type filename [...]]\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"localhost\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
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 = srem i32 %8, 2
%10 = icmp ne i32 %9, 1
br i1 %10, label %11, label %18
11: ; preds = %2
%12 = load i32, ptr @stderr, align 4
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 0
%15 = load ptr, ptr %14, align 8
%16 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str, ptr noundef %15)
%17 = call i32 @exit(i32 noundef -1) #3
unreachable
18: ; preds = %2
store i32 1, ptr %7, align 4
%19 = load i32, ptr %7, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %.lr.ph, label %51
.lr.ph: ; preds = %18
br label %22
22: ; preds = %.lr.ph, %45
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %7, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds ptr, ptr %23, i64 %25
%27 = load ptr, ptr %26, align 8
%28 = load ptr, ptr %5, align 8
%29 = load i32, ptr %7, align 4
%30 = add nsw i32 %29, 1
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds ptr, ptr %28, i64 %31
%33 = load ptr, ptr %32, align 8
%34 = call ptr @RepGetHost(ptr noundef %27, ptr noundef %33)
store ptr %34, ptr %6, align 8
%35 = load ptr, ptr %6, align 8
%36 = icmp ne ptr %35, null
br i1 %36, label %39, label %37
37: ; preds = %22
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %44
39: ; preds = %22
%40 = load ptr, ptr %6, align 8
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %40)
%42 = load ptr, ptr %6, align 8
%43 = call i32 @free(ptr noundef %42)
br label %44
44: ; preds = %39, %37
br label %45
45: ; preds = %44
%46 = load i32, ptr %7, align 4
%47 = add nsw i32 %46, 2
store i32 %47, ptr %7, align 4
%48 = load i32, ptr %7, align 4
%49 = load i32, ptr %4, align 4
%50 = icmp slt i32 %48, %49
br i1 %50, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %45
br label %51
51: ; preds = %._crit_edge, %18
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @RepGetHost(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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/tmpftv867s0.c'
source_filename = "/tmp/tmpftv867s0.c"
target datalayout = "e-m:e-p270: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
@stdin = 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/tmpftv867s0.c"
target datalayout = "e-m:e-p270: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
@stdin = 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/tmpadeax3ah.c'
source_filename = "/tmp/tmpadeax3ah.c"
target datalayout = "e-m:e-p270: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 @U_PMF_LEN_FLOATDATA(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = call i32 @U_PMF_SERIAL_get(ptr noundef %2, ptr noundef %3, i32 noundef 4, i32 noundef 1, i32 noundef 1)
%5 = load i32, ptr %3, align 4
%6 = mul nsw i32 4, %5
%7 = add nsw i32 %6, 4
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %3, align 4
ret i32 %8
}
declare i32 @U_PMF_SERIAL_get(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpadeax3ah.c"
target datalayout = "e-m:e-p270: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 @U_PMF_LEN_FLOATDATA(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = call i32 @U_PMF_SERIAL_get(ptr noundef %2, ptr noundef %3, i32 noundef 4, i32 noundef 1, i32 noundef 1)
%5 = load i32, ptr %3, align 4
%6 = mul nsw i32 4, %5
%7 = add nsw i32 %6, 4
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %3, align 4
ret i32 %8
}
declare i32 @U_PMF_SERIAL_get(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpojjp003h.c'
source_filename = "/tmp/tmpojjp003h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"lower case, \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @junk() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpojjp003h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"lower case, \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @junk() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmph_d_4k00.c'
source_filename = "/tmp/tmph_d_4k00.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"w\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dump(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
%9 = call ptr @fopen(ptr noundef %8, ptr noundef @.str)
store ptr %9, ptr %7, align 8
%10 = load ptr, ptr %7, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %12, label %19
12: ; preds = %3
%13 = load ptr, ptr %6, align 8
%14 = load i32, ptr %5, align 4
%15 = load ptr, ptr %7, align 8
%16 = call i32 @fwrite(ptr noundef %13, i32 noundef 1, i32 noundef %14, ptr noundef %15)
%17 = load ptr, ptr %7, align 8
%18 = call i32 @fclose(ptr noundef %17)
br label %19
19: ; preds = %12, %3
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 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/tmph_d_4k00.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"w\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dump(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
%9 = call ptr @fopen(ptr noundef %8, ptr noundef @.str)
store ptr %9, ptr %7, align 8
%10 = load ptr, ptr %7, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %12, label %19
12: ; preds = %3
%13 = load ptr, ptr %6, align 8
%14 = load i32, ptr %5, align 4
%15 = load ptr, ptr %7, align 8
%16 = call i32 @fwrite(ptr noundef %13, i32 noundef 1, i32 noundef %14, ptr noundef %15)
%17 = load ptr, ptr %7, align 8
%18 = call i32 @fclose(ptr noundef %17)
br label %19
19: ; preds = %12, %3
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 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/tmpcaaep66l.c'
source_filename = "/tmp/tmpcaaep66l.c"
target datalayout = "e-m:e-p270: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 @UDreg(ptr noundef %0, ptr noundef %1, double noundef %2, i32 noundef %3, i32 noundef %4, double noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca double, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca double, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store double %2, ptr %9, align 8
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
store double %5, ptr %12, align 8
%20 = load double, ptr %9, align 8
%21 = call double @sqrt(double noundef %20) #3
%22 = fneg double %21
%23 = load i32, ptr %10, align 4
%24 = load i32, ptr %11, align 4
%25 = mul nsw i32 %23, %24
%26 = sitofp i32 %25 to double
%27 = fmul double %22, %26
store double %27, ptr %19, align 8
store i32 1, ptr %14, align 4
br label %28
28: ; preds = %127, %6
%29 = load i32, ptr %14, align 4
%30 = load i32, ptr %11, align 4
%31 = icmp slt i32 %29, %30
br i1 %31, label %32, label %130
32: ; preds = %28
%33 = load i32, ptr %10, align 4
%34 = load i32, ptr %14, align 4
%35 = mul nsw i32 %33, %34
store i32 %35, ptr %15, align 4
store i32 1, ptr %13, align 4
br label %36
36: ; preds = %123, %32
%37 = load i32, ptr %13, align 4
%38 = load i32, ptr %10, align 4
%39 = icmp slt i32 %37, %38
br i1 %39, label %40, label %126
40: ; preds = %36
%41 = load i32, ptr %13, align 4
%42 = icmp sgt i32 %41, 0
br i1 %42, label %43, label %60
43: ; preds = %40
%44 = load ptr, ptr %7, align 8
%45 = load i32, ptr %13, align 4
%46 = load i32, ptr %15, align 4
%47 = add nsw i32 %45, %46
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds double, ptr %44, i64 %48
%50 = load double, ptr %49, align 8
%51 = load ptr, ptr %7, align 8
%52 = load i32, ptr %13, align 4
%53 = sub nsw i32 %52, 1
%54 = load i32, ptr %15, align 4
%55 = add nsw i32 %53, %54
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds double, ptr %51, i64 %56
%58 = load double, ptr %57, align 8
%59 = fsub double %50, %58
store double %59, ptr %16, align 8
br label %73
60: ; preds = %40
%61 = load ptr, ptr %7, align 8
%62 = load i32, ptr %15, align 4
%63 = add nsw i32 1, %62
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds double, ptr %61, i64 %64
%66 = load double, ptr %65, align 8
%67 = load ptr, ptr %7, align 8
%68 = load i32, ptr %15, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds double, ptr %67, i64 %69
%71 = load double, ptr %70, align 8
%72 = fsub double %66, %71
store double %72, ptr %16, align 8
br label %73
73: ; preds = %60, %43
%74 = load i32, ptr %14, align 4
%75 = icmp sgt i32 %74, 0
br i1 %75, label %76, label %94
76: ; preds = %73
%77 = load ptr, ptr %7, align 8
%78 = load i32, ptr %13, align 4
%79 = load i32, ptr %15, align 4
%80 = add nsw i32 %78, %79
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds double, ptr %77, i64 %81
%83 = load double, ptr %82, align 8
%84 = load ptr, ptr %7, align 8
%85 = load i32, ptr %13, align 4
%86 = load i32, ptr %15, align 4
%87 = add nsw i32 %85, %86
%88 = load i32, ptr %10, align 4
%89 = sub nsw i32 %87, %88
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds double, ptr %84, i64 %90
%92 = load double, ptr %91, align 8
%93 = fsub double %83, %92
store double %93, ptr %17, align 8
br label %108
94: ; preds = %73
%95 = load ptr, ptr %7, align 8
%96 = load i32, ptr %13, align 4
%97 = load i32, ptr %10, align 4
%98 = add nsw i32 %96, %97
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds double, ptr %95, i64 %99
%101 = load double, ptr %100, align 8
%102 = load ptr, ptr %7, align 8
%103 = load i32, ptr %13, align 4
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds double, ptr %102, i64 %104
%106 = load double, ptr %105, align 8
%107 = fsub double %101, %106
store double %107, ptr %17, align 8
br label %108
108: ; preds = %94, %76
%109 = load double, ptr %16, align 8
%110 = load double, ptr %16, align 8
%111 = load double, ptr %17, align 8
%112 = load double, ptr %17, align 8
%113 = fmul double %111, %112
%114 = call double @llvm.fmuladd.f64(double %109, double %110, double %113)
%115 = load double, ptr %9, align 8
%116 = load double, ptr %9, align 8
%117 = call double @llvm.fmuladd.f64(double %115, double %116, double %114)
%118 = call double @sqrt(double noundef %117) #3
%119 = call double @sqrt(double noundef %118) #3
store double %119, ptr %18, align 8
%120 = load double, ptr %18, align 8
%121 = load double, ptr %19, align 8
%122 = fadd double %121, %120
store double %122, ptr %19, align 8
br label %123
123: ; preds = %108
%124 = load i32, ptr %13, align 4
%125 = add nsw i32 %124, 1
store i32 %125, ptr %13, align 4
br label %36, !llvm.loop !6
126: ; preds = %36
br label %127
127: ; preds = %126
%128 = load i32, ptr %14, align 4
%129 = add nsw i32 %128, 1
store i32 %129, ptr %14, align 4
br label %28, !llvm.loop !8
130: ; preds = %28
%131 = load double, ptr %19, align 8
%132 = load double, ptr %19, align 8
%133 = fmul double %131, %132
%134 = load double, ptr %12, align 8
%135 = fdiv double %133, %134
ret double %135
}
; Function Attrs: nounwind
declare double @sqrt(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcaaep66l.c"
target datalayout = "e-m:e-p270: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 @UDreg(ptr noundef %0, ptr noundef %1, double noundef %2, i32 noundef %3, i32 noundef %4, double noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca double, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca double, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store double %2, ptr %9, align 8
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
store double %5, ptr %12, align 8
%20 = load double, ptr %9, align 8
%21 = call double @sqrt(double noundef %20) #3
%22 = fneg double %21
%23 = load i32, ptr %10, align 4
%24 = load i32, ptr %11, align 4
%25 = mul nsw i32 %23, %24
%26 = sitofp i32 %25 to double
%27 = fmul double %22, %26
store double %27, ptr %19, align 8
store i32 1, ptr %14, align 4
%28 = load i32, ptr %14, align 4
%29 = load i32, ptr %11, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %.lr.ph2, label %134
.lr.ph2: ; preds = %6
br label %31
31: ; preds = %.lr.ph2, %128
%32 = load i32, ptr %10, align 4
%33 = load i32, ptr %14, align 4
%34 = mul nsw i32 %32, %33
store i32 %34, ptr %15, align 4
store i32 1, ptr %13, align 4
%35 = load i32, ptr %13, align 4
%36 = load i32, ptr %10, align 4
%37 = icmp slt i32 %35, %36
br i1 %37, label %.lr.ph, label %127
.lr.ph: ; preds = %31
br label %38
38: ; preds = %.lr.ph, %121
%39 = load i32, ptr %13, align 4
%40 = icmp sgt i32 %39, 0
br i1 %40, label %41, label %58
41: ; preds = %38
%42 = load ptr, ptr %7, align 8
%43 = load i32, ptr %13, align 4
%44 = load i32, ptr %15, align 4
%45 = add nsw i32 %43, %44
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds double, ptr %42, i64 %46
%48 = load double, ptr %47, align 8
%49 = load ptr, ptr %7, align 8
%50 = load i32, ptr %13, align 4
%51 = sub nsw i32 %50, 1
%52 = load i32, ptr %15, align 4
%53 = add nsw i32 %51, %52
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds double, ptr %49, i64 %54
%56 = load double, ptr %55, align 8
%57 = fsub double %48, %56
store double %57, ptr %16, align 8
br label %71
58: ; preds = %38
%59 = load ptr, ptr %7, align 8
%60 = load i32, ptr %15, align 4
%61 = add nsw i32 1, %60
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds double, ptr %59, i64 %62
%64 = load double, ptr %63, align 8
%65 = load ptr, ptr %7, align 8
%66 = load i32, ptr %15, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds double, ptr %65, i64 %67
%69 = load double, ptr %68, align 8
%70 = fsub double %64, %69
store double %70, ptr %16, align 8
br label %71
71: ; preds = %58, %41
%72 = load i32, ptr %14, align 4
%73 = icmp sgt i32 %72, 0
br i1 %73, label %74, label %92
74: ; preds = %71
%75 = load ptr, ptr %7, align 8
%76 = load i32, ptr %13, align 4
%77 = load i32, ptr %15, align 4
%78 = add nsw i32 %76, %77
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds double, ptr %75, i64 %79
%81 = load double, ptr %80, align 8
%82 = load ptr, ptr %7, align 8
%83 = load i32, ptr %13, align 4
%84 = load i32, ptr %15, align 4
%85 = add nsw i32 %83, %84
%86 = load i32, ptr %10, align 4
%87 = sub nsw i32 %85, %86
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds double, ptr %82, i64 %88
%90 = load double, ptr %89, align 8
%91 = fsub double %81, %90
store double %91, ptr %17, align 8
br label %106
92: ; preds = %71
%93 = load ptr, ptr %7, align 8
%94 = load i32, ptr %13, align 4
%95 = load i32, ptr %10, align 4
%96 = add nsw i32 %94, %95
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds double, ptr %93, i64 %97
%99 = load double, ptr %98, align 8
%100 = load ptr, ptr %7, align 8
%101 = load i32, ptr %13, align 4
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds double, ptr %100, i64 %102
%104 = load double, ptr %103, align 8
%105 = fsub double %99, %104
store double %105, ptr %17, align 8
br label %106
106: ; preds = %92, %74
%107 = load double, ptr %16, align 8
%108 = load double, ptr %16, align 8
%109 = load double, ptr %17, align 8
%110 = load double, ptr %17, align 8
%111 = fmul double %109, %110
%112 = call double @llvm.fmuladd.f64(double %107, double %108, double %111)
%113 = load double, ptr %9, align 8
%114 = load double, ptr %9, align 8
%115 = call double @llvm.fmuladd.f64(double %113, double %114, double %112)
%116 = call double @sqrt(double noundef %115) #3
%117 = call double @sqrt(double noundef %116) #3
store double %117, ptr %18, align 8
%118 = load double, ptr %18, align 8
%119 = load double, ptr %19, align 8
%120 = fadd double %119, %118
store double %120, ptr %19, align 8
br label %121
121: ; preds = %106
%122 = load i32, ptr %13, align 4
%123 = add nsw i32 %122, 1
store i32 %123, ptr %13, align 4
%124 = load i32, ptr %13, align 4
%125 = load i32, ptr %10, align 4
%126 = icmp slt i32 %124, %125
br i1 %126, label %38, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %121
br label %127
127: ; preds = %._crit_edge, %31
br label %128
128: ; preds = %127
%129 = load i32, ptr %14, align 4
%130 = add nsw i32 %129, 1
store i32 %130, ptr %14, align 4
%131 = load i32, ptr %14, align 4
%132 = load i32, ptr %11, align 4
%133 = icmp slt i32 %131, %132
br i1 %133, label %31, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %128
br label %134
134: ; preds = %._crit_edge3, %6
%135 = load double, ptr %19, align 8
%136 = load double, ptr %19, align 8
%137 = fmul double %135, %136
%138 = load double, ptr %12, align 8
%139 = fdiv double %137, %138
ret double %139
}
; Function Attrs: nounwind
declare double @sqrt(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp9ericzdi.c'
source_filename = "/tmp/tmp9ericzdi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@UINT32_MAX = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @__hsail_cvt_zeroi_sat_u32_f32(float noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca float, align 4
store float %0, ptr %3, align 4
%4 = load float, ptr %3, align 4
%5 = call i64 @isnan(float noundef %4)
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %1
store i64 0, ptr %2, align 8
br label %23
8: ; preds = %1
%9 = load float, ptr %3, align 4
%10 = load i64, ptr @UINT32_MAX, align 8
%11 = sitofp i64 %10 to float
%12 = fcmp oge float %9, %11
br i1 %12, label %13, label %15
13: ; preds = %8
%14 = load i64, ptr @UINT32_MAX, align 8
store i64 %14, ptr %2, align 8
br label %23
15: ; preds = %8
%16 = load float, ptr %3, align 4
%17 = fcmp ole float %16, 0.000000e+00
br i1 %17, label %18, label %19
18: ; preds = %15
store i64 0, ptr %2, align 8
br label %23
19: ; preds = %15
br label %20
20: ; preds = %19
%21 = load float, ptr %3, align 4
%22 = fptosi float %21 to i64
store i64 %22, ptr %2, align 8
br label %23
23: ; preds = %20, %18, %13, %7
%24 = load i64, ptr %2, align 8
ret i64 %24
}
declare i64 @isnan(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9ericzdi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@UINT32_MAX = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @__hsail_cvt_zeroi_sat_u32_f32(float noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca float, align 4
store float %0, ptr %3, align 4
%4 = load float, ptr %3, align 4
%5 = call i64 @isnan(float noundef %4)
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %1
store i64 0, ptr %2, align 8
br label %23
8: ; preds = %1
%9 = load float, ptr %3, align 4
%10 = load i64, ptr @UINT32_MAX, align 8
%11 = sitofp i64 %10 to float
%12 = fcmp oge float %9, %11
br i1 %12, label %13, label %15
13: ; preds = %8
%14 = load i64, ptr @UINT32_MAX, align 8
store i64 %14, ptr %2, align 8
br label %23
15: ; preds = %8
%16 = load float, ptr %3, align 4
%17 = fcmp ole float %16, 0.000000e+00
br i1 %17, label %18, label %19
18: ; preds = %15
store i64 0, ptr %2, align 8
br label %23
19: ; preds = %15
br label %20
20: ; preds = %19
%21 = load float, ptr %3, align 4
%22 = fptosi float %21 to i64
store i64 %22, ptr %2, align 8
br label %23
23: ; preds = %20, %18, %13, %7
%24 = load i64, ptr %2, align 8
ret i64 %24
}
declare i64 @isnan(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp05yq3rjh.c'
source_filename = "/tmp/tmp05yq3rjh.c"
target datalayout = "e-m:e-p270: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 [16 x i8] c"realloc failed\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @thread_func(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store ptr null, ptr %3, align 8
store i32 8, ptr %4, align 4
br label %6
6: ; preds = %27, %1
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 128
br i1 %8, label %9, label %30
9: ; preds = %6
%10 = load i32, ptr %4, align 4
%11 = sdiv i32 %10, 8
%12 = shl i32 1, %11
%13 = sub nsw i32 %12, 1
store i32 %13, ptr %5, align 4
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %5, align 4
%16 = call ptr @realloc(ptr noundef %14, i32 noundef %15)
store ptr %16, ptr %3, align 8
%17 = load ptr, ptr %3, align 8
%18 = icmp eq ptr %17, null
br i1 %18, label %19, label %23
19: ; preds = %9
%20 = load i32, ptr @stderr, align 4
%21 = call i32 @fprintf(i32 noundef %20, ptr noundef @.str)
%22 = call i32 @exit(i32 noundef 1) #3
unreachable
23: ; preds = %9
%24 = load ptr, ptr %3, align 8
%25 = load i32, ptr %5, align 4
%26 = call i32 @memset(ptr noundef %24, i32 noundef 42, i32 noundef %25)
br label %27
27: ; preds = %23
%28 = load i32, ptr %4, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %4, align 4
br label %6, !llvm.loop !6
30: ; preds = %6
%31 = load ptr, ptr %3, align 8
%32 = call i32 @free(ptr noundef %31)
ret ptr null
}
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmp05yq3rjh.c"
target datalayout = "e-m:e-p270: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 [16 x i8] c"realloc failed\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @thread_func(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store ptr null, ptr %3, align 8
store i32 8, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = icmp slt i32 %6, 128
br i1 %7, label %.lr.ph, label %31
.lr.ph: ; preds = %1
br label %8
8: ; preds = %.lr.ph, %26
%9 = load i32, ptr %4, align 4
%10 = sdiv i32 %9, 8
%11 = shl i32 1, %10
%12 = sub nsw i32 %11, 1
store i32 %12, ptr %5, align 4
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %5, align 4
%15 = call ptr @realloc(ptr noundef %13, i32 noundef %14)
store ptr %15, ptr %3, align 8
%16 = load ptr, ptr %3, align 8
%17 = icmp eq ptr %16, null
br i1 %17, label %18, label %22
18: ; preds = %8
%19 = load i32, ptr @stderr, align 4
%20 = call i32 @fprintf(i32 noundef %19, ptr noundef @.str)
%21 = call i32 @exit(i32 noundef 1) #3
unreachable
22: ; preds = %8
%23 = load ptr, ptr %3, align 8
%24 = load i32, ptr %5, align 4
%25 = call i32 @memset(ptr noundef %23, i32 noundef 42, i32 noundef %24)
br label %26
26: ; preds = %22
%27 = load i32, ptr %4, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %4, align 4
%29 = load i32, ptr %4, align 4
%30 = icmp slt i32 %29, 128
br i1 %30, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %31
31: ; preds = %._crit_edge, %1
%32 = load ptr, ptr %3, align 8
%33 = call i32 @free(ptr noundef %32)
ret ptr null
}
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpxa6gvhvj.c'
source_filename = "/tmp/tmpxa6gvhvj.c"
target datalayout = "e-m:e-p270: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 @_read(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
ret i32 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxa6gvhvj.c"
target datalayout = "e-m:e-p270: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 @_read(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
ret i32 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpb2lpgyhc.c'
source_filename = "/tmp/tmpb2lpgyhc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [91 x i8] c"No ha introducio argumentos a imprimir, pruebe con ./ejecutable argumento1 argumento2 ...\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp sle i32 %6, 1
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
br label %14
10: ; preds = %2
%11 = load i32, ptr %4, align 4
%12 = load ptr, ptr %5, align 8
%13 = call i32 @imprimir_menu(i32 noundef %11, ptr noundef %12)
br label %14
14: ; preds = %10, %8
%15 = load i32, ptr %3, align 4
ret i32 %15
}
declare i32 @printf(ptr noundef) #1
declare i32 @imprimir_menu(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/tmpb2lpgyhc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [91 x i8] c"No ha introducio argumentos a imprimir, pruebe con ./ejecutable argumento1 argumento2 ...\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp sle i32 %6, 1
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
br label %14
10: ; preds = %2
%11 = load i32, ptr %4, align 4
%12 = load ptr, ptr %5, align 8
%13 = call i32 @imprimir_menu(i32 noundef %11, ptr noundef %12)
br label %14
14: ; preds = %10, %8
%15 = load i32, ptr %3, align 4
ret i32 %15
}
declare i32 @printf(ptr noundef) #1
declare i32 @imprimir_menu(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/tmpbqlcvbfe.c'
source_filename = "/tmp/tmpbqlcvbfe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"localhost\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"1984\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"Can not connect to BaseX server.\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"admin\00", align 1
@.str.4 = private unnamed_addr constant [21 x i8] c"Access to DB denied.\00", align 1
@.str.5 = private unnamed_addr constant [13 x i8] c"xquery 1 + 1\00", align 1
@.str.6 = private unnamed_addr constant [43 x i8] c"An error occured during execution of '%s'.\00", align 1
@.str.7 = private unnamed_addr constant [27 x i8] c"Processing of '%s' failed.\00", align 1
@.str.8 = private unnamed_addr constant [15 x i8] c"command: '%s'\0A\00", align 1
@.str.9 = private unnamed_addr constant [15 x i8] c"result : '%s'\0A\00", align 1
@.str.10 = private unnamed_addr constant [11 x i8] c"%s : '%s'\0A\00", align 1
@.str.11 = private unnamed_addr constant [6 x i8] c"error\00", align 1
@.str.12 = private unnamed_addr constant [5 x i8] c"info\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 ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%7 = call i32 @basex_connect(ptr noundef @.str, ptr noundef @.str.1)
store i32 %7, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp eq i32 %8, -1
br i1 %9, label %10, label %12
10: ; preds = %0
%11 = call i32 (ptr, ...) @warnx(ptr noundef @.str.2)
store i32 0, ptr %1, align 4
br label %53
12: ; preds = %0
%13 = load i32, ptr %2, align 4
%14 = call i32 @basex_authenticate(i32 noundef %13, ptr noundef @.str.3, ptr noundef @.str.3)
store i32 %14, ptr %3, align 4
%15 = load i32, ptr %3, align 4
%16 = icmp eq i32 %15, -1
br i1 %16, label %17, label %19
17: ; preds = %12
%18 = call i32 (ptr, ...) @warnx(ptr noundef @.str.4)
br label %50
19: ; preds = %12
store ptr @.str.5, ptr %4, align 8
%20 = load i32, ptr %2, align 4
%21 = load ptr, ptr %4, align 8
%22 = call i32 @basex_execute(i32 noundef %20, ptr noundef %21, ptr noundef %5, ptr noundef %6)
store i32 %22, ptr %3, align 4
%23 = load i32, ptr %3, align 4
%24 = icmp eq i32 %23, -1
br i1 %24, label %25, label %28
25: ; preds = %19
%26 = load ptr, ptr %4, align 8
%27 = call i32 (ptr, ...) @warnx(ptr noundef @.str.6, ptr noundef %26)
br label %45
28: ; preds = %19
%29 = load i32, ptr %3, align 4
%30 = icmp eq i32 %29, 1
br i1 %30, label %31, label %34
31: ; preds = %28
%32 = load ptr, ptr %4, align 8
%33 = call i32 (ptr, ...) @warnx(ptr noundef @.str.7, ptr noundef %32)
br label %34
34: ; preds = %31, %28
%35 = load ptr, ptr %4, align 8
%36 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %35)
%37 = load ptr, ptr %5, align 8
%38 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %37)
%39 = load i32, ptr %3, align 4
%40 = icmp eq i32 %39, 1
%41 = zext i1 %40 to i64
%42 = select i1 %40, ptr @.str.11, ptr @.str.12
%43 = load ptr, ptr %6, align 8
%44 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.10, ptr noundef %42, ptr noundef %43)
br label %45
45: ; preds = %34, %25
%46 = load ptr, ptr %5, align 8
%47 = call i32 @free(ptr noundef %46)
%48 = load ptr, ptr %6, align 8
%49 = call i32 @free(ptr noundef %48)
br label %50
50: ; preds = %45, %17
%51 = load i32, ptr %2, align 4
%52 = call i32 @basex_close(i32 noundef %51)
store i32 0, ptr %1, align 4
br label %53
53: ; preds = %50, %10
%54 = load i32, ptr %1, align 4
ret i32 %54
}
declare i32 @basex_connect(ptr noundef, ptr noundef) #1
declare i32 @warnx(ptr noundef, ...) #1
declare i32 @basex_authenticate(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @basex_execute(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ...) #1
declare i32 @free(ptr noundef) #1
declare i32 @basex_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/tmpbqlcvbfe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"localhost\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"1984\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"Can not connect to BaseX server.\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"admin\00", align 1
@.str.4 = private unnamed_addr constant [21 x i8] c"Access to DB denied.\00", align 1
@.str.5 = private unnamed_addr constant [13 x i8] c"xquery 1 + 1\00", align 1
@.str.6 = private unnamed_addr constant [43 x i8] c"An error occured during execution of '%s'.\00", align 1
@.str.7 = private unnamed_addr constant [27 x i8] c"Processing of '%s' failed.\00", align 1
@.str.8 = private unnamed_addr constant [15 x i8] c"command: '%s'\0A\00", align 1
@.str.9 = private unnamed_addr constant [15 x i8] c"result : '%s'\0A\00", align 1
@.str.10 = private unnamed_addr constant [11 x i8] c"%s : '%s'\0A\00", align 1
@.str.11 = private unnamed_addr constant [6 x i8] c"error\00", align 1
@.str.12 = private unnamed_addr constant [5 x i8] c"info\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 ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%7 = call i32 @basex_connect(ptr noundef @.str, ptr noundef @.str.1)
store i32 %7, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp eq i32 %8, -1
br i1 %9, label %10, label %12
10: ; preds = %0
%11 = call i32 (ptr, ...) @warnx(ptr noundef @.str.2)
store i32 0, ptr %1, align 4
br label %53
12: ; preds = %0
%13 = load i32, ptr %2, align 4
%14 = call i32 @basex_authenticate(i32 noundef %13, ptr noundef @.str.3, ptr noundef @.str.3)
store i32 %14, ptr %3, align 4
%15 = load i32, ptr %3, align 4
%16 = icmp eq i32 %15, -1
br i1 %16, label %17, label %19
17: ; preds = %12
%18 = call i32 (ptr, ...) @warnx(ptr noundef @.str.4)
br label %50
19: ; preds = %12
store ptr @.str.5, ptr %4, align 8
%20 = load i32, ptr %2, align 4
%21 = load ptr, ptr %4, align 8
%22 = call i32 @basex_execute(i32 noundef %20, ptr noundef %21, ptr noundef %5, ptr noundef %6)
store i32 %22, ptr %3, align 4
%23 = load i32, ptr %3, align 4
%24 = icmp eq i32 %23, -1
br i1 %24, label %25, label %28
25: ; preds = %19
%26 = load ptr, ptr %4, align 8
%27 = call i32 (ptr, ...) @warnx(ptr noundef @.str.6, ptr noundef %26)
br label %45
28: ; preds = %19
%29 = load i32, ptr %3, align 4
%30 = icmp eq i32 %29, 1
br i1 %30, label %31, label %34
31: ; preds = %28
%32 = load ptr, ptr %4, align 8
%33 = call i32 (ptr, ...) @warnx(ptr noundef @.str.7, ptr noundef %32)
br label %34
34: ; preds = %31, %28
%35 = load ptr, ptr %4, align 8
%36 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %35)
%37 = load ptr, ptr %5, align 8
%38 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %37)
%39 = load i32, ptr %3, align 4
%40 = icmp eq i32 %39, 1
%41 = zext i1 %40 to i64
%42 = select i1 %40, ptr @.str.11, ptr @.str.12
%43 = load ptr, ptr %6, align 8
%44 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.10, ptr noundef %42, ptr noundef %43)
br label %45
45: ; preds = %34, %25
%46 = load ptr, ptr %5, align 8
%47 = call i32 @free(ptr noundef %46)
%48 = load ptr, ptr %6, align 8
%49 = call i32 @free(ptr noundef %48)
br label %50
50: ; preds = %45, %17
%51 = load i32, ptr %2, align 4
%52 = call i32 @basex_close(i32 noundef %51)
store i32 0, ptr %1, align 4
br label %53
53: ; preds = %50, %10
%54 = load i32, ptr %1, align 4
ret i32 %54
}
declare i32 @basex_connect(ptr noundef, ptr noundef) #1
declare i32 @warnx(ptr noundef, ...) #1
declare i32 @basex_authenticate(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @basex_execute(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ...) #1
declare i32 @free(ptr noundef) #1
declare i32 @basex_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/tmpvnuyy15z.c'
source_filename = "/tmp/tmpvnuyy15z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"skipped\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvnuyy15z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"skipped\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpo8fhenq7.c'
source_filename = "/tmp/tmpo8fhenq7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @who_wc()
ret i32 0
}
declare i32 @who_wc(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo8fhenq7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @who_wc()
ret i32 0
}
declare i32 @who_wc(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpd9cvuj3d.c'
source_filename = "/tmp/tmpd9cvuj3d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c" mod extra {\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c" }\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @extra_consts() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpd9cvuj3d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c" mod extra {\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c" }\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @extra_consts() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpx8b31qjm.c'
source_filename = "/tmp/tmpx8b31qjm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @e_1_12() #0 {
%1 = alloca i32, align 4
br label %2
2: ; preds = %20, %0
%3 = call i32 (...) @getchar()
store i32 %3, ptr %1, align 4
%4 = load i32, ptr @EOF, align 4
%5 = icmp ne i32 %3, %4
br i1 %5, label %6, label %21
6: ; preds = %2
%7 = load i32, ptr %1, align 4
%8 = icmp eq i32 %7, 32
br i1 %8, label %15, label %9
9: ; preds = %6
%10 = load i32, ptr %1, align 4
%11 = icmp eq i32 %10, 10
br i1 %11, label %15, label %12
12: ; preds = %9
%13 = load i32, ptr %1, align 4
%14 = icmp eq i32 %13, 9
br i1 %14, label %15, label %17
15: ; preds = %12, %9, %6
%16 = call i32 @putchar(i32 noundef 10)
br label %20
17: ; preds = %12
%18 = load i32, ptr %1, align 4
%19 = call i32 @putchar(i32 noundef %18)
br label %20
20: ; preds = %17, %15
br label %2, !llvm.loop !6
21: ; preds = %2
ret void
}
declare i32 @getchar(...) #1
declare i32 @putchar(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/tmpx8b31qjm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @e_1_12() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @getchar()
store i32 %2, ptr %1, align 4
%3 = load i32, ptr @EOF, align 4
%4 = icmp ne i32 %2, %3
br i1 %4, label %.lr.ph, label %23
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %19
%6 = load i32, ptr %1, align 4
%7 = icmp eq i32 %6, 32
br i1 %7, label %14, label %8
8: ; preds = %5
%9 = load i32, ptr %1, align 4
%10 = icmp eq i32 %9, 10
br i1 %10, label %14, label %11
11: ; preds = %8
%12 = load i32, ptr %1, align 4
%13 = icmp eq i32 %12, 9
br i1 %13, label %14, label %16
14: ; preds = %11, %8, %5
%15 = call i32 @putchar(i32 noundef 10)
br label %19
16: ; preds = %11
%17 = load i32, ptr %1, align 4
%18 = call i32 @putchar(i32 noundef %17)
br label %19
19: ; preds = %16, %14
%20 = call i32 (...) @getchar()
store i32 %20, ptr %1, align 4
%21 = load i32, ptr @EOF, align 4
%22 = icmp ne i32 %20, %21
br i1 %22, label %5, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %23
23: ; preds = %._crit_edge, %0
ret void
}
declare i32 @getchar(...) #1
declare i32 @putchar(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/tmpyfvt8on2.c'
source_filename = "/tmp/tmpyfvt8on2.c"
target datalayout = "e-m:e-p270: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 @stbtt_FreeBitmap(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 %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @free(ptr noundef %6)
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/tmpyfvt8on2.c"
target datalayout = "e-m:e-p270: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 @stbtt_FreeBitmap(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 %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @free(ptr noundef %6)
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/tmpkru592bn.c'
source_filename = "/tmp/tmpkru592bn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"cls\00", align 1
@.str.1 = private unnamed_addr constant [43 x i8] c" _____ _____ \0A\00", align 1
@.str.2 = private unnamed_addr constant [43 x i8] c" | __ | ___ |_ _|___ ___ ___ \0A\00", align 1
@.str.3 = private unnamed_addr constant [43 x i8] c" | __ -| |___| | | | _| -_| -_| \0A\00", align 1
@.str.4 = private unnamed_addr constant [43 x i8] c" |_____| |_| |_| |___|___| \0A\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
@.str.6 = private unnamed_addr constant [19 x i8] c"(1) Insert a Node\0A\00", align 1
@.str.7 = private unnamed_addr constant [19 x i8] c"(2) Delete a Node\0A\00", align 1
@.str.8 = private unnamed_addr constant [19 x i8] c"(3) Search a Node\0A\00", align 1
@.str.9 = private unnamed_addr constant [20 x i8] c"(4) Print In Order\0A\00", align 1
@.str.10 = private unnamed_addr constant [10 x i8] c"(5) Exit\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @showMenu() #0 {
%1 = call i32 @system(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
%6 = call i32 @printf(ptr noundef @.str.5)
%7 = call i32 @printf(ptr noundef @.str.6)
%8 = call i32 @printf(ptr noundef @.str.7)
%9 = call i32 @printf(ptr noundef @.str.8)
%10 = call i32 @printf(ptr noundef @.str.9)
%11 = call i32 @printf(ptr noundef @.str.10)
%12 = call i32 (...) @getch()
switch i32 %12, label %21 [
i32 49, label %13
i32 50, label %15
i32 51, label %17
i32 52, label %19
]
13: ; preds = %0
%14 = call i32 (...) @doInsert()
br label %23
15: ; preds = %0
%16 = call i32 (...) @doDelete()
br label %23
17: ; preds = %0
%18 = call i32 (...) @doSearch()
br label %23
19: ; preds = %0
%20 = call i32 (...) @doInOrder()
br label %23
21: ; preds = %0
%22 = call i32 @exit(i32 noundef 0) #3
unreachable
23: ; preds = %19, %17, %15, %13
ret void
}
declare i32 @system(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @getch(...) #1
declare i32 @doInsert(...) #1
declare i32 @doDelete(...) #1
declare i32 @doSearch(...) #1
declare i32 @doInOrder(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkru592bn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"cls\00", align 1
@.str.1 = private unnamed_addr constant [43 x i8] c" _____ _____ \0A\00", align 1
@.str.2 = private unnamed_addr constant [43 x i8] c" | __ | ___ |_ _|___ ___ ___ \0A\00", align 1
@.str.3 = private unnamed_addr constant [43 x i8] c" | __ -| |___| | | | _| -_| -_| \0A\00", align 1
@.str.4 = private unnamed_addr constant [43 x i8] c" |_____| |_| |_| |___|___| \0A\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
@.str.6 = private unnamed_addr constant [19 x i8] c"(1) Insert a Node\0A\00", align 1
@.str.7 = private unnamed_addr constant [19 x i8] c"(2) Delete a Node\0A\00", align 1
@.str.8 = private unnamed_addr constant [19 x i8] c"(3) Search a Node\0A\00", align 1
@.str.9 = private unnamed_addr constant [20 x i8] c"(4) Print In Order\0A\00", align 1
@.str.10 = private unnamed_addr constant [10 x i8] c"(5) Exit\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @showMenu() #0 {
%1 = call i32 @system(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
%6 = call i32 @printf(ptr noundef @.str.5)
%7 = call i32 @printf(ptr noundef @.str.6)
%8 = call i32 @printf(ptr noundef @.str.7)
%9 = call i32 @printf(ptr noundef @.str.8)
%10 = call i32 @printf(ptr noundef @.str.9)
%11 = call i32 @printf(ptr noundef @.str.10)
%12 = call i32 (...) @getch()
switch i32 %12, label %21 [
i32 49, label %13
i32 50, label %15
i32 51, label %17
i32 52, label %19
]
13: ; preds = %0
%14 = call i32 (...) @doInsert()
br label %23
15: ; preds = %0
%16 = call i32 (...) @doDelete()
br label %23
17: ; preds = %0
%18 = call i32 (...) @doSearch()
br label %23
19: ; preds = %0
%20 = call i32 (...) @doInOrder()
br label %23
21: ; preds = %0
%22 = call i32 @exit(i32 noundef 0) #3
unreachable
23: ; preds = %19, %17, %15, %13
ret void
}
declare i32 @system(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @getch(...) #1
declare i32 @doInsert(...) #1
declare i32 @doDelete(...) #1
declare i32 @doSearch(...) #1
declare i32 @doInOrder(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_96xzgec.c'
source_filename = "/tmp/tmp_96xzgec.c"
target datalayout = "e-m:e-p270: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 @fb(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @bitn(i32 noundef 26225, i32 noundef %3)
ret i32 %4
}
declare i32 @bitn(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/tmp_96xzgec.c"
target datalayout = "e-m:e-p270: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 @fb(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @bitn(i32 noundef 26225, i32 noundef %3)
ret i32 %4
}
declare i32 @bitn(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/tmpo_4tmps6.c'
source_filename = "/tmp/tmpo_4tmps6.c"
target datalayout = "e-m:e-p270: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/tmpo_4tmps6.c"
target datalayout = "e-m:e-p270: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/tmpg8e5pfy5.c'
source_filename = "/tmp/tmpg8e5pfy5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@S_IFBLK = dso_local global i32 0, align 4
@S_IFCHR = dso_local global i32 0, align 4
@S_IFDIR = dso_local global i32 0, align 4
@S_IFLNK = dso_local global i32 0, align 4
@S_IFMT = 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/tmpg8e5pfy5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@S_IFBLK = dso_local global i32 0, align 4
@S_IFCHR = dso_local global i32 0, align 4
@S_IFDIR = dso_local global i32 0, align 4
@S_IFLNK = dso_local global i32 0, align 4
@S_IFMT = 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/tmppc6r3lxe.c'
source_filename = "/tmp/tmppc6r3lxe.c"
target datalayout = "e-m:e-p270: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 @CircularBitBuffer_Clear(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @CircularBitBuffer_Ctor(ptr noundef %3)
ret void
}
declare i32 @CircularBitBuffer_Ctor(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppc6r3lxe.c"
target datalayout = "e-m:e-p270: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 @CircularBitBuffer_Clear(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @CircularBitBuffer_Ctor(ptr noundef %3)
ret void
}
declare i32 @CircularBitBuffer_Ctor(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkz76f8tx.c'
source_filename = "/tmp/tmpkz76f8tx.c"
target datalayout = "e-m:e-p270: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 @test5() #0 {
%1 = call i32 @bar5(i32 noundef 1)
ret void
}
declare i32 @bar5(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/tmpkz76f8tx.c"
target datalayout = "e-m:e-p270: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 @test5() #0 {
%1 = call i32 @bar5(i32 noundef 1)
ret void
}
declare i32 @bar5(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/tmp6va7ycbe.c'
source_filename = "/tmp/tmp6va7ycbe.c"
target datalayout = "e-m:e-p270: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 @getFirstBlock(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @getNumericValue(ptr noundef %3, i32 noundef 20, i32 noundef 2)
%5 = shl i32 %4, 16
%6 = load ptr, ptr %2, align 8
%7 = call i32 @getNumericValue(ptr noundef %6, i32 noundef 26, i32 noundef 2)
%8 = or i32 %5, %7
%9 = sext i32 %8 to i64
ret i64 %9
}
declare i32 @getNumericValue(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/tmp6va7ycbe.c"
target datalayout = "e-m:e-p270: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 @getFirstBlock(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @getNumericValue(ptr noundef %3, i32 noundef 20, i32 noundef 2)
%5 = shl i32 %4, 16
%6 = load ptr, ptr %2, align 8
%7 = call i32 @getNumericValue(ptr noundef %6, i32 noundef 26, i32 noundef 2)
%8 = or i32 %5, %7
%9 = sext i32 %8 to i64
ret i64 %9
}
declare i32 @getNumericValue(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/tmpwpbhscu1.c'
source_filename = "/tmp/tmpwpbhscu1.c"
target datalayout = "e-m:e-p270: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 [46 x i8] c"[INFO] (%s:%d) Well I did something mundane.\0A\00", align 1
@.str.1 = private unnamed_addr constant [139 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/hbqy90/learncthehardway/refs/heads/master/ex20.c\00", align 1
@.str.2 = private unnamed_addr constant [44 x i8] c"[INFO] (%s:%d) It happened %f times today.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_log_info() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 (i32, ptr, ptr, i32, ...) @fprintf(i32 noundef %1, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 28)
%3 = load i32, ptr @stderr, align 4
%4 = call i32 (i32, ptr, ptr, i32, ...) @fprintf(i32 noundef %3, ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 29, double noundef 0x3FF4CCCCC0000000)
ret void
}
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/tmpwpbhscu1.c"
target datalayout = "e-m:e-p270: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 [46 x i8] c"[INFO] (%s:%d) Well I did something mundane.\0A\00", align 1
@.str.1 = private unnamed_addr constant [139 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/hbqy90/learncthehardway/refs/heads/master/ex20.c\00", align 1
@.str.2 = private unnamed_addr constant [44 x i8] c"[INFO] (%s:%d) It happened %f times today.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_log_info() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 (i32, ptr, ptr, i32, ...) @fprintf(i32 noundef %1, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 28)
%3 = load i32, ptr @stderr, align 4
%4 = call i32 (i32, ptr, ptr, i32, ...) @fprintf(i32 noundef %3, ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 29, double noundef 0x3FF4CCCCC0000000)
ret void
}
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/tmp6xq8pa1k.c'
source_filename = "/tmp/tmp6xq8pa1k.c"
target datalayout = "e-m:e-p270: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 @fill_dp_vector(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 = %18, %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 %21
10: ; preds = %6
%11 = call i32 (...) @rand()
%12 = srem i32 %11, 10
%13 = sitofp i32 %12 to double
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %5, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds double, ptr %14, i64 %16
store double %13, ptr %17, align 8
br label %18
18: ; preds = %10
%19 = load i32, ptr %5, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %5, align 4
br label %6, !llvm.loop !6
21: ; preds = %6
ret void
}
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6xq8pa1k.c"
target datalayout = "e-m:e-p270: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 @fill_dp_vector(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 %23
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %17
%10 = call i32 (...) @rand()
%11 = srem i32 %10, 10
%12 = sitofp i32 %11 to double
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %5, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds double, ptr %13, i64 %15
store double %12, ptr %16, align 8
br label %17
17: ; preds = %9
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %5, align 4
%20 = load i32, ptr %5, align 4
%21 = load i32, ptr %4, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %23
23: ; preds = %._crit_edge, %2
ret void
}
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp4w3jrmji.c'
source_filename = "/tmp/tmp4w3jrmji.c"
target datalayout = "e-m:e-p270: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 @yaffs_lgetxattr_reldir(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 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 i32, align 4
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 i32 %4, ptr %10, align 4
%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 = load i32, ptr %10, align 4
%16 = call i32 @yaffs_do_getxattr_reldir(ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, i32 noundef %15, i32 noundef 0)
ret i32 %16
}
declare i32 @yaffs_do_getxattr_reldir(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4w3jrmji.c"
target datalayout = "e-m:e-p270: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 @yaffs_lgetxattr_reldir(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 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 i32, align 4
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 i32 %4, ptr %10, align 4
%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 = load i32, ptr %10, align 4
%16 = call i32 @yaffs_do_getxattr_reldir(ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, i32 noundef %15, i32 noundef 0)
ret i32 %16
}
declare i32 @yaffs_do_getxattr_reldir(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxzvzfatp.c'
source_filename = "/tmp/tmpxzvzfatp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"Hello from Other thread %d \0A\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"Goodbye from thread %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @testthread_other() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %2
2: ; preds = %9, %0
%3 = load i32, ptr %1, align 4
%4 = icmp slt i32 %3, 3
br i1 %4, label %5, label %12
5: ; preds = %2
%6 = call i32 (...) @getYAUThreadid()
%7 = call i32 @printf(ptr noundef @.str, i32 noundef %6)
%8 = call i32 @sleep(i32 noundef 1)
br label %9
9: ; preds = %5
%10 = load i32, ptr %1, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %1, align 4
br label %2, !llvm.loop !6
12: ; preds = %2
%13 = call i32 (...) @getYAUThreadid()
%14 = call i32 @printf(ptr noundef @.str.1, i32 noundef %13)
%15 = call i32 (...) @closeYAUThread()
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @getYAUThreadid(...) #1
declare i32 @sleep(i32 noundef) #1
declare i32 @closeYAUThread(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpxzvzfatp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"Hello from Other thread %d \0A\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"Goodbye from thread %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @testthread_other() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = load i32, ptr %1, align 4
%3 = icmp slt i32 %2, 3
br i1 %3, label %.lr.ph, label %13
.lr.ph: ; preds = %0
br label %4
4: ; preds = %.lr.ph, %8
%5 = call i32 (...) @getYAUThreadid()
%6 = call i32 @printf(ptr noundef @.str, i32 noundef %5)
%7 = call i32 @sleep(i32 noundef 1)
br label %8
8: ; preds = %4
%9 = load i32, ptr %1, align 4
%10 = add nsw i32 %9, 1
store i32 %10, ptr %1, align 4
%11 = load i32, ptr %1, align 4
%12 = icmp slt i32 %11, 3
br i1 %12, label %4, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %8
br label %13
13: ; preds = %._crit_edge, %0
%14 = call i32 (...) @getYAUThreadid()
%15 = call i32 @printf(ptr noundef @.str.1, i32 noundef %14)
%16 = call i32 (...) @closeYAUThread()
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @getYAUThreadid(...) #1
declare i32 @sleep(i32 noundef) #1
declare i32 @closeYAUThread(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpy5iiytrj.c'
source_filename = "/tmp/tmpy5iiytrj.c"
target datalayout = "e-m:e-p270: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/tmpy5iiytrj.c"
target datalayout = "e-m:e-p270: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/tmp6cznb6no.c'
source_filename = "/tmp/tmp6cznb6no.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"visible: %s\0A\00", align 1
@GLUT_VISIBLE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [4 x i8] c"YES\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"no\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @visible(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = load i32, ptr @GLUT_VISIBLE, align 4
%5 = icmp eq i32 %3, %4
%6 = zext i1 %5 to i64
%7 = select i1 %5, ptr @.str.1, ptr @.str.2
%8 = call i32 @printf(ptr noundef @.str, ptr noundef %7)
ret void
}
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/tmp6cznb6no.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"visible: %s\0A\00", align 1
@GLUT_VISIBLE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [4 x i8] c"YES\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"no\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @visible(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = load i32, ptr @GLUT_VISIBLE, align 4
%5 = icmp eq i32 %3, %4
%6 = zext i1 %5 to i64
%7 = select i1 %5, ptr @.str.1, ptr @.str.2
%8 = call i32 @printf(ptr noundef @.str, ptr noundef %7)
ret void
}
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/tmp5i24df1u.c'
source_filename = "/tmp/tmp5i24df1u.c"
target datalayout = "e-m:e-p270: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_SETMASK = 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/tmp5i24df1u.c"
target datalayout = "e-m:e-p270: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_SETMASK = 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/tmpe3mapmcx.c'
source_filename = "/tmp/tmpe3mapmcx.c"
target datalayout = "e-m:e-p270: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/tmpe3mapmcx.c"
target datalayout = "e-m:e-p270: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/tmpc10rh0bv.c'
source_filename = "/tmp/tmpc10rh0bv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOENT = dso_local global i64 0, align 8
@errno = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc10rh0bv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOENT = dso_local global i64 0, align 8
@errno = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmqmh9yuh.c'
source_filename = "/tmp/tmpmqmh9yuh.c"
target datalayout = "e-m:e-p270: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 @LZ4_compress(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = load i32, ptr %6, align 4
%11 = call i32 @LZ4_compressBound(i32 noundef %10)
%12 = call i32 @LZ4_compress_default(ptr noundef %7, ptr noundef %8, i32 noundef %9, i32 noundef %11)
ret i32 %12
}
declare i32 @LZ4_compress_default(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @LZ4_compressBound(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/tmpmqmh9yuh.c"
target datalayout = "e-m:e-p270: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 @LZ4_compress(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = load i32, ptr %6, align 4
%11 = call i32 @LZ4_compressBound(i32 noundef %10)
%12 = call i32 @LZ4_compress_default(ptr noundef %7, ptr noundef %8, i32 noundef %9, i32 noundef %11)
ret i32 %12
}
declare i32 @LZ4_compress_default(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @LZ4_compressBound(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/tmpbxl7l56t.c'
source_filename = "/tmp/tmpbxl7l56t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isprint.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isprint should be 0 for 0x11\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isprint_0x11() #0 {
%1 = call i64 @isprint(i32 noundef 17)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 90, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isprint(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/tmpbxl7l56t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isprint.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isprint should be 0 for 0x11\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isprint_0x11() #0 {
%1 = call i64 @isprint(i32 noundef 17)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 90, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isprint(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/tmp3nsj_i5f.c'
source_filename = "/tmp/tmp3nsj_i5f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@stdout = dso_local global i32 0, align 4
@stdin = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @linenoise(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca [4096 x i8], align 16
%5 = alloca i32, align 4
%6 = alloca i64, align 8
store ptr %0, ptr %3, align 8
%7 = call i64 (...) @isUnsupportedTerm()
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %51
9: ; preds = %1
%10 = load ptr, ptr %3, align 8
%11 = call i32 @printf(ptr noundef @.str, ptr noundef %10)
%12 = load i32, ptr @stdout, align 4
%13 = call i32 @fflush(i32 noundef %12)
%14 = getelementptr inbounds [4096 x i8], ptr %4, i64 0, i64 0
%15 = load i32, ptr @stdin, align 4
%16 = call ptr @fgets(ptr noundef %14, i32 noundef 4096, i32 noundef %15)
%17 = icmp eq ptr %16, null
br i1 %17, label %18, label %19
18: ; preds = %9
store ptr null, ptr %2, align 8
br label %61
19: ; preds = %9
%20 = getelementptr inbounds [4096 x i8], ptr %4, i64 0, i64 0
%21 = call i64 @strlen(ptr noundef %20)
store i64 %21, ptr %6, align 8
br label %22
22: ; preds = %43, %19
%23 = load i64, ptr %6, align 8
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %41
25: ; preds = %22
%26 = load i64, ptr %6, align 8
%27 = sub i64 %26, 1
%28 = getelementptr inbounds [4096 x i8], ptr %4, i64 0, i64 %27
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 10
br i1 %31, label %39, label %32
32: ; preds = %25
%33 = load i64, ptr %6, align 8
%34 = sub i64 %33, 1
%35 = getelementptr inbounds [4096 x i8], ptr %4, i64 0, i64 %34
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 13
br label %39
39: ; preds = %32, %25
%40 = phi i1 [ true, %25 ], [ %38, %32 ]
br label %41
41: ; preds = %39, %22
%42 = phi i1 [ false, %22 ], [ %40, %39 ]
br i1 %42, label %43, label %48
43: ; preds = %41
%44 = load i64, ptr %6, align 8
%45 = add i64 %44, -1
store i64 %45, ptr %6, align 8
%46 = load i64, ptr %6, align 8
%47 = getelementptr inbounds [4096 x i8], ptr %4, i64 0, i64 %46
store i8 0, ptr %47, align 1
br label %22, !llvm.loop !6
48: ; preds = %41
%49 = getelementptr inbounds [4096 x i8], ptr %4, i64 0, i64 0
%50 = call ptr @strdup(ptr noundef %49)
store ptr %50, ptr %2, align 8
br label %61
51: ; preds = %1
%52 = getelementptr inbounds [4096 x i8], ptr %4, i64 0, i64 0
%53 = load ptr, ptr %3, align 8
%54 = call i32 @linenoiseRaw(ptr noundef %52, i32 noundef 4096, ptr noundef %53)
store i32 %54, ptr %5, align 4
%55 = load i32, ptr %5, align 4
%56 = icmp eq i32 %55, -1
br i1 %56, label %57, label %58
57: ; preds = %51
store ptr null, ptr %2, align 8
br label %61
58: ; preds = %51
%59 = getelementptr inbounds [4096 x i8], ptr %4, i64 0, i64 0
%60 = call ptr @strdup(ptr noundef %59)
store ptr %60, ptr %2, align 8
br label %61
61: ; preds = %58, %57, %48, %18
%62 = load ptr, ptr %2, align 8
ret ptr %62
}
declare i64 @isUnsupportedTerm(...) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @fflush(i32 noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare ptr @strdup(ptr noundef) #1
declare i32 @linenoiseRaw(ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3nsj_i5f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@stdout = dso_local global i32 0, align 4
@stdin = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @linenoise(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca [4096 x i8], align 16
%5 = alloca i32, align 4
%6 = alloca i64, align 8
store ptr %0, ptr %3, align 8
%7 = call i64 (...) @isUnsupportedTerm()
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %51
9: ; preds = %1
%10 = load ptr, ptr %3, align 8
%11 = call i32 @printf(ptr noundef @.str, ptr noundef %10)
%12 = load i32, ptr @stdout, align 4
%13 = call i32 @fflush(i32 noundef %12)
%14 = getelementptr inbounds [4096 x i8], ptr %4, i64 0, i64 0
%15 = load i32, ptr @stdin, align 4
%16 = call ptr @fgets(ptr noundef %14, i32 noundef 4096, i32 noundef %15)
%17 = icmp eq ptr %16, null
br i1 %17, label %18, label %19
18: ; preds = %9
store ptr null, ptr %2, align 8
br label %61
19: ; preds = %9
%20 = getelementptr inbounds [4096 x i8], ptr %4, i64 0, i64 0
%21 = call i64 @strlen(ptr noundef %20)
store i64 %21, ptr %6, align 8
br label %22
22: ; preds = %43, %19
%23 = load i64, ptr %6, align 8
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %41
25: ; preds = %22
%26 = load i64, ptr %6, align 8
%27 = sub i64 %26, 1
%28 = getelementptr inbounds [4096 x i8], ptr %4, i64 0, i64 %27
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 10
br i1 %31, label %39, label %32
32: ; preds = %25
%33 = load i64, ptr %6, align 8
%34 = sub i64 %33, 1
%35 = getelementptr inbounds [4096 x i8], ptr %4, i64 0, i64 %34
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 13
br label %39
39: ; preds = %32, %25
%40 = phi i1 [ true, %25 ], [ %38, %32 ]
br label %41
41: ; preds = %39, %22
%42 = phi i1 [ false, %22 ], [ %40, %39 ]
br i1 %42, label %43, label %48
43: ; preds = %41
%44 = load i64, ptr %6, align 8
%45 = add i64 %44, -1
store i64 %45, ptr %6, align 8
%46 = load i64, ptr %6, align 8
%47 = getelementptr inbounds [4096 x i8], ptr %4, i64 0, i64 %46
store i8 0, ptr %47, align 1
br label %22, !llvm.loop !6
48: ; preds = %41
%49 = getelementptr inbounds [4096 x i8], ptr %4, i64 0, i64 0
%50 = call ptr @strdup(ptr noundef %49)
store ptr %50, ptr %2, align 8
br label %61
51: ; preds = %1
%52 = getelementptr inbounds [4096 x i8], ptr %4, i64 0, i64 0
%53 = load ptr, ptr %3, align 8
%54 = call i32 @linenoiseRaw(ptr noundef %52, i32 noundef 4096, ptr noundef %53)
store i32 %54, ptr %5, align 4
%55 = load i32, ptr %5, align 4
%56 = icmp eq i32 %55, -1
br i1 %56, label %57, label %58
57: ; preds = %51
store ptr null, ptr %2, align 8
br label %61
58: ; preds = %51
%59 = getelementptr inbounds [4096 x i8], ptr %4, i64 0, i64 0
%60 = call ptr @strdup(ptr noundef %59)
store ptr %60, ptr %2, align 8
br label %61
61: ; preds = %58, %57, %48, %18
%62 = load ptr, ptr %2, align 8
ret ptr %62
}
declare i64 @isUnsupportedTerm(...) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @fflush(i32 noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare ptr @strdup(ptr noundef) #1
declare i32 @linenoiseRaw(ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp99s586r3.c'
source_filename = "/tmp/tmp99s586r3.c"
target datalayout = "e-m:e-p270: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/tmp99s586r3.c"
target datalayout = "e-m:e-p270: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/tmp2k82uzi0.c'
source_filename = "/tmp/tmp2k82uzi0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"chickens\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"turkeys\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
br label %8
8: ; preds = %14, %2
%9 = load i32, ptr %6, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %17
12: ; preds = %8
%13 = call i32 @printf(ptr noundef @.str)
br label %14
14: ; preds = %12
%15 = load i32, ptr %6, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %6, align 4
br label %8, !llvm.loop !6
17: ; preds = %8
store i32 0, ptr %7, align 4
br label %18
18: ; preds = %24, %17
%19 = load i32, ptr %7, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %27
22: ; preds = %18
%23 = call i32 @printf(ptr noundef @.str.1)
br label %24
24: ; preds = %22
%25 = load i32, ptr %7, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %7, align 4
br label %18, !llvm.loop !8
27: ; preds = %18
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/tmp2k82uzi0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"chickens\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"turkeys\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %19
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %13
%12 = call i32 @printf(ptr noundef @.str)
br label %13
13: ; preds = %11
%14 = load i32, ptr %6, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %6, align 4
%16 = load i32, ptr %6, align 4
%17 = load i32, ptr %4, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %19
19: ; preds = %._crit_edge, %2
store i32 0, ptr %7, align 4
%20 = load i32, ptr %7, align 4
%21 = load i32, ptr %4, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %.lr.ph2, label %31
.lr.ph2: ; preds = %19
br label %23
23: ; preds = %.lr.ph2, %25
%24 = call i32 @printf(ptr noundef @.str.1)
br label %25
25: ; preds = %23
%26 = load i32, ptr %7, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %7, align 4
%28 = load i32, ptr %7, align 4
%29 = load i32, ptr %4, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %23, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %25
br label %31
31: ; preds = %._crit_edge3, %19
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/tmph9x37xhr.c'
source_filename = "/tmp/tmph9x37xhr.c"
target datalayout = "e-m:e-p270: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 @error_die(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @perror(ptr noundef %3)
%5 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmph9x37xhr.c"
target datalayout = "e-m:e-p270: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 @error_die(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @perror(ptr noundef %3)
%5 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfdrjhvb_.c'
source_filename = "/tmp/tmpfdrjhvb_.c"
target datalayout = "e-m:e-p270: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 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @util_file_exists(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca %struct.stat, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i64 @stat(ptr noundef %4, ptr noundef %3)
%6 = icmp eq i64 %5, 0
%7 = zext i1 %6 to i32
ret i32 %7
}
declare i64 @stat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfdrjhvb_.c"
target datalayout = "e-m:e-p270: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 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @util_file_exists(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca %struct.stat, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i64 @stat(ptr noundef %4, ptr noundef %3)
%6 = icmp eq i64 %5, 0
%7 = zext i1 %6 to i32
ret i32 %7
}
declare i64 @stat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpa2q8piv4.c'
source_filename = "/tmp/tmpa2q8piv4.c"
target datalayout = "e-m:e-p270: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/tmpa2q8piv4.c"
target datalayout = "e-m:e-p270: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/tmp0fnn0a7j.c'
source_filename = "/tmp/tmp0fnn0a7j.c"
target datalayout = "e-m:e-p270: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 @ensure_mem_size(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%8 = load i32, ptr %7, align 4
%9 = load ptr, ptr %6, align 8
%10 = load i32, ptr %9, align 4
%11 = icmp sgt i32 %8, %10
br i1 %11, label %12, label %23
12: ; preds = %3
%13 = load ptr, ptr %5, align 8
%14 = load ptr, ptr %13, align 8
%15 = load i32, ptr %7, align 4
%16 = call ptr @fizmo_realloc(ptr noundef %14, i32 noundef %15)
%17 = load ptr, ptr %5, align 8
store ptr %16, ptr %17, align 8
%18 = icmp eq ptr %16, null
br i1 %18, label %19, label %20
19: ; preds = %12
store i32 -1, ptr %4, align 4
br label %24
20: ; preds = %12
%21 = load i32, ptr %7, align 4
%22 = load ptr, ptr %6, align 8
store i32 %21, ptr %22, align 4
br label %23
23: ; preds = %20, %3
store i32 0, ptr %4, align 4
br label %24
24: ; preds = %23, %19
%25 = load i32, ptr %4, align 4
ret i32 %25
}
declare ptr @fizmo_realloc(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/tmp0fnn0a7j.c"
target datalayout = "e-m:e-p270: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 @ensure_mem_size(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%8 = load i32, ptr %7, align 4
%9 = load ptr, ptr %6, align 8
%10 = load i32, ptr %9, align 4
%11 = icmp sgt i32 %8, %10
br i1 %11, label %12, label %23
12: ; preds = %3
%13 = load ptr, ptr %5, align 8
%14 = load ptr, ptr %13, align 8
%15 = load i32, ptr %7, align 4
%16 = call ptr @fizmo_realloc(ptr noundef %14, i32 noundef %15)
%17 = load ptr, ptr %5, align 8
store ptr %16, ptr %17, align 8
%18 = icmp eq ptr %16, null
br i1 %18, label %19, label %20
19: ; preds = %12
store i32 -1, ptr %4, align 4
br label %24
20: ; preds = %12
%21 = load i32, ptr %7, align 4
%22 = load ptr, ptr %6, align 8
store i32 %21, ptr %22, align 4
br label %23
23: ; preds = %20, %3
store i32 0, ptr %4, align 4
br label %24
24: ; preds = %23, %19
%25 = load i32, ptr %4, align 4
ret i32 %25
}
declare ptr @fizmo_realloc(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/tmp38xajus1.c'
source_filename = "/tmp/tmp38xajus1.c"
target datalayout = "e-m:e-p270: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 @fn_qtg_0_1_sq_qtg_0_4294967295_cl_45_46_48_57_65_91_95_95_97_122_183_183_192_214_216_246_248_893_895_8191_8204_8205_8255_8256_8304_8591_11264_12271_12289_55295_63744_64975_65008_65533_65536_983039_cl_45_45_48_57_65_91_95_95_97_122_183_183_192_214_216_246_248_893_895_8191_8204_8205_8255_8256_8304_8591_11264_12271_12289_55295_63744_64975_65008_65533_65536_983039(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
br label %7
7: ; preds = %19, %1
%8 = load i32, ptr %6, align 4
%9 = icmp slt i32 %8, 1
br i1 %9, label %10, label %17
10: ; preds = %7
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %4, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, ptr %11, i64 %13
%15 = call i32 @fn_sq_qtg_0_4294967295_cl_45_46_48_57_65_91_95_95_97_122_183_183_192_214_216_246_248_893_895_8191_8204_8205_8255_8256_8304_8591_11264_12271_12289_55295_63744_64975_65008_65533_65536_983039_cl_45_45_48_57_65_91_95_95_97_122_183_183_192_214_216_246_248_893_895_8191_8204_8205_8255_8256_8304_8591_11264_12271_12289_55295_63744_64975_65008_65533_65536_983039(ptr noundef %14)
store i32 %15, ptr %5, align 4
%16 = icmp ne i32 %15, -1
br label %17
17: ; preds = %10, %7
%18 = phi i1 [ false, %7 ], [ %16, %10 ]
br i1 %18, label %19, label %25
19: ; preds = %17
%20 = load i32, ptr %5, align 4
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, %20
store i32 %22, ptr %4, align 4
%23 = load i32, ptr %6, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %6, align 4
br label %7, !llvm.loop !6
25: ; preds = %17
%26 = load i32, ptr %6, align 4
%27 = icmp sge i32 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %25
%29 = load i32, ptr %4, align 4
store i32 %29, ptr %2, align 4
br label %31
30: ; preds = %25
store i32 -1, ptr %2, align 4
br label %31
31: ; preds = %30, %28
%32 = load i32, ptr %2, align 4
ret i32 %32
}
declare i32 @fn_sq_qtg_0_4294967295_cl_45_46_48_57_65_91_95_95_97_122_183_183_192_214_216_246_248_893_895_8191_8204_8205_8255_8256_8304_8591_11264_12271_12289_55295_63744_64975_65008_65533_65536_983039_cl_45_45_48_57_65_91_95_95_97_122_183_183_192_214_216_246_248_893_895_8191_8204_8205_8255_8256_8304_8591_11264_12271_12289_55295_63744_64975_65008_65533_65536_983039(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp38xajus1.c"
target datalayout = "e-m:e-p270: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 @fn_qtg_0_1_sq_qtg_0_4294967295_cl_45_46_48_57_65_91_95_95_97_122_183_183_192_214_216_246_248_893_895_8191_8204_8205_8255_8256_8304_8591_11264_12271_12289_55295_63744_64975_65008_65533_65536_983039_cl_45_45_48_57_65_91_95_95_97_122_183_183_192_214_216_246_248_893_895_8191_8204_8205_8255_8256_8304_8591_11264_12271_12289_55295_63744_64975_65008_65533_65536_983039(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
br label %7
7: ; preds = %19, %1
%8 = load i32, ptr %6, align 4
%9 = icmp slt i32 %8, 1
br i1 %9, label %10, label %17
10: ; preds = %7
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %4, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, ptr %11, i64 %13
%15 = call i32 @fn_sq_qtg_0_4294967295_cl_45_46_48_57_65_91_95_95_97_122_183_183_192_214_216_246_248_893_895_8191_8204_8205_8255_8256_8304_8591_11264_12271_12289_55295_63744_64975_65008_65533_65536_983039_cl_45_45_48_57_65_91_95_95_97_122_183_183_192_214_216_246_248_893_895_8191_8204_8205_8255_8256_8304_8591_11264_12271_12289_55295_63744_64975_65008_65533_65536_983039(ptr noundef %14)
store i32 %15, ptr %5, align 4
%16 = icmp ne i32 %15, -1
br label %17
17: ; preds = %10, %7
%18 = phi i1 [ false, %7 ], [ %16, %10 ]
br i1 %18, label %19, label %25
19: ; preds = %17
%20 = load i32, ptr %5, align 4
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, %20
store i32 %22, ptr %4, align 4
%23 = load i32, ptr %6, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %6, align 4
br label %7, !llvm.loop !6
25: ; preds = %17
%26 = load i32, ptr %6, align 4
%27 = icmp sge i32 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %25
%29 = load i32, ptr %4, align 4
store i32 %29, ptr %2, align 4
br label %31
30: ; preds = %25
store i32 -1, ptr %2, align 4
br label %31
31: ; preds = %30, %28
%32 = load i32, ptr %2, align 4
ret i32 %32
}
declare i32 @fn_sq_qtg_0_4294967295_cl_45_46_48_57_65_91_95_95_97_122_183_183_192_214_216_246_248_893_895_8191_8204_8205_8255_8256_8304_8591_11264_12271_12289_55295_63744_64975_65008_65533_65536_983039_cl_45_45_48_57_65_91_95_95_97_122_183_183_192_214_216_246_248_893_895_8191_8204_8205_8255_8256_8304_8591_11264_12271_12289_55295_63744_64975_65008_65533_65536_983039(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp8ttfx4tp.c'
source_filename = "/tmp/tmp8ttfx4tp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_3__ = type { ptr }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @__libc_sigsuspend(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds %struct.TYPE_3__, ptr %3, i32 0, i32 0
%5 = load ptr, ptr %4, align 8
%6 = getelementptr inbounds i32, ptr %5, i64 0
%7 = load i32, ptr %6, align 4
%8 = call i32 @__syscall_sigsuspend(i32 noundef 0, i32 noundef 0, i32 noundef %7)
ret i32 %8
}
declare i32 @__syscall_sigsuspend(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/tmp8ttfx4tp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_3__ = type { ptr }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @__libc_sigsuspend(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds %struct.TYPE_3__, ptr %3, i32 0, i32 0
%5 = load ptr, ptr %4, align 8
%6 = getelementptr inbounds i32, ptr %5, i64 0
%7 = load i32, ptr %6, align 4
%8 = call i32 @__syscall_sigsuspend(i32 noundef 0, i32 noundef 0, i32 noundef %7)
ret i32 %8
}
declare i32 @__syscall_sigsuspend(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/tmpdzk6tyqx.c'
source_filename = "/tmp/tmpdzk6tyqx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"test = %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 189, ptr %2, align 4
%3 = call i32 @setin(ptr noundef %2)
%4 = load i32, ptr %2, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
ret i32 0
}
declare i32 @setin(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdzk6tyqx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"test = %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 189, ptr %2, align 4
%3 = call i32 @setin(ptr noundef %2)
%4 = load i32, ptr %2, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
ret i32 0
}
declare i32 @setin(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpecj5bn_l.c'
source_filename = "/tmp/tmpecj5bn_l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [52 x i8] c"\0A\09\09 Inner: max_act_lev=%d, num_thds=%d,max_thds=%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [52 x i8] c"\0A\09\09 Outer: max_act_lev=%d, num_thds=%d,max_thds=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 @omp_set_nested(i32 noundef 1)
%2 = call i32 @omp_set_max_active_levels(i32 noundef 8)
%3 = call i32 @omp_set_dynamic(i32 noundef 0)
%4 = call i32 @omp_set_num_threads(i32 noundef 2)
%5 = call i32 @omp_set_num_threads(i32 noundef 3)
%6 = call i32 @omp_set_num_threads(i32 noundef 4)
%7 = call i32 (...) @omp_get_max_active_levels()
%8 = call i32 (...) @omp_get_num_threads()
%9 = call i32 (...) @omp_get_max_threads()
%10 = call i32 @printf(ptr noundef @.str, i32 noundef %7, i32 noundef %8, i32 noundef %9)
%11 = call i32 (...) @omp_get_max_active_levels()
%12 = call i32 (...) @omp_get_num_threads()
%13 = call i32 (...) @omp_get_max_threads()
%14 = call i32 @printf(ptr noundef @.str.1, i32 noundef %11, i32 noundef %12, i32 noundef %13)
ret i32 0
}
declare i32 @omp_set_nested(i32 noundef) #1
declare i32 @omp_set_max_active_levels(i32 noundef) #1
declare i32 @omp_set_dynamic(i32 noundef) #1
declare i32 @omp_set_num_threads(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @omp_get_max_active_levels(...) #1
declare i32 @omp_get_num_threads(...) #1
declare i32 @omp_get_max_threads(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpecj5bn_l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [52 x i8] c"\0A\09\09 Inner: max_act_lev=%d, num_thds=%d,max_thds=%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [52 x i8] c"\0A\09\09 Outer: max_act_lev=%d, num_thds=%d,max_thds=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 @omp_set_nested(i32 noundef 1)
%2 = call i32 @omp_set_max_active_levels(i32 noundef 8)
%3 = call i32 @omp_set_dynamic(i32 noundef 0)
%4 = call i32 @omp_set_num_threads(i32 noundef 2)
%5 = call i32 @omp_set_num_threads(i32 noundef 3)
%6 = call i32 @omp_set_num_threads(i32 noundef 4)
%7 = call i32 (...) @omp_get_max_active_levels()
%8 = call i32 (...) @omp_get_num_threads()
%9 = call i32 (...) @omp_get_max_threads()
%10 = call i32 @printf(ptr noundef @.str, i32 noundef %7, i32 noundef %8, i32 noundef %9)
%11 = call i32 (...) @omp_get_max_active_levels()
%12 = call i32 (...) @omp_get_num_threads()
%13 = call i32 (...) @omp_get_max_threads()
%14 = call i32 @printf(ptr noundef @.str.1, i32 noundef %11, i32 noundef %12, i32 noundef %13)
ret i32 0
}
declare i32 @omp_set_nested(i32 noundef) #1
declare i32 @omp_set_max_active_levels(i32 noundef) #1
declare i32 @omp_set_dynamic(i32 noundef) #1
declare i32 @omp_set_num_threads(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @omp_get_max_active_levels(...) #1
declare i32 @omp_get_num_threads(...) #1
declare i32 @omp_get_max_threads(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4p65hj3l.c'
source_filename = "/tmp/tmp4p65hj3l.c"
target datalayout = "e-m:e-p270: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 @swap(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%8 = load ptr, ptr %3, align 8
%9 = call i32 @strlen(ptr noundef %8)
store i32 %9, ptr %5, align 4
%10 = load i32, ptr %5, align 4
%11 = zext i32 %10 to i64
%12 = call ptr @llvm.stacksave()
store ptr %12, ptr %6, align 8
%13 = alloca i8, i64 %11, align 16
store i64 %11, ptr %7, align 8
%14 = load ptr, ptr %3, align 8
%15 = call i32 @strcpy(ptr noundef %13, ptr noundef %14)
%16 = load ptr, ptr %3, align 8
%17 = load ptr, ptr %4, align 8
%18 = call i32 @strcpy(ptr noundef %16, ptr noundef %17)
%19 = load ptr, ptr %4, align 8
%20 = call i32 @strcpy(ptr noundef %19, ptr noundef %13)
%21 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %21)
ret void
}
declare i32 @strlen(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @strcpy(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4p65hj3l.c"
target datalayout = "e-m:e-p270: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 @swap(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%8 = load ptr, ptr %3, align 8
%9 = call i32 @strlen(ptr noundef %8)
store i32 %9, ptr %5, align 4
%10 = load i32, ptr %5, align 4
%11 = zext i32 %10 to i64
%12 = call ptr @llvm.stacksave()
store ptr %12, ptr %6, align 8
%13 = alloca i8, i64 %11, align 16
store i64 %11, ptr %7, align 8
%14 = load ptr, ptr %3, align 8
%15 = call i32 @strcpy(ptr noundef %13, ptr noundef %14)
%16 = load ptr, ptr %3, align 8
%17 = load ptr, ptr %4, align 8
%18 = call i32 @strcpy(ptr noundef %16, ptr noundef %17)
%19 = load ptr, ptr %4, align 8
%20 = call i32 @strcpy(ptr noundef %19, ptr noundef %13)
%21 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %21)
ret void
}
declare i32 @strlen(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @strcpy(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpszjtwo0d.c'
source_filename = "/tmp/tmpszjtwo0d.c"
target datalayout = "e-m:e-p270: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 @testunsignedlonglong() #0 {
%1 = alloca i64, align 8
store i64 2, ptr %1, align 8
%2 = call i32 @fooull(ptr noundef %1)
ret void
}
declare i32 @fooull(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpszjtwo0d.c"
target datalayout = "e-m:e-p270: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 @testunsignedlonglong() #0 {
%1 = alloca i64, align 8
store i64 2, ptr %1, align 8
%2 = call i32 @fooull(ptr noundef %1)
ret void
}
declare i32 @fooull(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfgzp6el_.c'
source_filename = "/tmp/tmpfgzp6el_.c"
target datalayout = "e-m:e-p270: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 @totalNQueens0(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%11 = load i32, ptr %3, align 4
%12 = icmp eq i32 %11, 1
br i1 %12, label %13, label %14
13: ; preds = %1
store i32 1, ptr %2, align 4
br label %122
14: ; preds = %1
%15 = load i32, ptr %3, align 4
%16 = icmp slt i32 %15, 4
br i1 %16, label %17, label %18
17: ; preds = %14
store i32 0, ptr %2, align 4
br label %122
18: ; preds = %14
%19 = load i32, ptr %3, align 4
%20 = sext i32 %19 to i64
%21 = mul i64 4, %20
%22 = trunc i64 %21 to i32
%23 = call i64 @malloc(i32 noundef %22)
%24 = inttoptr i64 %23 to ptr
store ptr %24, ptr %4, align 8
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
br label %25
25: ; preds = %117, %18
%26 = load i32, ptr %9, align 4
%27 = load i32, ptr %3, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %29, label %120
29: ; preds = %25
%30 = load i32, ptr %8, align 4
%31 = load i32, ptr %9, align 4
%32 = icmp sgt i32 %30, %31
br i1 %32, label %33, label %35
33: ; preds = %29
%34 = load i32, ptr %8, align 4
store i32 %34, ptr %9, align 4
br label %35
35: ; preds = %33, %29
store i32 -1, ptr %5, align 4
%36 = load i32, ptr %9, align 4
%37 = load ptr, ptr %4, align 8
%38 = load i32, ptr %5, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %5, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i32, ptr %37, i64 %40
store i32 %36, ptr %41, align 4
br label %42
42: ; preds = %114, %35
%43 = load i32, ptr %5, align 4
%44 = load i32, ptr %3, align 4
%45 = icmp slt i32 %43, %44
br i1 %45, label %46, label %116
46: ; preds = %42
store i32 0, ptr %10, align 4
br label %47
47: ; preds = %66, %46
%48 = load i32, ptr %10, align 4
%49 = load i32, ptr %3, align 4
%50 = icmp slt i32 %48, %49
br i1 %50, label %51, label %69
51: ; preds = %47
%52 = load ptr, ptr %4, align 8
%53 = load i32, ptr %5, align 4
%54 = load i32, ptr %3, align 4
%55 = load i32, ptr %10, align 4
%56 = call i64 @conflict(ptr noundef %52, i32 noundef %53, i32 noundef %54, i32 noundef %55)
%57 = icmp ne i64 %56, 0
br i1 %57, label %58, label %59
58: ; preds = %51
br label %66
59: ; preds = %51
%60 = load i32, ptr %10, align 4
%61 = load ptr, ptr %4, align 8
%62 = load i32, ptr %5, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %5, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i32, ptr %61, i64 %64
store i32 %60, ptr %65, align 4
br label %69
66: ; preds = %58
%67 = load i32, ptr %10, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %10, align 4
br label %47, !llvm.loop !6
69: ; preds = %59, %47
%70 = load i32, ptr %7, align 4
%71 = load i32, ptr %5, align 4
%72 = icmp eq i32 %70, %71
br i1 %72, label %78, label %73
73: ; preds = %69
%74 = load i32, ptr %5, align 4
%75 = load i32, ptr %3, align 4
%76 = sub nsw i32 %75, 1
%77 = icmp eq i32 %74, %76
br i1 %77, label %78, label %114
78: ; preds = %73, %69
%79 = load i32, ptr %5, align 4
%80 = load i32, ptr %3, align 4
%81 = sub nsw i32 %80, 1
%82 = icmp eq i32 %79, %81
br i1 %82, label %83, label %86
83: ; preds = %78
%84 = load i32, ptr %6, align 4
%85 = add nsw i32 %84, 1
store i32 %85, ptr %6, align 4
br label %86
86: ; preds = %83, %78
br label %87
87: ; preds = %95, %86
%88 = load ptr, ptr %4, align 8
%89 = load i32, ptr %5, align 4
%90 = load i32, ptr %3, align 4
%91 = call i32 @backtrack(ptr noundef %88, i32 noundef %89, i32 noundef %90)
store i32 %91, ptr %5, align 4
%92 = load i32, ptr %3, align 4
%93 = sub nsw i32 %92, 1
%94 = icmp eq i32 %91, %93
br i1 %94, label %95, label %98
95: ; preds = %87
%96 = load i32, ptr %6, align 4
%97 = add nsw i32 %96, 1
store i32 %97, ptr %6, align 4
br label %87, !llvm.loop !8
98: ; preds = %87
%99 = load i32, ptr %5, align 4
%100 = icmp eq i32 %99, -1
br i1 %100, label %101, label %103
101: ; preds = %98
%102 = load i32, ptr %6, align 4
store i32 %102, ptr %2, align 4
br label %122
103: ; preds = %98
%104 = load i32, ptr %5, align 4
%105 = icmp eq i32 %104, 0
br i1 %105, label %106, label %113
106: ; preds = %103
%107 = load ptr, ptr %4, align 8
%108 = load i32, ptr %5, align 4
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds i32, ptr %107, i64 %109
%111 = load i32, ptr %110, align 4
%112 = add nsw i32 %111, 1
store i32 %112, ptr %8, align 4
br label %113
113: ; preds = %106, %103
br label %114
114: ; preds = %113, %73
%115 = load i32, ptr %5, align 4
store i32 %115, ptr %7, align 4
br label %42, !llvm.loop !9
116: ; preds = %42
br label %117
117: ; preds = %116
%118 = load i32, ptr %9, align 4
%119 = add nsw i32 %118, 1
store i32 %119, ptr %9, align 4
br label %25, !llvm.loop !10
120: ; preds = %25
%121 = load i32, ptr %6, align 4
store i32 %121, ptr %2, align 4
br label %122
122: ; preds = %120, %101, %17, %13
%123 = load i32, ptr %2, align 4
ret i32 %123
}
declare i64 @malloc(i32 noundef) #1
declare i64 @conflict(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @backtrack(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfgzp6el_.c"
target datalayout = "e-m:e-p270: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 @totalNQueens0(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%11 = load i32, ptr %3, align 4
%12 = icmp eq i32 %11, 1
br i1 %12, label %13, label %14
13: ; preds = %1
store i32 1, ptr %2, align 4
br label %134
14: ; preds = %1
%15 = load i32, ptr %3, align 4
%16 = icmp slt i32 %15, 4
br i1 %16, label %17, label %18
17: ; preds = %14
store i32 0, ptr %2, align 4
br label %134
18: ; preds = %14
%19 = load i32, ptr %3, align 4
%20 = sext i32 %19 to i64
%21 = mul i64 4, %20
%22 = trunc i64 %21 to i32
%23 = call i64 @malloc(i32 noundef %22)
%24 = inttoptr i64 %23 to ptr
store ptr %24, ptr %4, align 8
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
%25 = load i32, ptr %9, align 4
%26 = load i32, ptr %3, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %.lr.ph6, label %132
.lr.ph6: ; preds = %18
br label %28
28: ; preds = %.lr.ph6, %126
%29 = load i32, ptr %8, align 4
%30 = load i32, ptr %9, align 4
%31 = icmp sgt i32 %29, %30
br i1 %31, label %32, label %34
32: ; preds = %28
%33 = load i32, ptr %8, align 4
store i32 %33, ptr %9, align 4
br label %34
34: ; preds = %32, %28
store i32 -1, ptr %5, align 4
%35 = load i32, ptr %9, align 4
%36 = load ptr, ptr %4, align 8
%37 = load i32, ptr %5, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %5, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i32, ptr %36, i64 %39
store i32 %35, ptr %40, align 4
%41 = load i32, ptr %5, align 4
%42 = load i32, ptr %3, align 4
%43 = icmp slt i32 %41, %42
br i1 %43, label %.lr.ph3, label %125
.lr.ph3: ; preds = %34
br label %44
44: ; preds = %.lr.ph3, %120
store i32 0, ptr %10, align 4
%45 = load i32, ptr %10, align 4
%46 = load i32, ptr %3, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %44
br label %48
48: ; preds = %.lr.ph, %63
%49 = load ptr, ptr %4, align 8
%50 = load i32, ptr %5, align 4
%51 = load i32, ptr %3, align 4
%52 = load i32, ptr %10, align 4
%53 = call i64 @conflict(ptr noundef %49, i32 noundef %50, i32 noundef %51, i32 noundef %52)
%54 = icmp ne i64 %53, 0
br i1 %54, label %55, label %56
55: ; preds = %48
br label %63
56: ; preds = %48
%57 = load i32, ptr %10, align 4
%58 = load ptr, ptr %4, align 8
%59 = load i32, ptr %5, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %5, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i32, ptr %58, i64 %61
store i32 %57, ptr %62, align 4
br label %69
63: ; preds = %55
%64 = load i32, ptr %10, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %10, align 4
%66 = load i32, ptr %10, align 4
%67 = load i32, ptr %3, align 4
%68 = icmp slt i32 %66, %67
br i1 %68, label %48, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %63
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %44
br label %69
69: ; preds = %.loopexit, %56
%70 = load i32, ptr %7, align 4
%71 = load i32, ptr %5, align 4
%72 = icmp eq i32 %70, %71
br i1 %72, label %78, label %73
73: ; preds = %69
%74 = load i32, ptr %5, align 4
%75 = load i32, ptr %3, align 4
%76 = sub nsw i32 %75, 1
%77 = icmp eq i32 %74, %76
br i1 %77, label %78, label %120
78: ; preds = %73, %69
%79 = load i32, ptr %5, align 4
%80 = load i32, ptr %3, align 4
%81 = sub nsw i32 %80, 1
%82 = icmp eq i32 %79, %81
br i1 %82, label %83, label %86
83: ; preds = %78
%84 = load i32, ptr %6, align 4
%85 = add nsw i32 %84, 1
store i32 %85, ptr %6, align 4
br label %86
86: ; preds = %83, %78
%87 = load ptr, ptr %4, align 8
%88 = load i32, ptr %5, align 4
%89 = load i32, ptr %3, align 4
%90 = call i32 @backtrack(ptr noundef %87, i32 noundef %88, i32 noundef %89)
store i32 %90, ptr %5, align 4
%91 = load i32, ptr %3, align 4
%92 = sub nsw i32 %91, 1
%93 = icmp eq i32 %90, %92
br i1 %93, label %.lr.ph1, label %104
.lr.ph1: ; preds = %86
br label %94
94: ; preds = %.lr.ph1, %94
%95 = load i32, ptr %6, align 4
%96 = add nsw i32 %95, 1
store i32 %96, ptr %6, align 4
%97 = load ptr, ptr %4, align 8
%98 = load i32, ptr %5, align 4
%99 = load i32, ptr %3, align 4
%100 = call i32 @backtrack(ptr noundef %97, i32 noundef %98, i32 noundef %99)
store i32 %100, ptr %5, align 4
%101 = load i32, ptr %3, align 4
%102 = sub nsw i32 %101, 1
%103 = icmp eq i32 %100, %102
br i1 %103, label %94, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %94
br label %104
104: ; preds = %._crit_edge, %86
%105 = load i32, ptr %5, align 4
%106 = icmp eq i32 %105, -1
br i1 %106, label %107, label %109
107: ; preds = %104
%108 = load i32, ptr %6, align 4
store i32 %108, ptr %2, align 4
br label %134
109: ; preds = %104
%110 = load i32, ptr %5, align 4
%111 = icmp eq i32 %110, 0
br i1 %111, label %112, label %119
112: ; preds = %109
%113 = load ptr, ptr %4, align 8
%114 = load i32, ptr %5, align 4
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds i32, ptr %113, i64 %115
%117 = load i32, ptr %116, align 4
%118 = add nsw i32 %117, 1
store i32 %118, ptr %8, align 4
br label %119
119: ; preds = %112, %109
br label %120
120: ; preds = %119, %73
%121 = load i32, ptr %5, align 4
store i32 %121, ptr %7, align 4
%122 = load i32, ptr %5, align 4
%123 = load i32, ptr %3, align 4
%124 = icmp slt i32 %122, %123
br i1 %124, label %44, label %._crit_edge4, !llvm.loop !9
._crit_edge4: ; preds = %120
br label %125
125: ; preds = %._crit_edge4, %34
br label %126
126: ; preds = %125
%127 = load i32, ptr %9, align 4
%128 = add nsw i32 %127, 1
store i32 %128, ptr %9, align 4
%129 = load i32, ptr %9, align 4
%130 = load i32, ptr %3, align 4
%131 = icmp slt i32 %129, %130
br i1 %131, label %28, label %._crit_edge7, !llvm.loop !10
._crit_edge7: ; preds = %126
br label %132
132: ; preds = %._crit_edge7, %18
%133 = load i32, ptr %6, align 4
store i32 %133, ptr %2, align 4
br label %134
134: ; preds = %132, %107, %17, %13
%135 = load i32, ptr %2, align 4
ret i32 %135
}
declare i64 @malloc(i32 noundef) #1
declare i64 @conflict(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @backtrack(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpg5o6vyog.c'
source_filename = "/tmp/tmpg5o6vyog.c"
target datalayout = "e-m:e-p270: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 @multiples_under(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %3, align 4
%7 = load i32, ptr %4, align 4
%8 = sdiv i32 %6, %7
%9 = load i32, ptr %4, align 4
%10 = load i32, ptr %3, align 4
%11 = call i32 @divides(i32 noundef %9, i32 noundef %10)
%12 = sub nsw i32 %8, %11
store i32 %12, ptr %5, align 4
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr %5, align 4
%15 = call i32 @sum_naturals(i32 noundef %14)
%16 = mul nsw i32 %13, %15
ret i32 %16
}
declare i32 @divides(i32 noundef, i32 noundef) #1
declare i32 @sum_naturals(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/tmpg5o6vyog.c"
target datalayout = "e-m:e-p270: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 @multiples_under(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %3, align 4
%7 = load i32, ptr %4, align 4
%8 = sdiv i32 %6, %7
%9 = load i32, ptr %4, align 4
%10 = load i32, ptr %3, align 4
%11 = call i32 @divides(i32 noundef %9, i32 noundef %10)
%12 = sub nsw i32 %8, %11
store i32 %12, ptr %5, align 4
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr %5, align 4
%15 = call i32 @sum_naturals(i32 noundef %14)
%16 = mul nsw i32 %13, %15
ret i32 %16
}
declare i32 @divides(i32 noundef, i32 noundef) #1
declare i32 @sum_naturals(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/tmpj9ehdccg.c'
source_filename = "/tmp/tmpj9ehdccg.c"
target datalayout = "e-m:e-p270: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 @debug_show_all() #0 {
%1 = call i32 (...) @debug_show_version()
%2 = call i32 (...) @debug_show_device_id()
%3 = call i32 (...) @debug_show_compiler()
%4 = call i32 (...) @debug_show_memory()
ret void
}
declare i32 @debug_show_version(...) #1
declare i32 @debug_show_device_id(...) #1
declare i32 @debug_show_compiler(...) #1
declare i32 @debug_show_memory(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj9ehdccg.c"
target datalayout = "e-m:e-p270: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 @debug_show_all() #0 {
%1 = call i32 (...) @debug_show_version()
%2 = call i32 (...) @debug_show_device_id()
%3 = call i32 (...) @debug_show_compiler()
%4 = call i32 (...) @debug_show_memory()
ret void
}
declare i32 @debug_show_version(...) #1
declare i32 @debug_show_device_id(...) #1
declare i32 @debug_show_compiler(...) #1
declare i32 @debug_show_memory(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8b4yo1z7.c'
source_filename = "/tmp/tmp8b4yo1z7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@bup.K1 = internal global i32 1, align 4
@bup.K2 = internal global i32 0, align 4
@bup.bup = internal global double 0.000000e+00, align 8
@bup.ap1 = internal global double 0.000000e+00, align 8
@bup.apb = internal global double 0.000000e+00, align 8
@bup.d = internal global double 0.000000e+00, align 8
@bup.l = internal global double 0.000000e+00, align 8
@bup.r = internal global double 0.000000e+00, align 8
@bup.t = internal global double 0.000000e+00, align 8
@bup.w = internal global double 0.000000e+00, align 8
@bup.i = internal global i32 0, align 4
@bup.k = internal global i32 0, align 4
@bup.kp1 = internal global i32 0, align 4
@bup.mu = internal global i32 0, align 4
@bup.nm1 = internal global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @bup(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca double, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
store ptr %0, ptr %8, align 8
store ptr %1, ptr %9, align 8
store ptr %2, ptr %10, align 8
store ptr %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
%14 = load ptr, ptr %8, align 8
%15 = load double, ptr %14, align 8
%16 = load ptr, ptr %9, align 8
%17 = load double, ptr %16, align 8
%18 = fadd double %15, %17
store double %18, ptr @bup.apb, align 8
%19 = load ptr, ptr %8, align 8
%20 = load double, ptr %19, align 8
%21 = fadd double %20, 1.000000e+00
store double %21, ptr @bup.ap1, align 8
store i32 0, ptr @bup.mu, align 4
store double 1.000000e+00, ptr @bup.d, align 8
%22 = load ptr, ptr %12, align 8
%23 = load i32, ptr %22, align 4
%24 = icmp eq i32 %23, 1
br i1 %24, label %29, label %25
25: ; preds = %6
%26 = load ptr, ptr %8, align 8
%27 = load double, ptr %26, align 8
%28 = fcmp olt double %27, 1.000000e+00
br i1 %28, label %29, label %30
29: ; preds = %25, %6
br label %51
30: ; preds = %25
%31 = load double, ptr @bup.apb, align 8
%32 = load double, ptr @bup.ap1, align 8
%33 = fmul double 1.100000e+00, %32
%34 = fcmp olt double %31, %33
br i1 %34, label %35, label %36
35: ; preds = %30
br label %51
36: ; preds = %30
%37 = call i32 @exparg(ptr noundef @bup.K1)
%38 = call i32 @fabs(i32 noundef %37)
store i32 %38, ptr @bup.mu, align 4
%39 = call i32 @exparg(ptr noundef @bup.K2)
store i32 %39, ptr @bup.k, align 4
%40 = load i32, ptr @bup.k, align 4
%41 = load i32, ptr @bup.mu, align 4
%42 = icmp slt i32 %40, %41
br i1 %42, label %43, label %45
43: ; preds = %36
%44 = load i32, ptr @bup.k, align 4
store i32 %44, ptr @bup.mu, align 4
br label %45
45: ; preds = %43, %36
%46 = load i32, ptr @bup.mu, align 4
%47 = sitofp i32 %46 to double
store double %47, ptr @bup.t, align 8
%48 = load double, ptr @bup.t, align 8
%49 = fneg double %48
%50 = call double @exp(double noundef %49) #3
store double %50, ptr @bup.d, align 8
br label %51
51: ; preds = %45, %35, %29
%52 = load ptr, ptr %8, align 8
%53 = load ptr, ptr %9, align 8
%54 = load ptr, ptr %10, align 8
%55 = load ptr, ptr %11, align 8
%56 = call double @brcmp1(ptr noundef @bup.mu, ptr noundef %52, ptr noundef %53, ptr noundef %54, ptr noundef %55)
%57 = load ptr, ptr %8, align 8
%58 = load double, ptr %57, align 8
%59 = fdiv double %56, %58
store double %59, ptr @bup.bup, align 8
%60 = load ptr, ptr %12, align 8
%61 = load i32, ptr %60, align 4
%62 = icmp eq i32 %61, 1
br i1 %62, label %66, label %63
63: ; preds = %51
%64 = load double, ptr @bup.bup, align 8
%65 = fcmp oeq double %64, 0.000000e+00
br i1 %65, label %66, label %68
66: ; preds = %63, %51
%67 = load double, ptr @bup.bup, align 8
store double %67, ptr %7, align 8
br label %188
68: ; preds = %63
%69 = load ptr, ptr %12, align 8
%70 = load i32, ptr %69, align 4
%71 = sub nsw i32 %70, 1
store i32 %71, ptr @bup.nm1, align 4
%72 = load double, ptr @bup.d, align 8
store double %72, ptr @bup.w, align 8
store i32 0, ptr @bup.k, align 4
%73 = load ptr, ptr %9, align 8
%74 = load double, ptr %73, align 8
%75 = fcmp ole double %74, 1.000000e+00
br i1 %75, label %76, label %77
76: ; preds = %68
br label %144
77: ; preds = %68
%78 = load ptr, ptr %11, align 8
%79 = load double, ptr %78, align 8
%80 = fcmp ogt double %79, 1.000000e-04
br i1 %80, label %81, label %82
81: ; preds = %77
br label %84
82: ; preds = %77
%83 = load i32, ptr @bup.nm1, align 4
store i32 %83, ptr @bup.k, align 4
br label %111
84: ; preds = %81
%85 = load ptr, ptr %9, align 8
%86 = load double, ptr %85, align 8
%87 = fsub double %86, 1.000000e+00
%88 = load ptr, ptr %10, align 8
%89 = load double, ptr %88, align 8
%90 = fmul double %87, %89
%91 = load ptr, ptr %11, align 8
%92 = load double, ptr %91, align 8
%93 = fdiv double %90, %92
%94 = load ptr, ptr %8, align 8
%95 = load double, ptr %94, align 8
%96 = fsub double %93, %95
store double %96, ptr @bup.r, align 8
%97 = load double, ptr @bup.r, align 8
%98 = fcmp olt double %97, 1.000000e+00
br i1 %98, label %99, label %100
99: ; preds = %84
br label %144
100: ; preds = %84
%101 = load i32, ptr @bup.nm1, align 4
%102 = sitofp i32 %101 to double
store double %102, ptr @bup.t, align 8
%103 = fptosi double %102 to i32
store i32 %103, ptr @bup.k, align 4
%104 = load double, ptr @bup.r, align 8
%105 = load double, ptr @bup.t, align 8
%106 = fcmp olt double %104, %105
br i1 %106, label %107, label %110
107: ; preds = %100
%108 = load double, ptr @bup.r, align 8
%109 = fptosi double %108 to i32
store i32 %109, ptr @bup.k, align 4
br label %110
110: ; preds = %107, %100
br label %111
111: ; preds = %110, %82
store i32 1, ptr @bup.i, align 4
br label %112
112: ; preds = %135, %111
%113 = load i32, ptr @bup.i, align 4
%114 = load i32, ptr @bup.k, align 4
%115 = icmp sle i32 %113, %114
br i1 %115, label %116, label %138
116: ; preds = %112
%117 = load i32, ptr @bup.i, align 4
%118 = sub nsw i32 %117, 1
%119 = sitofp i32 %118 to double
store double %119, ptr @bup.l, align 8
%120 = load double, ptr @bup.apb, align 8
%121 = load double, ptr @bup.l, align 8
%122 = fadd double %120, %121
%123 = load double, ptr @bup.ap1, align 8
%124 = load double, ptr @bup.l, align 8
%125 = fadd double %123, %124
%126 = fdiv double %122, %125
%127 = load ptr, ptr %10, align 8
%128 = load double, ptr %127, align 8
%129 = fmul double %126, %128
%130 = load double, ptr @bup.d, align 8
%131 = fmul double %129, %130
store double %131, ptr @bup.d, align 8
%132 = load double, ptr @bup.d, align 8
%133 = load double, ptr @bup.w, align 8
%134 = fadd double %133, %132
store double %134, ptr @bup.w, align 8
br label %135
135: ; preds = %116
%136 = load i32, ptr @bup.i, align 4
%137 = add nsw i32 %136, 1
store i32 %137, ptr @bup.i, align 4
br label %112, !llvm.loop !6
138: ; preds = %112
%139 = load i32, ptr @bup.k, align 4
%140 = load i32, ptr @bup.nm1, align 4
%141 = icmp eq i32 %139, %140
br i1 %141, label %142, label %143
142: ; preds = %138
br label %183
143: ; preds = %138
br label %144
144: ; preds = %143, %99, %76
%145 = load i32, ptr @bup.k, align 4
%146 = add nsw i32 %145, 1
store i32 %146, ptr @bup.kp1, align 4
%147 = load i32, ptr @bup.kp1, align 4
store i32 %147, ptr @bup.i, align 4
br label %148
148: ; preds = %179, %144
%149 = load i32, ptr @bup.i, align 4
%150 = load i32, ptr @bup.nm1, align 4
%151 = icmp sle i32 %149, %150
br i1 %151, label %152, label %182
152: ; preds = %148
%153 = load i32, ptr @bup.i, align 4
%154 = sub nsw i32 %153, 1
%155 = sitofp i32 %154 to double
store double %155, ptr @bup.l, align 8
%156 = load double, ptr @bup.apb, align 8
%157 = load double, ptr @bup.l, align 8
%158 = fadd double %156, %157
%159 = load double, ptr @bup.ap1, align 8
%160 = load double, ptr @bup.l, align 8
%161 = fadd double %159, %160
%162 = fdiv double %158, %161
%163 = load ptr, ptr %10, align 8
%164 = load double, ptr %163, align 8
%165 = fmul double %162, %164
%166 = load double, ptr @bup.d, align 8
%167 = fmul double %165, %166
store double %167, ptr @bup.d, align 8
%168 = load double, ptr @bup.d, align 8
%169 = load double, ptr @bup.w, align 8
%170 = fadd double %169, %168
store double %170, ptr @bup.w, align 8
%171 = load double, ptr @bup.d, align 8
%172 = load ptr, ptr %13, align 8
%173 = load double, ptr %172, align 8
%174 = load double, ptr @bup.w, align 8
%175 = fmul double %173, %174
%176 = fcmp ole double %171, %175
br i1 %176, label %177, label %178
177: ; preds = %152
br label %183
178: ; preds = %152
br label %179
179: ; preds = %178
%180 = load i32, ptr @bup.i, align 4
%181 = add nsw i32 %180, 1
store i32 %181, ptr @bup.i, align 4
br label %148, !llvm.loop !8
182: ; preds = %148
br label %183
183: ; preds = %182, %177, %142
%184 = load double, ptr @bup.w, align 8
%185 = load double, ptr @bup.bup, align 8
%186 = fmul double %185, %184
store double %186, ptr @bup.bup, align 8
%187 = load double, ptr @bup.bup, align 8
store double %187, ptr %7, align 8
br label %188
188: ; preds = %183, %66
%189 = load double, ptr %7, align 8
ret double %189
}
declare i32 @fabs(i32 noundef) #1
declare i32 @exparg(ptr noundef) #1
; Function Attrs: nounwind
declare double @exp(double noundef) #2
declare double @brcmp1(ptr 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" }
attributes #2 = { 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 #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8b4yo1z7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@bup.K1 = internal global i32 1, align 4
@bup.K2 = internal global i32 0, align 4
@bup.bup = internal global double 0.000000e+00, align 8
@bup.ap1 = internal global double 0.000000e+00, align 8
@bup.apb = internal global double 0.000000e+00, align 8
@bup.d = internal global double 0.000000e+00, align 8
@bup.l = internal global double 0.000000e+00, align 8
@bup.r = internal global double 0.000000e+00, align 8
@bup.t = internal global double 0.000000e+00, align 8
@bup.w = internal global double 0.000000e+00, align 8
@bup.i = internal global i32 0, align 4
@bup.k = internal global i32 0, align 4
@bup.kp1 = internal global i32 0, align 4
@bup.mu = internal global i32 0, align 4
@bup.nm1 = internal global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @bup(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca double, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
store ptr %0, ptr %8, align 8
store ptr %1, ptr %9, align 8
store ptr %2, ptr %10, align 8
store ptr %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
%14 = load ptr, ptr %8, align 8
%15 = load double, ptr %14, align 8
%16 = load ptr, ptr %9, align 8
%17 = load double, ptr %16, align 8
%18 = fadd double %15, %17
store double %18, ptr @bup.apb, align 8
%19 = load ptr, ptr %8, align 8
%20 = load double, ptr %19, align 8
%21 = fadd double %20, 1.000000e+00
store double %21, ptr @bup.ap1, align 8
store i32 0, ptr @bup.mu, align 4
store double 1.000000e+00, ptr @bup.d, align 8
%22 = load ptr, ptr %12, align 8
%23 = load i32, ptr %22, align 4
%24 = icmp eq i32 %23, 1
br i1 %24, label %29, label %25
25: ; preds = %6
%26 = load ptr, ptr %8, align 8
%27 = load double, ptr %26, align 8
%28 = fcmp olt double %27, 1.000000e+00
br i1 %28, label %29, label %30
29: ; preds = %25, %6
br label %51
30: ; preds = %25
%31 = load double, ptr @bup.apb, align 8
%32 = load double, ptr @bup.ap1, align 8
%33 = fmul double 1.100000e+00, %32
%34 = fcmp olt double %31, %33
br i1 %34, label %35, label %36
35: ; preds = %30
br label %51
36: ; preds = %30
%37 = call i32 @exparg(ptr noundef @bup.K1)
%38 = call i32 @fabs(i32 noundef %37)
store i32 %38, ptr @bup.mu, align 4
%39 = call i32 @exparg(ptr noundef @bup.K2)
store i32 %39, ptr @bup.k, align 4
%40 = load i32, ptr @bup.k, align 4
%41 = load i32, ptr @bup.mu, align 4
%42 = icmp slt i32 %40, %41
br i1 %42, label %43, label %45
43: ; preds = %36
%44 = load i32, ptr @bup.k, align 4
store i32 %44, ptr @bup.mu, align 4
br label %45
45: ; preds = %43, %36
%46 = load i32, ptr @bup.mu, align 4
%47 = sitofp i32 %46 to double
store double %47, ptr @bup.t, align 8
%48 = load double, ptr @bup.t, align 8
%49 = fneg double %48
%50 = call double @exp(double noundef %49) #3
store double %50, ptr @bup.d, align 8
br label %51
51: ; preds = %45, %35, %29
%52 = load ptr, ptr %8, align 8
%53 = load ptr, ptr %9, align 8
%54 = load ptr, ptr %10, align 8
%55 = load ptr, ptr %11, align 8
%56 = call double @brcmp1(ptr noundef @bup.mu, ptr noundef %52, ptr noundef %53, ptr noundef %54, ptr noundef %55)
%57 = load ptr, ptr %8, align 8
%58 = load double, ptr %57, align 8
%59 = fdiv double %56, %58
store double %59, ptr @bup.bup, align 8
%60 = load ptr, ptr %12, align 8
%61 = load i32, ptr %60, align 4
%62 = icmp eq i32 %61, 1
br i1 %62, label %66, label %63
63: ; preds = %51
%64 = load double, ptr @bup.bup, align 8
%65 = fcmp oeq double %64, 0.000000e+00
br i1 %65, label %66, label %68
66: ; preds = %63, %51
%67 = load double, ptr @bup.bup, align 8
store double %67, ptr %7, align 8
br label %192
68: ; preds = %63
%69 = load ptr, ptr %12, align 8
%70 = load i32, ptr %69, align 4
%71 = sub nsw i32 %70, 1
store i32 %71, ptr @bup.nm1, align 4
%72 = load double, ptr @bup.d, align 8
store double %72, ptr @bup.w, align 8
store i32 0, ptr @bup.k, align 4
%73 = load ptr, ptr %9, align 8
%74 = load double, ptr %73, align 8
%75 = fcmp ole double %74, 1.000000e+00
br i1 %75, label %76, label %77
76: ; preds = %68
br label %146
77: ; preds = %68
%78 = load ptr, ptr %11, align 8
%79 = load double, ptr %78, align 8
%80 = fcmp ogt double %79, 1.000000e-04
br i1 %80, label %81, label %82
81: ; preds = %77
br label %84
82: ; preds = %77
%83 = load i32, ptr @bup.nm1, align 4
store i32 %83, ptr @bup.k, align 4
br label %111
84: ; preds = %81
%85 = load ptr, ptr %9, align 8
%86 = load double, ptr %85, align 8
%87 = fsub double %86, 1.000000e+00
%88 = load ptr, ptr %10, align 8
%89 = load double, ptr %88, align 8
%90 = fmul double %87, %89
%91 = load ptr, ptr %11, align 8
%92 = load double, ptr %91, align 8
%93 = fdiv double %90, %92
%94 = load ptr, ptr %8, align 8
%95 = load double, ptr %94, align 8
%96 = fsub double %93, %95
store double %96, ptr @bup.r, align 8
%97 = load double, ptr @bup.r, align 8
%98 = fcmp olt double %97, 1.000000e+00
br i1 %98, label %99, label %100
99: ; preds = %84
br label %146
100: ; preds = %84
%101 = load i32, ptr @bup.nm1, align 4
%102 = sitofp i32 %101 to double
store double %102, ptr @bup.t, align 8
%103 = fptosi double %102 to i32
store i32 %103, ptr @bup.k, align 4
%104 = load double, ptr @bup.r, align 8
%105 = load double, ptr @bup.t, align 8
%106 = fcmp olt double %104, %105
br i1 %106, label %107, label %110
107: ; preds = %100
%108 = load double, ptr @bup.r, align 8
%109 = fptosi double %108 to i32
store i32 %109, ptr @bup.k, align 4
br label %110
110: ; preds = %107, %100
br label %111
111: ; preds = %110, %82
store i32 1, ptr @bup.i, align 4
%112 = load i32, ptr @bup.i, align 4
%113 = load i32, ptr @bup.k, align 4
%114 = icmp sle i32 %112, %113
br i1 %114, label %.lr.ph, label %140
.lr.ph: ; preds = %111
br label %115
115: ; preds = %.lr.ph, %134
%116 = load i32, ptr @bup.i, align 4
%117 = sub nsw i32 %116, 1
%118 = sitofp i32 %117 to double
store double %118, ptr @bup.l, align 8
%119 = load double, ptr @bup.apb, align 8
%120 = load double, ptr @bup.l, align 8
%121 = fadd double %119, %120
%122 = load double, ptr @bup.ap1, align 8
%123 = load double, ptr @bup.l, align 8
%124 = fadd double %122, %123
%125 = fdiv double %121, %124
%126 = load ptr, ptr %10, align 8
%127 = load double, ptr %126, align 8
%128 = fmul double %125, %127
%129 = load double, ptr @bup.d, align 8
%130 = fmul double %128, %129
store double %130, ptr @bup.d, align 8
%131 = load double, ptr @bup.d, align 8
%132 = load double, ptr @bup.w, align 8
%133 = fadd double %132, %131
store double %133, ptr @bup.w, align 8
br label %134
134: ; preds = %115
%135 = load i32, ptr @bup.i, align 4
%136 = add nsw i32 %135, 1
store i32 %136, ptr @bup.i, align 4
%137 = load i32, ptr @bup.i, align 4
%138 = load i32, ptr @bup.k, align 4
%139 = icmp sle i32 %137, %138
br i1 %139, label %115, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %134
br label %140
140: ; preds = %._crit_edge, %111
%141 = load i32, ptr @bup.k, align 4
%142 = load i32, ptr @bup.nm1, align 4
%143 = icmp eq i32 %141, %142
br i1 %143, label %144, label %145
144: ; preds = %140
br label %187
145: ; preds = %140
br label %146
146: ; preds = %145, %99, %76
%147 = load i32, ptr @bup.k, align 4
%148 = add nsw i32 %147, 1
store i32 %148, ptr @bup.kp1, align 4
%149 = load i32, ptr @bup.kp1, align 4
store i32 %149, ptr @bup.i, align 4
%150 = load i32, ptr @bup.i, align 4
%151 = load i32, ptr @bup.nm1, align 4
%152 = icmp sle i32 %150, %151
br i1 %152, label %.lr.ph2, label %186
.lr.ph2: ; preds = %146
br label %153
153: ; preds = %.lr.ph2, %180
%154 = load i32, ptr @bup.i, align 4
%155 = sub nsw i32 %154, 1
%156 = sitofp i32 %155 to double
store double %156, ptr @bup.l, align 8
%157 = load double, ptr @bup.apb, align 8
%158 = load double, ptr @bup.l, align 8
%159 = fadd double %157, %158
%160 = load double, ptr @bup.ap1, align 8
%161 = load double, ptr @bup.l, align 8
%162 = fadd double %160, %161
%163 = fdiv double %159, %162
%164 = load ptr, ptr %10, align 8
%165 = load double, ptr %164, align 8
%166 = fmul double %163, %165
%167 = load double, ptr @bup.d, align 8
%168 = fmul double %166, %167
store double %168, ptr @bup.d, align 8
%169 = load double, ptr @bup.d, align 8
%170 = load double, ptr @bup.w, align 8
%171 = fadd double %170, %169
store double %171, ptr @bup.w, align 8
%172 = load double, ptr @bup.d, align 8
%173 = load ptr, ptr %13, align 8
%174 = load double, ptr %173, align 8
%175 = load double, ptr @bup.w, align 8
%176 = fmul double %174, %175
%177 = fcmp ole double %172, %176
br i1 %177, label %178, label %179
178: ; preds = %153
br label %187
179: ; preds = %153
br label %180
180: ; preds = %179
%181 = load i32, ptr @bup.i, align 4
%182 = add nsw i32 %181, 1
store i32 %182, ptr @bup.i, align 4
%183 = load i32, ptr @bup.i, align 4
%184 = load i32, ptr @bup.nm1, align 4
%185 = icmp sle i32 %183, %184
br i1 %185, label %153, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %180
br label %186
186: ; preds = %._crit_edge3, %146
br label %187
187: ; preds = %186, %178, %144
%188 = load double, ptr @bup.w, align 8
%189 = load double, ptr @bup.bup, align 8
%190 = fmul double %189, %188
store double %190, ptr @bup.bup, align 8
%191 = load double, ptr @bup.bup, align 8
store double %191, ptr %7, align 8
br label %192
192: ; preds = %187, %66
%193 = load double, ptr %7, align 8
ret double %193
}
declare i32 @fabs(i32 noundef) #1
declare i32 @exparg(ptr noundef) #1
; Function Attrs: nounwind
declare double @exp(double noundef) #2
declare double @brcmp1(ptr 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" }
attributes #2 = { 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 #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpjw4nmez4.c'
source_filename = "/tmp/tmpjw4nmez4.c"
target datalayout = "e-m:e-p270: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.seconds = private unnamed_addr constant [10 x float] [float 0x4024333340000000, float 0x4002666660000000, float 5.500000e+00, float 6.000000e+00, float 0x4033B33340000000, float 0x403AE66660000000, float 0x4041333340000000, float 0x3FF19999A0000000, float 0x401ECCCCC0000000, float 0x40309999A0000000], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [10 x float], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.main.seconds, i64 40, i1 false)
%2 = getelementptr inbounds [10 x float], ptr %1, i64 0, i64 0
%3 = call i32 @searchHighAcceleration(i32 noundef 6, ptr noundef %2, i32 noundef 10)
%4 = getelementptr inbounds [10 x float], ptr %1, i64 0, i64 0
%5 = call i32 @bubbleSort(ptr noundef %4, i32 noundef 10)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @searchHighAcceleration(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @bubbleSort(ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjw4nmez4.c"
target datalayout = "e-m:e-p270: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.seconds = private unnamed_addr constant [10 x float] [float 0x4024333340000000, float 0x4002666660000000, float 5.500000e+00, float 6.000000e+00, float 0x4033B33340000000, float 0x403AE66660000000, float 0x4041333340000000, float 0x3FF19999A0000000, float 0x401ECCCCC0000000, float 0x40309999A0000000], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [10 x float], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.main.seconds, i64 40, i1 false)
%2 = getelementptr inbounds [10 x float], ptr %1, i64 0, i64 0
%3 = call i32 @searchHighAcceleration(i32 noundef 6, ptr noundef %2, i32 noundef 10)
%4 = getelementptr inbounds [10 x float], ptr %1, i64 0, i64 0
%5 = call i32 @bubbleSort(ptr noundef %4, i32 noundef 10)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @searchHighAcceleration(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @bubbleSort(ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpop246g0u.c'
source_filename = "/tmp/tmpop246g0u.c"
target datalayout = "e-m:e-p270: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 @asn1p_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 = call i32 @free(ptr noundef %3)
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/tmpop246g0u.c"
target datalayout = "e-m:e-p270: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 @asn1p_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 = call i32 @free(ptr noundef %3)
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/tmpoi7ka__n.c'
source_filename = "/tmp/tmpoi7ka__n.c"
target datalayout = "e-m:e-p270: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 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %3
3: ; preds = %7, %0
%4 = call i32 (...) @getchar()
store i32 %4, ptr %2, align 4
%5 = load i32, ptr @EOF, align 4
%6 = icmp ne i32 %4, %5
br i1 %6, label %7, label %11
7: ; preds = %3
%8 = load i32, ptr %2, align 4
%9 = call i32 @tolower(i32 noundef %8) #3
%10 = call i32 @putchar(i32 noundef %9)
br label %3, !llvm.loop !6
11: ; preds = %3
ret i32 0
}
declare i32 @getchar(...) #1
declare i32 @putchar(i32 noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @tolower(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoi7ka__n.c"
target datalayout = "e-m:e-p270: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 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (...) @getchar()
store i32 %3, ptr %2, align 4
%4 = load i32, ptr @EOF, align 4
%5 = icmp ne i32 %3, %4
br i1 %5, label %.lr.ph, label %13
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %6
%7 = load i32, ptr %2, align 4
%8 = call i32 @tolower(i32 noundef %7) #3
%9 = call i32 @putchar(i32 noundef %8)
%10 = call i32 (...) @getchar()
store i32 %10, ptr %2, align 4
%11 = load i32, ptr @EOF, align 4
%12 = icmp ne i32 %10, %11
br i1 %12, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %6
br label %13
13: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @getchar(...) #1
declare i32 @putchar(i32 noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @tolower(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpql52v324.c'
source_filename = "/tmp/tmpql52v324.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpql52v324.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppo8_34xk.c'
source_filename = "/tmp/tmppo8_34xk.c"
target datalayout = "e-m:e-p270: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/tmppo8_34xk.c"
target datalayout = "e-m:e-p270: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/tmp912mp_ji.c'
source_filename = "/tmp/tmp912mp_ji.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@UINT_MAX = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ottery_st_rand_range_nolock(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = add i32 %8, 1
store i32 %9, ptr %5, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %16
12: ; preds = %2
%13 = load i32, ptr @UINT_MAX, align 4
%14 = load i32, ptr %5, align 4
%15 = udiv i32 %13, %14
br label %17
16: ; preds = %2
br label %17
17: ; preds = %16, %12
%18 = phi i32 [ %15, %12 ], [ 1, %16 ]
store i32 %18, ptr %6, align 4
br label %19
19: ; preds = %24, %17
%20 = load ptr, ptr %3, align 8
%21 = call i32 @ottery_st_rand_unsigned_nolock(ptr noundef %20)
%22 = load i32, ptr %6, align 4
%23 = udiv i32 %21, %22
store i32 %23, ptr %7, align 4
br label %24
24: ; preds = %19
%25 = load i32, ptr %7, align 4
%26 = load i32, ptr %4, align 4
%27 = icmp ugt i32 %25, %26
br i1 %27, label %19, label %28, !llvm.loop !6
28: ; preds = %24
%29 = load i32, ptr %7, align 4
ret i32 %29
}
declare i32 @ottery_st_rand_unsigned_nolock(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp912mp_ji.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@UINT_MAX = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ottery_st_rand_range_nolock(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = add i32 %8, 1
store i32 %9, ptr %5, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %16
12: ; preds = %2
%13 = load i32, ptr @UINT_MAX, align 4
%14 = load i32, ptr %5, align 4
%15 = udiv i32 %13, %14
br label %17
16: ; preds = %2
br label %17
17: ; preds = %16, %12
%18 = phi i32 [ %15, %12 ], [ 1, %16 ]
store i32 %18, ptr %6, align 4
br label %19
19: ; preds = %24, %17
%20 = load ptr, ptr %3, align 8
%21 = call i32 @ottery_st_rand_unsigned_nolock(ptr noundef %20)
%22 = load i32, ptr %6, align 4
%23 = udiv i32 %21, %22
store i32 %23, ptr %7, align 4
br label %24
24: ; preds = %19
%25 = load i32, ptr %7, align 4
%26 = load i32, ptr %4, align 4
%27 = icmp ugt i32 %25, %26
br i1 %27, label %19, label %28, !llvm.loop !6
28: ; preds = %24
%29 = load i32, ptr %7, align 4
ret i32 %29
}
declare i32 @ottery_st_rand_unsigned_nolock(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpfc7kjc5e.c'
source_filename = "/tmp/tmpfc7kjc5e.c"
target datalayout = "e-m:e-p270: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 @memset(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load ptr, ptr %4, align 8
store ptr %8, ptr %7, align 8
br label %9
9: ; preds = %12, %3
%10 = load i32, ptr %6, align 4
%11 = icmp ugt i32 %10, 0
br i1 %11, label %12, label %19
12: ; preds = %9
%13 = load i32, ptr %6, align 4
%14 = add i32 %13, -1
store i32 %14, ptr %6, align 4
%15 = load i32, ptr %5, align 4
%16 = trunc i32 %15 to i8
%17 = load ptr, ptr %7, align 8
%18 = getelementptr inbounds i8, ptr %17, i32 1
store ptr %18, ptr %7, align 8
store i8 %16, ptr %17, align 1
br label %9, !llvm.loop !6
19: ; preds = %9
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/tmpfc7kjc5e.c"
target datalayout = "e-m:e-p270: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 @memset(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load ptr, ptr %4, align 8
store ptr %8, ptr %7, align 8
%9 = load i32, ptr %6, align 4
%10 = icmp ugt i32 %9, 0
br i1 %10, label %.lr.ph, label %20
.lr.ph: ; preds = %3
br label %11
11: ; preds = %.lr.ph, %11
%12 = load i32, ptr %6, align 4
%13 = add i32 %12, -1
store i32 %13, ptr %6, align 4
%14 = load i32, ptr %5, align 4
%15 = trunc i32 %14 to i8
%16 = load ptr, ptr %7, align 8
%17 = getelementptr inbounds i8, ptr %16, i32 1
store ptr %17, ptr %7, align 8
store i8 %15, ptr %16, align 1
%18 = load i32, ptr %6, align 4
%19 = icmp ugt i32 %18, 0
br i1 %19, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %11
br label %20
20: ; preds = %._crit_edge, %3
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpyx580zqc.c'
source_filename = "/tmp/tmpyx580zqc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [38 x i8] c"searchString = %s \09 searchChar = %c \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @strchr_p(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%10 = load ptr, ptr %4, align 8
%11 = load i32, ptr %5, align 4
%12 = trunc i32 %11 to i8
%13 = call i32 @printf(ptr noundef @.str, ptr noundef %10, i8 noundef signext %12)
%14 = load ptr, ptr %4, align 8
%15 = call i32 @stringLength_p(ptr noundef %14)
store i32 %15, ptr %6, align 4
store i32 0, ptr %7, align 4
br label %16
16: ; preds = %34, %2
%17 = load i32, ptr %7, align 4
%18 = load i32, ptr %6, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %35
20: ; preds = %16
%21 = load ptr, ptr %4, align 8
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = load i32, ptr %5, align 4
%25 = trunc i32 %24 to i8
%26 = sext i8 %25 to i32
%27 = icmp ne i32 %23, %26
br i1 %27, label %28, label %33
28: ; preds = %20
%29 = load i32, ptr %7, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %7, align 4
%31 = load ptr, ptr %4, align 8
%32 = getelementptr inbounds i8, ptr %31, i32 1
store ptr %32, ptr %4, align 8
br label %34
33: ; preds = %20
br label %35
34: ; preds = %28
br label %16, !llvm.loop !6
35: ; preds = %33, %16
%36 = load i32, ptr %7, align 4
%37 = load i32, ptr %6, align 4
%38 = icmp eq i32 %36, %37
br i1 %38, label %39, label %40
39: ; preds = %35
store ptr null, ptr %3, align 8
br label %71
40: ; preds = %35
%41 = load i32, ptr %6, align 4
%42 = load i32, ptr %7, align 4
%43 = sub nsw i32 %41, %42
%44 = sext i32 %43 to i64
%45 = mul i64 %44, 1
%46 = trunc i64 %45 to i32
%47 = call ptr @malloc(i32 noundef %46)
store ptr %47, ptr %8, align 8
store i32 0, ptr %9, align 4
br label %48
48: ; preds = %52, %40
%49 = load i32, ptr %7, align 4
%50 = load i32, ptr %6, align 4
%51 = icmp slt i32 %49, %50
br i1 %51, label %52, label %65
52: ; preds = %48
%53 = load ptr, ptr %4, align 8
%54 = load i8, ptr %53, align 1
%55 = load ptr, ptr %8, align 8
%56 = load i32, ptr %9, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i8, ptr %55, i64 %57
store i8 %54, ptr %58, align 1
%59 = load i32, ptr %7, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %7, align 4
%61 = load i32, ptr %9, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %9, align 4
%63 = load ptr, ptr %4, align 8
%64 = getelementptr inbounds i8, ptr %63, i32 1
store ptr %64, ptr %4, align 8
br label %48, !llvm.loop !8
65: ; preds = %48
%66 = load ptr, ptr %8, align 8
%67 = load i32, ptr %9, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i8, ptr %66, i64 %68
store i8 0, ptr %69, align 1
%70 = load ptr, ptr %8, align 8
store ptr %70, ptr %3, align 8
br label %71
71: ; preds = %65, %39
%72 = load ptr, ptr %3, align 8
ret ptr %72
}
declare i32 @printf(ptr noundef, ptr noundef, i8 noundef signext) #1
declare i32 @stringLength_p(ptr noundef) #1
declare ptr @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}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyx580zqc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [38 x i8] c"searchString = %s \09 searchChar = %c \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @strchr_p(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%10 = load ptr, ptr %4, align 8
%11 = load i32, ptr %5, align 4
%12 = trunc i32 %11 to i8
%13 = call i32 @printf(ptr noundef @.str, ptr noundef %10, i8 noundef signext %12)
%14 = load ptr, ptr %4, align 8
%15 = call i32 @stringLength_p(ptr noundef %14)
store i32 %15, ptr %6, align 4
store i32 0, ptr %7, align 4
%16 = load i32, ptr %7, align 4
%17 = load i32, ptr %6, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %2
br label %19
19: ; preds = %.lr.ph, %33
%20 = load ptr, ptr %4, align 8
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = load i32, ptr %5, align 4
%24 = trunc i32 %23 to i8
%25 = sext i8 %24 to i32
%26 = icmp ne i32 %22, %25
br i1 %26, label %27, label %32
27: ; preds = %19
%28 = load i32, ptr %7, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %7, align 4
%30 = load ptr, ptr %4, align 8
%31 = getelementptr inbounds i8, ptr %30, i32 1
store ptr %31, ptr %4, align 8
br label %33
32: ; preds = %19
br label %37
33: ; preds = %27
%34 = load i32, ptr %7, align 4
%35 = load i32, ptr %6, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %19, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %33
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %2
br label %37
37: ; preds = %.loopexit, %32
%38 = load i32, ptr %7, align 4
%39 = load i32, ptr %6, align 4
%40 = icmp eq i32 %38, %39
br i1 %40, label %41, label %42
41: ; preds = %37
store ptr null, ptr %3, align 8
br label %75
42: ; preds = %37
%43 = load i32, ptr %6, align 4
%44 = load i32, ptr %7, align 4
%45 = sub nsw i32 %43, %44
%46 = sext i32 %45 to i64
%47 = mul i64 %46, 1
%48 = trunc i64 %47 to i32
%49 = call ptr @malloc(i32 noundef %48)
store ptr %49, ptr %8, align 8
store i32 0, ptr %9, align 4
%50 = load i32, ptr %7, align 4
%51 = load i32, ptr %6, align 4
%52 = icmp slt i32 %50, %51
br i1 %52, label %.lr.ph1, label %69
.lr.ph1: ; preds = %42
br label %53
53: ; preds = %.lr.ph1, %53
%54 = load ptr, ptr %4, align 8
%55 = load i8, ptr %54, align 1
%56 = load ptr, ptr %8, align 8
%57 = load i32, ptr %9, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i8, ptr %56, i64 %58
store i8 %55, ptr %59, align 1
%60 = load i32, ptr %7, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %7, align 4
%62 = load i32, ptr %9, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %9, align 4
%64 = load ptr, ptr %4, align 8
%65 = getelementptr inbounds i8, ptr %64, i32 1
store ptr %65, ptr %4, align 8
%66 = load i32, ptr %7, align 4
%67 = load i32, ptr %6, align 4
%68 = icmp slt i32 %66, %67
br i1 %68, label %53, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %53
br label %69
69: ; preds = %._crit_edge, %42
%70 = load ptr, ptr %8, align 8
%71 = load i32, ptr %9, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i8, ptr %70, i64 %72
store i8 0, ptr %73, align 1
%74 = load ptr, ptr %8, align 8
store ptr %74, ptr %3, align 8
br label %75
75: ; preds = %69, %41
%76 = load ptr, ptr %3, align 8
ret ptr %76
}
declare i32 @printf(ptr noundef, ptr noundef, i8 noundef signext) #1
declare i32 @stringLength_p(ptr noundef) #1
declare ptr @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}
|
; ModuleID = '/tmp/tmpjltjtosu.c'
source_filename = "/tmp/tmpjltjtosu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [52 x i8] c"Ascii char set. \22---\22 indicates control charactor.\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c" \00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c" %.2x\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"0x%.2x\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c" ---\00", align 1
@.str.6 = private unnamed_addr constant [7 x i8] c" %c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %2, align 4
br label %7
7: ; preds = %13, %0
%8 = load i32, ptr %2, align 4
%9 = icmp slt i32 %8, 16
br i1 %9, label %10, label %16
10: ; preds = %7
%11 = load i32, ptr %2, align 4
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %11)
br label %13
13: ; preds = %10
%14 = load i32, ptr %2, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %2, align 4
br label %7, !llvm.loop !6
16: ; preds = %7
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %2, align 4
br label %18
18: ; preds = %48, %16
%19 = load i32, ptr %2, align 4
%20 = icmp slt i32 %19, 16
br i1 %20, label %21, label %51
21: ; preds = %18
%22 = load i32, ptr %2, align 4
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %22)
store i32 0, ptr %3, align 4
br label %24
24: ; preds = %43, %21
%25 = load i32, ptr %3, align 4
%26 = icmp slt i32 %25, 16
br i1 %26, label %27, label %46
27: ; preds = %24
%28 = load i32, ptr %2, align 4
%29 = mul nsw i32 %28, 16
%30 = load i32, ptr %3, align 4
%31 = add nsw i32 %29, %30
store i32 %31, ptr %4, align 4
%32 = load i32, ptr %4, align 4
%33 = icmp slt i32 %32, 32
br i1 %33, label %34, label %36
34: ; preds = %27
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %42
36: ; preds = %27
%37 = load i32, ptr %2, align 4
%38 = mul nsw i32 %37, 16
%39 = load i32, ptr %3, align 4
%40 = add nsw i32 %38, %39
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %40)
br label %42
42: ; preds = %36, %34
br label %43
43: ; preds = %42
%44 = load i32, ptr %3, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %3, align 4
br label %24, !llvm.loop !8
46: ; preds = %24
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %48
48: ; preds = %46
%49 = load i32, ptr %2, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %2, align 4
br label %18, !llvm.loop !9
51: ; preds = %18
%52 = load i32, ptr %1, align 4
ret i32 %52
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjltjtosu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [52 x i8] c"Ascii char set. \22---\22 indicates control charactor.\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c" \00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c" %.2x\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"0x%.2x\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c" ---\00", align 1
@.str.6 = private unnamed_addr constant [7 x i8] c" %c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %2, align 4
%7 = load i32, ptr %2, align 4
%8 = icmp slt i32 %7, 16
br i1 %8, label %.lr.ph, label %17
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %12
%10 = load i32, ptr %2, align 4
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %10)
br label %12
12: ; preds = %9
%13 = load i32, ptr %2, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %2, align 4
%15 = load i32, ptr %2, align 4
%16 = icmp slt i32 %15, 16
br i1 %16, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %17
17: ; preds = %._crit_edge, %0
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %2, align 4
%19 = load i32, ptr %2, align 4
%20 = icmp slt i32 %19, 16
br i1 %20, label %.lr.ph5, label %54
.lr.ph5: ; preds = %17
br label %21
21: ; preds = %.lr.ph5, %49
%22 = load i32, ptr %2, align 4
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %22)
store i32 0, ptr %3, align 4
%24 = load i32, ptr %3, align 4
%25 = icmp slt i32 %24, 16
br i1 %25, label %.lr.ph2, label %47
.lr.ph2: ; preds = %21
br label %26
26: ; preds = %.lr.ph2, %42
%27 = load i32, ptr %2, align 4
%28 = mul nsw i32 %27, 16
%29 = load i32, ptr %3, align 4
%30 = add nsw i32 %28, %29
store i32 %30, ptr %4, align 4
%31 = load i32, ptr %4, align 4
%32 = icmp slt i32 %31, 32
br i1 %32, label %33, label %35
33: ; preds = %26
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %41
35: ; preds = %26
%36 = load i32, ptr %2, align 4
%37 = mul nsw i32 %36, 16
%38 = load i32, ptr %3, align 4
%39 = add nsw i32 %37, %38
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %39)
br label %41
41: ; preds = %35, %33
br label %42
42: ; preds = %41
%43 = load i32, ptr %3, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %3, align 4
%45 = load i32, ptr %3, align 4
%46 = icmp slt i32 %45, 16
br i1 %46, label %26, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %42
br label %47
47: ; preds = %._crit_edge3, %21
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %49
49: ; preds = %47
%50 = load i32, ptr %2, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %2, align 4
%52 = load i32, ptr %2, align 4
%53 = icmp slt i32 %52, 16
br i1 %53, label %21, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %49
br label %54
54: ; preds = %._crit_edge6, %17
%55 = load i32, ptr %1, align 4
ret i32 %55
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpsjjvave8.c'
source_filename = "/tmp/tmpsjjvave8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"Type Hex string:\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"getbuf returned 0x%x\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test() #0 {
%1 = alloca i32, align 4
%2 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%3 = call i32 (...) @getbuf()
store i32 %3, ptr %1, align 4
%4 = load i32, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %4)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @getbuf(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsjjvave8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"Type Hex string:\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"getbuf returned 0x%x\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test() #0 {
%1 = alloca i32, align 4
%2 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%3 = call i32 (...) @getbuf()
store i32 %3, ptr %1, align 4
%4 = load i32, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %4)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @getbuf(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6tz5awtl.c'
source_filename = "/tmp/tmp6tz5awtl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @repeat(i8 noundef signext %0, i32 noundef %1) #0 {
%3 = alloca i8, align 1
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i8 %0, ptr %3, align 1
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %13, %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 %16
10: ; preds = %6
%11 = load i8, ptr %3, align 1
%12 = call i32 @printf(ptr noundef @.str, i8 noundef signext %11)
br label %13
13: ; preds = %10
%14 = load i32, ptr %5, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %5, align 4
br label %6, !llvm.loop !6
16: ; preds = %6
ret void
}
declare i32 @printf(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6tz5awtl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @repeat(i8 noundef signext %0, i32 noundef %1) #0 {
%3 = alloca i8, align 1
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i8 %0, ptr %3, align 1
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 %18
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %12
%10 = load i8, ptr %3, align 1
%11 = call i32 @printf(ptr noundef @.str, i8 noundef signext %10)
br label %12
12: ; preds = %9
%13 = load i32, ptr %5, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %5, align 4
%15 = load i32, ptr %5, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %18
18: ; preds = %._crit_edge, %2
ret void
}
declare i32 @printf(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.