llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmpscwyh661.c'
source_filename = "/tmp/tmpscwyh661.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [97 x i8] c"Please type a mathmatical expression in the following format\0A<Number><Operator(+-*/%%)><number>\0A\00", align 1
@.str.1 = private unnamed_addr constant [53 x i8] c"Or type any other charecter as an operator to quit.\0A\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"Formula: \00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"%f%c%f\00", align 1
@.str.4 = private unnamed_addr constant [14 x i8] c"%f + %f = %f\0A\00", align 1
@.str.5 = private unnamed_addr constant [14 x i8] c"%f - %f = %f\0A\00", align 1
@.str.6 = private unnamed_addr constant [14 x i8] c"%f * %f = %f\0A\00", align 1
@.str.7 = private unnamed_addr constant [14 x i8] c"%f / %f = %f\0A\00", align 1
@.str.8 = private unnamed_addr constant [17 x i8] c"%f mod %f == %f\0A\00", align 1
@.str.9 = private unnamed_addr constant [64 x i8] c"You entered an invalid operator, valid options are: +,-,*,/,%%\0A\00", align 1
@.str.10 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.11 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
@.str.12 = private unnamed_addr constant [28 x i8] c"\0APress enter to continue...\00", align 1
@.str.13 = private unnamed_addr constant [5 x i8] c"%c%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [1024 x i8], align 16
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca [2 x i8], align 1
%6 = alloca i32, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca [1024 x i8], align 16
store i32 0, ptr %1, align 4
br label %10
10: ; preds = %0, %100
store float 0.000000e+00, ptr %3, align 4
store float 0.000000e+00, ptr %4, align 4
store i32 0, ptr %6, align 4
store float 0.000000e+00, ptr %7, align 4
store float 0.000000e+00, ptr %8, align 4
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%14 = call i32 (ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %3, ptr noundef %5, ptr noundef %4)
%15 = icmp ne i32 %14, 0
br i1 %15, label %17, label %16
16: ; preds = %10
store i32 1, ptr %1, align 4
br label %111
17: ; preds = %10
%18 = getelementptr inbounds [2 x i8], ptr %5, i64 0, i64 0
%19 = call i32 @operator_decode(ptr noundef %18)
store i32 %19, ptr %6, align 4
%20 = load i32, ptr %6, align 4
%21 = icmp eq i32 %20, 1
br i1 %21, label %22, label %34
22: ; preds = %17
%23 = load float, ptr %3, align 4
%24 = load float, ptr %4, align 4
%25 = call float @add(float noundef %23, float noundef %24)
store float %25, ptr %7, align 4
%26 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%27 = load float, ptr %3, align 4
%28 = fpext float %27 to double
%29 = load float, ptr %4, align 4
%30 = fpext float %29 to double
%31 = load float, ptr %7, align 4
%32 = fpext float %31 to double
%33 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %26, ptr noundef @.str.4, double noundef %28, double noundef %30, double noundef %32)
br label %34
34: ; preds = %22, %17
%35 = load i32, ptr %6, align 4
%36 = icmp eq i32 %35, 2
br i1 %36, label %37, label %49
37: ; preds = %34
%38 = load float, ptr %3, align 4
%39 = load float, ptr %4, align 4
%40 = call float @subtract(float noundef %38, float noundef %39)
store float %40, ptr %7, align 4
%41 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%42 = load float, ptr %3, align 4
%43 = fpext float %42 to double
%44 = load float, ptr %4, align 4
%45 = fpext float %44 to double
%46 = load float, ptr %7, align 4
%47 = fpext float %46 to double
%48 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %41, ptr noundef @.str.5, double noundef %43, double noundef %45, double noundef %47)
br label %49
49: ; preds = %37, %34
%50 = load i32, ptr %6, align 4
%51 = icmp eq i32 %50, 3
br i1 %51, label %52, label %64
52: ; preds = %49
%53 = load float, ptr %3, align 4
%54 = load float, ptr %4, align 4
%55 = call float @multiply(float noundef %53, float noundef %54)
store float %55, ptr %7, align 4
%56 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%57 = load float, ptr %3, align 4
%58 = fpext float %57 to double
%59 = load float, ptr %4, align 4
%60 = fpext float %59 to double
%61 = load float, ptr %7, align 4
%62 = fpext float %61 to double
%63 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %56, ptr noundef @.str.6, double noundef %58, double noundef %60, double noundef %62)
br label %64
64: ; preds = %52, %49
%65 = load i32, ptr %6, align 4
%66 = icmp eq i32 %65, 4
br i1 %66, label %67, label %79
67: ; preds = %64
%68 = load float, ptr %3, align 4
%69 = load float, ptr %4, align 4
%70 = call float @devide(float noundef %68, float noundef %69)
store float %70, ptr %7, align 4
%71 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%72 = load float, ptr %3, align 4
%73 = fpext float %72 to double
%74 = load float, ptr %4, align 4
%75 = fpext float %74 to double
%76 = load float, ptr %7, align 4
%77 = fpext float %76 to double
%78 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %71, ptr noundef @.str.7, double noundef %73, double noundef %75, double noundef %77)
br label %79
79: ; preds = %67, %64
%80 = load i32, ptr %6, align 4
%81 = icmp eq i32 %80, 5
br i1 %81, label %82, label %94
82: ; preds = %79
%83 = load float, ptr %3, align 4
%84 = load float, ptr %4, align 4
%85 = call float @modulus(float noundef %83, float noundef %84)
store float %85, ptr %7, align 4
%86 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%87 = load float, ptr %3, align 4
%88 = fpext float %87 to double
%89 = load float, ptr %4, align 4
%90 = fpext float %89 to double
%91 = load float, ptr %7, align 4
%92 = fpext float %91 to double
%93 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %86, ptr noundef @.str.8, double noundef %88, double noundef %90, double noundef %92)
br label %94
94: ; preds = %82, %79
%95 = load i32, ptr %6, align 4
%96 = icmp eq i32 %95, 0
br i1 %96, label %97, label %100
97: ; preds = %94
%98 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%99 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %98, ptr noundef @.str.9)
br label %104
100: ; preds = %94
%101 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%102 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, ptr noundef %101)
%103 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
br label %10
104: ; preds = %97
%105 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
%106 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%107 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%108 = call i32 (ptr, ...) @scanf(ptr noundef @.str.13, ptr noundef %106, ptr noundef %107)
%109 = icmp ne i32 %108, 0
br i1 %109, label %111, label %110
110: ; preds = %104
store i32 1, ptr %1, align 4
br label %111
111: ; preds = %16, %110, %104
%112 = load i32, ptr %1, align 4
ret i32 %112
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @operator_decode(ptr noundef) #1
declare float @add(float noundef, float noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #1
declare float @subtract(float noundef, float noundef) #1
declare float @multiply(float noundef, float noundef) #1
declare float @devide(float noundef, float noundef) #1
declare float @modulus(float noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpscwyh661.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [97 x i8] c"Please type a mathmatical expression in the following format\0A<Number><Operator(+-*/%%)><number>\0A\00", align 1
@.str.1 = private unnamed_addr constant [53 x i8] c"Or type any other charecter as an operator to quit.\0A\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"Formula: \00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"%f%c%f\00", align 1
@.str.4 = private unnamed_addr constant [14 x i8] c"%f + %f = %f\0A\00", align 1
@.str.5 = private unnamed_addr constant [14 x i8] c"%f - %f = %f\0A\00", align 1
@.str.6 = private unnamed_addr constant [14 x i8] c"%f * %f = %f\0A\00", align 1
@.str.7 = private unnamed_addr constant [14 x i8] c"%f / %f = %f\0A\00", align 1
@.str.8 = private unnamed_addr constant [17 x i8] c"%f mod %f == %f\0A\00", align 1
@.str.9 = private unnamed_addr constant [64 x i8] c"You entered an invalid operator, valid options are: +,-,*,/,%%\0A\00", align 1
@.str.10 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.11 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
@.str.12 = private unnamed_addr constant [28 x i8] c"\0APress enter to continue...\00", align 1
@.str.13 = private unnamed_addr constant [5 x i8] c"%c%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [1024 x i8], align 16
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca [2 x i8], align 1
%6 = alloca i32, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca [1024 x i8], align 16
store i32 0, ptr %1, align 4
store float 0.000000e+00, ptr %3, align 4
store float 0.000000e+00, ptr %4, align 4
store i32 0, ptr %6, align 4
store float 0.000000e+00, ptr %7, align 4
store float 0.000000e+00, ptr %8, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%13 = call i32 (ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %3, ptr noundef %5, ptr noundef %4)
%14 = icmp ne i32 %13, 0
br i1 %14, label %.lr.ph, label %15
.lr.ph: ; preds = %0
br label %16
._crit_edge: ; preds = %99
br label %15
15: ; preds = %._crit_edge, %0
store i32 1, ptr %1, align 4
br label %115
16: ; preds = %.lr.ph, %99
%17 = getelementptr inbounds [2 x i8], ptr %5, i64 0, i64 0
%18 = call i32 @operator_decode(ptr noundef %17)
store i32 %18, ptr %6, align 4
%19 = load i32, ptr %6, align 4
%20 = icmp eq i32 %19, 1
br i1 %20, label %21, label %33
21: ; preds = %16
%22 = load float, ptr %3, align 4
%23 = load float, ptr %4, align 4
%24 = call float @add(float noundef %22, float noundef %23)
store float %24, ptr %7, align 4
%25 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%26 = load float, ptr %3, align 4
%27 = fpext float %26 to double
%28 = load float, ptr %4, align 4
%29 = fpext float %28 to double
%30 = load float, ptr %7, align 4
%31 = fpext float %30 to double
%32 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %25, ptr noundef @.str.4, double noundef %27, double noundef %29, double noundef %31)
br label %33
33: ; preds = %21, %16
%34 = load i32, ptr %6, align 4
%35 = icmp eq i32 %34, 2
br i1 %35, label %36, label %48
36: ; preds = %33
%37 = load float, ptr %3, align 4
%38 = load float, ptr %4, align 4
%39 = call float @subtract(float noundef %37, float noundef %38)
store float %39, ptr %7, align 4
%40 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%41 = load float, ptr %3, align 4
%42 = fpext float %41 to double
%43 = load float, ptr %4, align 4
%44 = fpext float %43 to double
%45 = load float, ptr %7, align 4
%46 = fpext float %45 to double
%47 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %40, ptr noundef @.str.5, double noundef %42, double noundef %44, double noundef %46)
br label %48
48: ; preds = %36, %33
%49 = load i32, ptr %6, align 4
%50 = icmp eq i32 %49, 3
br i1 %50, label %51, label %63
51: ; preds = %48
%52 = load float, ptr %3, align 4
%53 = load float, ptr %4, align 4
%54 = call float @multiply(float noundef %52, float noundef %53)
store float %54, ptr %7, align 4
%55 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%56 = load float, ptr %3, align 4
%57 = fpext float %56 to double
%58 = load float, ptr %4, align 4
%59 = fpext float %58 to double
%60 = load float, ptr %7, align 4
%61 = fpext float %60 to double
%62 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %55, ptr noundef @.str.6, double noundef %57, double noundef %59, double noundef %61)
br label %63
63: ; preds = %51, %48
%64 = load i32, ptr %6, align 4
%65 = icmp eq i32 %64, 4
br i1 %65, label %66, label %78
66: ; preds = %63
%67 = load float, ptr %3, align 4
%68 = load float, ptr %4, align 4
%69 = call float @devide(float noundef %67, float noundef %68)
store float %69, ptr %7, align 4
%70 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%71 = load float, ptr %3, align 4
%72 = fpext float %71 to double
%73 = load float, ptr %4, align 4
%74 = fpext float %73 to double
%75 = load float, ptr %7, align 4
%76 = fpext float %75 to double
%77 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %70, ptr noundef @.str.7, double noundef %72, double noundef %74, double noundef %76)
br label %78
78: ; preds = %66, %63
%79 = load i32, ptr %6, align 4
%80 = icmp eq i32 %79, 5
br i1 %80, label %81, label %93
81: ; preds = %78
%82 = load float, ptr %3, align 4
%83 = load float, ptr %4, align 4
%84 = call float @modulus(float noundef %82, float noundef %83)
store float %84, ptr %7, align 4
%85 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%86 = load float, ptr %3, align 4
%87 = fpext float %86 to double
%88 = load float, ptr %4, align 4
%89 = fpext float %88 to double
%90 = load float, ptr %7, align 4
%91 = fpext float %90 to double
%92 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %85, ptr noundef @.str.8, double noundef %87, double noundef %89, double noundef %91)
br label %93
93: ; preds = %81, %78
%94 = load i32, ptr %6, align 4
%95 = icmp eq i32 %94, 0
br i1 %95, label %96, label %99
96: ; preds = %93
%97 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%98 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %97, ptr noundef @.str.9)
br label %108
99: ; preds = %93
%100 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%101 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, ptr noundef %100)
%102 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
store float 0.000000e+00, ptr %3, align 4
store float 0.000000e+00, ptr %4, align 4
store i32 0, ptr %6, align 4
store float 0.000000e+00, ptr %7, align 4
store float 0.000000e+00, ptr %8, align 4
%103 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%104 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%105 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%106 = call i32 (ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %3, ptr noundef %5, ptr noundef %4)
%107 = icmp ne i32 %106, 0
br i1 %107, label %16, label %._crit_edge
108: ; preds = %96
%109 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
%110 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%111 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%112 = call i32 (ptr, ...) @scanf(ptr noundef @.str.13, ptr noundef %110, ptr noundef %111)
%113 = icmp ne i32 %112, 0
br i1 %113, label %115, label %114
114: ; preds = %108
store i32 1, ptr %1, align 4
br label %115
115: ; preds = %114, %108, %15
%116 = load i32, ptr %1, align 4
ret i32 %116
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @operator_decode(ptr noundef) #1
declare float @add(float noundef, float noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #1
declare float @subtract(float noundef, float noundef) #1
declare float @multiply(float noundef, float noundef) #1
declare float @devide(float noundef, float noundef) #1
declare float @modulus(float noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyup9w2lo.c'
source_filename = "/tmp/tmpyup9w2lo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bgen_genotype_read64(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @bgen_genotype_read(ptr noundef %5, ptr noundef %6)
ret i32 %7
}
declare i32 @bgen_genotype_read(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/tmpyup9w2lo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bgen_genotype_read64(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @bgen_genotype_read(ptr noundef %5, ptr noundef %6)
ret i32 %7
}
declare i32 @bgen_genotype_read(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/tmpordusova.c'
source_filename = "/tmp/tmpordusova.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @c_model2_sr(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9) #0 {
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca double, align 8
%25 = alloca double, align 8
%26 = alloca double, align 8
%27 = alloca i32, align 4
%28 = alloca ptr, align 8
%29 = alloca i64, align 8
%30 = alloca i64, align 8
%31 = alloca i64, align 8
%32 = alloca i32, align 4
%33 = alloca i32, align 4
%34 = alloca i32, align 4
%35 = alloca i32, align 4
%36 = alloca double, align 8
store ptr %0, ptr %11, align 8
store ptr %1, ptr %12, align 8
store ptr %2, ptr %13, align 8
store ptr %3, ptr %14, align 8
store ptr %4, ptr %15, align 8
store ptr %5, ptr %16, align 8
store ptr %6, ptr %17, align 8
store ptr %7, ptr %18, align 8
store ptr %8, ptr %19, align 8
store ptr %9, ptr %20, align 8
%37 = load ptr, ptr %11, align 8
%38 = getelementptr inbounds i32, ptr %37, i64 0
%39 = load i32, ptr %38, align 4
store i32 %39, ptr %21, align 4
%40 = load ptr, ptr %12, align 8
%41 = getelementptr inbounds i32, ptr %40, i64 0
%42 = load i32, ptr %41, align 4
store i32 %42, ptr %22, align 4
%43 = load ptr, ptr %13, align 8
%44 = getelementptr inbounds i32, ptr %43, i64 0
%45 = load i32, ptr %44, align 4
store i32 %45, ptr %23, align 4
%46 = load ptr, ptr %20, align 8
%47 = getelementptr inbounds double, ptr %46, i64 1
%48 = load double, ptr %47, align 8
store double %48, ptr %24, align 8
%49 = load ptr, ptr %20, align 8
%50 = getelementptr inbounds double, ptr %49, i64 2
%51 = load double, ptr %50, align 8
store double %51, ptr %25, align 8
%52 = load ptr, ptr %20, align 8
%53 = getelementptr inbounds double, ptr %52, i64 0
%54 = load double, ptr %53, align 8
store double %54, ptr %26, align 8
%55 = load i32, ptr %21, align 4
store i32 %55, ptr %27, align 4
%56 = load i32, ptr %21, align 4
%57 = load i32, ptr %23, align 4
%58 = mul nsw i32 %56, %57
%59 = zext i32 %58 to i64
%60 = call ptr @llvm.stacksave()
store ptr %60, ptr %28, align 8
%61 = alloca double, i64 %59, align 16
store i64 %59, ptr %29, align 8
%62 = load i32, ptr %21, align 4
%63 = zext i32 %62 to i64
%64 = alloca i32, i64 %63, align 16
store i64 %63, ptr %30, align 8
%65 = load i32, ptr %21, align 4
%66 = zext i32 %65 to i64
%67 = alloca double, i64 %66, align 16
store i64 %66, ptr %31, align 8
store i32 0, ptr %32, align 4
br label %68
68: ; preds = %213, %10
%69 = load i32, ptr %32, align 4
%70 = load i32, ptr %23, align 4
%71 = icmp slt i32 %69, %70
br i1 %71, label %72, label %216
72: ; preds = %68
store i32 0, ptr %34, align 4
br label %73
73: ; preds = %209, %72
%74 = load i32, ptr %34, align 4
%75 = load i32, ptr %21, align 4
%76 = icmp slt i32 %74, %75
br i1 %76, label %77, label %212
77: ; preds = %73
store double 0.000000e+00, ptr %36, align 8
store i32 0, ptr %35, align 4
br label %78
78: ; preds = %101, %77
%79 = load i32, ptr %35, align 4
%80 = load i32, ptr %21, align 4
%81 = icmp slt i32 %79, %80
br i1 %81, label %82, label %104
82: ; preds = %78
%83 = load i32, ptr %35, align 4
%84 = load i32, ptr %34, align 4
%85 = icmp sle i32 %83, %84
br i1 %85, label %86, label %96
86: ; preds = %82
%87 = load ptr, ptr %14, align 8
%88 = load i32, ptr %35, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds double, ptr %87, i64 %89
%91 = load double, ptr %90, align 8
%92 = fptosi double %91 to i32
%93 = load i32, ptr %35, align 4
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds i32, ptr %64, i64 %94
store i32 %92, ptr %95, align 4
br label %100
96: ; preds = %82
%97 = load i32, ptr %35, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds i32, ptr %64, i64 %98
store i32 0, ptr %99, align 4
br label %100
100: ; preds = %96, %86
br label %101
101: ; preds = %100
%102 = load i32, ptr %35, align 4
%103 = add nsw i32 %102, 1
store i32 %103, ptr %35, align 4
br label %78, !llvm.loop !6
104: ; preds = %78
%105 = getelementptr inbounds i32, ptr %64, i64 0
%106 = load i32, ptr %105, align 16
%107 = sitofp i32 %106 to double
%108 = getelementptr inbounds double, ptr %67, i64 0
store double %107, ptr %108, align 16
store i32 1, ptr %35, align 4
br label %109
109: ; preds = %128, %104
%110 = load i32, ptr %35, align 4
%111 = load i32, ptr %21, align 4
%112 = icmp slt i32 %110, %111
br i1 %112, label %113, label %131
113: ; preds = %109
%114 = load i32, ptr %35, align 4
%115 = sub nsw i32 %114, 1
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds double, ptr %67, i64 %116
%118 = load double, ptr %117, align 8
%119 = load i32, ptr %35, align 4
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds i32, ptr %64, i64 %120
%122 = load i32, ptr %121, align 4
%123 = sitofp i32 %122 to double
%124 = fadd double %118, %123
%125 = load i32, ptr %35, align 4
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds double, ptr %67, i64 %126
store double %124, ptr %127, align 8
br label %128
128: ; preds = %113
%129 = load i32, ptr %35, align 4
%130 = add nsw i32 %129, 1
store i32 %130, ptr %35, align 4
br label %109, !llvm.loop !8
131: ; preds = %109
store i32 0, ptr %33, align 4
br label %132
132: ; preds = %181, %131
%133 = load i32, ptr %33, align 4
%134 = load i32, ptr %21, align 4
%135 = icmp slt i32 %133, %134
br i1 %135, label %136, label %184
136: ; preds = %132
%137 = load double, ptr %26, align 8
%138 = load ptr, ptr %18, align 8
%139 = load i32, ptr %32, align 4
%140 = load i32, ptr %21, align 4
%141 = mul nsw i32 %139, %140
%142 = load i32, ptr %33, align 4
%143 = add nsw i32 %141, %142
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds double, ptr %138, i64 %144
%146 = load double, ptr %145, align 8
%147 = fmul double %137, %146
%148 = load i32, ptr %33, align 4
%149 = sext i32 %148 to i64
%150 = getelementptr inbounds i32, ptr %64, i64 %149
%151 = load i32, ptr %150, align 4
%152 = sitofp i32 %151 to double
%153 = fmul double %147, %152
%154 = load double, ptr %24, align 8
%155 = fadd double 1.000000e+00, %154
%156 = fptosi double %155 to i32
%157 = load i32, ptr %22, align 4
%158 = sitofp i32 %157 to double
%159 = load i32, ptr %33, align 4
%160 = sext i32 %159 to i64
%161 = getelementptr inbounds double, ptr %67, i64 %160
%162 = load double, ptr %161, align 8
%163 = fsub double %158, %162
%164 = fptosi double %163 to i32
%165 = call double @pow(i32 noundef %156, i32 noundef %164)
%166 = fmul double %153, %165
%167 = load double, ptr %25, align 8
%168 = fmul double -1.000000e+00, %167
%169 = load i32, ptr %33, align 4
%170 = sext i32 %169 to i64
%171 = getelementptr inbounds double, ptr %67, i64 %170
%172 = load double, ptr %171, align 8
%173 = fsub double %172, 1.000000e+00
%174 = fmul double %168, %173
%175 = call double @exp(double noundef %174) #4
%176 = fmul double %166, %175
%177 = load ptr, ptr %15, align 8
%178 = load i32, ptr %33, align 4
%179 = sext i32 %178 to i64
%180 = getelementptr inbounds double, ptr %177, i64 %179
store double %176, ptr %180, align 8
br label %181
181: ; preds = %136
%182 = load i32, ptr %33, align 4
%183 = add nsw i32 %182, 1
store i32 %183, ptr %33, align 4
br label %132, !llvm.loop !9
184: ; preds = %132
store i32 0, ptr %33, align 4
br label %185
185: ; preds = %197, %184
%186 = load i32, ptr %33, align 4
%187 = load i32, ptr %21, align 4
%188 = icmp slt i32 %186, %187
br i1 %188, label %189, label %200
189: ; preds = %185
%190 = load double, ptr %36, align 8
%191 = load ptr, ptr %15, align 8
%192 = load i32, ptr %33, align 4
%193 = sext i32 %192 to i64
%194 = getelementptr inbounds double, ptr %191, i64 %193
%195 = load double, ptr %194, align 8
%196 = fadd double %190, %195
store double %196, ptr %36, align 8
br label %197
197: ; preds = %189
%198 = load i32, ptr %33, align 4
%199 = add nsw i32 %198, 1
store i32 %199, ptr %33, align 4
br label %185, !llvm.loop !10
200: ; preds = %185
%201 = load double, ptr %36, align 8
%202 = load i32, ptr %32, align 4
%203 = load i32, ptr %34, align 4
%204 = load i32, ptr %23, align 4
%205 = mul nsw i32 %203, %204
%206 = add nsw i32 %202, %205
%207 = sext i32 %206 to i64
%208 = getelementptr inbounds double, ptr %61, i64 %207
store double %201, ptr %208, align 8
br label %209
209: ; preds = %200
%210 = load i32, ptr %34, align 4
%211 = add nsw i32 %210, 1
store i32 %211, ptr %34, align 4
br label %73, !llvm.loop !11
212: ; preds = %73
br label %213
213: ; preds = %212
%214 = load i32, ptr %32, align 4
%215 = add nsw i32 %214, 1
store i32 %215, ptr %32, align 4
br label %68, !llvm.loop !12
216: ; preds = %68
store i32 0, ptr %32, align 4
br label %217
217: ; preds = %235, %216
%218 = load i32, ptr %32, align 4
%219 = load i32, ptr %23, align 4
%220 = icmp slt i32 %218, %219
br i1 %220, label %221, label %238
221: ; preds = %217
%222 = load i32, ptr %32, align 4
%223 = load i32, ptr %27, align 4
%224 = sub nsw i32 %223, 1
%225 = load i32, ptr %23, align 4
%226 = mul nsw i32 %224, %225
%227 = add nsw i32 %222, %226
%228 = sext i32 %227 to i64
%229 = getelementptr inbounds double, ptr %61, i64 %228
%230 = load double, ptr %229, align 8
%231 = load ptr, ptr %17, align 8
%232 = load i32, ptr %32, align 4
%233 = sext i32 %232 to i64
%234 = getelementptr inbounds double, ptr %231, i64 %233
store double %230, ptr %234, align 8
br label %235
235: ; preds = %221
%236 = load i32, ptr %32, align 4
%237 = add nsw i32 %236, 1
store i32 %237, ptr %32, align 4
br label %217, !llvm.loop !13
238: ; preds = %217
%239 = load ptr, ptr %28, align 8
call void @llvm.stackrestore(ptr %239)
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare double @pow(i32 noundef, i32 noundef) #2
; Function Attrs: nounwind
declare double @exp(double noundef) #3
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpordusova.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @c_model2_sr(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9) #0 {
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca double, align 8
%25 = alloca double, align 8
%26 = alloca double, align 8
%27 = alloca i32, align 4
%28 = alloca ptr, align 8
%29 = alloca i64, align 8
%30 = alloca i64, align 8
%31 = alloca i64, align 8
%32 = alloca i32, align 4
%33 = alloca i32, align 4
%34 = alloca i32, align 4
%35 = alloca i32, align 4
%36 = alloca double, align 8
store ptr %0, ptr %11, align 8
store ptr %1, ptr %12, align 8
store ptr %2, ptr %13, align 8
store ptr %3, ptr %14, align 8
store ptr %4, ptr %15, align 8
store ptr %5, ptr %16, align 8
store ptr %6, ptr %17, align 8
store ptr %7, ptr %18, align 8
store ptr %8, ptr %19, align 8
store ptr %9, ptr %20, align 8
%37 = load ptr, ptr %11, align 8
%38 = getelementptr inbounds i32, ptr %37, i64 0
%39 = load i32, ptr %38, align 4
store i32 %39, ptr %21, align 4
%40 = load ptr, ptr %12, align 8
%41 = getelementptr inbounds i32, ptr %40, i64 0
%42 = load i32, ptr %41, align 4
store i32 %42, ptr %22, align 4
%43 = load ptr, ptr %13, align 8
%44 = getelementptr inbounds i32, ptr %43, i64 0
%45 = load i32, ptr %44, align 4
store i32 %45, ptr %23, align 4
%46 = load ptr, ptr %20, align 8
%47 = getelementptr inbounds double, ptr %46, i64 1
%48 = load double, ptr %47, align 8
store double %48, ptr %24, align 8
%49 = load ptr, ptr %20, align 8
%50 = getelementptr inbounds double, ptr %49, i64 2
%51 = load double, ptr %50, align 8
store double %51, ptr %25, align 8
%52 = load ptr, ptr %20, align 8
%53 = getelementptr inbounds double, ptr %52, i64 0
%54 = load double, ptr %53, align 8
store double %54, ptr %26, align 8
%55 = load i32, ptr %21, align 4
store i32 %55, ptr %27, align 4
%56 = load i32, ptr %21, align 4
%57 = load i32, ptr %23, align 4
%58 = mul nsw i32 %56, %57
%59 = zext i32 %58 to i64
%60 = call ptr @llvm.stacksave()
store ptr %60, ptr %28, align 8
%61 = alloca double, i64 %59, align 16
store i64 %59, ptr %29, align 8
%62 = load i32, ptr %21, align 4
%63 = zext i32 %62 to i64
%64 = alloca i32, i64 %63, align 16
store i64 %63, ptr %30, align 8
%65 = load i32, ptr %21, align 4
%66 = zext i32 %65 to i64
%67 = alloca double, i64 %66, align 16
store i64 %66, ptr %31, align 8
store i32 0, ptr %32, align 4
%68 = load i32, ptr %32, align 4
%69 = load i32, ptr %23, align 4
%70 = icmp slt i32 %68, %69
br i1 %70, label %.lr.ph14, label %228
.lr.ph14: ; preds = %10
br label %71
71: ; preds = %.lr.ph14, %222
store i32 0, ptr %34, align 4
%72 = load i32, ptr %34, align 4
%73 = load i32, ptr %21, align 4
%74 = icmp slt i32 %72, %73
br i1 %74, label %.lr.ph11, label %221
.lr.ph11: ; preds = %71
br label %75
75: ; preds = %.lr.ph11, %215
store double 0.000000e+00, ptr %36, align 8
store i32 0, ptr %35, align 4
%76 = load i32, ptr %35, align 4
%77 = load i32, ptr %21, align 4
%78 = icmp slt i32 %76, %77
br i1 %78, label %.lr.ph, label %104
.lr.ph: ; preds = %75
br label %79
79: ; preds = %.lr.ph, %98
%80 = load i32, ptr %35, align 4
%81 = load i32, ptr %34, align 4
%82 = icmp sle i32 %80, %81
br i1 %82, label %83, label %93
83: ; preds = %79
%84 = load ptr, ptr %14, align 8
%85 = load i32, ptr %35, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds double, ptr %84, i64 %86
%88 = load double, ptr %87, align 8
%89 = fptosi double %88 to i32
%90 = load i32, ptr %35, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds i32, ptr %64, i64 %91
store i32 %89, ptr %92, align 4
br label %97
93: ; preds = %79
%94 = load i32, ptr %35, align 4
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds i32, ptr %64, i64 %95
store i32 0, ptr %96, align 4
br label %97
97: ; preds = %93, %83
br label %98
98: ; preds = %97
%99 = load i32, ptr %35, align 4
%100 = add nsw i32 %99, 1
store i32 %100, ptr %35, align 4
%101 = load i32, ptr %35, align 4
%102 = load i32, ptr %21, align 4
%103 = icmp slt i32 %101, %102
br i1 %103, label %79, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %98
br label %104
104: ; preds = %._crit_edge, %75
%105 = getelementptr inbounds i32, ptr %64, i64 0
%106 = load i32, ptr %105, align 16
%107 = sitofp i32 %106 to double
%108 = getelementptr inbounds double, ptr %67, i64 0
store double %107, ptr %108, align 16
store i32 1, ptr %35, align 4
%109 = load i32, ptr %35, align 4
%110 = load i32, ptr %21, align 4
%111 = icmp slt i32 %109, %110
br i1 %111, label %.lr.ph2, label %133
.lr.ph2: ; preds = %104
br label %112
112: ; preds = %.lr.ph2, %127
%113 = load i32, ptr %35, align 4
%114 = sub nsw i32 %113, 1
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds double, ptr %67, i64 %115
%117 = load double, ptr %116, align 8
%118 = load i32, ptr %35, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds i32, ptr %64, i64 %119
%121 = load i32, ptr %120, align 4
%122 = sitofp i32 %121 to double
%123 = fadd double %117, %122
%124 = load i32, ptr %35, align 4
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds double, ptr %67, i64 %125
store double %123, ptr %126, align 8
br label %127
127: ; preds = %112
%128 = load i32, ptr %35, align 4
%129 = add nsw i32 %128, 1
store i32 %129, ptr %35, align 4
%130 = load i32, ptr %35, align 4
%131 = load i32, ptr %21, align 4
%132 = icmp slt i32 %130, %131
br i1 %132, label %112, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %127
br label %133
133: ; preds = %._crit_edge3, %104
store i32 0, ptr %33, align 4
%134 = load i32, ptr %33, align 4
%135 = load i32, ptr %21, align 4
%136 = icmp slt i32 %134, %135
br i1 %136, label %.lr.ph5, label %188
.lr.ph5: ; preds = %133
br label %137
137: ; preds = %.lr.ph5, %182
%138 = load double, ptr %26, align 8
%139 = load ptr, ptr %18, align 8
%140 = load i32, ptr %32, align 4
%141 = load i32, ptr %21, align 4
%142 = mul nsw i32 %140, %141
%143 = load i32, ptr %33, align 4
%144 = add nsw i32 %142, %143
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds double, ptr %139, i64 %145
%147 = load double, ptr %146, align 8
%148 = fmul double %138, %147
%149 = load i32, ptr %33, align 4
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds i32, ptr %64, i64 %150
%152 = load i32, ptr %151, align 4
%153 = sitofp i32 %152 to double
%154 = fmul double %148, %153
%155 = load double, ptr %24, align 8
%156 = fadd double 1.000000e+00, %155
%157 = fptosi double %156 to i32
%158 = load i32, ptr %22, align 4
%159 = sitofp i32 %158 to double
%160 = load i32, ptr %33, align 4
%161 = sext i32 %160 to i64
%162 = getelementptr inbounds double, ptr %67, i64 %161
%163 = load double, ptr %162, align 8
%164 = fsub double %159, %163
%165 = fptosi double %164 to i32
%166 = call double @pow(i32 noundef %157, i32 noundef %165)
%167 = fmul double %154, %166
%168 = load double, ptr %25, align 8
%169 = fmul double -1.000000e+00, %168
%170 = load i32, ptr %33, align 4
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds double, ptr %67, i64 %171
%173 = load double, ptr %172, align 8
%174 = fsub double %173, 1.000000e+00
%175 = fmul double %169, %174
%176 = call double @exp(double noundef %175) #4
%177 = fmul double %167, %176
%178 = load ptr, ptr %15, align 8
%179 = load i32, ptr %33, align 4
%180 = sext i32 %179 to i64
%181 = getelementptr inbounds double, ptr %178, i64 %180
store double %177, ptr %181, align 8
br label %182
182: ; preds = %137
%183 = load i32, ptr %33, align 4
%184 = add nsw i32 %183, 1
store i32 %184, ptr %33, align 4
%185 = load i32, ptr %33, align 4
%186 = load i32, ptr %21, align 4
%187 = icmp slt i32 %185, %186
br i1 %187, label %137, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %182
br label %188
188: ; preds = %._crit_edge6, %133
store i32 0, ptr %33, align 4
%189 = load i32, ptr %33, align 4
%190 = load i32, ptr %21, align 4
%191 = icmp slt i32 %189, %190
br i1 %191, label %.lr.ph8, label %206
.lr.ph8: ; preds = %188
br label %192
192: ; preds = %.lr.ph8, %200
%193 = load double, ptr %36, align 8
%194 = load ptr, ptr %15, align 8
%195 = load i32, ptr %33, align 4
%196 = sext i32 %195 to i64
%197 = getelementptr inbounds double, ptr %194, i64 %196
%198 = load double, ptr %197, align 8
%199 = fadd double %193, %198
store double %199, ptr %36, align 8
br label %200
200: ; preds = %192
%201 = load i32, ptr %33, align 4
%202 = add nsw i32 %201, 1
store i32 %202, ptr %33, align 4
%203 = load i32, ptr %33, align 4
%204 = load i32, ptr %21, align 4
%205 = icmp slt i32 %203, %204
br i1 %205, label %192, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %200
br label %206
206: ; preds = %._crit_edge9, %188
%207 = load double, ptr %36, align 8
%208 = load i32, ptr %32, align 4
%209 = load i32, ptr %34, align 4
%210 = load i32, ptr %23, align 4
%211 = mul nsw i32 %209, %210
%212 = add nsw i32 %208, %211
%213 = sext i32 %212 to i64
%214 = getelementptr inbounds double, ptr %61, i64 %213
store double %207, ptr %214, align 8
br label %215
215: ; preds = %206
%216 = load i32, ptr %34, align 4
%217 = add nsw i32 %216, 1
store i32 %217, ptr %34, align 4
%218 = load i32, ptr %34, align 4
%219 = load i32, ptr %21, align 4
%220 = icmp slt i32 %218, %219
br i1 %220, label %75, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %215
br label %221
221: ; preds = %._crit_edge12, %71
br label %222
222: ; preds = %221
%223 = load i32, ptr %32, align 4
%224 = add nsw i32 %223, 1
store i32 %224, ptr %32, align 4
%225 = load i32, ptr %32, align 4
%226 = load i32, ptr %23, align 4
%227 = icmp slt i32 %225, %226
br i1 %227, label %71, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %222
br label %228
228: ; preds = %._crit_edge15, %10
store i32 0, ptr %32, align 4
%229 = load i32, ptr %32, align 4
%230 = load i32, ptr %23, align 4
%231 = icmp slt i32 %229, %230
br i1 %231, label %.lr.ph17, label %252
.lr.ph17: ; preds = %228
br label %232
232: ; preds = %.lr.ph17, %246
%233 = load i32, ptr %32, align 4
%234 = load i32, ptr %27, align 4
%235 = sub nsw i32 %234, 1
%236 = load i32, ptr %23, align 4
%237 = mul nsw i32 %235, %236
%238 = add nsw i32 %233, %237
%239 = sext i32 %238 to i64
%240 = getelementptr inbounds double, ptr %61, i64 %239
%241 = load double, ptr %240, align 8
%242 = load ptr, ptr %17, align 8
%243 = load i32, ptr %32, align 4
%244 = sext i32 %243 to i64
%245 = getelementptr inbounds double, ptr %242, i64 %244
store double %241, ptr %245, align 8
br label %246
246: ; preds = %232
%247 = load i32, ptr %32, align 4
%248 = add nsw i32 %247, 1
store i32 %248, ptr %32, align 4
%249 = load i32, ptr %32, align 4
%250 = load i32, ptr %23, align 4
%251 = icmp slt i32 %249, %250
br i1 %251, label %232, label %._crit_edge18, !llvm.loop !13
._crit_edge18: ; preds = %246
br label %252
252: ; preds = %._crit_edge18, %228
%253 = load ptr, ptr %28, align 8
call void @llvm.stackrestore(ptr %253)
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare double @pow(i32 noundef, i32 noundef) #2
; Function Attrs: nounwind
declare double @exp(double noundef) #3
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
|
; ModuleID = '/tmp/tmplu9_sfto.c'
source_filename = "/tmp/tmplu9_sfto.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@gaussrand.V1 = internal global double 0.000000e+00, align 8
@gaussrand.V2 = internal global double 0.000000e+00, align 8
@gaussrand.S = internal global double 0.000000e+00, align 8
@gaussrand.phase = internal global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @gaussrand() #0 {
%1 = alloca double, align 8
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = load i32, ptr @gaussrand.phase, align 4
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %39
6: ; preds = %0
br label %7
7: ; preds = %26, %6
%8 = call double (...) @rng_dbl()
store double %8, ptr %2, align 8
%9 = call double (...) @rng_dbl()
store double %9, ptr %3, align 8
%10 = load double, ptr %2, align 8
%11 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %10, double -1.000000e+00)
store double %11, ptr @gaussrand.V1, align 8
%12 = load double, ptr %3, align 8
%13 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %12, double -1.000000e+00)
store double %13, ptr @gaussrand.V2, align 8
%14 = load double, ptr @gaussrand.V1, align 8
%15 = load double, ptr @gaussrand.V1, align 8
%16 = load double, ptr @gaussrand.V2, align 8
%17 = load double, ptr @gaussrand.V2, align 8
%18 = fmul double %16, %17
%19 = call double @llvm.fmuladd.f64(double %14, double %15, double %18)
store double %19, ptr @gaussrand.S, align 8
br label %20
20: ; preds = %7
%21 = load double, ptr @gaussrand.S, align 8
%22 = fcmp oge double %21, 1.000000e+00
br i1 %22, label %26, label %23
23: ; preds = %20
%24 = load double, ptr @gaussrand.S, align 8
%25 = fcmp oeq double %24, 0.000000e+00
br label %26
26: ; preds = %23, %20
%27 = phi i1 [ true, %20 ], [ %25, %23 ]
br i1 %27, label %7, label %28, !llvm.loop !6
28: ; preds = %26
%29 = load double, ptr @gaussrand.V1, align 8
%30 = load double, ptr @gaussrand.S, align 8
%31 = call i32 @log(double noundef %30)
%32 = mul nsw i32 -2, %31
%33 = sitofp i32 %32 to double
%34 = load double, ptr @gaussrand.S, align 8
%35 = fdiv double %33, %34
%36 = fptosi double %35 to i32
%37 = call double @sqrt(i32 noundef %36)
%38 = fmul double %29, %37
store double %38, ptr %1, align 8
br label %50
39: ; preds = %0
%40 = load double, ptr @gaussrand.V2, align 8
%41 = load double, ptr @gaussrand.S, align 8
%42 = call i32 @log(double noundef %41)
%43 = mul nsw i32 -2, %42
%44 = sitofp i32 %43 to double
%45 = load double, ptr @gaussrand.S, align 8
%46 = fdiv double %44, %45
%47 = fptosi double %46 to i32
%48 = call double @sqrt(i32 noundef %47)
%49 = fmul double %40, %48
store double %49, ptr %1, align 8
br label %50
50: ; preds = %39, %28
%51 = load i32, ptr @gaussrand.phase, align 4
%52 = sub nsw i32 1, %51
store i32 %52, ptr @gaussrand.phase, align 4
%53 = load double, ptr %1, align 8
ret double %53
}
declare double @rng_dbl(...) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare double @sqrt(i32 noundef) #1
declare i32 @log(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" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplu9_sfto.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@gaussrand.V1 = internal global double 0.000000e+00, align 8
@gaussrand.V2 = internal global double 0.000000e+00, align 8
@gaussrand.S = internal global double 0.000000e+00, align 8
@gaussrand.phase = internal global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @gaussrand() #0 {
%1 = alloca double, align 8
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = load i32, ptr @gaussrand.phase, align 4
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %39
6: ; preds = %0
br label %7
7: ; preds = %26, %6
%8 = call double (...) @rng_dbl()
store double %8, ptr %2, align 8
%9 = call double (...) @rng_dbl()
store double %9, ptr %3, align 8
%10 = load double, ptr %2, align 8
%11 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %10, double -1.000000e+00)
store double %11, ptr @gaussrand.V1, align 8
%12 = load double, ptr %3, align 8
%13 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %12, double -1.000000e+00)
store double %13, ptr @gaussrand.V2, align 8
%14 = load double, ptr @gaussrand.V1, align 8
%15 = load double, ptr @gaussrand.V1, align 8
%16 = load double, ptr @gaussrand.V2, align 8
%17 = load double, ptr @gaussrand.V2, align 8
%18 = fmul double %16, %17
%19 = call double @llvm.fmuladd.f64(double %14, double %15, double %18)
store double %19, ptr @gaussrand.S, align 8
br label %20
20: ; preds = %7
%21 = load double, ptr @gaussrand.S, align 8
%22 = fcmp oge double %21, 1.000000e+00
br i1 %22, label %26, label %23
23: ; preds = %20
%24 = load double, ptr @gaussrand.S, align 8
%25 = fcmp oeq double %24, 0.000000e+00
br label %26
26: ; preds = %23, %20
%27 = phi i1 [ true, %20 ], [ %25, %23 ]
br i1 %27, label %7, label %28, !llvm.loop !6
28: ; preds = %26
%29 = load double, ptr @gaussrand.V1, align 8
%30 = load double, ptr @gaussrand.S, align 8
%31 = call i32 @log(double noundef %30)
%32 = mul nsw i32 -2, %31
%33 = sitofp i32 %32 to double
%34 = load double, ptr @gaussrand.S, align 8
%35 = fdiv double %33, %34
%36 = fptosi double %35 to i32
%37 = call double @sqrt(i32 noundef %36)
%38 = fmul double %29, %37
store double %38, ptr %1, align 8
br label %50
39: ; preds = %0
%40 = load double, ptr @gaussrand.V2, align 8
%41 = load double, ptr @gaussrand.S, align 8
%42 = call i32 @log(double noundef %41)
%43 = mul nsw i32 -2, %42
%44 = sitofp i32 %43 to double
%45 = load double, ptr @gaussrand.S, align 8
%46 = fdiv double %44, %45
%47 = fptosi double %46 to i32
%48 = call double @sqrt(i32 noundef %47)
%49 = fmul double %40, %48
store double %49, ptr %1, align 8
br label %50
50: ; preds = %39, %28
%51 = load i32, ptr @gaussrand.phase, align 4
%52 = sub nsw i32 1, %51
store i32 %52, ptr @gaussrand.phase, align 4
%53 = load double, ptr %1, align 8
ret double %53
}
declare double @rng_dbl(...) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare double @sqrt(i32 noundef) #1
declare i32 @log(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" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpgkkz2piz.c'
source_filename = "/tmp/tmpgkkz2piz.c"
target datalayout = "e-m:e-p270: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_19__ = type { i64, %struct.TYPE_13__ }
%struct.TYPE_13__ = type { ptr }
%struct.TYPE_12__ = type { ptr, i32 }
%struct.TYPE_18__ = type { i64, ptr, ptr, i64 }
%struct.TYPE_14__ = type { i32 }
%struct.TYPE_17__ = type { i64, %struct.TYPE_16__ }
%struct.TYPE_16__ = type { ptr }
%struct.TYPE_15__ = type { ptr, i32 }
@EVP_MAX_KEY_LENGTH = dso_local global i32 0, align 4
@EVP_F_PKCS5_V2_PBKDF2_KEYIVGEN = dso_local global i32 0, align 4
@EVP_R_NO_CIPHER_SET = dso_local global i32 0, align 4
@EVP_R_BAD_KEY_LENGTH = dso_local global i32 0, align 4
@V_ASN1_SEQUENCE = dso_local global i64 0, align 8
@EVP_R_DECODE_ERROR = dso_local global i32 0, align 4
@EVP_R_UNSUPPORTED_KEYLENGTH = dso_local global i32 0, align 4
@NID_hmacWithSHA1 = dso_local global i32 0, align 4
@EVP_PBE_TYPE_PRF = dso_local global i32 0, align 4
@EVP_R_UNSUPPORTED_PRF = dso_local global i32 0, align 4
@V_ASN1_OCTET_STRING = dso_local global i64 0, align 8
@EVP_R_UNSUPPORTED_SALT_TYPE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @PKCS5_v2_PBKDF2_keyivgen(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6) #0 {
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca i64, align 8
%19 = alloca ptr, align 8
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca i32, align 4
%27 = alloca ptr, align 8
%28 = alloca ptr, align 8
%29 = alloca i32, align 4
store ptr %0, ptr %9, align 8
store ptr %1, ptr %10, align 8
store i32 %2, ptr %11, align 4
store ptr %3, ptr %12, align 8
store ptr %4, ptr %13, align 8
store ptr %5, ptr %14, align 8
store i32 %6, ptr %15, align 4
%30 = load i32, ptr @EVP_MAX_KEY_LENGTH, align 4
%31 = zext i32 %30 to i64
%32 = call ptr @llvm.stacksave()
store ptr %32, ptr %17, align 8
%33 = alloca i8, i64 %31, align 16
store i64 %31, ptr %18, align 8
store i32 0, ptr %23, align 4
store i32 0, ptr %24, align 4
store ptr null, ptr %27, align 8
%34 = load ptr, ptr %9, align 8
%35 = call ptr @EVP_CIPHER_CTX_cipher(ptr noundef %34)
%36 = icmp eq ptr %35, null
br i1 %36, label %37, label %41
37: ; preds = %7
%38 = load i32, ptr @EVP_F_PKCS5_V2_PBKDF2_KEYIVGEN, align 4
%39 = load i32, ptr @EVP_R_NO_CIPHER_SET, align 4
%40 = call i32 @EVPerr(i32 noundef %38, i32 noundef %39)
store i32 0, ptr %8, align 4
store i32 1, ptr %29, align 4
br label %185
41: ; preds = %7
%42 = load ptr, ptr %9, align 8
%43 = call i32 @EVP_CIPHER_CTX_key_length(ptr noundef %42)
store i32 %43, ptr %24, align 4
%44 = load i32, ptr %24, align 4
%45 = zext i32 %44 to i64
%46 = icmp ugt i64 %45, %31
br i1 %46, label %47, label %51
47: ; preds = %41
%48 = load i32, ptr @EVP_F_PKCS5_V2_PBKDF2_KEYIVGEN, align 4
%49 = load i32, ptr @EVP_R_BAD_KEY_LENGTH, align 4
%50 = call i32 @EVPerr(i32 noundef %48, i32 noundef %49)
store i32 0, ptr %8, align 4
store i32 1, ptr %29, align 4
br label %185
51: ; preds = %41
%52 = load ptr, ptr %12, align 8
%53 = icmp ne ptr %52, null
br i1 %53, label %54, label %60
54: ; preds = %51
%55 = load ptr, ptr %12, align 8
%56 = getelementptr inbounds %struct.TYPE_19__, ptr %55, i32 0, i32 0
%57 = load i64, ptr %56, align 8
%58 = load i64, ptr @V_ASN1_SEQUENCE, align 8
%59 = icmp ne i64 %57, %58
br i1 %59, label %60, label %64
60: ; preds = %54, %51
%61 = load i32, ptr @EVP_F_PKCS5_V2_PBKDF2_KEYIVGEN, align 4
%62 = load i32, ptr @EVP_R_DECODE_ERROR, align 4
%63 = call i32 @EVPerr(i32 noundef %61, i32 noundef %62)
store i32 0, ptr %8, align 4
store i32 1, ptr %29, align 4
br label %185
64: ; preds = %54
%65 = load ptr, ptr %12, align 8
%66 = getelementptr inbounds %struct.TYPE_19__, ptr %65, i32 0, i32 1
%67 = getelementptr inbounds %struct.TYPE_13__, ptr %66, i32 0, i32 0
%68 = load ptr, ptr %67, align 8
%69 = getelementptr inbounds %struct.TYPE_12__, ptr %68, i32 0, i32 0
%70 = load ptr, ptr %69, align 8
store ptr %70, ptr %19, align 8
%71 = load ptr, ptr %12, align 8
%72 = getelementptr inbounds %struct.TYPE_19__, ptr %71, i32 0, i32 1
%73 = getelementptr inbounds %struct.TYPE_13__, ptr %72, i32 0, i32 0
%74 = load ptr, ptr %73, align 8
%75 = getelementptr inbounds %struct.TYPE_12__, ptr %74, i32 0, i32 1
%76 = load i32, ptr %75, align 8
store i32 %76, ptr %22, align 4
%77 = load i32, ptr %22, align 4
%78 = call ptr @d2i_PBKDF2PARAM(ptr noundef null, ptr noundef %19, i32 noundef %77)
store ptr %78, ptr %27, align 8
%79 = icmp ne ptr %78, null
br i1 %79, label %84, label %80
80: ; preds = %64
%81 = load i32, ptr @EVP_F_PKCS5_V2_PBKDF2_KEYIVGEN, align 4
%82 = load i32, ptr @EVP_R_DECODE_ERROR, align 4
%83 = call i32 @EVPerr(i32 noundef %81, i32 noundef %82)
store i32 0, ptr %8, align 4
store i32 1, ptr %29, align 4
br label %185
84: ; preds = %64
%85 = load ptr, ptr %27, align 8
%86 = getelementptr inbounds %struct.TYPE_18__, ptr %85, i32 0, i32 3
%87 = load i64, ptr %86, align 8
%88 = icmp ne i64 %87, 0
br i1 %88, label %89, label %100
89: ; preds = %84
%90 = load ptr, ptr %27, align 8
%91 = getelementptr inbounds %struct.TYPE_18__, ptr %90, i32 0, i32 3
%92 = load i64, ptr %91, align 8
%93 = call i32 @ASN1_INTEGER_get(i64 noundef %92)
%94 = load i32, ptr %24, align 4
%95 = icmp ne i32 %93, %94
br i1 %95, label %96, label %100
96: ; preds = %89
%97 = load i32, ptr @EVP_F_PKCS5_V2_PBKDF2_KEYIVGEN, align 4
%98 = load i32, ptr @EVP_R_UNSUPPORTED_KEYLENGTH, align 4
%99 = call i32 @EVPerr(i32 noundef %97, i32 noundef %98)
br label %179
100: ; preds = %89, %84
%101 = load ptr, ptr %27, align 8
%102 = getelementptr inbounds %struct.TYPE_18__, ptr %101, i32 0, i32 2
%103 = load ptr, ptr %102, align 8
%104 = icmp ne ptr %103, null
br i1 %104, label %105, label %112
105: ; preds = %100
%106 = load ptr, ptr %27, align 8
%107 = getelementptr inbounds %struct.TYPE_18__, ptr %106, i32 0, i32 2
%108 = load ptr, ptr %107, align 8
%109 = getelementptr inbounds %struct.TYPE_14__, ptr %108, i32 0, i32 0
%110 = load i32, ptr %109, align 4
%111 = call i32 @OBJ_obj2nid(i32 noundef %110)
store i32 %111, ptr %25, align 4
br label %114
112: ; preds = %100
%113 = load i32, ptr @NID_hmacWithSHA1, align 4
store i32 %113, ptr %25, align 4
br label %114
114: ; preds = %112, %105
%115 = load i32, ptr @EVP_PBE_TYPE_PRF, align 4
%116 = load i32, ptr %25, align 4
%117 = call i32 @EVP_PBE_find(i32 noundef %115, i32 noundef %116, ptr noundef null, ptr noundef %26, i32 noundef 0)
%118 = icmp ne i32 %117, 0
br i1 %118, label %123, label %119
119: ; preds = %114
%120 = load i32, ptr @EVP_F_PKCS5_V2_PBKDF2_KEYIVGEN, align 4
%121 = load i32, ptr @EVP_R_UNSUPPORTED_PRF, align 4
%122 = call i32 @EVPerr(i32 noundef %120, i32 noundef %121)
br label %179
123: ; preds = %114
%124 = load i32, ptr %26, align 4
%125 = call ptr @EVP_get_digestbynid(i32 noundef %124)
store ptr %125, ptr %28, align 8
%126 = load ptr, ptr %28, align 8
%127 = icmp eq ptr %126, null
br i1 %127, label %128, label %132
128: ; preds = %123
%129 = load i32, ptr @EVP_F_PKCS5_V2_PBKDF2_KEYIVGEN, align 4
%130 = load i32, ptr @EVP_R_UNSUPPORTED_PRF, align 4
%131 = call i32 @EVPerr(i32 noundef %129, i32 noundef %130)
br label %179
132: ; preds = %123
%133 = load ptr, ptr %27, align 8
%134 = getelementptr inbounds %struct.TYPE_18__, ptr %133, i32 0, i32 1
%135 = load ptr, ptr %134, align 8
%136 = getelementptr inbounds %struct.TYPE_17__, ptr %135, i32 0, i32 0
%137 = load i64, ptr %136, align 8
%138 = load i64, ptr @V_ASN1_OCTET_STRING, align 8
%139 = icmp ne i64 %137, %138
br i1 %139, label %140, label %144
140: ; preds = %132
%141 = load i32, ptr @EVP_F_PKCS5_V2_PBKDF2_KEYIVGEN, align 4
%142 = load i32, ptr @EVP_R_UNSUPPORTED_SALT_TYPE, align 4
%143 = call i32 @EVPerr(i32 noundef %141, i32 noundef %142)
br label %179
144: ; preds = %132
%145 = load ptr, ptr %27, align 8
%146 = getelementptr inbounds %struct.TYPE_18__, ptr %145, i32 0, i32 1
%147 = load ptr, ptr %146, align 8
%148 = getelementptr inbounds %struct.TYPE_17__, ptr %147, i32 0, i32 1
%149 = getelementptr inbounds %struct.TYPE_16__, ptr %148, i32 0, i32 0
%150 = load ptr, ptr %149, align 8
%151 = getelementptr inbounds %struct.TYPE_15__, ptr %150, i32 0, i32 0
%152 = load ptr, ptr %151, align 8
store ptr %152, ptr %16, align 8
%153 = load ptr, ptr %27, align 8
%154 = getelementptr inbounds %struct.TYPE_18__, ptr %153, i32 0, i32 1
%155 = load ptr, ptr %154, align 8
%156 = getelementptr inbounds %struct.TYPE_17__, ptr %155, i32 0, i32 1
%157 = getelementptr inbounds %struct.TYPE_16__, ptr %156, i32 0, i32 0
%158 = load ptr, ptr %157, align 8
%159 = getelementptr inbounds %struct.TYPE_15__, ptr %158, i32 0, i32 1
%160 = load i32, ptr %159, align 8
store i32 %160, ptr %20, align 4
%161 = load ptr, ptr %27, align 8
%162 = getelementptr inbounds %struct.TYPE_18__, ptr %161, i32 0, i32 0
%163 = load i64, ptr %162, align 8
%164 = call i32 @ASN1_INTEGER_get(i64 noundef %163)
store i32 %164, ptr %21, align 4
%165 = load ptr, ptr %10, align 8
%166 = load i32, ptr %11, align 4
%167 = load ptr, ptr %16, align 8
%168 = load i32, ptr %20, align 4
%169 = load i32, ptr %21, align 4
%170 = load ptr, ptr %28, align 8
%171 = load i32, ptr %24, align 4
%172 = call i32 @PKCS5_PBKDF2_HMAC(ptr noundef %165, i32 noundef %166, ptr noundef %167, i32 noundef %168, i32 noundef %169, ptr noundef %170, i32 noundef %171, ptr noundef %33)
%173 = icmp ne i32 %172, 0
br i1 %173, label %175, label %174
174: ; preds = %144
br label %179
175: ; preds = %144
%176 = load ptr, ptr %9, align 8
%177 = load i32, ptr %15, align 4
%178 = call i32 @EVP_CipherInit_ex(ptr noundef %176, ptr noundef null, ptr noundef null, ptr noundef %33, ptr noundef null, i32 noundef %177)
store i32 %178, ptr %23, align 4
br label %179
179: ; preds = %175, %174, %140, %128, %119, %96
%180 = load i32, ptr %24, align 4
%181 = call i32 @OPENSSL_cleanse(ptr noundef %33, i32 noundef %180)
%182 = load ptr, ptr %27, align 8
%183 = call i32 @PBKDF2PARAM_free(ptr noundef %182)
%184 = load i32, ptr %23, align 4
store i32 %184, ptr %8, align 4
store i32 1, ptr %29, align 4
br label %185
185: ; preds = %179, %80, %60, %47, %37
%186 = load ptr, ptr %17, align 8
call void @llvm.stackrestore(ptr %186)
%187 = load i32, ptr %8, align 4
ret i32 %187
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare ptr @EVP_CIPHER_CTX_cipher(ptr noundef) #2
declare i32 @EVPerr(i32 noundef, i32 noundef) #2
declare i32 @EVP_CIPHER_CTX_key_length(ptr noundef) #2
declare ptr @d2i_PBKDF2PARAM(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @ASN1_INTEGER_get(i64 noundef) #2
declare i32 @OBJ_obj2nid(i32 noundef) #2
declare i32 @EVP_PBE_find(i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) #2
declare ptr @EVP_get_digestbynid(i32 noundef) #2
declare i32 @PKCS5_PBKDF2_HMAC(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) #2
declare i32 @EVP_CipherInit_ex(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @OPENSSL_cleanse(ptr noundef, i32 noundef) #2
declare i32 @PBKDF2PARAM_free(ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgkkz2piz.c"
target datalayout = "e-m:e-p270: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_19__ = type { i64, %struct.TYPE_13__ }
%struct.TYPE_13__ = type { ptr }
%struct.TYPE_12__ = type { ptr, i32 }
%struct.TYPE_18__ = type { i64, ptr, ptr, i64 }
%struct.TYPE_14__ = type { i32 }
%struct.TYPE_17__ = type { i64, %struct.TYPE_16__ }
%struct.TYPE_16__ = type { ptr }
%struct.TYPE_15__ = type { ptr, i32 }
@EVP_MAX_KEY_LENGTH = dso_local global i32 0, align 4
@EVP_F_PKCS5_V2_PBKDF2_KEYIVGEN = dso_local global i32 0, align 4
@EVP_R_NO_CIPHER_SET = dso_local global i32 0, align 4
@EVP_R_BAD_KEY_LENGTH = dso_local global i32 0, align 4
@V_ASN1_SEQUENCE = dso_local global i64 0, align 8
@EVP_R_DECODE_ERROR = dso_local global i32 0, align 4
@EVP_R_UNSUPPORTED_KEYLENGTH = dso_local global i32 0, align 4
@NID_hmacWithSHA1 = dso_local global i32 0, align 4
@EVP_PBE_TYPE_PRF = dso_local global i32 0, align 4
@EVP_R_UNSUPPORTED_PRF = dso_local global i32 0, align 4
@V_ASN1_OCTET_STRING = dso_local global i64 0, align 8
@EVP_R_UNSUPPORTED_SALT_TYPE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @PKCS5_v2_PBKDF2_keyivgen(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6) #0 {
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca i64, align 8
%19 = alloca ptr, align 8
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca i32, align 4
%27 = alloca ptr, align 8
%28 = alloca ptr, align 8
%29 = alloca i32, align 4
store ptr %0, ptr %9, align 8
store ptr %1, ptr %10, align 8
store i32 %2, ptr %11, align 4
store ptr %3, ptr %12, align 8
store ptr %4, ptr %13, align 8
store ptr %5, ptr %14, align 8
store i32 %6, ptr %15, align 4
%30 = load i32, ptr @EVP_MAX_KEY_LENGTH, align 4
%31 = zext i32 %30 to i64
%32 = call ptr @llvm.stacksave()
store ptr %32, ptr %17, align 8
%33 = alloca i8, i64 %31, align 16
store i64 %31, ptr %18, align 8
store i32 0, ptr %23, align 4
store i32 0, ptr %24, align 4
store ptr null, ptr %27, align 8
%34 = load ptr, ptr %9, align 8
%35 = call ptr @EVP_CIPHER_CTX_cipher(ptr noundef %34)
%36 = icmp eq ptr %35, null
br i1 %36, label %37, label %41
37: ; preds = %7
%38 = load i32, ptr @EVP_F_PKCS5_V2_PBKDF2_KEYIVGEN, align 4
%39 = load i32, ptr @EVP_R_NO_CIPHER_SET, align 4
%40 = call i32 @EVPerr(i32 noundef %38, i32 noundef %39)
store i32 0, ptr %8, align 4
store i32 1, ptr %29, align 4
br label %185
41: ; preds = %7
%42 = load ptr, ptr %9, align 8
%43 = call i32 @EVP_CIPHER_CTX_key_length(ptr noundef %42)
store i32 %43, ptr %24, align 4
%44 = load i32, ptr %24, align 4
%45 = zext i32 %44 to i64
%46 = icmp ugt i64 %45, %31
br i1 %46, label %47, label %51
47: ; preds = %41
%48 = load i32, ptr @EVP_F_PKCS5_V2_PBKDF2_KEYIVGEN, align 4
%49 = load i32, ptr @EVP_R_BAD_KEY_LENGTH, align 4
%50 = call i32 @EVPerr(i32 noundef %48, i32 noundef %49)
store i32 0, ptr %8, align 4
store i32 1, ptr %29, align 4
br label %185
51: ; preds = %41
%52 = load ptr, ptr %12, align 8
%53 = icmp ne ptr %52, null
br i1 %53, label %54, label %60
54: ; preds = %51
%55 = load ptr, ptr %12, align 8
%56 = getelementptr inbounds %struct.TYPE_19__, ptr %55, i32 0, i32 0
%57 = load i64, ptr %56, align 8
%58 = load i64, ptr @V_ASN1_SEQUENCE, align 8
%59 = icmp ne i64 %57, %58
br i1 %59, label %60, label %64
60: ; preds = %54, %51
%61 = load i32, ptr @EVP_F_PKCS5_V2_PBKDF2_KEYIVGEN, align 4
%62 = load i32, ptr @EVP_R_DECODE_ERROR, align 4
%63 = call i32 @EVPerr(i32 noundef %61, i32 noundef %62)
store i32 0, ptr %8, align 4
store i32 1, ptr %29, align 4
br label %185
64: ; preds = %54
%65 = load ptr, ptr %12, align 8
%66 = getelementptr inbounds %struct.TYPE_19__, ptr %65, i32 0, i32 1
%67 = getelementptr inbounds %struct.TYPE_13__, ptr %66, i32 0, i32 0
%68 = load ptr, ptr %67, align 8
%69 = getelementptr inbounds %struct.TYPE_12__, ptr %68, i32 0, i32 0
%70 = load ptr, ptr %69, align 8
store ptr %70, ptr %19, align 8
%71 = load ptr, ptr %12, align 8
%72 = getelementptr inbounds %struct.TYPE_19__, ptr %71, i32 0, i32 1
%73 = getelementptr inbounds %struct.TYPE_13__, ptr %72, i32 0, i32 0
%74 = load ptr, ptr %73, align 8
%75 = getelementptr inbounds %struct.TYPE_12__, ptr %74, i32 0, i32 1
%76 = load i32, ptr %75, align 8
store i32 %76, ptr %22, align 4
%77 = load i32, ptr %22, align 4
%78 = call ptr @d2i_PBKDF2PARAM(ptr noundef null, ptr noundef %19, i32 noundef %77)
store ptr %78, ptr %27, align 8
%79 = icmp ne ptr %78, null
br i1 %79, label %84, label %80
80: ; preds = %64
%81 = load i32, ptr @EVP_F_PKCS5_V2_PBKDF2_KEYIVGEN, align 4
%82 = load i32, ptr @EVP_R_DECODE_ERROR, align 4
%83 = call i32 @EVPerr(i32 noundef %81, i32 noundef %82)
store i32 0, ptr %8, align 4
store i32 1, ptr %29, align 4
br label %185
84: ; preds = %64
%85 = load ptr, ptr %27, align 8
%86 = getelementptr inbounds %struct.TYPE_18__, ptr %85, i32 0, i32 3
%87 = load i64, ptr %86, align 8
%88 = icmp ne i64 %87, 0
br i1 %88, label %89, label %100
89: ; preds = %84
%90 = load ptr, ptr %27, align 8
%91 = getelementptr inbounds %struct.TYPE_18__, ptr %90, i32 0, i32 3
%92 = load i64, ptr %91, align 8
%93 = call i32 @ASN1_INTEGER_get(i64 noundef %92)
%94 = load i32, ptr %24, align 4
%95 = icmp ne i32 %93, %94
br i1 %95, label %96, label %100
96: ; preds = %89
%97 = load i32, ptr @EVP_F_PKCS5_V2_PBKDF2_KEYIVGEN, align 4
%98 = load i32, ptr @EVP_R_UNSUPPORTED_KEYLENGTH, align 4
%99 = call i32 @EVPerr(i32 noundef %97, i32 noundef %98)
br label %179
100: ; preds = %89, %84
%101 = load ptr, ptr %27, align 8
%102 = getelementptr inbounds %struct.TYPE_18__, ptr %101, i32 0, i32 2
%103 = load ptr, ptr %102, align 8
%104 = icmp ne ptr %103, null
br i1 %104, label %105, label %112
105: ; preds = %100
%106 = load ptr, ptr %27, align 8
%107 = getelementptr inbounds %struct.TYPE_18__, ptr %106, i32 0, i32 2
%108 = load ptr, ptr %107, align 8
%109 = getelementptr inbounds %struct.TYPE_14__, ptr %108, i32 0, i32 0
%110 = load i32, ptr %109, align 4
%111 = call i32 @OBJ_obj2nid(i32 noundef %110)
store i32 %111, ptr %25, align 4
br label %114
112: ; preds = %100
%113 = load i32, ptr @NID_hmacWithSHA1, align 4
store i32 %113, ptr %25, align 4
br label %114
114: ; preds = %112, %105
%115 = load i32, ptr @EVP_PBE_TYPE_PRF, align 4
%116 = load i32, ptr %25, align 4
%117 = call i32 @EVP_PBE_find(i32 noundef %115, i32 noundef %116, ptr noundef null, ptr noundef %26, i32 noundef 0)
%118 = icmp ne i32 %117, 0
br i1 %118, label %123, label %119
119: ; preds = %114
%120 = load i32, ptr @EVP_F_PKCS5_V2_PBKDF2_KEYIVGEN, align 4
%121 = load i32, ptr @EVP_R_UNSUPPORTED_PRF, align 4
%122 = call i32 @EVPerr(i32 noundef %120, i32 noundef %121)
br label %179
123: ; preds = %114
%124 = load i32, ptr %26, align 4
%125 = call ptr @EVP_get_digestbynid(i32 noundef %124)
store ptr %125, ptr %28, align 8
%126 = load ptr, ptr %28, align 8
%127 = icmp eq ptr %126, null
br i1 %127, label %128, label %132
128: ; preds = %123
%129 = load i32, ptr @EVP_F_PKCS5_V2_PBKDF2_KEYIVGEN, align 4
%130 = load i32, ptr @EVP_R_UNSUPPORTED_PRF, align 4
%131 = call i32 @EVPerr(i32 noundef %129, i32 noundef %130)
br label %179
132: ; preds = %123
%133 = load ptr, ptr %27, align 8
%134 = getelementptr inbounds %struct.TYPE_18__, ptr %133, i32 0, i32 1
%135 = load ptr, ptr %134, align 8
%136 = getelementptr inbounds %struct.TYPE_17__, ptr %135, i32 0, i32 0
%137 = load i64, ptr %136, align 8
%138 = load i64, ptr @V_ASN1_OCTET_STRING, align 8
%139 = icmp ne i64 %137, %138
br i1 %139, label %140, label %144
140: ; preds = %132
%141 = load i32, ptr @EVP_F_PKCS5_V2_PBKDF2_KEYIVGEN, align 4
%142 = load i32, ptr @EVP_R_UNSUPPORTED_SALT_TYPE, align 4
%143 = call i32 @EVPerr(i32 noundef %141, i32 noundef %142)
br label %179
144: ; preds = %132
%145 = load ptr, ptr %27, align 8
%146 = getelementptr inbounds %struct.TYPE_18__, ptr %145, i32 0, i32 1
%147 = load ptr, ptr %146, align 8
%148 = getelementptr inbounds %struct.TYPE_17__, ptr %147, i32 0, i32 1
%149 = getelementptr inbounds %struct.TYPE_16__, ptr %148, i32 0, i32 0
%150 = load ptr, ptr %149, align 8
%151 = getelementptr inbounds %struct.TYPE_15__, ptr %150, i32 0, i32 0
%152 = load ptr, ptr %151, align 8
store ptr %152, ptr %16, align 8
%153 = load ptr, ptr %27, align 8
%154 = getelementptr inbounds %struct.TYPE_18__, ptr %153, i32 0, i32 1
%155 = load ptr, ptr %154, align 8
%156 = getelementptr inbounds %struct.TYPE_17__, ptr %155, i32 0, i32 1
%157 = getelementptr inbounds %struct.TYPE_16__, ptr %156, i32 0, i32 0
%158 = load ptr, ptr %157, align 8
%159 = getelementptr inbounds %struct.TYPE_15__, ptr %158, i32 0, i32 1
%160 = load i32, ptr %159, align 8
store i32 %160, ptr %20, align 4
%161 = load ptr, ptr %27, align 8
%162 = getelementptr inbounds %struct.TYPE_18__, ptr %161, i32 0, i32 0
%163 = load i64, ptr %162, align 8
%164 = call i32 @ASN1_INTEGER_get(i64 noundef %163)
store i32 %164, ptr %21, align 4
%165 = load ptr, ptr %10, align 8
%166 = load i32, ptr %11, align 4
%167 = load ptr, ptr %16, align 8
%168 = load i32, ptr %20, align 4
%169 = load i32, ptr %21, align 4
%170 = load ptr, ptr %28, align 8
%171 = load i32, ptr %24, align 4
%172 = call i32 @PKCS5_PBKDF2_HMAC(ptr noundef %165, i32 noundef %166, ptr noundef %167, i32 noundef %168, i32 noundef %169, ptr noundef %170, i32 noundef %171, ptr noundef %33)
%173 = icmp ne i32 %172, 0
br i1 %173, label %175, label %174
174: ; preds = %144
br label %179
175: ; preds = %144
%176 = load ptr, ptr %9, align 8
%177 = load i32, ptr %15, align 4
%178 = call i32 @EVP_CipherInit_ex(ptr noundef %176, ptr noundef null, ptr noundef null, ptr noundef %33, ptr noundef null, i32 noundef %177)
store i32 %178, ptr %23, align 4
br label %179
179: ; preds = %175, %174, %140, %128, %119, %96
%180 = load i32, ptr %24, align 4
%181 = call i32 @OPENSSL_cleanse(ptr noundef %33, i32 noundef %180)
%182 = load ptr, ptr %27, align 8
%183 = call i32 @PBKDF2PARAM_free(ptr noundef %182)
%184 = load i32, ptr %23, align 4
store i32 %184, ptr %8, align 4
store i32 1, ptr %29, align 4
br label %185
185: ; preds = %179, %80, %60, %47, %37
%186 = load ptr, ptr %17, align 8
call void @llvm.stackrestore(ptr %186)
%187 = load i32, ptr %8, align 4
ret i32 %187
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare ptr @EVP_CIPHER_CTX_cipher(ptr noundef) #2
declare i32 @EVPerr(i32 noundef, i32 noundef) #2
declare i32 @EVP_CIPHER_CTX_key_length(ptr noundef) #2
declare ptr @d2i_PBKDF2PARAM(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @ASN1_INTEGER_get(i64 noundef) #2
declare i32 @OBJ_obj2nid(i32 noundef) #2
declare i32 @EVP_PBE_find(i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) #2
declare ptr @EVP_get_digestbynid(i32 noundef) #2
declare i32 @PKCS5_PBKDF2_HMAC(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) #2
declare i32 @EVP_CipherInit_ex(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @OPENSSL_cleanse(ptr noundef, i32 noundef) #2
declare i32 @PBKDF2PARAM_free(ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkq0yid66.c'
source_filename = "/tmp/tmpkq0yid66.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lcm(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = mul nsw i32 %5, %6
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %4, align 4
%10 = call i32 @gcd(i32 noundef %8, i32 noundef %9)
%11 = sdiv i32 %7, %10
ret i32 %11
}
declare i32 @gcd(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/tmpkq0yid66.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lcm(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = mul nsw i32 %5, %6
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %4, align 4
%10 = call i32 @gcd(i32 noundef %8, i32 noundef %9)
%11 = sdiv i32 %7, %10
ret i32 %11
}
declare i32 @gcd(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/tmpkcbclo67.c'
source_filename = "/tmp/tmpkcbclo67.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @utils_base64GetSize(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = udiv i64 %4, 3
%6 = mul i64 4, %5
store i64 %6, ptr %3, align 8
%7 = load i64, ptr %2, align 8
%8 = urem i64 %7, 3
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %1
%11 = load i64, ptr %3, align 8
%12 = add i64 %11, 4
store i64 %12, ptr %3, align 8
br label %13
13: ; preds = %10, %1
%14 = load i64, ptr %3, align 8
ret i64 %14
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkcbclo67.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @utils_base64GetSize(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = udiv i64 %4, 3
%6 = mul i64 4, %5
store i64 %6, ptr %3, align 8
%7 = load i64, ptr %2, align 8
%8 = urem i64 %7, 3
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %1
%11 = load i64, ptr %3, align 8
%12 = add i64 %11, 4
store i64 %12, ptr %3, align 8
br label %13
13: ; preds = %10, %1
%14 = load i64, ptr %3, align 8
ret i64 %14
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpp0v03bqq.c'
source_filename = "/tmp/tmpp0v03bqq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"%f %f %f %f %f %f\00", align 1
@.str.1 = private unnamed_addr constant [33 x i8] c"All the points are on same line.\00", align 1
@.str.2 = private unnamed_addr constant [37 x i8] c"All the points are not on same line.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
store i32 0, ptr %1, align 4
%9 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %5, ptr noundef %3, ptr noundef %6, ptr noundef %4, ptr noundef %7)
%10 = load float, ptr %2, align 4
%11 = load float, ptr %6, align 4
%12 = load float, ptr %7, align 4
%13 = fsub float %11, %12
%14 = load float, ptr %3, align 4
%15 = load float, ptr %7, align 4
%16 = load float, ptr %5, align 4
%17 = fsub float %15, %16
%18 = fmul float %14, %17
%19 = call float @llvm.fmuladd.f32(float %10, float %13, float %18)
%20 = load float, ptr %4, align 4
%21 = load float, ptr %5, align 4
%22 = load float, ptr %6, align 4
%23 = fsub float %21, %22
%24 = call float @llvm.fmuladd.f32(float %20, float %23, float %19)
%25 = fdiv float %24, 2.000000e+00
store float %25, ptr %8, align 4
%26 = load float, ptr %8, align 4
%27 = fcmp oeq float %26, 0.000000e+00
br i1 %27, label %28, label %30
28: ; preds = %0
%29 = call i32 @printf(ptr noundef @.str.1)
br label %32
30: ; preds = %0
%31 = call i32 @printf(ptr noundef @.str.2)
br label %32
32: ; preds = %30, %28
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp0v03bqq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"%f %f %f %f %f %f\00", align 1
@.str.1 = private unnamed_addr constant [33 x i8] c"All the points are on same line.\00", align 1
@.str.2 = private unnamed_addr constant [37 x i8] c"All the points are not on same line.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
store i32 0, ptr %1, align 4
%9 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %5, ptr noundef %3, ptr noundef %6, ptr noundef %4, ptr noundef %7)
%10 = load float, ptr %2, align 4
%11 = load float, ptr %6, align 4
%12 = load float, ptr %7, align 4
%13 = fsub float %11, %12
%14 = load float, ptr %3, align 4
%15 = load float, ptr %7, align 4
%16 = load float, ptr %5, align 4
%17 = fsub float %15, %16
%18 = fmul float %14, %17
%19 = call float @llvm.fmuladd.f32(float %10, float %13, float %18)
%20 = load float, ptr %4, align 4
%21 = load float, ptr %5, align 4
%22 = load float, ptr %6, align 4
%23 = fsub float %21, %22
%24 = call float @llvm.fmuladd.f32(float %20, float %23, float %19)
%25 = fdiv float %24, 2.000000e+00
store float %25, ptr %8, align 4
%26 = load float, ptr %8, align 4
%27 = fcmp oeq float %26, 0.000000e+00
br i1 %27, label %28, label %30
28: ; preds = %0
%29 = call i32 @printf(ptr noundef @.str.1)
br label %32
30: ; preds = %0
%31 = call i32 @printf(ptr noundef @.str.2)
br label %32
32: ; preds = %30, %28
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbdau4rw9.c'
source_filename = "/tmp/tmpbdau4rw9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"2\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"1\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 @time(ptr noundef null)
%5 = call i32 @srand(i32 noundef %4)
%6 = call i32 (...) @rand()
store i32 %6, ptr %2, align 4
%7 = call i32 (...) @rand()
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %16
10: ; preds = %0
%11 = call i32 @printf(ptr noundef @.str)
%12 = load i32, ptr %3, align 4
%13 = icmp eq i32 %12, 2
br i1 %13, label %14, label %15
14: ; preds = %10
br label %22
15: ; preds = %10
br label %25
16: ; preds = %0
%17 = load i32, ptr %3, align 4
%18 = add nsw i32 %17, -1
store i32 %18, ptr %3, align 4
%19 = load i32, ptr %3, align 4
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %16
br label %22
22: ; preds = %21, %14
%23 = call i32 @printf(ptr noundef @.str.1)
br label %24
24: ; preds = %22, %16
br label %25
25: ; preds = %24, %15
ret i32 0
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @rand(...) #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/tmpbdau4rw9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"2\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"1\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 @time(ptr noundef null)
%5 = call i32 @srand(i32 noundef %4)
%6 = call i32 (...) @rand()
store i32 %6, ptr %2, align 4
%7 = call i32 (...) @rand()
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %16
10: ; preds = %0
%11 = call i32 @printf(ptr noundef @.str)
%12 = load i32, ptr %3, align 4
%13 = icmp eq i32 %12, 2
br i1 %13, label %14, label %15
14: ; preds = %10
br label %22
15: ; preds = %10
br label %25
16: ; preds = %0
%17 = load i32, ptr %3, align 4
%18 = add nsw i32 %17, -1
store i32 %18, ptr %3, align 4
%19 = load i32, ptr %3, align 4
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %16
br label %22
22: ; preds = %21, %14
%23 = call i32 @printf(ptr noundef @.str.1)
br label %24
24: ; preds = %22, %16
br label %25
25: ; preds = %24, %15
ret i32 0
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @rand(...) #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/tmplciidnpg.c'
source_filename = "/tmp/tmplciidnpg.c"
target datalayout = "e-m:e-p270: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/tmplciidnpg.c"
target datalayout = "e-m:e-p270: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/tmpuiilkmr_.c'
source_filename = "/tmp/tmpuiilkmr_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @compute_sqrts(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = sext i32 %7 to i64
%9 = mul i64 %8, 4
%10 = trunc i64 %9 to i32
%11 = call i64 @malloc(i32 noundef %10)
%12 = inttoptr i64 %11 to ptr
store ptr %12, ptr %6, align 8
store i32 0, ptr %5, align 4
br label %13
13: ; preds = %28, %2
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %31
17: ; preds = %13
%18 = load ptr, ptr %3, align 8
%19 = load i32, ptr %5, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds float, ptr %18, i64 %20
%22 = load float, ptr %21, align 4
%23 = call float @sqrt(float noundef %22)
%24 = load ptr, ptr %6, align 8
%25 = load i32, ptr %5, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds float, ptr %24, i64 %26
store float %23, ptr %27, align 4
br label %28
28: ; preds = %17
%29 = load i32, ptr %5, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %5, align 4
br label %13, !llvm.loop !6
31: ; preds = %13
%32 = load ptr, ptr %6, align 8
ret ptr %32
}
declare i64 @malloc(i32 noundef) #1
declare float @sqrt(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuiilkmr_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @compute_sqrts(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = sext i32 %7 to i64
%9 = mul i64 %8, 4
%10 = trunc i64 %9 to i32
%11 = call i64 @malloc(i32 noundef %10)
%12 = inttoptr i64 %11 to ptr
store ptr %12, ptr %6, align 8
store i32 0, ptr %5, align 4
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph, label %33
.lr.ph: ; preds = %2
br label %16
16: ; preds = %.lr.ph, %27
%17 = load ptr, ptr %3, align 8
%18 = load i32, ptr %5, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds float, ptr %17, i64 %19
%21 = load float, ptr %20, align 4
%22 = call float @sqrt(float noundef %21)
%23 = load ptr, ptr %6, align 8
%24 = load i32, ptr %5, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds float, ptr %23, i64 %25
store float %22, ptr %26, align 4
br label %27
27: ; preds = %16
%28 = load i32, ptr %5, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %5, align 4
%30 = load i32, ptr %5, align 4
%31 = load i32, ptr %4, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %33
33: ; preds = %._crit_edge, %2
%34 = load ptr, ptr %6, align 8
ret ptr %34
}
declare i64 @malloc(i32 noundef) #1
declare float @sqrt(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmps2g5hxc4.c'
source_filename = "/tmp/tmps2g5hxc4.c"
target datalayout = "e-m:e-p270: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.tms = type { i64, i64 }
@.str = private unnamed_addr constant [18 x i8] c"usage: p8a n1 n2\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [9 x i8] c"%i - %i\0A\00", align 1
@_SC_CLK_TCK = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [17 x i8] c"Real-time: %f s\0A\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"CPU-time (user): %f s\0A\00", align 1
@.str.4 = private unnamed_addr constant [23 x i8] c"CPU-time (proc): %f s\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca %struct.tms, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%13 = load i32, ptr %4, align 4
%14 = icmp ne i32 %13, 3
br i1 %14, label %15, label %18
15: ; preds = %2
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%17 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %17, ptr %3, align 4
br label %68
18: ; preds = %2
%19 = call i64 @time(ptr noundef null)
%20 = trunc i64 %19 to i32
%21 = call i32 @srand(i32 noundef %20)
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call i32 @atoi(ptr noundef %24)
store i32 %25, ptr %6, align 4
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 2
%28 = load ptr, ptr %27, align 8
%29 = call i32 @atoi(ptr noundef %28)
store i32 %29, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %30
30: ; preds = %18, %42
%31 = call i32 (...) @rand()
%32 = load i32, ptr %6, align 4
%33 = srem i32 %31, %32
store i32 %33, ptr %9, align 4
%34 = load i32, ptr %8, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %8, align 4
%36 = load i32, ptr %9, align 4
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %34, i32 noundef %36)
%38 = load i32, ptr %9, align 4
%39 = load i32, ptr %7, align 4
%40 = icmp eq i32 %38, %39
br i1 %40, label %41, label %42
41: ; preds = %30
br label %43
42: ; preds = %30
br label %30
43: ; preds = %41
%44 = call i64 @times(ptr noundef %10)
store i64 %44, ptr %11, align 8
%45 = load i32, ptr @_SC_CLK_TCK, align 4
%46 = call i64 @sysconf(i32 noundef %45)
store i64 %46, ptr %12, align 8
%47 = load i64, ptr %11, align 8
%48 = sitofp i64 %47 to double
%49 = load i64, ptr %12, align 8
%50 = sitofp i64 %49 to double
%51 = fdiv double %48, %50
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %51)
%53 = getelementptr inbounds %struct.tms, ptr %10, i32 0, i32 1
%54 = load i64, ptr %53, align 8
%55 = sitofp i64 %54 to double
%56 = load i64, ptr %12, align 8
%57 = sitofp i64 %56 to double
%58 = fdiv double %55, %57
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %58)
%60 = getelementptr inbounds %struct.tms, ptr %10, i32 0, i32 0
%61 = load i64, ptr %60, align 8
%62 = sitofp i64 %61 to double
%63 = load i64, ptr %12, align 8
%64 = sitofp i64 %63 to double
%65 = fdiv double %62, %64
%66 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %65)
%67 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %67, ptr %3, align 4
br label %68
68: ; preds = %43, %15
%69 = load i32, ptr %3, align 4
ret i32 %69
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @srand(i32 noundef) #1
declare i64 @time(ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @rand(...) #1
declare i64 @times(ptr noundef) #1
declare i64 @sysconf(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/tmps2g5hxc4.c"
target datalayout = "e-m:e-p270: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.tms = type { i64, i64 }
@.str = private unnamed_addr constant [18 x i8] c"usage: p8a n1 n2\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [9 x i8] c"%i - %i\0A\00", align 1
@_SC_CLK_TCK = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [17 x i8] c"Real-time: %f s\0A\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"CPU-time (user): %f s\0A\00", align 1
@.str.4 = private unnamed_addr constant [23 x i8] c"CPU-time (proc): %f s\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca %struct.tms, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%13 = load i32, ptr %4, align 4
%14 = icmp ne i32 %13, 3
br i1 %14, label %15, label %18
15: ; preds = %2
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%17 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %17, ptr %3, align 4
br label %67
18: ; preds = %2
%19 = call i64 @time(ptr noundef null)
%20 = trunc i64 %19 to i32
%21 = call i32 @srand(i32 noundef %20)
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call i32 @atoi(ptr noundef %24)
store i32 %25, ptr %6, align 4
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 2
%28 = load ptr, ptr %27, align 8
%29 = call i32 @atoi(ptr noundef %28)
store i32 %29, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %30
30: ; preds = %30, %18
%31 = call i32 (...) @rand()
%32 = load i32, ptr %6, align 4
%33 = srem i32 %31, %32
store i32 %33, ptr %9, align 4
%34 = load i32, ptr %8, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %8, align 4
%36 = load i32, ptr %9, align 4
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %34, i32 noundef %36)
%38 = load i32, ptr %9, align 4
%39 = load i32, ptr %7, align 4
%40 = icmp eq i32 %38, %39
br i1 %40, label %41, label %30
41: ; preds = %30
br label %42
42: ; preds = %41
%43 = call i64 @times(ptr noundef %10)
store i64 %43, ptr %11, align 8
%44 = load i32, ptr @_SC_CLK_TCK, align 4
%45 = call i64 @sysconf(i32 noundef %44)
store i64 %45, ptr %12, align 8
%46 = load i64, ptr %11, align 8
%47 = sitofp i64 %46 to double
%48 = load i64, ptr %12, align 8
%49 = sitofp i64 %48 to double
%50 = fdiv double %47, %49
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %50)
%52 = getelementptr inbounds %struct.tms, ptr %10, i32 0, i32 1
%53 = load i64, ptr %52, align 8
%54 = sitofp i64 %53 to double
%55 = load i64, ptr %12, align 8
%56 = sitofp i64 %55 to double
%57 = fdiv double %54, %56
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %57)
%59 = getelementptr inbounds %struct.tms, ptr %10, i32 0, i32 0
%60 = load i64, ptr %59, align 8
%61 = sitofp i64 %60 to double
%62 = load i64, ptr %12, align 8
%63 = sitofp i64 %62 to double
%64 = fdiv double %61, %63
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %64)
%66 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %66, ptr %3, align 4
br label %67
67: ; preds = %42, %15
%68 = load i32, ptr %3, align 4
ret i32 %68
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @srand(i32 noundef) #1
declare i64 @time(ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @rand(...) #1
declare i64 @times(ptr noundef) #1
declare i64 @sysconf(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/tmpvx127igx.c'
source_filename = "/tmp/tmpvx127igx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"no previous break level\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @xlbrklevel() #0 {
%1 = call i32 @findandjump(i32 noundef 128, ptr noundef @.str)
ret void
}
declare i32 @findandjump(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/tmpvx127igx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"no previous break level\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @xlbrklevel() #0 {
%1 = call i32 @findandjump(i32 noundef 128, ptr noundef @.str)
ret void
}
declare i32 @findandjump(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/tmp4q1anrzq.c'
source_filename = "/tmp/tmp4q1anrzq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c".cue\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c".bin\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"FILE \22%s\22 BINARY\0A\00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"TRACK 1 MODE1/2352\0A\00", align 1
@.str.5 = private unnamed_addr constant [18 x i8] c"INDEX 1 00:00:00\0A\00", align 1
@.str.6 = private unnamed_addr constant [45 x i8] c"\0ASorry, I don't create %s,\0Abecause is in use\00", align 1
@.str.7 = private unnamed_addr constant [23 x i8] c" or this file exists\0A\0A\00", align 1
@.str.8 = private unnamed_addr constant [23 x i8] c"Create Bin : %s\0A\00", align 1
@.str.9 = private unnamed_addr constant [23 x i8] c"Create Cuesheets : %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cuesheets(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [1024 x i8], align 16
%4 = alloca [1024 x i8], align 16
%5 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%6 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%7 = load ptr, ptr %2, align 8
%8 = call i32 @strcpy(ptr noundef %6, ptr noundef %7)
%9 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%10 = load ptr, ptr %2, align 8
%11 = call i32 @strcpy(ptr noundef %9, ptr noundef %10)
%12 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%13 = load ptr, ptr %2, align 8
%14 = call i32 @strlen(ptr noundef %13)
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %12, i64 %15
%17 = getelementptr inbounds i8, ptr %16, i64 -4
%18 = call i32 @strcpy(ptr noundef %17, ptr noundef @.str)
%19 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%20 = load ptr, ptr %2, align 8
%21 = call i32 @strlen(ptr noundef %20)
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %19, i64 %22
%24 = getelementptr inbounds i8, ptr %23, i64 -4
%25 = call i32 @strcpy(ptr noundef %24, ptr noundef @.str.1)
%26 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%27 = call ptr @fopen(ptr noundef %26, ptr noundef @.str.2)
store ptr %27, ptr %5, align 8
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%30 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef @.str.3, ptr noundef %29)
%31 = load ptr, ptr %5, align 8
%32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef @.str.4)
%33 = load ptr, ptr %5, align 8
%34 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef @.str.5)
%35 = load ptr, ptr %2, align 8
%36 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%37 = call i32 @rename(ptr noundef %35, ptr noundef %36)
%38 = icmp ne i32 %37, 0
%39 = xor i1 %38, true
%40 = zext i1 %39 to i32
%41 = icmp eq i32 %40, 0
br i1 %41, label %42, label %46
42: ; preds = %1
%43 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %43)
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %49
46: ; preds = %1
%47 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %47)
br label %49
49: ; preds = %46, %42
%50 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %50)
%52 = load ptr, ptr %5, align 8
%53 = call i32 @fclose(ptr noundef %52)
ret void
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
declare i32 @rename(ptr noundef, ptr noundef) #1
declare i32 @printf(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/tmp4q1anrzq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c".cue\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c".bin\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"FILE \22%s\22 BINARY\0A\00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"TRACK 1 MODE1/2352\0A\00", align 1
@.str.5 = private unnamed_addr constant [18 x i8] c"INDEX 1 00:00:00\0A\00", align 1
@.str.6 = private unnamed_addr constant [45 x i8] c"\0ASorry, I don't create %s,\0Abecause is in use\00", align 1
@.str.7 = private unnamed_addr constant [23 x i8] c" or this file exists\0A\0A\00", align 1
@.str.8 = private unnamed_addr constant [23 x i8] c"Create Bin : %s\0A\00", align 1
@.str.9 = private unnamed_addr constant [23 x i8] c"Create Cuesheets : %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cuesheets(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [1024 x i8], align 16
%4 = alloca [1024 x i8], align 16
%5 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%6 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%7 = load ptr, ptr %2, align 8
%8 = call i32 @strcpy(ptr noundef %6, ptr noundef %7)
%9 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%10 = load ptr, ptr %2, align 8
%11 = call i32 @strcpy(ptr noundef %9, ptr noundef %10)
%12 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%13 = load ptr, ptr %2, align 8
%14 = call i32 @strlen(ptr noundef %13)
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %12, i64 %15
%17 = getelementptr inbounds i8, ptr %16, i64 -4
%18 = call i32 @strcpy(ptr noundef %17, ptr noundef @.str)
%19 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%20 = load ptr, ptr %2, align 8
%21 = call i32 @strlen(ptr noundef %20)
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %19, i64 %22
%24 = getelementptr inbounds i8, ptr %23, i64 -4
%25 = call i32 @strcpy(ptr noundef %24, ptr noundef @.str.1)
%26 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%27 = call ptr @fopen(ptr noundef %26, ptr noundef @.str.2)
store ptr %27, ptr %5, align 8
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%30 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef @.str.3, ptr noundef %29)
%31 = load ptr, ptr %5, align 8
%32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef @.str.4)
%33 = load ptr, ptr %5, align 8
%34 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef @.str.5)
%35 = load ptr, ptr %2, align 8
%36 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%37 = call i32 @rename(ptr noundef %35, ptr noundef %36)
%38 = icmp ne i32 %37, 0
%39 = xor i1 %38, true
%40 = zext i1 %39 to i32
%41 = icmp eq i32 %40, 0
br i1 %41, label %42, label %46
42: ; preds = %1
%43 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %43)
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %49
46: ; preds = %1
%47 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %47)
br label %49
49: ; preds = %46, %42
%50 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %50)
%52 = load ptr, ptr %5, align 8
%53 = call i32 @fclose(ptr noundef %52)
ret void
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
declare i32 @rename(ptr noundef, ptr noundef) #1
declare i32 @printf(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/tmpfdq3muzy.c'
source_filename = "/tmp/tmpfdq3muzy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@gds_write_width.count = internal global i16 0, align 2
@gds_write_width.token = internal global i16 0, align 2
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @gds_write_width(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
store i16 8, ptr @gds_write_width.count, align 2
%5 = call i32 @gds_swap2bytes(ptr noundef @gds_write_width.count)
%6 = load i32, ptr %3, align 4
%7 = call i32 (i32, ...) @write(i32 noundef %6, ptr noundef @gds_write_width.count, i32 noundef 2)
store i16 3843, ptr @gds_write_width.token, align 2
%8 = call i32 @gds_swap2bytes(ptr noundef @gds_write_width.token)
%9 = load i32, ptr %3, align 4
%10 = call i32 (i32, ...) @write(i32 noundef %9, ptr noundef @gds_write_width.token, i32 noundef 2)
%11 = call i32 @gds_swap4bytes(ptr noundef %4)
%12 = load i32, ptr %3, align 4
%13 = call i32 (i32, ...) @write(i32 noundef %12, ptr noundef %4, i32 noundef 4)
ret void
}
declare i32 @gds_swap2bytes(ptr noundef) #1
declare i32 @write(i32 noundef, ...) #1
declare i32 @gds_swap4bytes(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfdq3muzy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@gds_write_width.count = internal global i16 0, align 2
@gds_write_width.token = internal global i16 0, align 2
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @gds_write_width(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
store i16 8, ptr @gds_write_width.count, align 2
%5 = call i32 @gds_swap2bytes(ptr noundef @gds_write_width.count)
%6 = load i32, ptr %3, align 4
%7 = call i32 (i32, ...) @write(i32 noundef %6, ptr noundef @gds_write_width.count, i32 noundef 2)
store i16 3843, ptr @gds_write_width.token, align 2
%8 = call i32 @gds_swap2bytes(ptr noundef @gds_write_width.token)
%9 = load i32, ptr %3, align 4
%10 = call i32 (i32, ...) @write(i32 noundef %9, ptr noundef @gds_write_width.token, i32 noundef 2)
%11 = call i32 @gds_swap4bytes(ptr noundef %4)
%12 = load i32, ptr %3, align 4
%13 = call i32 (i32, ...) @write(i32 noundef %12, ptr noundef %4, i32 noundef 4)
ret void
}
declare i32 @gds_swap2bytes(ptr noundef) #1
declare i32 @write(i32 noundef, ...) #1
declare i32 @gds_swap4bytes(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3v4fqcz8.c'
source_filename = "/tmp/tmp3v4fqcz8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c" \00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%10d\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c" %3d\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"%+10.2e\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printmat2(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%11 = load i32, ptr %3, align 4
%12 = zext i32 %11 to i64
store i32 16, ptr %5, align 4
%13 = load i32, ptr %3, align 4
%14 = sdiv i32 %13, 16
store i32 %14, ptr %9, align 4
%15 = load i32, ptr %3, align 4
%16 = srem i32 %15, 16
store i32 %16, ptr %10, align 4
store i32 0, ptr %6, align 4
br label %17
17: ; preds = %71, %2
%18 = load i32, ptr %6, align 4
%19 = load i32, ptr %9, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %21, label %74
21: ; preds = %17
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %8, align 4
br label %23
23: ; preds = %32, %21
%24 = load i32, ptr %8, align 4
%25 = icmp slt i32 %24, 16
br i1 %25, label %26, label %35
26: ; preds = %23
%27 = load i32, ptr %8, align 4
%28 = load i32, ptr %6, align 4
%29 = mul nsw i32 %28, 16
%30 = add nsw i32 %27, %29
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %30)
br label %32
32: ; preds = %26
%33 = load i32, ptr %8, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %8, align 4
br label %23, !llvm.loop !6
35: ; preds = %23
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %7, align 4
br label %37
37: ; preds = %66, %35
%38 = load i32, ptr %7, align 4
%39 = load i32, ptr %3, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %41, label %69
41: ; preds = %37
%42 = load i32, ptr %7, align 4
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %42)
store i32 0, ptr %8, align 4
br label %44
44: ; preds = %61, %41
%45 = load i32, ptr %8, align 4
%46 = icmp slt i32 %45, 16
br i1 %46, label %47, label %64
47: ; preds = %44
%48 = load ptr, ptr %4, align 8
%49 = load i32, ptr %7, align 4
%50 = sext i32 %49 to i64
%51 = mul nsw i64 %50, %12
%52 = getelementptr inbounds double, ptr %48, i64 %51
%53 = load i32, ptr %8, align 4
%54 = load i32, ptr %6, align 4
%55 = mul nsw i32 %54, 16
%56 = add nsw i32 %53, %55
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds double, ptr %52, i64 %57
%59 = load double, ptr %58, align 8
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %59)
br label %61
61: ; preds = %47
%62 = load i32, ptr %8, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %8, align 4
br label %44, !llvm.loop !8
64: ; preds = %44
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %66
66: ; preds = %64
%67 = load i32, ptr %7, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %7, align 4
br label %37, !llvm.loop !9
69: ; preds = %37
%70 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %71
71: ; preds = %69
%72 = load i32, ptr %6, align 4
%73 = add nsw i32 %72, 1
store i32 %73, ptr %6, align 4
br label %17, !llvm.loop !10
74: ; preds = %17
%75 = load i32, ptr %10, align 4
%76 = icmp sgt i32 %75, 0
br i1 %76, label %77, label %128
77: ; preds = %74
%78 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %8, align 4
br label %79
79: ; preds = %89, %77
%80 = load i32, ptr %8, align 4
%81 = load i32, ptr %10, align 4
%82 = icmp slt i32 %80, %81
br i1 %82, label %83, label %92
83: ; preds = %79
%84 = load i32, ptr %8, align 4
%85 = load i32, ptr %9, align 4
%86 = mul nsw i32 %85, 16
%87 = add nsw i32 %84, %86
%88 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %87)
br label %89
89: ; preds = %83
%90 = load i32, ptr %8, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %8, align 4
br label %79, !llvm.loop !11
92: ; preds = %79
%93 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %7, align 4
br label %94
94: ; preds = %124, %92
%95 = load i32, ptr %7, align 4
%96 = load i32, ptr %3, align 4
%97 = icmp slt i32 %95, %96
br i1 %97, label %98, label %127
98: ; preds = %94
%99 = load i32, ptr %7, align 4
%100 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %99)
store i32 0, ptr %8, align 4
br label %101
101: ; preds = %119, %98
%102 = load i32, ptr %8, align 4
%103 = load i32, ptr %10, align 4
%104 = icmp slt i32 %102, %103
br i1 %104, label %105, label %122
105: ; preds = %101
%106 = load ptr, ptr %4, align 8
%107 = load i32, ptr %7, align 4
%108 = sext i32 %107 to i64
%109 = mul nsw i64 %108, %12
%110 = getelementptr inbounds double, ptr %106, i64 %109
%111 = load i32, ptr %8, align 4
%112 = load i32, ptr %9, align 4
%113 = mul nsw i32 %112, 16
%114 = add nsw i32 %111, %113
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds double, ptr %110, i64 %115
%117 = load double, ptr %116, align 8
%118 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %117)
br label %119
119: ; preds = %105
%120 = load i32, ptr %8, align 4
%121 = add nsw i32 %120, 1
store i32 %121, ptr %8, align 4
br label %101, !llvm.loop !12
122: ; preds = %101
%123 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %124
124: ; preds = %122
%125 = load i32, ptr %7, align 4
%126 = add nsw i32 %125, 1
store i32 %126, ptr %7, align 4
br label %94, !llvm.loop !13
127: ; preds = %94
br label %128
128: ; preds = %127, %74
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3v4fqcz8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c" \00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%10d\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c" %3d\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"%+10.2e\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printmat2(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%11 = load i32, ptr %3, align 4
%12 = zext i32 %11 to i64
store i32 16, ptr %5, align 4
%13 = load i32, ptr %3, align 4
%14 = sdiv i32 %13, 16
store i32 %14, ptr %9, align 4
%15 = load i32, ptr %3, align 4
%16 = srem i32 %15, 16
store i32 %16, ptr %10, align 4
store i32 0, ptr %6, align 4
%17 = load i32, ptr %6, align 4
%18 = load i32, ptr %9, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %.lr.ph8, label %80
.lr.ph8: ; preds = %2
br label %20
20: ; preds = %.lr.ph8, %74
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %8, align 4
%22 = load i32, ptr %8, align 4
%23 = icmp slt i32 %22, 16
br i1 %23, label %.lr.ph, label %35
.lr.ph: ; preds = %20
br label %24
24: ; preds = %.lr.ph, %30
%25 = load i32, ptr %8, align 4
%26 = load i32, ptr %6, align 4
%27 = mul nsw i32 %26, 16
%28 = add nsw i32 %25, %27
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %28)
br label %30
30: ; preds = %24
%31 = load i32, ptr %8, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %8, align 4
%33 = load i32, ptr %8, align 4
%34 = icmp slt i32 %33, 16
br i1 %34, label %24, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %35
35: ; preds = %._crit_edge, %20
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %7, align 4
%37 = load i32, ptr %7, align 4
%38 = load i32, ptr %3, align 4
%39 = icmp slt i32 %37, %38
br i1 %39, label %.lr.ph5, label %72
.lr.ph5: ; preds = %35
br label %40
40: ; preds = %.lr.ph5, %66
%41 = load i32, ptr %7, align 4
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %41)
store i32 0, ptr %8, align 4
%43 = load i32, ptr %8, align 4
%44 = icmp slt i32 %43, 16
br i1 %44, label %.lr.ph2, label %64
.lr.ph2: ; preds = %40
br label %45
45: ; preds = %.lr.ph2, %59
%46 = load ptr, ptr %4, align 8
%47 = load i32, ptr %7, align 4
%48 = sext i32 %47 to i64
%49 = mul nsw i64 %48, %12
%50 = getelementptr inbounds double, ptr %46, i64 %49
%51 = load i32, ptr %8, align 4
%52 = load i32, ptr %6, align 4
%53 = mul nsw i32 %52, 16
%54 = add nsw i32 %51, %53
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds double, ptr %50, i64 %55
%57 = load double, ptr %56, align 8
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %57)
br label %59
59: ; preds = %45
%60 = load i32, ptr %8, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %8, align 4
%62 = load i32, ptr %8, align 4
%63 = icmp slt i32 %62, 16
br i1 %63, label %45, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %59
br label %64
64: ; preds = %._crit_edge3, %40
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %66
66: ; preds = %64
%67 = load i32, ptr %7, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %7, align 4
%69 = load i32, ptr %7, align 4
%70 = load i32, ptr %3, align 4
%71 = icmp slt i32 %69, %70
br i1 %71, label %40, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %66
br label %72
72: ; preds = %._crit_edge6, %35
%73 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %74
74: ; preds = %72
%75 = load i32, ptr %6, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %6, align 4
%77 = load i32, ptr %6, align 4
%78 = load i32, ptr %9, align 4
%79 = icmp slt i32 %77, %78
br i1 %79, label %20, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %74
br label %80
80: ; preds = %._crit_edge9, %2
%81 = load i32, ptr %10, align 4
%82 = icmp sgt i32 %81, 0
br i1 %82, label %83, label %140
83: ; preds = %80
%84 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %8, align 4
%85 = load i32, ptr %8, align 4
%86 = load i32, ptr %10, align 4
%87 = icmp slt i32 %85, %86
br i1 %87, label %.lr.ph11, label %100
.lr.ph11: ; preds = %83
br label %88
88: ; preds = %.lr.ph11, %94
%89 = load i32, ptr %8, align 4
%90 = load i32, ptr %9, align 4
%91 = mul nsw i32 %90, 16
%92 = add nsw i32 %89, %91
%93 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %92)
br label %94
94: ; preds = %88
%95 = load i32, ptr %8, align 4
%96 = add nsw i32 %95, 1
store i32 %96, ptr %8, align 4
%97 = load i32, ptr %8, align 4
%98 = load i32, ptr %10, align 4
%99 = icmp slt i32 %97, %98
br i1 %99, label %88, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %94
br label %100
100: ; preds = %._crit_edge12, %83
%101 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %7, align 4
%102 = load i32, ptr %7, align 4
%103 = load i32, ptr %3, align 4
%104 = icmp slt i32 %102, %103
br i1 %104, label %.lr.ph17, label %139
.lr.ph17: ; preds = %100
br label %105
105: ; preds = %.lr.ph17, %133
%106 = load i32, ptr %7, align 4
%107 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %106)
store i32 0, ptr %8, align 4
%108 = load i32, ptr %8, align 4
%109 = load i32, ptr %10, align 4
%110 = icmp slt i32 %108, %109
br i1 %110, label %.lr.ph14, label %131
.lr.ph14: ; preds = %105
br label %111
111: ; preds = %.lr.ph14, %125
%112 = load ptr, ptr %4, align 8
%113 = load i32, ptr %7, align 4
%114 = sext i32 %113 to i64
%115 = mul nsw i64 %114, %12
%116 = getelementptr inbounds double, ptr %112, i64 %115
%117 = load i32, ptr %8, align 4
%118 = load i32, ptr %9, align 4
%119 = mul nsw i32 %118, 16
%120 = add nsw i32 %117, %119
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds double, ptr %116, i64 %121
%123 = load double, ptr %122, align 8
%124 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %123)
br label %125
125: ; preds = %111
%126 = load i32, ptr %8, align 4
%127 = add nsw i32 %126, 1
store i32 %127, ptr %8, align 4
%128 = load i32, ptr %8, align 4
%129 = load i32, ptr %10, align 4
%130 = icmp slt i32 %128, %129
br i1 %130, label %111, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %125
br label %131
131: ; preds = %._crit_edge15, %105
%132 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %133
133: ; preds = %131
%134 = load i32, ptr %7, align 4
%135 = add nsw i32 %134, 1
store i32 %135, ptr %7, align 4
%136 = load i32, ptr %7, align 4
%137 = load i32, ptr %3, align 4
%138 = icmp slt i32 %136, %137
br i1 %138, label %105, label %._crit_edge18, !llvm.loop !13
._crit_edge18: ; preds = %133
br label %139
139: ; preds = %._crit_edge18, %100
br label %140
140: ; preds = %139, %80
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
|
; ModuleID = '/tmp/tmp7_fb9_3_.c'
source_filename = "/tmp/tmp7_fb9_3_.c"
target datalayout = "e-m:e-p270: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/tmp7_fb9_3_.c"
target datalayout = "e-m:e-p270: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/tmpnjuahx3b.c'
source_filename = "/tmp/tmpnjuahx3b.c"
target datalayout = "e-m:e-p270: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/tmpnjuahx3b.c"
target datalayout = "e-m:e-p270: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/tmpu5wladc5.c'
source_filename = "/tmp/tmpu5wladc5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 i16 @back_get_system_uid() #0 {
%1 = alloca [4 x i32], align 16
%2 = alloca i16, align 2
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
call void @llvm.memset.p0.i64(ptr align 16 %1, i8 0, i64 16, i1 false)
%5 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 0
%6 = call i32 @getCpuid(ptr noundef %5, i32 noundef 0)
store i16 0, ptr %2, align 2
%7 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 0
store ptr %7, ptr %3, align 8
store i32 0, ptr %4, align 4
br label %8
8: ; preds = %29, %0
%9 = load i32, ptr %4, align 4
%10 = icmp ult i32 %9, 4
br i1 %10, label %11, label %32
11: ; preds = %8
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %4, align 4
%14 = zext i32 %13 to i64
%15 = getelementptr inbounds i32, ptr %12, i64 %14
%16 = load i32, ptr %15, align 4
%17 = and i32 %16, 65535
%18 = load ptr, ptr %3, align 8
%19 = load i32, ptr %4, align 4
%20 = zext i32 %19 to i64
%21 = getelementptr inbounds i32, ptr %18, i64 %20
%22 = load i32, ptr %21, align 4
%23 = lshr i32 %22, 16
%24 = add i32 %17, %23
%25 = load i16, ptr %2, align 2
%26 = zext i16 %25 to i32
%27 = add i32 %26, %24
%28 = trunc i32 %27 to i16
store i16 %28, ptr %2, align 2
br label %29
29: ; preds = %11
%30 = load i32, ptr %4, align 4
%31 = add i32 %30, 1
store i32 %31, ptr %4, align 4
br label %8, !llvm.loop !6
32: ; preds = %8
%33 = load i16, ptr %2, align 2
ret i16 %33
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @getCpuid(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: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu5wladc5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 i16 @back_get_system_uid() #0 {
%1 = alloca [4 x i32], align 16
%2 = alloca i16, align 2
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
call void @llvm.memset.p0.i64(ptr align 16 %1, i8 0, i64 16, i1 false)
%5 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 0
%6 = call i32 @getCpuid(ptr noundef %5, i32 noundef 0)
store i16 0, ptr %2, align 2
%7 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 0
store ptr %7, ptr %3, align 8
store i32 0, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp ult i32 %8, 4
br i1 %9, label %.lr.ph, label %33
.lr.ph: ; preds = %0
br label %10
10: ; preds = %.lr.ph, %28
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %4, align 4
%13 = zext i32 %12 to i64
%14 = getelementptr inbounds i32, ptr %11, i64 %13
%15 = load i32, ptr %14, align 4
%16 = and i32 %15, 65535
%17 = load ptr, ptr %3, align 8
%18 = load i32, ptr %4, align 4
%19 = zext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %17, i64 %19
%21 = load i32, ptr %20, align 4
%22 = lshr i32 %21, 16
%23 = add i32 %16, %22
%24 = load i16, ptr %2, align 2
%25 = zext i16 %24 to i32
%26 = add i32 %25, %23
%27 = trunc i32 %26 to i16
store i16 %27, ptr %2, align 2
br label %28
28: ; preds = %10
%29 = load i32, ptr %4, align 4
%30 = add i32 %29, 1
store i32 %30, ptr %4, align 4
%31 = load i32, ptr %4, align 4
%32 = icmp ult i32 %31, 4
br i1 %32, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %33
33: ; preds = %._crit_edge, %0
%34 = load i16, ptr %2, align 2
ret i16 %34
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @getCpuid(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: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpja3f__3s.c'
source_filename = "/tmp/tmpja3f__3s.c"
target datalayout = "e-m:e-p270: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/tmpja3f__3s.c"
target datalayout = "e-m:e-p270: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/tmpc_px7jho.c'
source_filename = "/tmp/tmpc_px7jho.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDONLY = dso_local global i32 0, align 4
@SIGTTIN = dso_local global i32 0, align 4
@SIGTTOU = dso_local global i32 0, align 4
@SIG_IGN = dso_local global i32 0, align 4
@TIOCSPGRP = 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/tmpc_px7jho.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDONLY = dso_local global i32 0, align 4
@SIGTTIN = dso_local global i32 0, align 4
@SIGTTOU = dso_local global i32 0, align 4
@SIG_IGN = dso_local global i32 0, align 4
@TIOCSPGRP = 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/tmp4qt35lk1.c'
source_filename = "/tmp/tmp4qt35lk1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"gdtrf\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @gdtrf(float noundef %0, float noundef %1, float noundef %2) #0 {
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
store float %0, ptr %5, align 4
store float %1, ptr %6, align 4
store float %2, ptr %7, align 4
%11 = load float, ptr %5, align 4
store float %11, ptr %8, align 4
%12 = load float, ptr %6, align 4
store float %12, ptr %9, align 4
%13 = load float, ptr %7, align 4
store float %13, ptr %10, align 4
%14 = load float, ptr %10, align 4
%15 = fpext float %14 to double
%16 = fcmp olt double %15, 0.000000e+00
br i1 %16, label %17, label %19
17: ; preds = %3
%18 = call i32 @mtherrf(ptr noundef @.str, i32 noundef 1)
store float 0.000000e+00, ptr %4, align 4
br label %25
19: ; preds = %3
%20 = load float, ptr %9, align 4
%21 = load float, ptr %8, align 4
%22 = load float, ptr %10, align 4
%23 = fmul float %21, %22
%24 = call float @igamf(float noundef %20, float noundef %23)
store float %24, ptr %4, align 4
br label %25
25: ; preds = %19, %17
%26 = load float, ptr %4, align 4
ret float %26
}
declare i32 @mtherrf(ptr noundef, i32 noundef) #1
declare float @igamf(float noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4qt35lk1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"gdtrf\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @gdtrf(float noundef %0, float noundef %1, float noundef %2) #0 {
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
store float %0, ptr %5, align 4
store float %1, ptr %6, align 4
store float %2, ptr %7, align 4
%11 = load float, ptr %5, align 4
store float %11, ptr %8, align 4
%12 = load float, ptr %6, align 4
store float %12, ptr %9, align 4
%13 = load float, ptr %7, align 4
store float %13, ptr %10, align 4
%14 = load float, ptr %10, align 4
%15 = fpext float %14 to double
%16 = fcmp olt double %15, 0.000000e+00
br i1 %16, label %17, label %19
17: ; preds = %3
%18 = call i32 @mtherrf(ptr noundef @.str, i32 noundef 1)
store float 0.000000e+00, ptr %4, align 4
br label %25
19: ; preds = %3
%20 = load float, ptr %9, align 4
%21 = load float, ptr %8, align 4
%22 = load float, ptr %10, align 4
%23 = fmul float %21, %22
%24 = call float @igamf(float noundef %20, float noundef %23)
store float %24, ptr %4, align 4
br label %25
25: ; preds = %19, %17
%26 = load float, ptr %4, align 4
ret float %26
}
declare i32 @mtherrf(ptr noundef, i32 noundef) #1
declare float @igamf(float noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsk6_k7jr.c'
source_filename = "/tmp/tmpsk6_k7jr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @f_min_int8_t(ptr noalias noundef %0, ptr noalias noundef %1, i64 noundef %2, ptr noalias noundef %3, i64 noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i64, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i64 %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store i64 %4, ptr %11, align 8
store i32 %5, ptr %12, align 4
store i32 0, ptr %13, align 4
br label %15
15: ; preds = %58, %6
%16 = load i32, ptr %13, align 4
%17 = load i32, ptr %12, align 4
%18 = icmp ult i32 %16, %17
br i1 %18, label %19, label %61
19: ; preds = %15
%20 = load ptr, ptr %10, align 8
%21 = load i32, ptr %13, align 4
%22 = zext i32 %21 to i64
%23 = getelementptr inbounds i64, ptr %20, i64 %22
%24 = load i64, ptr %23, align 8
%25 = load i64, ptr %11, align 8
%26 = icmp slt i64 %24, %25
br i1 %26, label %27, label %33
27: ; preds = %19
%28 = load ptr, ptr %10, align 8
%29 = load i32, ptr %13, align 4
%30 = zext i32 %29 to i64
%31 = getelementptr inbounds i64, ptr %28, i64 %30
%32 = load i64, ptr %31, align 8
br label %35
33: ; preds = %19
%34 = load i64, ptr %11, align 8
br label %35
35: ; preds = %33, %27
%36 = phi i64 [ %32, %27 ], [ %34, %33 ]
store i64 %36, ptr %14, align 8
%37 = load ptr, ptr %8, align 8
%38 = load i32, ptr %13, align 4
%39 = zext i32 %38 to i64
%40 = getelementptr inbounds i64, ptr %37, i64 %39
%41 = load i64, ptr %40, align 8
%42 = load i64, ptr %9, align 8
%43 = icmp slt i64 %41, %42
br i1 %43, label %44, label %46
44: ; preds = %35
%45 = load i64, ptr %14, align 8
br label %52
46: ; preds = %35
%47 = load ptr, ptr %10, align 8
%48 = load i32, ptr %13, align 4
%49 = zext i32 %48 to i64
%50 = getelementptr inbounds i64, ptr %47, i64 %49
%51 = load i64, ptr %50, align 8
br label %52
52: ; preds = %46, %44
%53 = phi i64 [ %45, %44 ], [ %51, %46 ]
%54 = load ptr, ptr %7, align 8
%55 = load i32, ptr %13, align 4
%56 = zext i32 %55 to i64
%57 = getelementptr inbounds i64, ptr %54, i64 %56
store i64 %53, ptr %57, align 8
br label %58
58: ; preds = %52
%59 = load i32, ptr %13, align 4
%60 = add i32 %59, 1
store i32 %60, ptr %13, align 4
br label %15, !llvm.loop !6
61: ; preds = %15
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsk6_k7jr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @f_min_int8_t(ptr noalias noundef %0, ptr noalias noundef %1, i64 noundef %2, ptr noalias noundef %3, i64 noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i64, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i64 %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store i64 %4, ptr %11, align 8
store i32 %5, ptr %12, align 4
store i32 0, ptr %13, align 4
%15 = load i32, ptr %13, align 4
%16 = load i32, ptr %12, align 4
%17 = icmp ult i32 %15, %16
br i1 %17, label %.lr.ph, label %63
.lr.ph: ; preds = %6
br label %18
18: ; preds = %.lr.ph, %57
%19 = load ptr, ptr %10, align 8
%20 = load i32, ptr %13, align 4
%21 = zext i32 %20 to i64
%22 = getelementptr inbounds i64, ptr %19, i64 %21
%23 = load i64, ptr %22, align 8
%24 = load i64, ptr %11, align 8
%25 = icmp slt i64 %23, %24
br i1 %25, label %26, label %32
26: ; preds = %18
%27 = load ptr, ptr %10, align 8
%28 = load i32, ptr %13, align 4
%29 = zext i32 %28 to i64
%30 = getelementptr inbounds i64, ptr %27, i64 %29
%31 = load i64, ptr %30, align 8
br label %34
32: ; preds = %18
%33 = load i64, ptr %11, align 8
br label %34
34: ; preds = %32, %26
%35 = phi i64 [ %31, %26 ], [ %33, %32 ]
store i64 %35, ptr %14, align 8
%36 = load ptr, ptr %8, align 8
%37 = load i32, ptr %13, align 4
%38 = zext i32 %37 to i64
%39 = getelementptr inbounds i64, ptr %36, i64 %38
%40 = load i64, ptr %39, align 8
%41 = load i64, ptr %9, align 8
%42 = icmp slt i64 %40, %41
br i1 %42, label %43, label %45
43: ; preds = %34
%44 = load i64, ptr %14, align 8
br label %51
45: ; preds = %34
%46 = load ptr, ptr %10, align 8
%47 = load i32, ptr %13, align 4
%48 = zext i32 %47 to i64
%49 = getelementptr inbounds i64, ptr %46, i64 %48
%50 = load i64, ptr %49, align 8
br label %51
51: ; preds = %45, %43
%52 = phi i64 [ %44, %43 ], [ %50, %45 ]
%53 = load ptr, ptr %7, align 8
%54 = load i32, ptr %13, align 4
%55 = zext i32 %54 to i64
%56 = getelementptr inbounds i64, ptr %53, i64 %55
store i64 %52, ptr %56, align 8
br label %57
57: ; preds = %51
%58 = load i32, ptr %13, align 4
%59 = add i32 %58, 1
store i32 %59, ptr %13, align 4
%60 = load i32, ptr %13, align 4
%61 = load i32, ptr %12, align 4
%62 = icmp ult i32 %60, %61
br i1 %62, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %57
br label %63
63: ; preds = %._crit_edge, %6
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmprp5dr42f.c'
source_filename = "/tmp/tmprp5dr42f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mutt_str_adjust(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp ne ptr %3, null
br i1 %4, label %5, label %9
5: ; preds = %1
%6 = load ptr, ptr %2, align 8
%7 = load ptr, ptr %6, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %10, label %9
9: ; preds = %5, %1
br label %17
10: ; preds = %5
%11 = load ptr, ptr %2, align 8
%12 = load ptr, ptr %2, align 8
%13 = load ptr, ptr %12, align 8
%14 = call i64 @strlen(ptr noundef %13)
%15 = add nsw i64 %14, 1
%16 = call i32 @safe_realloc(ptr noundef %11, i64 noundef %15)
br label %17
17: ; preds = %10, %9
ret void
}
declare i32 @safe_realloc(ptr noundef, i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprp5dr42f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mutt_str_adjust(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp ne ptr %3, null
br i1 %4, label %5, label %9
5: ; preds = %1
%6 = load ptr, ptr %2, align 8
%7 = load ptr, ptr %6, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %10, label %9
9: ; preds = %5, %1
br label %17
10: ; preds = %5
%11 = load ptr, ptr %2, align 8
%12 = load ptr, ptr %2, align 8
%13 = load ptr, ptr %12, align 8
%14 = call i64 @strlen(ptr noundef %13)
%15 = add nsw i64 %14, 1
%16 = call i32 @safe_realloc(ptr noundef %11, i64 noundef %15)
br label %17
17: ; preds = %10, %9
ret void
}
declare i32 @safe_realloc(ptr noundef, i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpna52xhly.c'
source_filename = "/tmp/tmpna52xhly.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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" F | C\0A\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"------------\0A\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c" %3.0f %6.1f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
store i32 300, ptr %5, align 4
store i32 20, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = sitofp i32 %7 to float
store float %8, ptr %2, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %11
11: ; preds = %16, %0
%12 = load float, ptr %2, align 4
%13 = load i32, ptr %5, align 4
%14 = sitofp i32 %13 to float
%15 = fcmp ole float %12, %14
br i1 %15, label %16, label %31
16: ; preds = %11
%17 = load float, ptr %2, align 4
%18 = fpext float %17 to double
%19 = fsub double %18, 3.200000e+01
%20 = fmul double 0x3FE1C71C71C71C72, %19
%21 = fptrunc double %20 to float
store float %21, ptr %3, align 4
%22 = load float, ptr %2, align 4
%23 = fpext float %22 to double
%24 = load float, ptr %3, align 4
%25 = fpext float %24 to double
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %23, double noundef %25)
%27 = load i32, ptr %6, align 4
%28 = sitofp i32 %27 to float
%29 = load float, ptr %2, align 4
%30 = fadd float %29, %28
store float %30, ptr %2, align 4
br label %11, !llvm.loop !6
31: ; preds = %11
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpna52xhly.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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" F | C\0A\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"------------\0A\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c" %3.0f %6.1f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
store i32 300, ptr %5, align 4
store i32 20, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = sitofp i32 %7 to float
store float %8, ptr %2, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%11 = load float, ptr %2, align 4
%12 = load i32, ptr %5, align 4
%13 = sitofp i32 %12 to float
%14 = fcmp ole float %11, %13
br i1 %14, label %.lr.ph, label %34
.lr.ph: ; preds = %0
br label %15
15: ; preds = %.lr.ph, %15
%16 = load float, ptr %2, align 4
%17 = fpext float %16 to double
%18 = fsub double %17, 3.200000e+01
%19 = fmul double 0x3FE1C71C71C71C72, %18
%20 = fptrunc double %19 to float
store float %20, ptr %3, align 4
%21 = load float, ptr %2, align 4
%22 = fpext float %21 to double
%23 = load float, ptr %3, align 4
%24 = fpext float %23 to double
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %22, double noundef %24)
%26 = load i32, ptr %6, align 4
%27 = sitofp i32 %26 to float
%28 = load float, ptr %2, align 4
%29 = fadd float %28, %27
store float %29, ptr %2, align 4
%30 = load float, ptr %2, align 4
%31 = load i32, ptr %5, align 4
%32 = sitofp i32 %31 to float
%33 = fcmp ole float %30, %32
br i1 %33, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %34
34: ; preds = %._crit_edge, %0
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"}
|
; ModuleID = '/tmp/tmpgi9phrdi.c'
source_filename = "/tmp/tmpgi9phrdi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [162 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/stdlib/isqrt.c\00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"Integer square root of 7713 should be 87\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_sqrt_7713() #0 {
%1 = call i32 @isqrt(i32 noundef 7713)
%2 = icmp eq i32 %1, 87
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 1435, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @isqrt(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/tmpgi9phrdi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [162 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/stdlib/isqrt.c\00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"Integer square root of 7713 should be 87\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_sqrt_7713() #0 {
%1 = call i32 @isqrt(i32 noundef 7713)
%2 = icmp eq i32 %1, 87
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 1435, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @isqrt(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/tmp3a7xul4b.c'
source_filename = "/tmp/tmp3a7xul4b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test() #0 {
%1 = call i32 (...) @hello()
ret void
}
declare i32 @hello(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3a7xul4b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test() #0 {
%1 = call i32 (...) @hello()
ret void
}
declare i32 @hello(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpeoss7gsh.c'
source_filename = "/tmp/tmpeoss7gsh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Enter the elemtes(10) of the array:\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [32 x i8] c"\0AEnter the element to search: \00", align 1
@.str.3 = private unnamed_addr constant [41 x i8] c"\0ASearch successfull\0Aelement\09index\0A%d\09%d\0A\00", align 1
@.str.4 = private unnamed_addr constant [53 x i8] c"Required element is not present in the input array.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [10 x i32], align 16
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %2, align 4
br label %6
6: ; preds = %14, %0
%7 = load i32, ptr %2, align 4
%8 = icmp slt i32 %7, 10
br i1 %8, label %9, label %17
9: ; preds = %6
%10 = load i32, ptr %2, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 %11
%13 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %12)
br label %14
14: ; preds = %9
%15 = load i32, ptr %2, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %2, align 4
br label %6, !llvm.loop !6
17: ; preds = %6
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%19 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %4)
%20 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 0
%21 = load i32, ptr %4, align 4
%22 = call i32 @linear_search(ptr noundef %20, i32 noundef %21)
store i32 %22, ptr %2, align 4
%23 = load i32, ptr %2, align 4
%24 = icmp ne i32 %23, -1
br i1 %24, label %25, label %29
25: ; preds = %17
%26 = load i32, ptr %4, align 4
%27 = load i32, ptr %2, align 4
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %26, i32 noundef %27)
br label %31
29: ; preds = %17
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %31
31: ; preds = %29, %25
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @linear_search(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/tmpeoss7gsh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Enter the elemtes(10) of the array:\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [32 x i8] c"\0AEnter the element to search: \00", align 1
@.str.3 = private unnamed_addr constant [41 x i8] c"\0ASearch successfull\0Aelement\09index\0A%d\09%d\0A\00", align 1
@.str.4 = private unnamed_addr constant [53 x i8] c"Required element is not present in the input array.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [10 x i32], align 16
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp slt i32 %6, 10
br i1 %7, label %.lr.ph, label %18
.lr.ph: ; preds = %0
br label %8
8: ; preds = %.lr.ph, %13
%9 = load i32, ptr %2, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 %10
%12 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %11)
br label %13
13: ; preds = %8
%14 = load i32, ptr %2, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %2, align 4
%16 = load i32, ptr %2, align 4
%17 = icmp slt i32 %16, 10
br i1 %17, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %18
18: ; preds = %._crit_edge, %0
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%20 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %4)
%21 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 0
%22 = load i32, ptr %4, align 4
%23 = call i32 @linear_search(ptr noundef %21, i32 noundef %22)
store i32 %23, ptr %2, align 4
%24 = load i32, ptr %2, align 4
%25 = icmp ne i32 %24, -1
br i1 %25, label %26, label %30
26: ; preds = %18
%27 = load i32, ptr %4, align 4
%28 = load i32, ptr %2, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %27, i32 noundef %28)
br label %32
30: ; preds = %18
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %32
32: ; preds = %30, %26
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @linear_search(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/tmpfxg5gqdt.c'
source_filename = "/tmp/tmpfxg5gqdt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@GLUT_HAS_OVERLAY = dso_local global i32 0, align 4
@GLUT_NORMAL = dso_local global i32 0, align 4
@GLUT_OVERLAY = 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/tmpfxg5gqdt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@GLUT_HAS_OVERLAY = dso_local global i32 0, align 4
@GLUT_NORMAL = dso_local global i32 0, align 4
@GLUT_OVERLAY = 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/tmpsppsbwrw.c'
source_filename = "/tmp/tmpsppsbwrw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @packCharacters(i8 noundef signext %0, i8 noundef signext %1) #0 {
%3 = alloca i8, align 1
%4 = alloca i8, align 1
%5 = alloca i32, align 4
store i8 %0, ptr %3, align 1
store i8 %1, ptr %4, align 1
%6 = load i8, ptr %3, align 1
%7 = sext i8 %6 to i32
store i32 %7, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = shl i32 %8, 8
store i32 %9, ptr %5, align 4
%10 = load i8, ptr %4, align 1
%11 = sext i8 %10 to i32
%12 = load i32, ptr %5, align 4
%13 = or i32 %12, %11
store i32 %13, ptr %5, align 4
%14 = load i32, ptr %5, align 4
%15 = call i32 @displayBits(i32 noundef %14)
%16 = load i32, ptr %5, align 4
ret i32 %16
}
declare i32 @displayBits(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/tmpsppsbwrw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @packCharacters(i8 noundef signext %0, i8 noundef signext %1) #0 {
%3 = alloca i8, align 1
%4 = alloca i8, align 1
%5 = alloca i32, align 4
store i8 %0, ptr %3, align 1
store i8 %1, ptr %4, align 1
%6 = load i8, ptr %3, align 1
%7 = sext i8 %6 to i32
store i32 %7, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = shl i32 %8, 8
store i32 %9, ptr %5, align 4
%10 = load i8, ptr %4, align 1
%11 = sext i8 %10 to i32
%12 = load i32, ptr %5, align 4
%13 = or i32 %12, %11
store i32 %13, ptr %5, align 4
%14 = load i32, ptr %5, align 4
%15 = call i32 @displayBits(i32 noundef %14)
%16 = load i32, ptr %5, align 4
ret i32 %16
}
declare i32 @displayBits(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/tmp7p668g1g.c'
source_filename = "/tmp/tmp7p668g1g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @svd_writeBinInt(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i8, align 1
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = call i32 @htonl(i32 noundef %7)
store i32 %8, ptr %6, align 4
%9 = load ptr, ptr %4, align 8
%10 = call i32 @fwrite(ptr noundef %6, i32 noundef 4, i32 noundef 1, ptr noundef %9)
%11 = icmp ne i32 %10, 1
br i1 %11, label %12, label %13
12: ; preds = %2
store i8 1, ptr %3, align 1
br label %14
13: ; preds = %2
store i8 0, ptr %3, align 1
br label %14
14: ; preds = %13, %12
%15 = load i8, ptr %3, align 1
ret i8 %15
}
declare i32 @htonl(i32 noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7p668g1g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @svd_writeBinInt(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i8, align 1
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = call i32 @htonl(i32 noundef %7)
store i32 %8, ptr %6, align 4
%9 = load ptr, ptr %4, align 8
%10 = call i32 @fwrite(ptr noundef %6, i32 noundef 4, i32 noundef 1, ptr noundef %9)
%11 = icmp ne i32 %10, 1
br i1 %11, label %12, label %13
12: ; preds = %2
store i8 1, ptr %3, align 1
br label %14
13: ; preds = %2
store i8 0, ptr %3, align 1
br label %14
14: ; preds = %13, %12
%15 = load i8, ptr %3, align 1
ret i8 %15
}
declare i32 @htonl(i32 noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpc9yvi1mo.c'
source_filename = "/tmp/tmpc9yvi1mo.c"
target datalayout = "e-m:e-p270: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.connectFour.welcomeMessage = private unnamed_addr constant [30 x i8] c"Welcome to Connect Four v9.3\0A\00", align 16
@__const.connectFour.choicePrompt = private unnamed_addr constant [36 x i8] c"Player %d please choose column 0-5:\00", align 16
@__const.connectFour.winMessage1 = private unnamed_addr constant [25 x i8] c"Player 1 (Mika) has won!\00", align 16
@__const.connectFour.winMessage2 = private unnamed_addr constant [30 x i8] c"Player 2 (Takahashi) has won!\00", align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @connectFour() #0 {
%1 = alloca [4 x i8], align 1
%2 = alloca [30 x i8], align 16
%3 = alloca [36 x i8], align 16
%4 = alloca [25 x i8], align 16
%5 = alloca [30 x i8], align 16
%6 = alloca [40 x i8], align 16
%7 = alloca i8, align 1
%8 = alloca i8, align 1
%9 = alloca [6 x [6 x i8]], align 16
%10 = alloca i64, align 8
%11 = alloca i8, align 1
%12 = alloca i8, align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.connectFour.welcomeMessage, i64 30, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.connectFour.choicePrompt, i64 36, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.connectFour.winMessage1, i64 25, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.connectFour.winMessage2, i64 30, i1 false)
store i8 1, ptr %7, align 1
call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 36, i1 false)
store i8 0, ptr %12, align 1
%13 = call i32 (...) @terminalClear()
%14 = call i32 @setForeColor(i32 noundef 64191)
%15 = call i32 (...) @drawBoard()
%16 = getelementptr inbounds [30 x i8], ptr %2, i64 0, i64 0
%17 = call i32 @print(ptr noundef %16, i8 noundef signext 29)
br label %18
18: ; preds = %93, %0
%19 = load i8, ptr %12, align 1
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %94
22: ; preds = %18
%23 = getelementptr inbounds [36 x i8], ptr %3, i64 0, i64 0
%24 = getelementptr inbounds [40 x i8], ptr %6, i64 0, i64 0
%25 = load i8, ptr %7, align 1
%26 = zext i8 %25 to i32
%27 = call signext i8 (ptr, ptr, i32, ...) @formatString(ptr noundef %23, ptr noundef %24, i32 noundef 0, i32 noundef 0, i32 noundef %26)
store i8 %27, ptr %8, align 1
%28 = getelementptr inbounds [40 x i8], ptr %6, i64 0, i64 0
%29 = load i8, ptr %8, align 1
%30 = call i32 @print(ptr noundef %28, i8 noundef signext %29)
%31 = getelementptr inbounds [4 x i8], ptr %1, i64 0, i64 0
%32 = call signext i8 @readLine(ptr noundef %31, i32 noundef 4)
store i8 %32, ptr %8, align 1
%33 = getelementptr inbounds [4 x i8], ptr %1, i64 0, i64 0
%34 = call i64 @stringToInt(ptr noundef %33)
store i64 %34, ptr %10, align 8
store i8 0, ptr %11, align 1
br label %35
35: ; preds = %44, %22
%36 = load i8, ptr %11, align 1
%37 = sext i8 %36 to i64
%38 = getelementptr inbounds [6 x [6 x i8]], ptr %9, i64 0, i64 %37
%39 = load i64, ptr %10, align 8
%40 = getelementptr inbounds [6 x i8], ptr %38, i64 0, i64 %39
%41 = load i8, ptr %40, align 1
%42 = sext i8 %41 to i32
%43 = icmp ne i32 %42, 0
br i1 %43, label %44, label %47
44: ; preds = %35
%45 = load i8, ptr %11, align 1
%46 = add i8 %45, 1
store i8 %46, ptr %11, align 1
br label %35, !llvm.loop !6
47: ; preds = %35
%48 = load i8, ptr %7, align 1
%49 = load i8, ptr %11, align 1
%50 = sext i8 %49 to i64
%51 = getelementptr inbounds [6 x [6 x i8]], ptr %9, i64 0, i64 %50
%52 = load i64, ptr %10, align 8
%53 = getelementptr inbounds [6 x i8], ptr %51, i64 0, i64 %52
store i8 %48, ptr %53, align 1
%54 = call i32 @setForeColor(i32 noundef 64191)
%55 = load i8, ptr %11, align 1
%56 = sext i8 %55 to i32
%57 = sub nsw i32 5, %56
%58 = load i64, ptr %10, align 8
%59 = load i8, ptr %7, align 1
%60 = call i32 @drawMark(i32 noundef %57, i64 noundef %58, i8 noundef zeroext %59)
%61 = getelementptr inbounds [6 x [6 x i8]], ptr %9, i64 0, i64 0
%62 = call signext i8 @checkWin(ptr noundef %61)
store i8 %62, ptr %12, align 1
%63 = load i8, ptr %12, align 1
%64 = sext i8 %63 to i32
%65 = icmp eq i32 %64, 1
br i1 %65, label %66, label %74
66: ; preds = %47
%67 = call i32 (...) @terminalClear()
%68 = getelementptr inbounds [25 x i8], ptr %4, i64 0, i64 0
%69 = getelementptr inbounds [40 x i8], ptr %6, i64 0, i64 0
%70 = call signext i8 (ptr, ptr, i32, ...) @formatString(ptr noundef %68, ptr noundef %69, i32 noundef 0)
store i8 %70, ptr %8, align 1
%71 = getelementptr inbounds [25 x i8], ptr %4, i64 0, i64 0
%72 = load i8, ptr %8, align 1
%73 = call i32 @print(ptr noundef %71, i8 noundef signext %72)
br label %87
74: ; preds = %47
%75 = load i8, ptr %12, align 1
%76 = sext i8 %75 to i32
%77 = icmp eq i32 %76, 2
br i1 %77, label %78, label %86
78: ; preds = %74
%79 = call i32 (...) @terminalClear()
%80 = getelementptr inbounds [30 x i8], ptr %5, i64 0, i64 0
%81 = getelementptr inbounds [40 x i8], ptr %6, i64 0, i64 0
%82 = call signext i8 (ptr, ptr, i32, ...) @formatString(ptr noundef %80, ptr noundef %81, i32 noundef 0)
store i8 %82, ptr %8, align 1
%83 = getelementptr inbounds [30 x i8], ptr %5, i64 0, i64 0
%84 = load i8, ptr %8, align 1
%85 = call i32 @print(ptr noundef %83, i8 noundef signext %84)
br label %86
86: ; preds = %78, %74
br label %87
87: ; preds = %86, %66
%88 = load i8, ptr %7, align 1
%89 = zext i8 %88 to i32
%90 = icmp eq i32 %89, 1
br i1 %90, label %91, label %92
91: ; preds = %87
store i8 2, ptr %7, align 1
br label %93
92: ; preds = %87
store i8 1, ptr %7, align 1
br label %93
93: ; preds = %92, %91
br label %18, !llvm.loop !8
94: ; preds = %18
%95 = call i32 @timerWaitMs(i32 noundef 2500000)
%96 = call i32 (...) @clearBoardArea()
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
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @terminalClear(...) #3
declare i32 @setForeColor(i32 noundef) #3
declare i32 @drawBoard(...) #3
declare i32 @print(ptr noundef, i8 noundef signext) #3
declare signext i8 @formatString(ptr noundef, ptr noundef, i32 noundef, ...) #3
declare signext i8 @readLine(ptr noundef, i32 noundef) #3
declare i64 @stringToInt(ptr noundef) #3
declare i32 @drawMark(i32 noundef, i64 noundef, i8 noundef zeroext) #3
declare signext i8 @checkWin(ptr noundef) #3
declare i32 @timerWaitMs(i32 noundef) #3
declare i32 @clearBoardArea(...) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpc9yvi1mo.c"
target datalayout = "e-m:e-p270: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.connectFour.welcomeMessage = private unnamed_addr constant [30 x i8] c"Welcome to Connect Four v9.3\0A\00", align 16
@__const.connectFour.choicePrompt = private unnamed_addr constant [36 x i8] c"Player %d please choose column 0-5:\00", align 16
@__const.connectFour.winMessage1 = private unnamed_addr constant [25 x i8] c"Player 1 (Mika) has won!\00", align 16
@__const.connectFour.winMessage2 = private unnamed_addr constant [30 x i8] c"Player 2 (Takahashi) has won!\00", align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @connectFour() #0 {
%1 = alloca [4 x i8], align 1
%2 = alloca [30 x i8], align 16
%3 = alloca [36 x i8], align 16
%4 = alloca [25 x i8], align 16
%5 = alloca [30 x i8], align 16
%6 = alloca [40 x i8], align 16
%7 = alloca i8, align 1
%8 = alloca i8, align 1
%9 = alloca [6 x [6 x i8]], align 16
%10 = alloca i64, align 8
%11 = alloca i8, align 1
%12 = alloca i8, align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.connectFour.welcomeMessage, i64 30, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.connectFour.choicePrompt, i64 36, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.connectFour.winMessage1, i64 25, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.connectFour.winMessage2, i64 30, i1 false)
store i8 1, ptr %7, align 1
call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 36, i1 false)
store i8 0, ptr %12, align 1
%13 = call i32 (...) @terminalClear()
%14 = call i32 @setForeColor(i32 noundef 64191)
%15 = call i32 (...) @drawBoard()
%16 = getelementptr inbounds [30 x i8], ptr %2, i64 0, i64 0
%17 = call i32 @print(ptr noundef %16, i8 noundef signext 29)
%18 = load i8, ptr %12, align 1
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 0
br i1 %20, label %.lr.ph2, label %103
.lr.ph2: ; preds = %0
br label %21
21: ; preds = %.lr.ph2, %99
%22 = getelementptr inbounds [36 x i8], ptr %3, i64 0, i64 0
%23 = getelementptr inbounds [40 x i8], ptr %6, i64 0, i64 0
%24 = load i8, ptr %7, align 1
%25 = zext i8 %24 to i32
%26 = call signext i8 (ptr, ptr, i32, ...) @formatString(ptr noundef %22, ptr noundef %23, i32 noundef 0, i32 noundef 0, i32 noundef %25)
store i8 %26, ptr %8, align 1
%27 = getelementptr inbounds [40 x i8], ptr %6, i64 0, i64 0
%28 = load i8, ptr %8, align 1
%29 = call i32 @print(ptr noundef %27, i8 noundef signext %28)
%30 = getelementptr inbounds [4 x i8], ptr %1, i64 0, i64 0
%31 = call signext i8 @readLine(ptr noundef %30, i32 noundef 4)
store i8 %31, ptr %8, align 1
%32 = getelementptr inbounds [4 x i8], ptr %1, i64 0, i64 0
%33 = call i64 @stringToInt(ptr noundef %32)
store i64 %33, ptr %10, align 8
store i8 0, ptr %11, align 1
%34 = load i8, ptr %11, align 1
%35 = sext i8 %34 to i64
%36 = getelementptr inbounds [6 x [6 x i8]], ptr %9, i64 0, i64 %35
%37 = load i64, ptr %10, align 8
%38 = getelementptr inbounds [6 x i8], ptr %36, i64 0, i64 %37
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = icmp ne i32 %40, 0
br i1 %41, label %.lr.ph, label %53
.lr.ph: ; preds = %21
br label %42
42: ; preds = %.lr.ph, %42
%43 = load i8, ptr %11, align 1
%44 = add i8 %43, 1
store i8 %44, ptr %11, align 1
%45 = load i8, ptr %11, align 1
%46 = sext i8 %45 to i64
%47 = getelementptr inbounds [6 x [6 x i8]], ptr %9, i64 0, i64 %46
%48 = load i64, ptr %10, align 8
%49 = getelementptr inbounds [6 x i8], ptr %47, i64 0, i64 %48
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = icmp ne i32 %51, 0
br i1 %52, label %42, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %42
br label %53
53: ; preds = %._crit_edge, %21
%54 = load i8, ptr %7, align 1
%55 = load i8, ptr %11, align 1
%56 = sext i8 %55 to i64
%57 = getelementptr inbounds [6 x [6 x i8]], ptr %9, i64 0, i64 %56
%58 = load i64, ptr %10, align 8
%59 = getelementptr inbounds [6 x i8], ptr %57, i64 0, i64 %58
store i8 %54, ptr %59, align 1
%60 = call i32 @setForeColor(i32 noundef 64191)
%61 = load i8, ptr %11, align 1
%62 = sext i8 %61 to i32
%63 = sub nsw i32 5, %62
%64 = load i64, ptr %10, align 8
%65 = load i8, ptr %7, align 1
%66 = call i32 @drawMark(i32 noundef %63, i64 noundef %64, i8 noundef zeroext %65)
%67 = getelementptr inbounds [6 x [6 x i8]], ptr %9, i64 0, i64 0
%68 = call signext i8 @checkWin(ptr noundef %67)
store i8 %68, ptr %12, align 1
%69 = load i8, ptr %12, align 1
%70 = sext i8 %69 to i32
%71 = icmp eq i32 %70, 1
br i1 %71, label %72, label %80
72: ; preds = %53
%73 = call i32 (...) @terminalClear()
%74 = getelementptr inbounds [25 x i8], ptr %4, i64 0, i64 0
%75 = getelementptr inbounds [40 x i8], ptr %6, i64 0, i64 0
%76 = call signext i8 (ptr, ptr, i32, ...) @formatString(ptr noundef %74, ptr noundef %75, i32 noundef 0)
store i8 %76, ptr %8, align 1
%77 = getelementptr inbounds [25 x i8], ptr %4, i64 0, i64 0
%78 = load i8, ptr %8, align 1
%79 = call i32 @print(ptr noundef %77, i8 noundef signext %78)
br label %93
80: ; preds = %53
%81 = load i8, ptr %12, align 1
%82 = sext i8 %81 to i32
%83 = icmp eq i32 %82, 2
br i1 %83, label %84, label %92
84: ; preds = %80
%85 = call i32 (...) @terminalClear()
%86 = getelementptr inbounds [30 x i8], ptr %5, i64 0, i64 0
%87 = getelementptr inbounds [40 x i8], ptr %6, i64 0, i64 0
%88 = call signext i8 (ptr, ptr, i32, ...) @formatString(ptr noundef %86, ptr noundef %87, i32 noundef 0)
store i8 %88, ptr %8, align 1
%89 = getelementptr inbounds [30 x i8], ptr %5, i64 0, i64 0
%90 = load i8, ptr %8, align 1
%91 = call i32 @print(ptr noundef %89, i8 noundef signext %90)
br label %92
92: ; preds = %84, %80
br label %93
93: ; preds = %92, %72
%94 = load i8, ptr %7, align 1
%95 = zext i8 %94 to i32
%96 = icmp eq i32 %95, 1
br i1 %96, label %97, label %98
97: ; preds = %93
store i8 2, ptr %7, align 1
br label %99
98: ; preds = %93
store i8 1, ptr %7, align 1
br label %99
99: ; preds = %98, %97
%100 = load i8, ptr %12, align 1
%101 = sext i8 %100 to i32
%102 = icmp eq i32 %101, 0
br i1 %102, label %21, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %99
br label %103
103: ; preds = %._crit_edge3, %0
%104 = call i32 @timerWaitMs(i32 noundef 2500000)
%105 = call i32 (...) @clearBoardArea()
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
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @terminalClear(...) #3
declare i32 @setForeColor(i32 noundef) #3
declare i32 @drawBoard(...) #3
declare i32 @print(ptr noundef, i8 noundef signext) #3
declare signext i8 @formatString(ptr noundef, ptr noundef, i32 noundef, ...) #3
declare signext i8 @readLine(ptr noundef, i32 noundef) #3
declare i64 @stringToInt(ptr noundef) #3
declare i32 @drawMark(i32 noundef, i64 noundef, i8 noundef zeroext) #3
declare signext i8 @checkWin(ptr noundef) #3
declare i32 @timerWaitMs(i32 noundef) #3
declare i32 @clearBoardArea(...) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp2mq_9p5y.c'
source_filename = "/tmp/tmp2mq_9p5y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @line_char(i8 noundef signext %0, i32 noundef %1) #0 {
%3 = alloca i8, align 1
%4 = alloca i32, align 4
store i8 %0, ptr %3, align 1
store i32 %1, ptr %4, align 4
br label %5
5: ; preds = %9, %2
%6 = load i32, ptr %4, align 4
%7 = add nsw i32 %6, -1
store i32 %7, ptr %4, align 4
%8 = icmp ne i32 %6, 0
br i1 %8, label %9, label %12
9: ; preds = %5
%10 = load i8, ptr %3, align 1
%11 = call i32 @putchar(i8 noundef signext %10)
br label %5, !llvm.loop !6
12: ; preds = %5
%13 = call i32 @putchar(i8 noundef signext 10)
ret void
}
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2mq_9p5y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @line_char(i8 noundef signext %0, i32 noundef %1) #0 {
%3 = alloca i8, align 1
%4 = alloca i32, align 4
store i8 %0, ptr %3, align 1
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = add nsw i32 %5, -1
store i32 %6, ptr %4, align 4
%7 = icmp ne i32 %5, 0
br i1 %7, label %.lr.ph, label %14
.lr.ph: ; preds = %2
br label %8
8: ; preds = %.lr.ph, %8
%9 = load i8, ptr %3, align 1
%10 = call i32 @putchar(i8 noundef signext %9)
%11 = load i32, ptr %4, align 4
%12 = add nsw i32 %11, -1
store i32 %12, ptr %4, align 4
%13 = icmp ne i32 %11, 0
br i1 %13, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %8
br label %14
14: ; preds = %._crit_edge, %2
%15 = call i32 @putchar(i8 noundef signext 10)
ret void
}
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpwba2x6l2.c'
source_filename = "/tmp/tmpwba2x6l2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i64 2, ptr %2, align 8
store i64 10, ptr %3, align 8
store i64 100000, ptr %4, align 8
%5 = load i64, ptr %2, align 8
%6 = load i64, ptr %3, align 8
%7 = load i64, ptr %4, align 8
%8 = call i32 @modularExponential(i64 noundef %5, i64 noundef %6, i64 noundef %7)
%9 = call i32 @printf(ptr noundef @.str, i32 noundef %8)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @modularExponential(i64 noundef, i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwba2x6l2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i64 2, ptr %2, align 8
store i64 10, ptr %3, align 8
store i64 100000, ptr %4, align 8
%5 = load i64, ptr %2, align 8
%6 = load i64, ptr %3, align 8
%7 = load i64, ptr %4, align 8
%8 = call i32 @modularExponential(i64 noundef %5, i64 noundef %6, i64 noundef %7)
%9 = call i32 @printf(ptr noundef @.str, i32 noundef %8)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @modularExponential(i64 noundef, i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpeg3336aa.c'
source_filename = "/tmp/tmpeg3336aa.c"
target datalayout = "e-m:e-p270: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/tmpeg3336aa.c"
target datalayout = "e-m:e-p270: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/tmplew0pgim.c'
source_filename = "/tmp/tmplew0pgim.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @putc(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = ptrtoint ptr %2 to i32
%4 = call i32 @syscall(i32 noundef 1, i32 noundef 1, i32 noundef %3, i32 noundef 1)
ret void
}
declare i32 @syscall(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplew0pgim.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @putc(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = ptrtoint ptr %2 to i32
%4 = call i32 @syscall(i32 noundef 1, i32 noundef 1, i32 noundef %3, i32 noundef 1)
ret void
}
declare i32 @syscall(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppoj4s5tm.c'
source_filename = "/tmp/tmppoj4s5tm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"MOSTF90CALL\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"csub\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @csub(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %5, align 4
%7 = icmp eq i32 %6, 257
br i1 %7, label %8, label %15
8: ; preds = %2
%9 = load ptr, ptr %4, align 8
%10 = load float, ptr %9, align 4
%11 = fpext float %10 to double
%12 = fcmp oeq double %11, 1.000000e+00
br i1 %12, label %13, label %15
13: ; preds = %8
%14 = call i32 @setenv(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 1)
br label %15
15: ; preds = %13, %8, %2
ret void
}
declare i32 @setenv(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/tmppoj4s5tm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"MOSTF90CALL\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"csub\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @csub(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %5, align 4
%7 = icmp eq i32 %6, 257
br i1 %7, label %8, label %15
8: ; preds = %2
%9 = load ptr, ptr %4, align 8
%10 = load float, ptr %9, align 4
%11 = fpext float %10 to double
%12 = fcmp oeq double %11, 1.000000e+00
br i1 %12, label %13, label %15
13: ; preds = %8
%14 = call i32 @setenv(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 1)
br label %15
15: ; preds = %13, %8, %2
ret void
}
declare i32 @setenv(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/tmpryeqpcly.c'
source_filename = "/tmp/tmpryeqpcly.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [53 x i8] c"NOT IMPLEMENTED:pa_context_set_source_output_volume\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pa_context_set_source_output_volume() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
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/tmpryeqpcly.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [53 x i8] c"NOT IMPLEMENTED:pa_context_set_source_output_volume\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pa_context_set_source_output_volume() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
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/tmpypubuxyd.c'
source_filename = "/tmp/tmpypubuxyd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpypubuxyd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptw5bjat7.c'
source_filename = "/tmp/tmptw5bjat7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @my_putnbr(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 slt i32 %3, 0
br i1 %4, label %5, label %9
5: ; preds = %1
%6 = call i32 @my_putchar(i32 noundef 45)
%7 = load i32, ptr %2, align 4
%8 = sub nsw i32 0, %7
call void @my_putnbr(i32 noundef %8)
br label %21
9: ; preds = %1
%10 = load i32, ptr %2, align 4
%11 = icmp sge i32 %10, 10
br i1 %11, label %12, label %17
12: ; preds = %9
%13 = load i32, ptr %2, align 4
%14 = sdiv i32 %13, 10
call void @my_putnbr(i32 noundef %14)
%15 = load i32, ptr %2, align 4
%16 = srem i32 %15, 10
call void @my_putnbr(i32 noundef %16)
br label %21
17: ; preds = %9
%18 = load i32, ptr %2, align 4
%19 = add nsw i32 %18, 48
%20 = call i32 @my_putchar(i32 noundef %19)
br label %21
21: ; preds = %5, %17, %12
ret void
}
declare i32 @my_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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptw5bjat7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @my_putnbr(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 slt i32 %3, 0
br i1 %4, label %5, label %9
5: ; preds = %1
%6 = call i32 @my_putchar(i32 noundef 45)
%7 = load i32, ptr %2, align 4
%8 = sub nsw i32 0, %7
call void @my_putnbr(i32 noundef %8)
br label %21
9: ; preds = %1
%10 = load i32, ptr %2, align 4
%11 = icmp sge i32 %10, 10
br i1 %11, label %12, label %17
12: ; preds = %9
%13 = load i32, ptr %2, align 4
%14 = sdiv i32 %13, 10
call void @my_putnbr(i32 noundef %14)
%15 = load i32, ptr %2, align 4
%16 = srem i32 %15, 10
call void @my_putnbr(i32 noundef %16)
br label %21
17: ; preds = %9
%18 = load i32, ptr %2, align 4
%19 = add nsw i32 %18, 48
%20 = call i32 @my_putchar(i32 noundef %19)
br label %21
21: ; preds = %17, %12, %5
ret void
}
declare i32 @my_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"}
|
; ModuleID = '/tmp/tmphavz0lhf.c'
source_filename = "/tmp/tmphavz0lhf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fact(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp eq i32 %6, 1
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 2, ptr %2, align 4
br label %28
9: ; preds = %1
%10 = load i32, ptr %3, align 4
%11 = call i64 @sqrt(i32 noundef %10)
%12 = trunc i64 %11 to i32
store i32 %12, ptr %4, align 4
store i32 2, ptr %5, align 4
br label %13
13: ; preds = %24, %9
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %4, align 4
%16 = icmp sle i32 %14, %15
br i1 %16, label %17, label %27
17: ; preds = %13
%18 = load i32, ptr %3, align 4
%19 = load i32, ptr %5, align 4
%20 = srem i32 %18, %19
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %17
store i32 1, ptr %2, align 4
br label %28
23: ; preds = %17
br label %24
24: ; preds = %23
%25 = load i32, ptr %5, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %5, align 4
br label %13, !llvm.loop !6
27: ; preds = %13
store i32 0, ptr %2, align 4
br label %28
28: ; preds = %27, %22, %8
%29 = load i32, ptr %2, align 4
ret i32 %29
}
declare i64 @sqrt(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/tmphavz0lhf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fact(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp eq i32 %6, 1
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 2, ptr %2, align 4
br label %30
9: ; preds = %1
%10 = load i32, ptr %3, align 4
%11 = call i64 @sqrt(i32 noundef %10)
%12 = trunc i64 %11 to i32
store i32 %12, ptr %4, align 4
store i32 2, ptr %5, align 4
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp sle i32 %13, %14
br i1 %15, label %.lr.ph, label %29
.lr.ph: ; preds = %9
br label %16
16: ; preds = %.lr.ph, %23
%17 = load i32, ptr %3, align 4
%18 = load i32, ptr %5, align 4
%19 = srem i32 %17, %18
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %16
store i32 1, ptr %2, align 4
br label %30
22: ; preds = %16
br label %23
23: ; preds = %22
%24 = load i32, ptr %5, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %5, align 4
%26 = load i32, ptr %5, align 4
%27 = load i32, ptr %4, align 4
%28 = icmp sle i32 %26, %27
br i1 %28, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %29
29: ; preds = %._crit_edge, %9
store i32 0, ptr %2, align 4
br label %30
30: ; preds = %29, %21, %8
%31 = load i32, ptr %2, align 4
ret i32 %31
}
declare i64 @sqrt(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/tmpzi455njw.c'
source_filename = "/tmp/tmpzi455njw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 10, ptr %3, align 4
store i32 15, ptr %4, align 4
store i32 0, ptr %2, align 4
br label %5
5: ; preds = %41, %0
%6 = load i32, ptr %2, align 4
%7 = icmp sle i32 %6, 5
br i1 %7, label %8, label %44
8: ; preds = %5
br label %9
9: ; preds = %25, %8
%10 = load i32, ptr %3, align 4
%11 = icmp sle i32 %10, 15
br i1 %11, label %12, label %34
12: ; preds = %9
br label %13
13: ; preds = %22, %12
%14 = call i32 @print_char(i8 noundef signext 107)
%15 = call i32 @print_char(i8 noundef signext 58)
%16 = call i32 @print_char(i8 noundef signext 32)
%17 = load i32, ptr %4, align 4
%18 = call i32 @print_int(i32 noundef %17)
%19 = call i32 @print_char(i8 noundef signext 10)
%20 = load i32, ptr %4, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %4, align 4
br label %22
22: ; preds = %13
%23 = load i32, ptr %4, align 4
%24 = icmp sle i32 %23, 20
br i1 %24, label %13, label %25, !llvm.loop !6
25: ; preds = %22
%26 = call i32 @print_char(i8 noundef signext 106)
%27 = call i32 @print_char(i8 noundef signext 58)
%28 = call i32 @print_char(i8 noundef signext 32)
%29 = load i32, ptr %3, align 4
%30 = call i32 @print_int(i32 noundef %29)
%31 = call i32 @print_char(i8 noundef signext 10)
%32 = load i32, ptr %3, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %3, align 4
br label %9, !llvm.loop !8
34: ; preds = %9
%35 = call i32 @print_char(i8 noundef signext 105)
%36 = call i32 @print_char(i8 noundef signext 58)
%37 = call i32 @print_char(i8 noundef signext 32)
%38 = load i32, ptr %2, align 4
%39 = call i32 @print_int(i32 noundef %38)
%40 = call i32 @print_char(i8 noundef signext 10)
br label %41
41: ; preds = %34
%42 = load i32, ptr %2, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %2, align 4
br label %5, !llvm.loop !9
44: ; preds = %5
ret i32 0
}
declare i32 @print_char(i8 noundef signext) #1
declare i32 @print_int(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzi455njw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 10, ptr %3, align 4
store i32 15, ptr %4, align 4
store i32 0, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp sle i32 %5, 5
br i1 %6, label %.lr.ph2, label %46
.lr.ph2: ; preds = %0
br label %7
7: ; preds = %.lr.ph2, %41
%8 = load i32, ptr %3, align 4
%9 = icmp sle i32 %8, 15
br i1 %9, label %.lr.ph, label %34
.lr.ph: ; preds = %7
br label %10
10: ; preds = %.lr.ph, %23
br label %11
11: ; preds = %20, %10
%12 = call i32 @print_char(i8 noundef signext 107)
%13 = call i32 @print_char(i8 noundef signext 58)
%14 = call i32 @print_char(i8 noundef signext 32)
%15 = load i32, ptr %4, align 4
%16 = call i32 @print_int(i32 noundef %15)
%17 = call i32 @print_char(i8 noundef signext 10)
%18 = load i32, ptr %4, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %4, align 4
br label %20
20: ; preds = %11
%21 = load i32, ptr %4, align 4
%22 = icmp sle i32 %21, 20
br i1 %22, label %11, label %23, !llvm.loop !6
23: ; preds = %20
%24 = call i32 @print_char(i8 noundef signext 106)
%25 = call i32 @print_char(i8 noundef signext 58)
%26 = call i32 @print_char(i8 noundef signext 32)
%27 = load i32, ptr %3, align 4
%28 = call i32 @print_int(i32 noundef %27)
%29 = call i32 @print_char(i8 noundef signext 10)
%30 = load i32, ptr %3, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %3, align 4
%32 = load i32, ptr %3, align 4
%33 = icmp sle i32 %32, 15
br i1 %33, label %10, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %23
br label %34
34: ; preds = %._crit_edge, %7
%35 = call i32 @print_char(i8 noundef signext 105)
%36 = call i32 @print_char(i8 noundef signext 58)
%37 = call i32 @print_char(i8 noundef signext 32)
%38 = load i32, ptr %2, align 4
%39 = call i32 @print_int(i32 noundef %38)
%40 = call i32 @print_char(i8 noundef signext 10)
br label %41
41: ; preds = %34
%42 = load i32, ptr %2, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %2, align 4
%44 = load i32, ptr %2, align 4
%45 = icmp sle i32 %44, 5
br i1 %45, label %7, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %41
br label %46
46: ; preds = %._crit_edge3, %0
ret i32 0
}
declare i32 @print_char(i8 noundef signext) #1
declare i32 @print_int(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpe_h5jmie.c'
source_filename = "/tmp/tmpe_h5jmie.c"
target datalayout = "e-m:e-p270: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/tmpe_h5jmie.c"
target datalayout = "e-m:e-p270: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/tmpskgkgf2t.c'
source_filename = "/tmp/tmpskgkgf2t.c"
target datalayout = "e-m:e-p270: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/tmpskgkgf2t.c"
target datalayout = "e-m:e-p270: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/tmpewitrpul.c'
source_filename = "/tmp/tmpewitrpul.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @uninitvar_sprintf(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
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = 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
%13 = load ptr, ptr %7, align 8
%14 = load ptr, ptr %9, align 8
%15 = load i32, ptr %11, align 4
%16 = call i32 @sprintf(ptr noundef %13, ptr noundef %14, i32 noundef %15)
%17 = load ptr, ptr %8, align 8
%18 = load ptr, ptr %5, align 8
%19 = load i32, ptr %6, align 4
%20 = call i32 @sprintf(ptr noundef %17, ptr noundef %18, i32 noundef %19)
%21 = load ptr, ptr %4, align 8
%22 = load ptr, ptr %10, align 8
%23 = load i32, ptr %6, align 4
%24 = call i32 @sprintf(ptr noundef %21, ptr noundef %22, i32 noundef %23)
%25 = load ptr, ptr %4, align 8
%26 = load ptr, ptr %5, align 8
%27 = load i32, ptr %12, align 4
%28 = call i32 @sprintf(ptr noundef %25, ptr noundef %26, i32 noundef %27)
%29 = load ptr, ptr %4, align 8
%30 = load ptr, ptr %5, align 8
%31 = load i32, ptr %6, align 4
%32 = call i32 @sprintf(ptr noundef %29, ptr noundef %30, i32 noundef %31)
ret void
}
declare i32 @sprintf(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/tmpewitrpul.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @uninitvar_sprintf(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
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = 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
%13 = load ptr, ptr %7, align 8
%14 = load ptr, ptr %9, align 8
%15 = load i32, ptr %11, align 4
%16 = call i32 @sprintf(ptr noundef %13, ptr noundef %14, i32 noundef %15)
%17 = load ptr, ptr %8, align 8
%18 = load ptr, ptr %5, align 8
%19 = load i32, ptr %6, align 4
%20 = call i32 @sprintf(ptr noundef %17, ptr noundef %18, i32 noundef %19)
%21 = load ptr, ptr %4, align 8
%22 = load ptr, ptr %10, align 8
%23 = load i32, ptr %6, align 4
%24 = call i32 @sprintf(ptr noundef %21, ptr noundef %22, i32 noundef %23)
%25 = load ptr, ptr %4, align 8
%26 = load ptr, ptr %5, align 8
%27 = load i32, ptr %12, align 4
%28 = call i32 @sprintf(ptr noundef %25, ptr noundef %26, i32 noundef %27)
%29 = load ptr, ptr %4, align 8
%30 = load ptr, ptr %5, align 8
%31 = load i32, ptr %6, align 4
%32 = call i32 @sprintf(ptr noundef %29, ptr noundef %30, i32 noundef %31)
ret void
}
declare i32 @sprintf(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/tmppqs_zfwz.c'
source_filename = "/tmp/tmppqs_zfwz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"ENTER ENCRYPTION PASSCODE: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"\1B[31m--DECRYPTING--\0A\00", align 1
@.str.3 = private unnamed_addr constant [20 x i8] c"touch data/data.fdf\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"touch data/cmd_history.fdf\00", align 1
@.str.5 = private unnamed_addr constant [36 x i8] c"aescrypt -d -p %s data/data.fdf.aes\00", align 1
@.str.6 = private unnamed_addr constant [43 x i8] c"aescrypt -d -p %s data/cmd_history.fdf.aes\00", align 1
@.str.7 = private unnamed_addr constant [21 x i8] c"rm data/data.fdf.aes\00", align 1
@.str.8 = private unnamed_addr constant [28 x i8] c"rm data/cmd_history.fdf.aes\00", align 1
@.str.9 = private unnamed_addr constant [12 x i8] c"\1B[0m--END--\00", align 1
@.str.10 = private unnamed_addr constant [48 x i8] c"\1B[37m[ \1B[32mOK\1B[37m ] decryption successful \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @aescrypt() #0 {
%1 = alloca i32, align 4
%2 = alloca [1024 x i8], align 16
%3 = alloca [1024 x i8], align 16
%4 = call i32 @printf(ptr noundef @.str)
%5 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %5)
%7 = call i32 @printf(ptr noundef @.str.2)
%8 = call i32 @system(ptr noundef @.str.3)
%9 = call i32 @system(ptr noundef @.str.4)
%10 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%11 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%12 = call i32 @snprintf(ptr noundef %10, i32 noundef 1024, ptr noundef @.str.5, ptr noundef %11)
%13 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%14 = call i32 @system(ptr noundef %13)
%15 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%16 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%17 = call i32 @snprintf(ptr noundef %15, i32 noundef 1024, ptr noundef @.str.6, ptr noundef %16)
%18 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%19 = call i32 @system(ptr noundef %18)
%20 = call i32 @system(ptr noundef @.str.7)
%21 = call i32 @system(ptr noundef @.str.8)
%22 = call i32 @printf(ptr noundef @.str.9)
%23 = call i32 @printf(ptr noundef @.str.10)
%24 = call i32 @sleep(i32 noundef 1)
%25 = load i32, ptr %1, align 4
ret i32 %25
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @system(ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @sleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppqs_zfwz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"ENTER ENCRYPTION PASSCODE: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"\1B[31m--DECRYPTING--\0A\00", align 1
@.str.3 = private unnamed_addr constant [20 x i8] c"touch data/data.fdf\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"touch data/cmd_history.fdf\00", align 1
@.str.5 = private unnamed_addr constant [36 x i8] c"aescrypt -d -p %s data/data.fdf.aes\00", align 1
@.str.6 = private unnamed_addr constant [43 x i8] c"aescrypt -d -p %s data/cmd_history.fdf.aes\00", align 1
@.str.7 = private unnamed_addr constant [21 x i8] c"rm data/data.fdf.aes\00", align 1
@.str.8 = private unnamed_addr constant [28 x i8] c"rm data/cmd_history.fdf.aes\00", align 1
@.str.9 = private unnamed_addr constant [12 x i8] c"\1B[0m--END--\00", align 1
@.str.10 = private unnamed_addr constant [48 x i8] c"\1B[37m[ \1B[32mOK\1B[37m ] decryption successful \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @aescrypt() #0 {
%1 = alloca i32, align 4
%2 = alloca [1024 x i8], align 16
%3 = alloca [1024 x i8], align 16
%4 = call i32 @printf(ptr noundef @.str)
%5 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %5)
%7 = call i32 @printf(ptr noundef @.str.2)
%8 = call i32 @system(ptr noundef @.str.3)
%9 = call i32 @system(ptr noundef @.str.4)
%10 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%11 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%12 = call i32 @snprintf(ptr noundef %10, i32 noundef 1024, ptr noundef @.str.5, ptr noundef %11)
%13 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%14 = call i32 @system(ptr noundef %13)
%15 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%16 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%17 = call i32 @snprintf(ptr noundef %15, i32 noundef 1024, ptr noundef @.str.6, ptr noundef %16)
%18 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%19 = call i32 @system(ptr noundef %18)
%20 = call i32 @system(ptr noundef @.str.7)
%21 = call i32 @system(ptr noundef @.str.8)
%22 = call i32 @printf(ptr noundef @.str.9)
%23 = call i32 @printf(ptr noundef @.str.10)
%24 = call i32 @sleep(i32 noundef 1)
%25 = load i32, ptr %1, align 4
ret i32 %25
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @system(ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @sleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjg52ufd8.c'
source_filename = "/tmp/tmpjg52ufd8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PTRACE_TRACEME = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [21 x i8] c"PTRACE_TRACEME error\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"/bin/ls\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"-l\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"/\00", align 1
@.str.4 = private unnamed_addr constant [48 x i8] c"\0A\0A################finished...!################\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @do_something() #0 {
%1 = load i32, ptr @PTRACE_TRACEME, align 4
%2 = call i32 @ptrace(i32 noundef %1, i32 noundef 0, i32 noundef 0, i32 noundef 0)
%3 = icmp eq i32 -1, %2
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 @perror(ptr noundef @.str)
ret i32 -1
6: ; preds = %0
%7 = call i32 @execl(ptr noundef @.str.1, ptr noundef @.str.2, ptr noundef @.str.3, ptr noundef null)
br label %8
8: ; preds = %6, %8
%9 = call i32 @printf(ptr noundef @.str.4)
br label %8
}
declare i32 @ptrace(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @execl(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjg52ufd8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PTRACE_TRACEME = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [21 x i8] c"PTRACE_TRACEME error\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"/bin/ls\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"-l\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"/\00", align 1
@.str.4 = private unnamed_addr constant [48 x i8] c"\0A\0A################finished...!################\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @do_something() #0 {
%1 = load i32, ptr @PTRACE_TRACEME, align 4
%2 = call i32 @ptrace(i32 noundef %1, i32 noundef 0, i32 noundef 0, i32 noundef 0)
%3 = icmp eq i32 -1, %2
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 @perror(ptr noundef @.str)
ret i32 -1
6: ; preds = %0
%7 = call i32 @execl(ptr noundef @.str.1, ptr noundef @.str.2, ptr noundef @.str.3, ptr noundef null)
br label %8
8: ; preds = %8, %6
%9 = call i32 @printf(ptr noundef @.str.4)
br label %8
}
declare i32 @ptrace(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @execl(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpt_fzzvua.c'
source_filename = "/tmp/tmpt_fzzvua.c"
target datalayout = "e-m:e-p270: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/tmpt_fzzvua.c"
target datalayout = "e-m:e-p270: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/tmpyl1jhppy.c'
source_filename = "/tmp/tmpyl1jhppy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.b = private unnamed_addr constant [6 x i8] c"82460\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x i8], align 16
%3 = alloca [6 x i8], align 1
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 100, i1 false)
%4 = getelementptr inbounds [100 x i8], ptr %2, i32 0, i32 0
store i8 49, ptr %4, align 16
%5 = getelementptr inbounds [100 x i8], ptr %2, i32 0, i32 1
store i8 51, ptr %5, align 1
%6 = getelementptr inbounds [100 x i8], ptr %2, i32 0, i32 2
store i8 53, ptr %6, align 2
%7 = getelementptr inbounds [100 x i8], ptr %2, i32 0, i32 3
store i8 55, ptr %7, align 1
%8 = getelementptr inbounds [100 x i8], ptr %2, i32 0, i32 4
store i8 57, ptr %8, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.b, i64 6, i1 false)
%9 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%10 = getelementptr inbounds [6 x i8], ptr %3, i64 0, i64 0
%11 = call i32 @fun(ptr noundef %9, ptr noundef %10)
%12 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%13 = call i32 @puts(ptr noundef %12)
%14 = call i32 (...) @getchar()
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @fun(ptr noundef, ptr noundef) #3
declare i32 @puts(ptr noundef) #3
declare i32 @getchar(...) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyl1jhppy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.b = private unnamed_addr constant [6 x i8] c"82460\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x i8], align 16
%3 = alloca [6 x i8], align 1
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 100, i1 false)
%4 = getelementptr inbounds [100 x i8], ptr %2, i32 0, i32 0
store i8 49, ptr %4, align 16
%5 = getelementptr inbounds [100 x i8], ptr %2, i32 0, i32 1
store i8 51, ptr %5, align 1
%6 = getelementptr inbounds [100 x i8], ptr %2, i32 0, i32 2
store i8 53, ptr %6, align 2
%7 = getelementptr inbounds [100 x i8], ptr %2, i32 0, i32 3
store i8 55, ptr %7, align 1
%8 = getelementptr inbounds [100 x i8], ptr %2, i32 0, i32 4
store i8 57, ptr %8, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.b, i64 6, i1 false)
%9 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%10 = getelementptr inbounds [6 x i8], ptr %3, i64 0, i64 0
%11 = call i32 @fun(ptr noundef %9, ptr noundef %10)
%12 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%13 = call i32 @puts(ptr noundef %12)
%14 = call i32 (...) @getchar()
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @fun(ptr noundef, ptr noundef) #3
declare i32 @puts(ptr noundef) #3
declare i32 @getchar(...) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp80fgbkic.c'
source_filename = "/tmp/tmp80fgbkic.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ecef2pos(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store double 0x3F7B6B90F1FE94F0, ptr %5, align 8
%11 = load ptr, ptr %3, align 8
%12 = load ptr, ptr %3, align 8
%13 = call double @dot(ptr noundef %11, ptr noundef %12, i32 noundef 2)
store double %13, ptr %6, align 8
store double 0x415854A640000000, ptr %9, align 8
%14 = load ptr, ptr %3, align 8
%15 = getelementptr inbounds double, ptr %14, i64 2
%16 = load double, ptr %15, align 8
store double %16, ptr %7, align 8
store double 0.000000e+00, ptr %8, align 8
br label %17
17: ; preds = %24, %2
%18 = load double, ptr %7, align 8
%19 = load double, ptr %8, align 8
%20 = fsub double %18, %19
%21 = call i32 @fabs(double noundef %20)
%22 = sitofp i32 %21 to double
%23 = fcmp oge double %22, 1.000000e-04
br i1 %23, label %24, label %49
24: ; preds = %17
%25 = load double, ptr %7, align 8
store double %25, ptr %8, align 8
%26 = load double, ptr %7, align 8
%27 = load double, ptr %6, align 8
%28 = load double, ptr %7, align 8
%29 = load double, ptr %7, align 8
%30 = call double @llvm.fmuladd.f64(double %28, double %29, double %27)
%31 = call double @sqrt(double noundef %30) #4
%32 = fdiv double %26, %31
store double %32, ptr %10, align 8
%33 = load double, ptr %5, align 8
%34 = load double, ptr %10, align 8
%35 = fmul double %33, %34
%36 = load double, ptr %10, align 8
%37 = fneg double %35
%38 = call double @llvm.fmuladd.f64(double %37, double %36, double 1.000000e+00)
%39 = call double @sqrt(double noundef %38) #4
%40 = fdiv double 0x415854A640000000, %39
store double %40, ptr %9, align 8
%41 = load ptr, ptr %3, align 8
%42 = getelementptr inbounds double, ptr %41, i64 2
%43 = load double, ptr %42, align 8
%44 = load double, ptr %9, align 8
%45 = load double, ptr %5, align 8
%46 = fmul double %44, %45
%47 = load double, ptr %10, align 8
%48 = call double @llvm.fmuladd.f64(double %46, double %47, double %43)
store double %48, ptr %7, align 8
br label %17, !llvm.loop !6
49: ; preds = %17
%50 = load double, ptr %6, align 8
%51 = fcmp ogt double %50, 0x3D719799812DEA11
br i1 %51, label %52, label %58
52: ; preds = %49
%53 = load double, ptr %7, align 8
%54 = load double, ptr %6, align 8
%55 = call double @sqrt(double noundef %54) #4
%56 = fdiv double %53, %55
%57 = call double @atan(double noundef %56) #4
br label %65
58: ; preds = %49
%59 = load ptr, ptr %3, align 8
%60 = getelementptr inbounds double, ptr %59, i64 2
%61 = load double, ptr %60, align 8
%62 = fcmp ogt double %61, 0.000000e+00
%63 = zext i1 %62 to i64
%64 = select i1 %62, double 0x3FF921FB54442D18, double 0xBFF921FB54442D18
br label %65
65: ; preds = %58, %52
%66 = phi double [ %57, %52 ], [ %64, %58 ]
%67 = load ptr, ptr %4, align 8
%68 = getelementptr inbounds double, ptr %67, i64 0
store double %66, ptr %68, align 8
%69 = load double, ptr %6, align 8
%70 = fcmp ogt double %69, 0x3D719799812DEA11
br i1 %70, label %71, label %79
71: ; preds = %65
%72 = load ptr, ptr %3, align 8
%73 = getelementptr inbounds double, ptr %72, i64 1
%74 = load double, ptr %73, align 8
%75 = load ptr, ptr %3, align 8
%76 = getelementptr inbounds double, ptr %75, i64 0
%77 = load double, ptr %76, align 8
%78 = call double @atan2(double noundef %74, double noundef %77) #4
br label %80
79: ; preds = %65
br label %80
80: ; preds = %79, %71
%81 = phi double [ %78, %71 ], [ 0.000000e+00, %79 ]
%82 = load ptr, ptr %4, align 8
%83 = getelementptr inbounds double, ptr %82, i64 1
store double %81, ptr %83, align 8
%84 = load double, ptr %6, align 8
%85 = load double, ptr %7, align 8
%86 = load double, ptr %7, align 8
%87 = call double @llvm.fmuladd.f64(double %85, double %86, double %84)
%88 = call double @sqrt(double noundef %87) #4
%89 = load double, ptr %9, align 8
%90 = fsub double %88, %89
%91 = load ptr, ptr %4, align 8
%92 = getelementptr inbounds double, ptr %91, i64 2
store double %90, ptr %92, align 8
ret void
}
declare double @dot(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fabs(double noundef) #1
; Function Attrs: nounwind
declare double @sqrt(double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
; Function Attrs: nounwind
declare double @atan(double noundef) #2
; Function Attrs: nounwind
declare double @atan2(double noundef, double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp80fgbkic.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ecef2pos(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store double 0x3F7B6B90F1FE94F0, ptr %5, align 8
%11 = load ptr, ptr %3, align 8
%12 = load ptr, ptr %3, align 8
%13 = call double @dot(ptr noundef %11, ptr noundef %12, i32 noundef 2)
store double %13, ptr %6, align 8
store double 0x415854A640000000, ptr %9, align 8
%14 = load ptr, ptr %3, align 8
%15 = getelementptr inbounds double, ptr %14, i64 2
%16 = load double, ptr %15, align 8
store double %16, ptr %7, align 8
store double 0.000000e+00, ptr %8, align 8
%17 = load double, ptr %7, align 8
%18 = load double, ptr %8, align 8
%19 = fsub double %17, %18
%20 = call i32 @fabs(double noundef %19)
%21 = sitofp i32 %20 to double
%22 = fcmp oge double %21, 1.000000e-04
br i1 %22, label %.lr.ph, label %54
.lr.ph: ; preds = %2
br label %23
23: ; preds = %.lr.ph, %23
%24 = load double, ptr %7, align 8
store double %24, ptr %8, align 8
%25 = load double, ptr %7, align 8
%26 = load double, ptr %6, align 8
%27 = load double, ptr %7, align 8
%28 = load double, ptr %7, align 8
%29 = call double @llvm.fmuladd.f64(double %27, double %28, double %26)
%30 = call double @sqrt(double noundef %29) #4
%31 = fdiv double %25, %30
store double %31, ptr %10, align 8
%32 = load double, ptr %5, align 8
%33 = load double, ptr %10, align 8
%34 = fmul double %32, %33
%35 = load double, ptr %10, align 8
%36 = fneg double %34
%37 = call double @llvm.fmuladd.f64(double %36, double %35, double 1.000000e+00)
%38 = call double @sqrt(double noundef %37) #4
%39 = fdiv double 0x415854A640000000, %38
store double %39, ptr %9, align 8
%40 = load ptr, ptr %3, align 8
%41 = getelementptr inbounds double, ptr %40, i64 2
%42 = load double, ptr %41, align 8
%43 = load double, ptr %9, align 8
%44 = load double, ptr %5, align 8
%45 = fmul double %43, %44
%46 = load double, ptr %10, align 8
%47 = call double @llvm.fmuladd.f64(double %45, double %46, double %42)
store double %47, ptr %7, align 8
%48 = load double, ptr %7, align 8
%49 = load double, ptr %8, align 8
%50 = fsub double %48, %49
%51 = call i32 @fabs(double noundef %50)
%52 = sitofp i32 %51 to double
%53 = fcmp oge double %52, 1.000000e-04
br i1 %53, label %23, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %54
54: ; preds = %._crit_edge, %2
%55 = load double, ptr %6, align 8
%56 = fcmp ogt double %55, 0x3D719799812DEA11
br i1 %56, label %57, label %63
57: ; preds = %54
%58 = load double, ptr %7, align 8
%59 = load double, ptr %6, align 8
%60 = call double @sqrt(double noundef %59) #4
%61 = fdiv double %58, %60
%62 = call double @atan(double noundef %61) #4
br label %70
63: ; preds = %54
%64 = load ptr, ptr %3, align 8
%65 = getelementptr inbounds double, ptr %64, i64 2
%66 = load double, ptr %65, align 8
%67 = fcmp ogt double %66, 0.000000e+00
%68 = zext i1 %67 to i64
%69 = select i1 %67, double 0x3FF921FB54442D18, double 0xBFF921FB54442D18
br label %70
70: ; preds = %63, %57
%71 = phi double [ %62, %57 ], [ %69, %63 ]
%72 = load ptr, ptr %4, align 8
%73 = getelementptr inbounds double, ptr %72, i64 0
store double %71, ptr %73, align 8
%74 = load double, ptr %6, align 8
%75 = fcmp ogt double %74, 0x3D719799812DEA11
br i1 %75, label %76, label %84
76: ; preds = %70
%77 = load ptr, ptr %3, align 8
%78 = getelementptr inbounds double, ptr %77, i64 1
%79 = load double, ptr %78, align 8
%80 = load ptr, ptr %3, align 8
%81 = getelementptr inbounds double, ptr %80, i64 0
%82 = load double, ptr %81, align 8
%83 = call double @atan2(double noundef %79, double noundef %82) #4
br label %85
84: ; preds = %70
br label %85
85: ; preds = %84, %76
%86 = phi double [ %83, %76 ], [ 0.000000e+00, %84 ]
%87 = load ptr, ptr %4, align 8
%88 = getelementptr inbounds double, ptr %87, i64 1
store double %86, ptr %88, align 8
%89 = load double, ptr %6, align 8
%90 = load double, ptr %7, align 8
%91 = load double, ptr %7, align 8
%92 = call double @llvm.fmuladd.f64(double %90, double %91, double %89)
%93 = call double @sqrt(double noundef %92) #4
%94 = load double, ptr %9, align 8
%95 = fsub double %93, %94
%96 = load ptr, ptr %4, align 8
%97 = getelementptr inbounds double, ptr %96, i64 2
store double %95, ptr %97, align 8
ret void
}
declare double @dot(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fabs(double noundef) #1
; Function Attrs: nounwind
declare double @sqrt(double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
; Function Attrs: nounwind
declare double @atan(double noundef) #2
; Function Attrs: nounwind
declare double @atan2(double noundef, double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpoxq3ebce.c'
source_filename = "/tmp/tmpoxq3ebce.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @readline(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i8, align 1
%11 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%12 = load ptr, ptr %6, align 8
store ptr %12, ptr %11, align 8
store i64 1, ptr %8, align 8
br label %13
13: ; preds = %45, %3
%14 = load i64, ptr %8, align 8
%15 = load i64, ptr %7, align 8
%16 = icmp ult i64 %14, %15
br i1 %16, label %17, label %48
17: ; preds = %13
br label %18
18: ; preds = %42, %17
%19 = load i32, ptr %5, align 4
%20 = call i64 @read(i32 noundef %19, ptr noundef %10, i32 noundef 1)
store i64 %20, ptr %9, align 8
%21 = icmp eq i64 %20, 1
br i1 %21, label %22, label %31
22: ; preds = %18
%23 = load i8, ptr %10, align 1
%24 = load ptr, ptr %11, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %11, align 8
store i8 %23, ptr %24, align 1
%26 = load i8, ptr %10, align 1
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 10
br i1 %28, label %29, label %30
29: ; preds = %22
br label %48
30: ; preds = %22
br label %44
31: ; preds = %18
%32 = load i64, ptr %9, align 8
%33 = icmp eq i64 %32, 0
br i1 %33, label %34, label %38
34: ; preds = %31
%35 = load ptr, ptr %11, align 8
store i8 0, ptr %35, align 1
%36 = load i64, ptr %8, align 8
%37 = sub i64 %36, 1
store i64 %37, ptr %4, align 8
br label %51
38: ; preds = %31
%39 = load i64, ptr @errno, align 8
%40 = load i64, ptr @EINTR, align 8
%41 = icmp eq i64 %39, %40
br i1 %41, label %42, label %43
42: ; preds = %38
br label %18
43: ; preds = %38
store i64 -1, ptr %4, align 8
br label %51
44: ; preds = %30
br label %45
45: ; preds = %44
%46 = load i64, ptr %8, align 8
%47 = add i64 %46, 1
store i64 %47, ptr %8, align 8
br label %13, !llvm.loop !6
48: ; preds = %29, %13
%49 = load ptr, ptr %11, align 8
store i8 0, ptr %49, align 1
%50 = load i64, ptr %8, align 8
store i64 %50, ptr %4, align 8
br label %51
51: ; preds = %48, %43, %34
%52 = load i64, ptr %4, align 8
ret i64 %52
}
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoxq3ebce.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @readline(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i8, align 1
%11 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%12 = load ptr, ptr %6, align 8
store ptr %12, ptr %11, align 8
store i64 1, ptr %8, align 8
%13 = load i64, ptr %8, align 8
%14 = load i64, ptr %7, align 8
%15 = icmp ult i64 %13, %14
br i1 %15, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %3
br label %16
16: ; preds = %.lr.ph2, %46
%17 = load i32, ptr %5, align 4
%18 = call i64 @read(i32 noundef %17, ptr noundef %10, i32 noundef 1)
store i64 %18, ptr %9, align 8
%19 = icmp eq i64 %18, 1
br i1 %19, label %24, label %.lr.ph
.lr.ph: ; preds = %16
br label %33
20: ; preds = %40
%21 = load i32, ptr %5, align 4
%22 = call i64 @read(i32 noundef %21, ptr noundef %10, i32 noundef 1)
store i64 %22, ptr %9, align 8
%23 = icmp eq i64 %22, 1
br i1 %23, label %._crit_edge, label %33
._crit_edge: ; preds = %20
br label %24
24: ; preds = %._crit_edge, %16
%25 = load i8, ptr %10, align 1
%26 = load ptr, ptr %11, align 8
%27 = getelementptr inbounds i8, ptr %26, i32 1
store ptr %27, ptr %11, align 8
store i8 %25, ptr %26, align 1
%28 = load i8, ptr %10, align 1
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 10
br i1 %30, label %31, label %32
31: ; preds = %24
br label %52
32: ; preds = %24
br label %45
33: ; preds = %.lr.ph, %20
%34 = load i64, ptr %9, align 8
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %40
36: ; preds = %33
%37 = load ptr, ptr %11, align 8
store i8 0, ptr %37, align 1
%38 = load i64, ptr %8, align 8
%39 = sub i64 %38, 1
store i64 %39, ptr %4, align 8
br label %55
40: ; preds = %33
%41 = load i64, ptr @errno, align 8
%42 = load i64, ptr @EINTR, align 8
%43 = icmp eq i64 %41, %42
br i1 %43, label %20, label %44
44: ; preds = %40
store i64 -1, ptr %4, align 8
br label %55
45: ; preds = %32
br label %46
46: ; preds = %45
%47 = load i64, ptr %8, align 8
%48 = add i64 %47, 1
store i64 %48, ptr %8, align 8
%49 = load i64, ptr %8, align 8
%50 = load i64, ptr %7, align 8
%51 = icmp ult i64 %49, %50
br i1 %51, label %16, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %46
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %3
br label %52
52: ; preds = %.loopexit, %31
%53 = load ptr, ptr %11, align 8
store i8 0, ptr %53, align 1
%54 = load i64, ptr %8, align 8
store i64 %54, ptr %4, align 8
br label %55
55: ; preds = %52, %44, %36
%56 = load i64, ptr %4, align 8
ret i64 %56
}
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp6pieeqmt.c'
source_filename = "/tmp/tmp6pieeqmt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"static const uint8_t \00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"[] __attribute__ ((aligned (64))) = {\0A\09\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%dU,\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"\0A\09\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"\0A\09};\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @generate_eq(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%8 = load ptr, ptr %3, align 8
%9 = call i32 @emit_text(ptr noundef %8, ptr noundef @.str)
%10 = load ptr, ptr %3, align 8
%11 = load ptr, ptr %4, align 8
%12 = call i32 @emit_text(ptr noundef %10, ptr noundef %11)
%13 = load ptr, ptr %3, align 8
%14 = call i32 @emit_text(ptr noundef %13, ptr noundef @.str.1)
store i32 0, ptr %5, align 4
br label %15
15: ; preds = %52, %2
%16 = load i32, ptr %5, align 4
%17 = icmp sle i32 %16, 65535
br i1 %17, label %18, label %55
18: ; preds = %15
store i32 0, ptr %6, align 4
br label %19
19: ; preds = %35, %18
%20 = load i32, ptr %6, align 4
%21 = icmp ult i32 %20, 16
br i1 %21, label %22, label %38
22: ; preds = %19
%23 = load i32, ptr %5, align 4
%24 = load i32, ptr %6, align 4
%25 = shl i32 1, %24
%26 = and i32 %23, %25
%27 = icmp ne i32 %26, 0
%28 = xor i1 %27, true
%29 = xor i1 %28, true
%30 = zext i1 %29 to i32
store i32 %30, ptr %7, align 4
%31 = load i32, ptr %7, align 4
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %22
br label %38
34: ; preds = %22
br label %35
35: ; preds = %34
%36 = load i32, ptr %6, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %6, align 4
br label %19, !llvm.loop !6
38: ; preds = %33, %19
%39 = load ptr, ptr %3, align 8
%40 = load i32, ptr %6, align 4
%41 = call i32 @fprintf(ptr noundef %39, ptr noundef @.str.2, i32 noundef %40)
%42 = load i32, ptr %5, align 4
%43 = icmp ne i32 %42, 0
br i1 %43, label %44, label %51
44: ; preds = %38
%45 = load i32, ptr %5, align 4
%46 = and i32 %45, 15
%47 = icmp ne i32 %46, 0
br i1 %47, label %51, label %48
48: ; preds = %44
%49 = load ptr, ptr %3, align 8
%50 = call i32 @emit_text(ptr noundef %49, ptr noundef @.str.3)
br label %51
51: ; preds = %48, %44, %38
br label %52
52: ; preds = %51
%53 = load i32, ptr %5, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %5, align 4
br label %15, !llvm.loop !8
55: ; preds = %15
%56 = load ptr, ptr %3, align 8
%57 = call i32 @emit_text(ptr noundef %56, ptr noundef @.str.4)
ret void
}
declare i32 @emit_text(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6pieeqmt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"static const uint8_t \00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"[] __attribute__ ((aligned (64))) = {\0A\09\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%dU,\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"\0A\09\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"\0A\09};\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @generate_eq(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%8 = load ptr, ptr %3, align 8
%9 = call i32 @emit_text(ptr noundef %8, ptr noundef @.str)
%10 = load ptr, ptr %3, align 8
%11 = load ptr, ptr %4, align 8
%12 = call i32 @emit_text(ptr noundef %10, ptr noundef %11)
%13 = load ptr, ptr %3, align 8
%14 = call i32 @emit_text(ptr noundef %13, ptr noundef @.str.1)
store i32 0, ptr %5, align 4
%15 = load i32, ptr %5, align 4
%16 = icmp sle i32 %15, 65535
br i1 %16, label %.lr.ph1, label %57
.lr.ph1: ; preds = %2
br label %17
17: ; preds = %.lr.ph1, %52
store i32 0, ptr %6, align 4
%18 = load i32, ptr %6, align 4
%19 = icmp ult i32 %18, 16
br i1 %19, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %17
br label %20
20: ; preds = %.lr.ph, %33
%21 = load i32, ptr %5, align 4
%22 = load i32, ptr %6, align 4
%23 = shl i32 1, %22
%24 = and i32 %21, %23
%25 = icmp ne i32 %24, 0
%26 = xor i1 %25, true
%27 = xor i1 %26, true
%28 = zext i1 %27 to i32
store i32 %28, ptr %7, align 4
%29 = load i32, ptr %7, align 4
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %32
31: ; preds = %20
br label %38
32: ; preds = %20
br label %33
33: ; preds = %32
%34 = load i32, ptr %6, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %6, align 4
%36 = load i32, ptr %6, align 4
%37 = icmp ult i32 %36, 16
br i1 %37, label %20, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %33
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %17
br label %38
38: ; preds = %.loopexit, %31
%39 = load ptr, ptr %3, align 8
%40 = load i32, ptr %6, align 4
%41 = call i32 @fprintf(ptr noundef %39, ptr noundef @.str.2, i32 noundef %40)
%42 = load i32, ptr %5, align 4
%43 = icmp ne i32 %42, 0
br i1 %43, label %44, label %51
44: ; preds = %38
%45 = load i32, ptr %5, align 4
%46 = and i32 %45, 15
%47 = icmp ne i32 %46, 0
br i1 %47, label %51, label %48
48: ; preds = %44
%49 = load ptr, ptr %3, align 8
%50 = call i32 @emit_text(ptr noundef %49, ptr noundef @.str.3)
br label %51
51: ; preds = %48, %44, %38
br label %52
52: ; preds = %51
%53 = load i32, ptr %5, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %5, align 4
%55 = load i32, ptr %5, align 4
%56 = icmp sle i32 %55, 65535
br i1 %56, label %17, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %52
br label %57
57: ; preds = %._crit_edge, %2
%58 = load ptr, ptr %3, align 8
%59 = call i32 @emit_text(ptr noundef %58, ptr noundef @.str.4)
ret void
}
declare i32 @emit_text(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp44dtjoh0.c'
source_filename = "/tmp/tmp44dtjoh0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"15AAA\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"Mac OS X v10.11 El Capitan\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"14F27\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"Mac OS X v10.10.5 Yosemite\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"14E46\00", align 1
@.str.5 = private unnamed_addr constant [27 x i8] c"Mac OS X v10.10.4 Yosemite\00", align 1
@.str.6 = private unnamed_addr constant [7 x i8] c"14D136\00", align 1
@.str.7 = private unnamed_addr constant [53 x i8] c"Mac OS X v10.10.3 with supplemental update, Yosemite\00", align 1
@.str.8 = private unnamed_addr constant [7 x i8] c"14C109\00", align 1
@.str.9 = private unnamed_addr constant [27 x i8] c"Mac OS X v10.10.2 Yosemite\00", align 1
@.str.10 = private unnamed_addr constant [6 x i8] c"14B25\00", align 1
@.str.11 = private unnamed_addr constant [27 x i8] c"Mac OS X v10.10.1 Yosemite\00", align 1
@.str.12 = private unnamed_addr constant [7 x i8] c"14A389\00", align 1
@.str.13 = private unnamed_addr constant [25 x i8] c"Mac OS X v10.10 Yosemite\00", align 1
@.str.14 = private unnamed_addr constant [6 x i8] c"13F34\00", align 1
@.str.15 = private unnamed_addr constant [27 x i8] c"Mac OS X v10.9.5 Mavericks\00", align 1
@.str.16 = private unnamed_addr constant [6 x i8] c"13E28\00", align 1
@.str.17 = private unnamed_addr constant [27 x i8] c"Mac OS X v10.9.4 Mavericks\00", align 1
@.str.18 = private unnamed_addr constant [6 x i8] c"13D65\00", align 1
@.str.19 = private unnamed_addr constant [27 x i8] c"Mac OS X v10.9.3 Mavericks\00", align 1
@.str.20 = private unnamed_addr constant [6 x i8] c"13C64\00", align 1
@.str.21 = private unnamed_addr constant [27 x i8] c"Mac OS X v10.9.2 Mavericks\00", align 1
@.str.22 = private unnamed_addr constant [6 x i8] c"13B42\00", align 1
@.str.23 = private unnamed_addr constant [27 x i8] c"Mac OS X v10.9.1 Mavericks\00", align 1
@.str.24 = private unnamed_addr constant [7 x i8] c"13A603\00", align 1
@.str.25 = private unnamed_addr constant [25 x i8] c"Mac OS X v10.9 Mavericks\00", align 1
@.str.26 = private unnamed_addr constant [6 x i8] c"12F37\00", align 1
@.str.27 = private unnamed_addr constant [31 x i8] c"Mac OS X v10.8.5 Mountain Lion\00", align 1
@.str.28 = private unnamed_addr constant [6 x i8] c"12F45\00", align 1
@.str.29 = private unnamed_addr constant [8 x i8] c"12F2029\00", align 1
@.str.30 = private unnamed_addr constant [6 x i8] c"12E55\00", align 1
@.str.31 = private unnamed_addr constant [31 x i8] c"Mac OS X v10.8.4 Mountain Lion\00", align 1
@.str.32 = private unnamed_addr constant [6 x i8] c"12D78\00", align 1
@.str.33 = private unnamed_addr constant [31 x i8] c"Mac OS X v10.8.3 Mountain Lion\00", align 1
@.str.34 = private unnamed_addr constant [6 x i8] c"12C54\00", align 1
@.str.35 = private unnamed_addr constant [31 x i8] c"Mac OS X v10.8.2 Mountain Lion\00", align 1
@.str.36 = private unnamed_addr constant [6 x i8] c"12C60\00", align 1
@.str.37 = private unnamed_addr constant [8 x i8] c"12C2034\00", align 1
@.str.38 = private unnamed_addr constant [6 x i8] c"12B19\00", align 1
@.str.39 = private unnamed_addr constant [31 x i8] c"Mac OS X v10.8.1 Mountain Lion\00", align 1
@.str.40 = private unnamed_addr constant [7 x i8] c"12A269\00", align 1
@.str.41 = private unnamed_addr constant [23 x i8] c"Mac OS X Mountain Lion\00", align 1
@.str.42 = private unnamed_addr constant [6 x i8] c"11G56\00", align 1
@.str.43 = private unnamed_addr constant [22 x i8] c"Mac OS X v10.7.5 Lion\00", align 1
@.str.44 = private unnamed_addr constant [6 x i8] c"11G63\00", align 1
@.str.45 = private unnamed_addr constant [7 x i8] c"11A511\00", align 1
@.str.46 = private unnamed_addr constant [20 x i8] c"Mac OS X v10.7 Lion\00", align 1
@.str.47 = private unnamed_addr constant [7 x i8] c"10K540\00", align 1
@.str.48 = private unnamed_addr constant [30 x i8] c"Mac OS X v10.6.8 Snow Leopard\00", align 1
@.str.49 = private unnamed_addr constant [7 x i8] c"10K549\00", align 1
@.str.50 = private unnamed_addr constant [7 x i8] c"10D575\00", align 1
@.str.51 = private unnamed_addr constant [42 x i8] c"Mac OS X v10.6.3 Snow Leopard Install DVD\00", align 1
@.str.52 = private unnamed_addr constant [7 x i8] c"10A433\00", align 1
@.str.53 = private unnamed_addr constant [47 x i8] c"Mac OS X Server v10.6 Snow Leopard Install DVD\00", align 1
@.str.54 = private unnamed_addr constant [7 x i8] c"10A432\00", align 1
@.str.55 = private unnamed_addr constant [40 x i8] c"Mac OS X v10.6 Snow Leopard Install DVD\00", align 1
@.str.56 = private unnamed_addr constant [5 x i8] c"9L30\00", align 1
@.str.57 = private unnamed_addr constant [25 x i8] c"Mac OS X v10.5.8 Leopard\00", align 1
@.str.58 = private unnamed_addr constant [5 x i8] c"9L34\00", align 1
@.str.59 = private unnamed_addr constant [36 x i8] c"Mac OS X Server 10.5.8 v1.1 Leopard\00", align 1
@.str.60 = private unnamed_addr constant [5 x i8] c"9G66\00", align 1
@.str.61 = private unnamed_addr constant [37 x i8] c"Mac OS X v10.5.6 Leopard Install DVD\00", align 1
@.str.62 = private unnamed_addr constant [6 x i8] c"9A581\00", align 1
@.str.63 = private unnamed_addr constant [35 x i8] c"Mac OS X v10.5 Leopard Install DVD\00", align 1
@.str.64 = private unnamed_addr constant [6 x i8] c"8S165\00", align 1
@.str.65 = private unnamed_addr constant [24 x i8] c"Mac OS X v10.4.11 Tiger\00", align 1
@.str.66 = private unnamed_addr constant [6 x i8] c"8A428\00", align 1
@.str.67 = private unnamed_addr constant [39 x i8] c"Mac OS X v10.4 Tiger installation disc\00", align 1
@.str.68 = private unnamed_addr constant [5 x i8] c"7W98\00", align 1
@.str.69 = private unnamed_addr constant [25 x i8] c"Mac OS X v10.3.9 Panther\00", align 1
@.str.70 = private unnamed_addr constant [5 x i8] c"7D28\00", align 1
@.str.71 = private unnamed_addr constant [43 x i8] c"Mac OS X v10.3.2 Panther installation disc\00", align 1
@.str.72 = private unnamed_addr constant [5 x i8] c"7B85\00", align 1
@.str.73 = private unnamed_addr constant [41 x i8] c"Mac OS X v10.3 Panther installation disc\00", align 1
@.str.74 = private unnamed_addr constant [5 x i8] c"6R65\00", align 1
@.str.75 = private unnamed_addr constant [24 x i8] c"Mac OS X v10.2.8 Jaguar\00", align 1
@.str.76 = private unnamed_addr constant [5 x i8] c"6R73\00", align 1
@.str.77 = private unnamed_addr constant [5 x i8] c"6G37\00", align 1
@.str.78 = private unnamed_addr constant [42 x i8] c"Mac OS X v10.2.3 Jaguar installation disc\00", align 1
@.str.79 = private unnamed_addr constant [5 x i8] c"6G35\00", align 1
@.str.80 = private unnamed_addr constant [49 x i8] c"Mac OS X Server v10.2.3 Jaguar installation disc\00", align 1
@.str.81 = private unnamed_addr constant [6 x i8] c"6C115\00", align 1
@.str.82 = private unnamed_addr constant [40 x i8] c"Mac OS X v10.2 Jaguar installation disc\00", align 1
@.str.83 = private unnamed_addr constant [5 x i8] c"5S66\00", align 1
@.str.84 = private unnamed_addr constant [49 x i8] c"Mac OS X v10.1.5 Puma with Networking Update 1.0\00", align 1
@.str.85 = private unnamed_addr constant [5 x i8] c"5S60\00", align 1
@.str.86 = private unnamed_addr constant [22 x i8] c"Mac OS X v10.1.5 Puma\00", align 1
@.str.87 = private unnamed_addr constant [6 x i8] c"5L17B\00", align 1
@.str.88 = private unnamed_addr constant [69 x i8] c"Mac OS X v10.1 Puma installation disc with Security Update 10-19-01\00", align 1
@.str.89 = private unnamed_addr constant [5 x i8] c"5L14\00", align 1
@.str.90 = private unnamed_addr constant [5 x i8] c"5G64\00", align 1
@.str.91 = private unnamed_addr constant [38 x i8] c"Mac OS X v10.1 Puma installation disc\00", align 1
@.str.92 = private unnamed_addr constant [5 x i8] c"4K78\00", align 1
@.str.93 = private unnamed_addr constant [41 x i8] c"Mac OS X v10.0 Cheetah installation disc\00", align 1
@__const.main.tabela = private unnamed_addr constant [51 x [2 x ptr]] [[2 x ptr] [ptr @.str, ptr @.str.1], [2 x ptr] [ptr @.str.2, ptr @.str.3], [2 x ptr] [ptr @.str.4, ptr @.str.5], [2 x ptr] [ptr @.str.6, ptr @.str.7], [2 x ptr] [ptr @.str.8, ptr @.str.9], [2 x ptr] [ptr @.str.10, ptr @.str.11], [2 x ptr] [ptr @.str.12, ptr @.str.13], [2 x ptr] [ptr @.str.14, ptr @.str.15], [2 x ptr] [ptr @.str.16, ptr @.str.17], [2 x ptr] [ptr @.str.18, ptr @.str.19], [2 x ptr] [ptr @.str.20, ptr @.str.21], [2 x ptr] [ptr @.str.22, ptr @.str.23], [2 x ptr] [ptr @.str.24, ptr @.str.25], [2 x ptr] [ptr @.str.26, ptr @.str.27], [2 x ptr] [ptr @.str.28, ptr @.str.27], [2 x ptr] [ptr @.str.29, ptr @.str.27], [2 x ptr] [ptr @.str.30, ptr @.str.31], [2 x ptr] [ptr @.str.32, ptr @.str.33], [2 x ptr] [ptr @.str.34, ptr @.str.35], [2 x ptr] [ptr @.str.36, ptr @.str.35], [2 x ptr] [ptr @.str.37, ptr @.str.35], [2 x ptr] [ptr @.str.38, ptr @.str.39], [2 x ptr] [ptr @.str.40, ptr @.str.41], [2 x ptr] [ptr @.str.42, ptr @.str.43], [2 x ptr] [ptr @.str.44, ptr @.str.43], [2 x ptr] [ptr @.str.45, ptr @.str.46], [2 x ptr] [ptr @.str.47, ptr @.str.48], [2 x ptr] [ptr @.str.49, ptr @.str.48], [2 x ptr] [ptr @.str.50, ptr @.str.51], [2 x ptr] [ptr @.str.52, ptr @.str.53], [2 x ptr] [ptr @.str.54, ptr @.str.55], [2 x ptr] [ptr @.str.56, ptr @.str.57], [2 x ptr] [ptr @.str.58, ptr @.str.59], [2 x ptr] [ptr @.str.60, ptr @.str.61], [2 x ptr] [ptr @.str.62, ptr @.str.63], [2 x ptr] [ptr @.str.64, ptr @.str.65], [2 x ptr] [ptr @.str.66, ptr @.str.67], [2 x ptr] [ptr @.str.68, ptr @.str.69], [2 x ptr] [ptr @.str.70, ptr @.str.71], [2 x ptr] [ptr @.str.72, ptr @.str.73], [2 x ptr] [ptr @.str.74, ptr @.str.75], [2 x ptr] [ptr @.str.76, ptr @.str.75], [2 x ptr] [ptr @.str.77, ptr @.str.78], [2 x ptr] [ptr @.str.79, ptr @.str.80], [2 x ptr] [ptr @.str.81, ptr @.str.82], [2 x ptr] [ptr @.str.83, ptr @.str.84], [2 x ptr] [ptr @.str.85, ptr @.str.86], [2 x ptr] [ptr @.str.87, ptr @.str.88], [2 x ptr] [ptr @.str.89, ptr @.str.88], [2 x ptr] [ptr @.str.90, ptr @.str.91], [2 x ptr] [ptr @.str.92, ptr @.str.93]], align 16
@.str.94 = private unnamed_addr constant [59 x i8] c"OSX build# or 'osxbc build#' next time you run this tool: \00", align 1
@.str.95 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.96 = private unnamed_addr constant [5 x i8] c"DUMP\00", align 1
@.str.97 = private unnamed_addr constant [7 x i8] c"%s\09%s\0A\00", align 1
@.str.98 = private unnamed_addr constant [25 x i8] c"No such Mac OS X build!\0A\00", align 1
@.str.99 = 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 [15 x i8], align 1
%7 = alloca [51 x [2 x ptr]], align 16
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 @__const.main.tabela, i64 816, i1 false)
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 2
br i1 %11, label %12, label %18
12: ; preds = %2
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.94)
%14 = getelementptr inbounds [15 x i8], ptr %6, i64 0, i64 0
%15 = call i32 @scanf(ptr noundef @.str.95, ptr noundef %14)
%16 = getelementptr inbounds [15 x i8], ptr %6, i64 0, i64 0
%17 = call i32 @toUpperStr(ptr noundef %16)
br label %26
18: ; preds = %2
%19 = getelementptr inbounds [15 x i8], ptr %6, i64 0, i64 0
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
%23 = call i32 @strcpy(ptr noundef %19, ptr noundef %22)
%24 = getelementptr inbounds [15 x i8], ptr %6, i64 0, i64 0
%25 = call i32 @toUpperStr(ptr noundef %24)
br label %26
26: ; preds = %18, %12
%27 = getelementptr inbounds [15 x i8], ptr %6, i64 0, i64 0
%28 = call i64 @strcmp(ptr noundef %27, ptr noundef @.str.96)
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %50
30: ; preds = %26
store i32 0, ptr %8, align 4
br label %31
31: ; preds = %46, %30
%32 = load i32, ptr %8, align 4
%33 = icmp slt i32 %32, 51
br i1 %33, label %34, label %49
34: ; preds = %31
%35 = load i32, ptr %8, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [51 x [2 x ptr]], ptr %7, i64 0, i64 %36
%38 = getelementptr inbounds [2 x ptr], ptr %37, i64 0, i64 0
%39 = load ptr, ptr %38, align 16
%40 = load i32, ptr %8, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [51 x [2 x ptr]], ptr %7, i64 0, i64 %41
%43 = getelementptr inbounds [2 x ptr], ptr %42, i64 0, i64 1
%44 = load ptr, ptr %43, align 8
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.97, ptr noundef %39, ptr noundef %44)
br label %46
46: ; preds = %34
%47 = load i32, ptr %8, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %8, align 4
br label %31, !llvm.loop !6
49: ; preds = %31
br label %50
50: ; preds = %49, %26
store i32 0, ptr %9, align 4
br label %51
51: ; preds = %78, %50
%52 = load i32, ptr %9, align 4
%53 = icmp sge i32 %52, 51
br i1 %53, label %54, label %61
54: ; preds = %51
%55 = getelementptr inbounds [15 x i8], ptr %6, i64 0, i64 0
%56 = call i64 @strcmp(ptr noundef %55, ptr noundef @.str.96)
%57 = icmp ne i64 %56, 0
br i1 %57, label %58, label %60
58: ; preds = %54
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.98)
br label %60
60: ; preds = %58, %54
br label %81
61: ; preds = %51
%62 = load i32, ptr %9, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [51 x [2 x ptr]], ptr %7, i64 0, i64 %63
%65 = getelementptr inbounds [2 x ptr], ptr %64, i64 0, i64 0
%66 = load ptr, ptr %65, align 16
%67 = getelementptr inbounds [15 x i8], ptr %6, i64 0, i64 0
%68 = call i64 @strcmp(ptr noundef %66, ptr noundef %67)
%69 = icmp eq i64 %68, 0
br i1 %69, label %70, label %77
70: ; preds = %61
%71 = load i32, ptr %9, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [51 x [2 x ptr]], ptr %7, i64 0, i64 %72
%74 = getelementptr inbounds [2 x ptr], ptr %73, i64 0, i64 1
%75 = load ptr, ptr %74, align 8
%76 = call i32 (ptr, ...) @printf(ptr noundef @.str.99, ptr noundef %75)
br label %81
77: ; preds = %61
br label %78
78: ; preds = %77
%79 = load i32, ptr %9, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %9, align 4
br label %51
81: ; preds = %70, %60
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
declare i32 @scanf(ptr noundef, ptr noundef) #2
declare i32 @toUpperStr(ptr noundef) #2
declare i32 @strcpy(ptr noundef, ptr noundef) #2
declare i64 @strcmp(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp44dtjoh0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"15AAA\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"Mac OS X v10.11 El Capitan\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"14F27\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"Mac OS X v10.10.5 Yosemite\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"14E46\00", align 1
@.str.5 = private unnamed_addr constant [27 x i8] c"Mac OS X v10.10.4 Yosemite\00", align 1
@.str.6 = private unnamed_addr constant [7 x i8] c"14D136\00", align 1
@.str.7 = private unnamed_addr constant [53 x i8] c"Mac OS X v10.10.3 with supplemental update, Yosemite\00", align 1
@.str.8 = private unnamed_addr constant [7 x i8] c"14C109\00", align 1
@.str.9 = private unnamed_addr constant [27 x i8] c"Mac OS X v10.10.2 Yosemite\00", align 1
@.str.10 = private unnamed_addr constant [6 x i8] c"14B25\00", align 1
@.str.11 = private unnamed_addr constant [27 x i8] c"Mac OS X v10.10.1 Yosemite\00", align 1
@.str.12 = private unnamed_addr constant [7 x i8] c"14A389\00", align 1
@.str.13 = private unnamed_addr constant [25 x i8] c"Mac OS X v10.10 Yosemite\00", align 1
@.str.14 = private unnamed_addr constant [6 x i8] c"13F34\00", align 1
@.str.15 = private unnamed_addr constant [27 x i8] c"Mac OS X v10.9.5 Mavericks\00", align 1
@.str.16 = private unnamed_addr constant [6 x i8] c"13E28\00", align 1
@.str.17 = private unnamed_addr constant [27 x i8] c"Mac OS X v10.9.4 Mavericks\00", align 1
@.str.18 = private unnamed_addr constant [6 x i8] c"13D65\00", align 1
@.str.19 = private unnamed_addr constant [27 x i8] c"Mac OS X v10.9.3 Mavericks\00", align 1
@.str.20 = private unnamed_addr constant [6 x i8] c"13C64\00", align 1
@.str.21 = private unnamed_addr constant [27 x i8] c"Mac OS X v10.9.2 Mavericks\00", align 1
@.str.22 = private unnamed_addr constant [6 x i8] c"13B42\00", align 1
@.str.23 = private unnamed_addr constant [27 x i8] c"Mac OS X v10.9.1 Mavericks\00", align 1
@.str.24 = private unnamed_addr constant [7 x i8] c"13A603\00", align 1
@.str.25 = private unnamed_addr constant [25 x i8] c"Mac OS X v10.9 Mavericks\00", align 1
@.str.26 = private unnamed_addr constant [6 x i8] c"12F37\00", align 1
@.str.27 = private unnamed_addr constant [31 x i8] c"Mac OS X v10.8.5 Mountain Lion\00", align 1
@.str.28 = private unnamed_addr constant [6 x i8] c"12F45\00", align 1
@.str.29 = private unnamed_addr constant [8 x i8] c"12F2029\00", align 1
@.str.30 = private unnamed_addr constant [6 x i8] c"12E55\00", align 1
@.str.31 = private unnamed_addr constant [31 x i8] c"Mac OS X v10.8.4 Mountain Lion\00", align 1
@.str.32 = private unnamed_addr constant [6 x i8] c"12D78\00", align 1
@.str.33 = private unnamed_addr constant [31 x i8] c"Mac OS X v10.8.3 Mountain Lion\00", align 1
@.str.34 = private unnamed_addr constant [6 x i8] c"12C54\00", align 1
@.str.35 = private unnamed_addr constant [31 x i8] c"Mac OS X v10.8.2 Mountain Lion\00", align 1
@.str.36 = private unnamed_addr constant [6 x i8] c"12C60\00", align 1
@.str.37 = private unnamed_addr constant [8 x i8] c"12C2034\00", align 1
@.str.38 = private unnamed_addr constant [6 x i8] c"12B19\00", align 1
@.str.39 = private unnamed_addr constant [31 x i8] c"Mac OS X v10.8.1 Mountain Lion\00", align 1
@.str.40 = private unnamed_addr constant [7 x i8] c"12A269\00", align 1
@.str.41 = private unnamed_addr constant [23 x i8] c"Mac OS X Mountain Lion\00", align 1
@.str.42 = private unnamed_addr constant [6 x i8] c"11G56\00", align 1
@.str.43 = private unnamed_addr constant [22 x i8] c"Mac OS X v10.7.5 Lion\00", align 1
@.str.44 = private unnamed_addr constant [6 x i8] c"11G63\00", align 1
@.str.45 = private unnamed_addr constant [7 x i8] c"11A511\00", align 1
@.str.46 = private unnamed_addr constant [20 x i8] c"Mac OS X v10.7 Lion\00", align 1
@.str.47 = private unnamed_addr constant [7 x i8] c"10K540\00", align 1
@.str.48 = private unnamed_addr constant [30 x i8] c"Mac OS X v10.6.8 Snow Leopard\00", align 1
@.str.49 = private unnamed_addr constant [7 x i8] c"10K549\00", align 1
@.str.50 = private unnamed_addr constant [7 x i8] c"10D575\00", align 1
@.str.51 = private unnamed_addr constant [42 x i8] c"Mac OS X v10.6.3 Snow Leopard Install DVD\00", align 1
@.str.52 = private unnamed_addr constant [7 x i8] c"10A433\00", align 1
@.str.53 = private unnamed_addr constant [47 x i8] c"Mac OS X Server v10.6 Snow Leopard Install DVD\00", align 1
@.str.54 = private unnamed_addr constant [7 x i8] c"10A432\00", align 1
@.str.55 = private unnamed_addr constant [40 x i8] c"Mac OS X v10.6 Snow Leopard Install DVD\00", align 1
@.str.56 = private unnamed_addr constant [5 x i8] c"9L30\00", align 1
@.str.57 = private unnamed_addr constant [25 x i8] c"Mac OS X v10.5.8 Leopard\00", align 1
@.str.58 = private unnamed_addr constant [5 x i8] c"9L34\00", align 1
@.str.59 = private unnamed_addr constant [36 x i8] c"Mac OS X Server 10.5.8 v1.1 Leopard\00", align 1
@.str.60 = private unnamed_addr constant [5 x i8] c"9G66\00", align 1
@.str.61 = private unnamed_addr constant [37 x i8] c"Mac OS X v10.5.6 Leopard Install DVD\00", align 1
@.str.62 = private unnamed_addr constant [6 x i8] c"9A581\00", align 1
@.str.63 = private unnamed_addr constant [35 x i8] c"Mac OS X v10.5 Leopard Install DVD\00", align 1
@.str.64 = private unnamed_addr constant [6 x i8] c"8S165\00", align 1
@.str.65 = private unnamed_addr constant [24 x i8] c"Mac OS X v10.4.11 Tiger\00", align 1
@.str.66 = private unnamed_addr constant [6 x i8] c"8A428\00", align 1
@.str.67 = private unnamed_addr constant [39 x i8] c"Mac OS X v10.4 Tiger installation disc\00", align 1
@.str.68 = private unnamed_addr constant [5 x i8] c"7W98\00", align 1
@.str.69 = private unnamed_addr constant [25 x i8] c"Mac OS X v10.3.9 Panther\00", align 1
@.str.70 = private unnamed_addr constant [5 x i8] c"7D28\00", align 1
@.str.71 = private unnamed_addr constant [43 x i8] c"Mac OS X v10.3.2 Panther installation disc\00", align 1
@.str.72 = private unnamed_addr constant [5 x i8] c"7B85\00", align 1
@.str.73 = private unnamed_addr constant [41 x i8] c"Mac OS X v10.3 Panther installation disc\00", align 1
@.str.74 = private unnamed_addr constant [5 x i8] c"6R65\00", align 1
@.str.75 = private unnamed_addr constant [24 x i8] c"Mac OS X v10.2.8 Jaguar\00", align 1
@.str.76 = private unnamed_addr constant [5 x i8] c"6R73\00", align 1
@.str.77 = private unnamed_addr constant [5 x i8] c"6G37\00", align 1
@.str.78 = private unnamed_addr constant [42 x i8] c"Mac OS X v10.2.3 Jaguar installation disc\00", align 1
@.str.79 = private unnamed_addr constant [5 x i8] c"6G35\00", align 1
@.str.80 = private unnamed_addr constant [49 x i8] c"Mac OS X Server v10.2.3 Jaguar installation disc\00", align 1
@.str.81 = private unnamed_addr constant [6 x i8] c"6C115\00", align 1
@.str.82 = private unnamed_addr constant [40 x i8] c"Mac OS X v10.2 Jaguar installation disc\00", align 1
@.str.83 = private unnamed_addr constant [5 x i8] c"5S66\00", align 1
@.str.84 = private unnamed_addr constant [49 x i8] c"Mac OS X v10.1.5 Puma with Networking Update 1.0\00", align 1
@.str.85 = private unnamed_addr constant [5 x i8] c"5S60\00", align 1
@.str.86 = private unnamed_addr constant [22 x i8] c"Mac OS X v10.1.5 Puma\00", align 1
@.str.87 = private unnamed_addr constant [6 x i8] c"5L17B\00", align 1
@.str.88 = private unnamed_addr constant [69 x i8] c"Mac OS X v10.1 Puma installation disc with Security Update 10-19-01\00", align 1
@.str.89 = private unnamed_addr constant [5 x i8] c"5L14\00", align 1
@.str.90 = private unnamed_addr constant [5 x i8] c"5G64\00", align 1
@.str.91 = private unnamed_addr constant [38 x i8] c"Mac OS X v10.1 Puma installation disc\00", align 1
@.str.92 = private unnamed_addr constant [5 x i8] c"4K78\00", align 1
@.str.93 = private unnamed_addr constant [41 x i8] c"Mac OS X v10.0 Cheetah installation disc\00", align 1
@__const.main.tabela = private unnamed_addr constant [51 x [2 x ptr]] [[2 x ptr] [ptr @.str, ptr @.str.1], [2 x ptr] [ptr @.str.2, ptr @.str.3], [2 x ptr] [ptr @.str.4, ptr @.str.5], [2 x ptr] [ptr @.str.6, ptr @.str.7], [2 x ptr] [ptr @.str.8, ptr @.str.9], [2 x ptr] [ptr @.str.10, ptr @.str.11], [2 x ptr] [ptr @.str.12, ptr @.str.13], [2 x ptr] [ptr @.str.14, ptr @.str.15], [2 x ptr] [ptr @.str.16, ptr @.str.17], [2 x ptr] [ptr @.str.18, ptr @.str.19], [2 x ptr] [ptr @.str.20, ptr @.str.21], [2 x ptr] [ptr @.str.22, ptr @.str.23], [2 x ptr] [ptr @.str.24, ptr @.str.25], [2 x ptr] [ptr @.str.26, ptr @.str.27], [2 x ptr] [ptr @.str.28, ptr @.str.27], [2 x ptr] [ptr @.str.29, ptr @.str.27], [2 x ptr] [ptr @.str.30, ptr @.str.31], [2 x ptr] [ptr @.str.32, ptr @.str.33], [2 x ptr] [ptr @.str.34, ptr @.str.35], [2 x ptr] [ptr @.str.36, ptr @.str.35], [2 x ptr] [ptr @.str.37, ptr @.str.35], [2 x ptr] [ptr @.str.38, ptr @.str.39], [2 x ptr] [ptr @.str.40, ptr @.str.41], [2 x ptr] [ptr @.str.42, ptr @.str.43], [2 x ptr] [ptr @.str.44, ptr @.str.43], [2 x ptr] [ptr @.str.45, ptr @.str.46], [2 x ptr] [ptr @.str.47, ptr @.str.48], [2 x ptr] [ptr @.str.49, ptr @.str.48], [2 x ptr] [ptr @.str.50, ptr @.str.51], [2 x ptr] [ptr @.str.52, ptr @.str.53], [2 x ptr] [ptr @.str.54, ptr @.str.55], [2 x ptr] [ptr @.str.56, ptr @.str.57], [2 x ptr] [ptr @.str.58, ptr @.str.59], [2 x ptr] [ptr @.str.60, ptr @.str.61], [2 x ptr] [ptr @.str.62, ptr @.str.63], [2 x ptr] [ptr @.str.64, ptr @.str.65], [2 x ptr] [ptr @.str.66, ptr @.str.67], [2 x ptr] [ptr @.str.68, ptr @.str.69], [2 x ptr] [ptr @.str.70, ptr @.str.71], [2 x ptr] [ptr @.str.72, ptr @.str.73], [2 x ptr] [ptr @.str.74, ptr @.str.75], [2 x ptr] [ptr @.str.76, ptr @.str.75], [2 x ptr] [ptr @.str.77, ptr @.str.78], [2 x ptr] [ptr @.str.79, ptr @.str.80], [2 x ptr] [ptr @.str.81, ptr @.str.82], [2 x ptr] [ptr @.str.83, ptr @.str.84], [2 x ptr] [ptr @.str.85, ptr @.str.86], [2 x ptr] [ptr @.str.87, ptr @.str.88], [2 x ptr] [ptr @.str.89, ptr @.str.88], [2 x ptr] [ptr @.str.90, ptr @.str.91], [2 x ptr] [ptr @.str.92, ptr @.str.93]], align 16
@.str.94 = private unnamed_addr constant [59 x i8] c"OSX build# or 'osxbc build#' next time you run this tool: \00", align 1
@.str.95 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.96 = private unnamed_addr constant [5 x i8] c"DUMP\00", align 1
@.str.97 = private unnamed_addr constant [7 x i8] c"%s\09%s\0A\00", align 1
@.str.98 = private unnamed_addr constant [25 x i8] c"No such Mac OS X build!\0A\00", align 1
@.str.99 = 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 [15 x i8], align 1
%7 = alloca [51 x [2 x ptr]], align 16
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 @__const.main.tabela, i64 816, i1 false)
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 2
br i1 %11, label %12, label %18
12: ; preds = %2
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.94)
%14 = getelementptr inbounds [15 x i8], ptr %6, i64 0, i64 0
%15 = call i32 @scanf(ptr noundef @.str.95, ptr noundef %14)
%16 = getelementptr inbounds [15 x i8], ptr %6, i64 0, i64 0
%17 = call i32 @toUpperStr(ptr noundef %16)
br label %26
18: ; preds = %2
%19 = getelementptr inbounds [15 x i8], ptr %6, i64 0, i64 0
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
%23 = call i32 @strcpy(ptr noundef %19, ptr noundef %22)
%24 = getelementptr inbounds [15 x i8], ptr %6, i64 0, i64 0
%25 = call i32 @toUpperStr(ptr noundef %24)
br label %26
26: ; preds = %18, %12
%27 = getelementptr inbounds [15 x i8], ptr %6, i64 0, i64 0
%28 = call i64 @strcmp(ptr noundef %27, ptr noundef @.str.96)
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %51
30: ; preds = %26
store i32 0, ptr %8, align 4
%31 = load i32, ptr %8, align 4
%32 = icmp slt i32 %31, 51
br i1 %32, label %.lr.ph, label %50
.lr.ph: ; preds = %30
br label %33
33: ; preds = %.lr.ph, %45
%34 = load i32, ptr %8, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [51 x [2 x ptr]], ptr %7, i64 0, i64 %35
%37 = getelementptr inbounds [2 x ptr], ptr %36, i64 0, i64 0
%38 = load ptr, ptr %37, align 16
%39 = load i32, ptr %8, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [51 x [2 x ptr]], ptr %7, i64 0, i64 %40
%42 = getelementptr inbounds [2 x ptr], ptr %41, i64 0, i64 1
%43 = load ptr, ptr %42, align 8
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.97, ptr noundef %38, ptr noundef %43)
br label %45
45: ; preds = %33
%46 = load i32, ptr %8, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %8, align 4
%48 = load i32, ptr %8, align 4
%49 = icmp slt i32 %48, 51
br i1 %49, label %33, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %45
br label %50
50: ; preds = %._crit_edge, %30
br label %51
51: ; preds = %50, %26
store i32 0, ptr %9, align 4
%52 = load i32, ptr %9, align 4
%53 = icmp sge i32 %52, 51
br i1 %53, label %54, label %.lr.ph2
.lr.ph2: ; preds = %51
br label %61
._crit_edge3: ; preds = %78
br label %54
54: ; preds = %._crit_edge3, %51
%55 = getelementptr inbounds [15 x i8], ptr %6, i64 0, i64 0
%56 = call i64 @strcmp(ptr noundef %55, ptr noundef @.str.96)
%57 = icmp ne i64 %56, 0
br i1 %57, label %58, label %60
58: ; preds = %54
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.98)
br label %60
60: ; preds = %58, %54
br label %83
61: ; preds = %.lr.ph2, %78
%62 = load i32, ptr %9, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [51 x [2 x ptr]], ptr %7, i64 0, i64 %63
%65 = getelementptr inbounds [2 x ptr], ptr %64, i64 0, i64 0
%66 = load ptr, ptr %65, align 16
%67 = getelementptr inbounds [15 x i8], ptr %6, i64 0, i64 0
%68 = call i64 @strcmp(ptr noundef %66, ptr noundef %67)
%69 = icmp eq i64 %68, 0
br i1 %69, label %70, label %77
70: ; preds = %61
%71 = load i32, ptr %9, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [51 x [2 x ptr]], ptr %7, i64 0, i64 %72
%74 = getelementptr inbounds [2 x ptr], ptr %73, i64 0, i64 1
%75 = load ptr, ptr %74, align 8
%76 = call i32 (ptr, ...) @printf(ptr noundef @.str.99, ptr noundef %75)
br label %83
77: ; preds = %61
br label %78
78: ; preds = %77
%79 = load i32, ptr %9, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %9, align 4
%81 = load i32, ptr %9, align 4
%82 = icmp sge i32 %81, 51
br i1 %82, label %._crit_edge3, label %61
83: ; preds = %70, %60
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
declare i32 @scanf(ptr noundef, ptr noundef) #2
declare i32 @toUpperStr(ptr noundef) #2
declare i32 @strcpy(ptr noundef, ptr noundef) #2
declare i64 @strcmp(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp8e6gld05.c'
source_filename = "/tmp/tmp8e6gld05.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x i8], align 16
%3 = alloca [10 x i8], align 1
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %8
8: ; preds = %77, %0
%9 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%10 = load i32, ptr @stdin, align 4
%11 = call ptr @fgets(ptr noundef %9, i32 noundef 100, i32 noundef %10)
%12 = icmp ne ptr null, %11
br i1 %12, label %13, label %78
13: ; preds = %8
%14 = getelementptr inbounds [10 x i8], ptr %3, i64 0, i64 0
%15 = call i32 @resetArr(i32 noundef 10, ptr noundef %14)
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %16
16: ; preds = %45, %13
%17 = load i32, ptr %5, align 4
%18 = icmp slt i32 %17, 10
br i1 %18, label %19, label %48
19: ; preds = %16
%20 = load i32, ptr %5, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %21
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp slt i32 %24, 48
br i1 %25, label %33, label %26
26: ; preds = %19
%27 = load i32, ptr %5, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %28
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp sgt i32 %31, 57
br i1 %32, label %33, label %34
33: ; preds = %26, %19
store i32 1, ptr %4, align 4
br label %48
34: ; preds = %26
%35 = load i32, ptr %5, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %36
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = sub nsw i32 %39, 48
%41 = trunc i32 %40 to i8
%42 = load i32, ptr %5, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [10 x i8], ptr %3, i64 0, i64 %43
store i8 %41, ptr %44, align 1
br label %45
45: ; preds = %34
%46 = load i32, ptr %5, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %5, align 4
br label %16, !llvm.loop !6
48: ; preds = %33, %16
%49 = load i32, ptr %4, align 4
%50 = icmp ne i32 %49, 0
br i1 %50, label %77, label %51
51: ; preds = %48
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
br label %52
52: ; preds = %63, %51
%53 = load i32, ptr %7, align 4
%54 = icmp slt i32 %53, 9
br i1 %54, label %55, label %66
55: ; preds = %52
%56 = load i32, ptr %7, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [10 x i8], ptr %3, i64 0, i64 %57
%59 = load i8, ptr %58, align 1
%60 = sext i8 %59 to i32
%61 = load i32, ptr %6, align 4
%62 = add nsw i32 %61, %60
store i32 %62, ptr %6, align 4
br label %63
63: ; preds = %55
%64 = load i32, ptr %7, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %7, align 4
br label %52, !llvm.loop !8
66: ; preds = %52
%67 = getelementptr inbounds [10 x i8], ptr %3, i64 0, i64 9
%68 = load i8, ptr %67, align 1
%69 = sext i8 %68 to i32
%70 = load i32, ptr %6, align 4
%71 = srem i32 %70, 10
%72 = icmp eq i32 %69, %71
br i1 %72, label %73, label %76
73: ; preds = %66
%74 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%75 = call i32 @printf(ptr noundef @.str, ptr noundef %74)
br label %76
76: ; preds = %73, %66
br label %77
77: ; preds = %76, %48
br label %8, !llvm.loop !9
78: ; preds = %8
ret i32 0
}
declare ptr @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @resetArr(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8e6gld05.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x i8], align 16
%3 = alloca [10 x i8], align 1
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%9 = load i32, ptr @stdin, align 4
%10 = call ptr @fgets(ptr noundef %8, i32 noundef 100, i32 noundef %9)
%11 = icmp ne ptr null, %10
br i1 %11, label %.lr.ph3, label %82
.lr.ph3: ; preds = %0
br label %12
12: ; preds = %.lr.ph3, %78
%13 = getelementptr inbounds [10 x i8], ptr %3, i64 0, i64 0
%14 = call i32 @resetArr(i32 noundef 10, ptr noundef %13)
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
%15 = load i32, ptr %5, align 4
%16 = icmp slt i32 %15, 10
br i1 %16, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %12
br label %17
17: ; preds = %.lr.ph, %43
%18 = load i32, ptr %5, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %19
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp slt i32 %22, 48
br i1 %23, label %31, label %24
24: ; preds = %17
%25 = load i32, ptr %5, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %26
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp sgt i32 %29, 57
br i1 %30, label %31, label %32
31: ; preds = %24, %17
store i32 1, ptr %4, align 4
br label %48
32: ; preds = %24
%33 = load i32, ptr %5, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %34
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = sub nsw i32 %37, 48
%39 = trunc i32 %38 to i8
%40 = load i32, ptr %5, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [10 x i8], ptr %3, i64 0, i64 %41
store i8 %39, ptr %42, align 1
br label %43
43: ; preds = %32
%44 = load i32, ptr %5, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %5, align 4
%46 = load i32, ptr %5, align 4
%47 = icmp slt i32 %46, 10
br i1 %47, label %17, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %43
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %12
br label %48
48: ; preds = %.loopexit, %31
%49 = load i32, ptr %4, align 4
%50 = icmp ne i32 %49, 0
br i1 %50, label %78, label %51
51: ; preds = %48
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
%52 = load i32, ptr %7, align 4
%53 = icmp slt i32 %52, 9
br i1 %53, label %.lr.ph1, label %67
.lr.ph1: ; preds = %51
br label %54
54: ; preds = %.lr.ph1, %62
%55 = load i32, ptr %7, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [10 x i8], ptr %3, i64 0, i64 %56
%58 = load i8, ptr %57, align 1
%59 = sext i8 %58 to i32
%60 = load i32, ptr %6, align 4
%61 = add nsw i32 %60, %59
store i32 %61, ptr %6, align 4
br label %62
62: ; preds = %54
%63 = load i32, ptr %7, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %7, align 4
%65 = load i32, ptr %7, align 4
%66 = icmp slt i32 %65, 9
br i1 %66, label %54, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %62
br label %67
67: ; preds = %._crit_edge, %51
%68 = getelementptr inbounds [10 x i8], ptr %3, i64 0, i64 9
%69 = load i8, ptr %68, align 1
%70 = sext i8 %69 to i32
%71 = load i32, ptr %6, align 4
%72 = srem i32 %71, 10
%73 = icmp eq i32 %70, %72
br i1 %73, label %74, label %77
74: ; preds = %67
%75 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%76 = call i32 @printf(ptr noundef @.str, ptr noundef %75)
br label %77
77: ; preds = %74, %67
br label %78
78: ; preds = %77, %48
%79 = load i32, ptr @stdin, align 4
%80 = call ptr @fgets(ptr noundef %8, i32 noundef 100, i32 noundef %79)
%81 = icmp ne ptr null, %80
br i1 %81, label %12, label %._crit_edge4, !llvm.loop !9
._crit_edge4: ; preds = %78
br label %82
82: ; preds = %._crit_edge4, %0
ret i32 0
}
declare ptr @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @resetArr(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp7fkr81p6.c'
source_filename = "/tmp/tmp7fkr81p6.c"
target datalayout = "e-m:e-p270: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_UNIX = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@SOMAXCONN = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7fkr81p6.c"
target datalayout = "e-m:e-p270: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_UNIX = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@SOMAXCONN = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpeyq4egi3.c'
source_filename = "/tmp/tmpeyq4egi3.c"
target datalayout = "e-m:e-p270: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/tmpeyq4egi3.c"
target datalayout = "e-m:e-p270: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/tmpz5n765y8.c'
source_filename = "/tmp/tmpz5n765y8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @lh_kv_float(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca float, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca float, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%11 = load ptr, ptr %5, align 8
%12 = load ptr, ptr %6, align 8
%13 = call ptr @lh_kv_string(ptr noundef %11, ptr noundef %12, ptr noundef null)
store ptr %13, ptr %8, align 8
%14 = load ptr, ptr %8, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %22, label %16
16: ; preds = %3
%17 = load ptr, ptr %7, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = load ptr, ptr %7, align 8
store i32 1, ptr %20, align 4
br label %21
21: ; preds = %19, %16
store float 0.000000e+00, ptr %4, align 4
br label %43
22: ; preds = %3
store ptr null, ptr %9, align 8
%23 = load ptr, ptr %8, align 8
%24 = call i64 @strtof(ptr noundef %23, ptr noundef %9)
%25 = sitofp i64 %24 to float
store float %25, ptr %10, align 4
%26 = load ptr, ptr %8, align 8
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp ne i32 %28, 0
br i1 %29, label %30, label %37
30: ; preds = %22
%31 = load ptr, ptr %9, align 8
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %30
%36 = load float, ptr %10, align 4
store float %36, ptr %4, align 4
br label %43
37: ; preds = %30, %22
%38 = load ptr, ptr %7, align 8
%39 = icmp ne ptr %38, null
br i1 %39, label %40, label %42
40: ; preds = %37
%41 = load ptr, ptr %7, align 8
store i32 1, ptr %41, align 4
br label %42
42: ; preds = %40, %37
store float 0.000000e+00, ptr %4, align 4
br label %43
43: ; preds = %42, %35, %21
%44 = load float, ptr %4, align 4
ret float %44
}
declare ptr @lh_kv_string(ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @strtof(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/tmpz5n765y8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @lh_kv_float(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca float, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca float, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%11 = load ptr, ptr %5, align 8
%12 = load ptr, ptr %6, align 8
%13 = call ptr @lh_kv_string(ptr noundef %11, ptr noundef %12, ptr noundef null)
store ptr %13, ptr %8, align 8
%14 = load ptr, ptr %8, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %22, label %16
16: ; preds = %3
%17 = load ptr, ptr %7, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = load ptr, ptr %7, align 8
store i32 1, ptr %20, align 4
br label %21
21: ; preds = %19, %16
store float 0.000000e+00, ptr %4, align 4
br label %43
22: ; preds = %3
store ptr null, ptr %9, align 8
%23 = load ptr, ptr %8, align 8
%24 = call i64 @strtof(ptr noundef %23, ptr noundef %9)
%25 = sitofp i64 %24 to float
store float %25, ptr %10, align 4
%26 = load ptr, ptr %8, align 8
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp ne i32 %28, 0
br i1 %29, label %30, label %37
30: ; preds = %22
%31 = load ptr, ptr %9, align 8
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %30
%36 = load float, ptr %10, align 4
store float %36, ptr %4, align 4
br label %43
37: ; preds = %30, %22
%38 = load ptr, ptr %7, align 8
%39 = icmp ne ptr %38, null
br i1 %39, label %40, label %42
40: ; preds = %37
%41 = load ptr, ptr %7, align 8
store i32 1, ptr %41, align 4
br label %42
42: ; preds = %40, %37
store float 0.000000e+00, ptr %4, align 4
br label %43
43: ; preds = %42, %35, %21
%44 = load float, ptr %4, align 4
ret float %44
}
declare ptr @lh_kv_string(ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @strtof(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/tmphxqz8cq6.c'
source_filename = "/tmp/tmphxqz8cq6.c"
target datalayout = "e-m:e-p270: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/tmphxqz8cq6.c"
target datalayout = "e-m:e-p270: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/tmpku0hxzxx.c'
source_filename = "/tmp/tmpku0hxzxx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%u\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 [1 x i16], align 2
%7 = alloca [1 x i16], align 2
%8 = alloca i32, align 4
%9 = alloca i16, align 2
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
br label %19
19: ; preds = %22, %18
%20 = load i32, ptr %8, align 4
%21 = icmp slt i32 %20, 1
br i1 %21, label %22, label %37
22: ; preds = %19
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %8, align 4
%25 = add nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %23, i64 %26
%28 = load ptr, ptr %27, align 8
%29 = call i64 @strtoul(ptr noundef %28, i32 noundef 0, i32 noundef 10)
%30 = trunc i64 %29 to i16
store i16 %30, ptr %9, align 2
%31 = load i16, ptr %9, align 2
%32 = load i32, ptr %8, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [1 x i16], ptr %6, i64 0, i64 %33
store i16 %31, ptr %34, align 2
%35 = load i32, ptr %8, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %8, align 4
br label %19, !llvm.loop !6
37: ; preds = %19
%38 = getelementptr inbounds [1 x i16], ptr %6, i64 0, i64 0
%39 = getelementptr inbounds [1 x i16], ptr %7, i64 0, i64 0
%40 = call i32 @RandomFunc(ptr noundef %38, ptr noundef %39)
%41 = getelementptr inbounds [1 x i16], ptr %7, i64 0, i64 0
%42 = load i16, ptr %41, align 2
%43 = zext i16 %42 to i32
%44 = icmp eq i32 %43, 160
br i1 %44, label %45, label %47
45: ; preds = %37
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %48
47: ; preds = %37
br label %48
48: ; preds = %47, %45
store i32 0, ptr %10, align 4
br label %49
49: ; preds = %52, %48
%50 = load i32, ptr %10, align 4
%51 = icmp slt i32 %50, 1
br i1 %51, label %52, label %61
52: ; preds = %49
%53 = load i32, ptr %10, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [1 x i16], ptr %7, i64 0, i64 %54
%56 = load i16, ptr %55, align 2
%57 = zext i16 %56 to i32
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %57)
%59 = load i32, ptr %10, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %10, align 4
br label %49, !llvm.loop !8
61: ; preds = %49
%62 = load i32, ptr %3, align 4
ret i32 %62
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpku0hxzxx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%u\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 [1 x i16], align 2
%7 = alloca [1 x i16], align 2
%8 = alloca i32, align 4
%9 = alloca i16, align 2
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
%19 = load i32, ptr %8, align 4
%20 = icmp slt i32 %19, 1
br i1 %20, label %.lr.ph, label %38
.lr.ph: ; preds = %18
br label %21
21: ; preds = %.lr.ph, %21
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %8, align 4
%24 = add nsw i32 %23, 1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds ptr, ptr %22, i64 %25
%27 = load ptr, ptr %26, align 8
%28 = call i64 @strtoul(ptr noundef %27, i32 noundef 0, i32 noundef 10)
%29 = trunc i64 %28 to i16
store i16 %29, ptr %9, align 2
%30 = load i16, ptr %9, align 2
%31 = load i32, ptr %8, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [1 x i16], ptr %6, i64 0, i64 %32
store i16 %30, ptr %33, align 2
%34 = load i32, ptr %8, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %8, align 4
%36 = load i32, ptr %8, align 4
%37 = icmp slt i32 %36, 1
br i1 %37, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %38
38: ; preds = %._crit_edge, %18
%39 = getelementptr inbounds [1 x i16], ptr %6, i64 0, i64 0
%40 = getelementptr inbounds [1 x i16], ptr %7, i64 0, i64 0
%41 = call i32 @RandomFunc(ptr noundef %39, ptr noundef %40)
%42 = getelementptr inbounds [1 x i16], ptr %7, i64 0, i64 0
%43 = load i16, ptr %42, align 2
%44 = zext i16 %43 to i32
%45 = icmp eq i32 %44, 160
br i1 %45, label %46, label %48
46: ; preds = %38
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %49
48: ; preds = %38
br label %49
49: ; preds = %48, %46
store i32 0, ptr %10, align 4
%50 = load i32, ptr %10, align 4
%51 = icmp slt i32 %50, 1
br i1 %51, label %.lr.ph2, label %63
.lr.ph2: ; preds = %49
br label %52
52: ; preds = %.lr.ph2, %52
%53 = load i32, ptr %10, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [1 x i16], ptr %7, i64 0, i64 %54
%56 = load i16, ptr %55, align 2
%57 = zext i16 %56 to i32
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %57)
%59 = load i32, ptr %10, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %10, align 4
%61 = load i32, ptr %10, align 4
%62 = icmp slt i32 %61, 1
br i1 %62, label %52, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %52
br label %63
63: ; preds = %._crit_edge3, %49
%64 = load i32, ptr %3, align 4
ret i32 %64
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpvt8tw6g6.c'
source_filename = "/tmp/tmpvt8tw6g6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@ULLONG_MAX = dso_local global i32 0, align 4
@ERANGE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @strtoull(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i64, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i8, align 1
%15 = alloca i64, align 8
%16 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i64 0, ptr %10, align 8
%17 = load ptr, ptr %5, align 8
store ptr %17, ptr %12, align 8
br label %18
18: ; preds = %23, %3
%19 = load ptr, ptr %12, align 8
%20 = load i8, ptr %19, align 1
%21 = call i64 @isspace(i8 noundef signext %20)
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %18
%24 = load ptr, ptr %12, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %12, align 8
br label %18, !llvm.loop !6
26: ; preds = %18
%27 = load ptr, ptr %12, align 8
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 45
br i1 %30, label %31, label %34
31: ; preds = %26
store i32 1, ptr %8, align 4
%32 = load ptr, ptr %12, align 8
%33 = getelementptr inbounds i8, ptr %32, i32 1
store ptr %33, ptr %12, align 8
br label %43
34: ; preds = %26
%35 = load ptr, ptr %12, align 8
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 43
br i1 %38, label %39, label %42
39: ; preds = %34
%40 = load ptr, ptr %12, align 8
%41 = getelementptr inbounds i8, ptr %40, i32 1
store ptr %41, ptr %12, align 8
br label %42
42: ; preds = %39, %34
br label %43
43: ; preds = %42, %31
%44 = load ptr, ptr %12, align 8
store ptr %44, ptr %11, align 8
%45 = load i32, ptr %7, align 4
%46 = icmp eq i32 %45, 16
br i1 %46, label %47, label %54
47: ; preds = %43
%48 = load ptr, ptr %12, align 8
%49 = getelementptr inbounds i8, ptr %48, i64 0
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = icmp eq i32 %51, 48
br i1 %52, label %53, label %54
53: ; preds = %47
br label %71
54: ; preds = %47, %43
%55 = load i32, ptr %7, align 4
%56 = icmp ne i32 %55, 0
br i1 %56, label %57, label %65
57: ; preds = %54
%58 = load i32, ptr %7, align 4
%59 = sub nsw i32 %58, 2
store i32 %59, ptr %13, align 4
%60 = load i32, ptr %13, align 4
%61 = icmp ugt i32 %60, 34
br i1 %61, label %62, label %64
62: ; preds = %57
%63 = load i32, ptr @EINVAL, align 4
store i32 %63, ptr @errno, align 4
store i64 0, ptr %4, align 8
br label %202
64: ; preds = %57
br label %95
65: ; preds = %54
%66 = load ptr, ptr %12, align 8
%67 = load i8, ptr %66, align 1
%68 = sext i8 %67 to i32
%69 = icmp eq i32 %68, 48
br i1 %69, label %70, label %93
70: ; preds = %65
store i32 8, ptr %7, align 4
br label %71
71: ; preds = %70, %53
%72 = load ptr, ptr %12, align 8
%73 = getelementptr inbounds i8, ptr %72, i64 1
%74 = load i8, ptr %73, align 1
%75 = sext i8 %74 to i32
%76 = icmp eq i32 %75, 120
br i1 %76, label %83, label %77
77: ; preds = %71
%78 = load ptr, ptr %12, align 8
%79 = getelementptr inbounds i8, ptr %78, i64 1
%80 = load i8, ptr %79, align 1
%81 = sext i8 %80 to i32
%82 = icmp eq i32 %81, 88
br i1 %82, label %83, label %92
83: ; preds = %77, %71
%84 = load ptr, ptr %12, align 8
%85 = getelementptr inbounds i8, ptr %84, i64 2
%86 = load i8, ptr %85, align 1
%87 = call i64 @isxdigit(i8 noundef signext %86)
%88 = icmp ne i64 %87, 0
br i1 %88, label %89, label %92
89: ; preds = %83
%90 = load ptr, ptr %12, align 8
%91 = getelementptr inbounds i8, ptr %90, i64 2
store ptr %91, ptr %12, align 8
store i32 16, ptr %7, align 4
br label %92
92: ; preds = %89, %83, %77
br label %94
93: ; preds = %65
store i32 10, ptr %7, align 4
br label %94
94: ; preds = %93, %92
br label %95
95: ; preds = %94, %64
br label %96
96: ; preds = %164, %95
%97 = load ptr, ptr %12, align 8
%98 = load i8, ptr %97, align 1
%99 = icmp ne i8 %98, 0
br i1 %99, label %100, label %172
100: ; preds = %96
%101 = load ptr, ptr %12, align 8
%102 = load i8, ptr %101, align 1
store i8 %102, ptr %14, align 1
%103 = load i8, ptr %14, align 1
%104 = zext i8 %103 to i32
%105 = icmp sge i32 %104, 97
br i1 %105, label %106, label %111
106: ; preds = %100
%107 = load i8, ptr %14, align 1
%108 = zext i8 %107 to i32
%109 = sub nsw i32 %108, 97
%110 = add nsw i32 %109, 10
br label %133
111: ; preds = %100
%112 = load i8, ptr %14, align 1
%113 = zext i8 %112 to i32
%114 = icmp sge i32 %113, 65
br i1 %114, label %115, label %120
115: ; preds = %111
%116 = load i8, ptr %14, align 1
%117 = zext i8 %116 to i32
%118 = sub nsw i32 %117, 65
%119 = add nsw i32 %118, 10
br label %131
120: ; preds = %111
%121 = load i8, ptr %14, align 1
%122 = zext i8 %121 to i32
%123 = icmp sle i32 %122, 57
br i1 %123, label %124, label %128
124: ; preds = %120
%125 = load i8, ptr %14, align 1
%126 = zext i8 %125 to i32
%127 = sub nsw i32 %126, 48
br label %129
128: ; preds = %120
br label %129
129: ; preds = %128, %124
%130 = phi i32 [ %127, %124 ], [ 255, %128 ]
br label %131
131: ; preds = %129, %115
%132 = phi i32 [ %119, %115 ], [ %130, %129 ]
br label %133
133: ; preds = %131, %106
%134 = phi i32 [ %110, %106 ], [ %132, %131 ]
%135 = trunc i32 %134 to i8
store i8 %135, ptr %14, align 1
%136 = load i8, ptr %14, align 1
%137 = zext i8 %136 to i32
%138 = load i32, ptr %7, align 4
%139 = icmp sge i32 %137, %138
br i1 %139, label %140, label %141
140: ; preds = %133
br label %172
141: ; preds = %133
%142 = load i64, ptr %10, align 8
%143 = and i64 %142, 255
%144 = load i32, ptr %7, align 4
%145 = sext i32 %144 to i64
%146 = mul nsw i64 %143, %145
%147 = load i8, ptr %14, align 1
%148 = zext i8 %147 to i64
%149 = add nsw i64 %146, %148
store i64 %149, ptr %15, align 8
%150 = load i64, ptr %10, align 8
%151 = ashr i64 %150, 8
%152 = load i32, ptr %7, align 4
%153 = sext i32 %152 to i64
%154 = mul nsw i64 %151, %153
%155 = load i64, ptr %15, align 8
%156 = lshr i64 %155, 8
%157 = add i64 %154, %156
store i64 %157, ptr %16, align 8
%158 = load i64, ptr %16, align 8
%159 = load i32, ptr @ULLONG_MAX, align 4
%160 = ashr i32 %159, 8
%161 = sext i32 %160 to i64
%162 = icmp ugt i64 %158, %161
br i1 %162, label %163, label %164
163: ; preds = %141
store i32 1, ptr %9, align 4
br label %164
164: ; preds = %163, %141
%165 = load i64, ptr %16, align 8
%166 = shl i64 %165, 8
%167 = load i64, ptr %15, align 8
%168 = and i64 %167, 255
%169 = add i64 %166, %168
store i64 %169, ptr %10, align 8
%170 = load ptr, ptr %12, align 8
%171 = getelementptr inbounds i8, ptr %170, i32 1
store ptr %171, ptr %12, align 8
br label %96, !llvm.loop !8
172: ; preds = %140, %96
%173 = load ptr, ptr %12, align 8
%174 = load ptr, ptr %11, align 8
%175 = icmp eq ptr %173, %174
br i1 %175, label %176, label %179
176: ; preds = %172
%177 = load ptr, ptr %5, align 8
store ptr %177, ptr %12, align 8
%178 = load i32, ptr @EINVAL, align 4
store i32 %178, ptr @errno, align 4
store i64 0, ptr %10, align 8
br label %179
179: ; preds = %176, %172
%180 = load ptr, ptr %6, align 8
%181 = icmp ne ptr %180, null
br i1 %181, label %182, label %185
182: ; preds = %179
%183 = load ptr, ptr %12, align 8
%184 = load ptr, ptr %6, align 8
store ptr %183, ptr %184, align 8
br label %185
185: ; preds = %182, %179
%186 = load i32, ptr %9, align 4
%187 = icmp ne i32 %186, 0
br i1 %187, label %188, label %192
188: ; preds = %185
%189 = load i32, ptr @ERANGE, align 4
store i32 %189, ptr @errno, align 4
%190 = load i32, ptr @ULLONG_MAX, align 4
%191 = sext i32 %190 to i64
store i64 %191, ptr %4, align 8
br label %202
192: ; preds = %185
%193 = load i32, ptr %8, align 4
%194 = icmp ne i32 %193, 0
br i1 %194, label %195, label %198
195: ; preds = %192
%196 = load i64, ptr %10, align 8
%197 = sub nsw i64 0, %196
br label %200
198: ; preds = %192
%199 = load i64, ptr %10, align 8
br label %200
200: ; preds = %198, %195
%201 = phi i64 [ %197, %195 ], [ %199, %198 ]
store i64 %201, ptr %4, align 8
br label %202
202: ; preds = %200, %188, %62
%203 = load i64, ptr %4, align 8
ret i64 %203
}
declare i64 @isspace(i8 noundef signext) #1
declare i64 @isxdigit(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvt8tw6g6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@ULLONG_MAX = dso_local global i32 0, align 4
@ERANGE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @strtoull(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i64, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i8, align 1
%15 = alloca i64, align 8
%16 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i64 0, ptr %10, align 8
%17 = load ptr, ptr %5, align 8
store ptr %17, ptr %12, align 8
%18 = load ptr, ptr %12, align 8
%19 = load i8, ptr %18, align 1
%20 = call i64 @isspace(i8 noundef signext %19)
%21 = icmp ne i64 %20, 0
br i1 %21, label %.lr.ph, label %29
.lr.ph: ; preds = %3
br label %22
22: ; preds = %.lr.ph, %22
%23 = load ptr, ptr %12, align 8
%24 = getelementptr inbounds i8, ptr %23, i32 1
store ptr %24, ptr %12, align 8
%25 = load ptr, ptr %12, align 8
%26 = load i8, ptr %25, align 1
%27 = call i64 @isspace(i8 noundef signext %26)
%28 = icmp ne i64 %27, 0
br i1 %28, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %29
29: ; preds = %._crit_edge, %3
%30 = load ptr, ptr %12, align 8
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = icmp eq i32 %32, 45
br i1 %33, label %34, label %37
34: ; preds = %29
store i32 1, ptr %8, align 4
%35 = load ptr, ptr %12, align 8
%36 = getelementptr inbounds i8, ptr %35, i32 1
store ptr %36, ptr %12, align 8
br label %46
37: ; preds = %29
%38 = load ptr, ptr %12, align 8
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = icmp eq i32 %40, 43
br i1 %41, label %42, label %45
42: ; preds = %37
%43 = load ptr, ptr %12, align 8
%44 = getelementptr inbounds i8, ptr %43, i32 1
store ptr %44, ptr %12, align 8
br label %45
45: ; preds = %42, %37
br label %46
46: ; preds = %45, %34
%47 = load ptr, ptr %12, align 8
store ptr %47, ptr %11, align 8
%48 = load i32, ptr %7, align 4
%49 = icmp eq i32 %48, 16
br i1 %49, label %50, label %57
50: ; preds = %46
%51 = load ptr, ptr %12, align 8
%52 = getelementptr inbounds i8, ptr %51, i64 0
%53 = load i8, ptr %52, align 1
%54 = sext i8 %53 to i32
%55 = icmp eq i32 %54, 48
br i1 %55, label %56, label %57
56: ; preds = %50
br label %74
57: ; preds = %50, %46
%58 = load i32, ptr %7, align 4
%59 = icmp ne i32 %58, 0
br i1 %59, label %60, label %68
60: ; preds = %57
%61 = load i32, ptr %7, align 4
%62 = sub nsw i32 %61, 2
store i32 %62, ptr %13, align 4
%63 = load i32, ptr %13, align 4
%64 = icmp ugt i32 %63, 34
br i1 %64, label %65, label %67
65: ; preds = %60
%66 = load i32, ptr @EINVAL, align 4
store i32 %66, ptr @errno, align 4
store i64 0, ptr %4, align 8
br label %207
67: ; preds = %60
br label %98
68: ; preds = %57
%69 = load ptr, ptr %12, align 8
%70 = load i8, ptr %69, align 1
%71 = sext i8 %70 to i32
%72 = icmp eq i32 %71, 48
br i1 %72, label %73, label %96
73: ; preds = %68
store i32 8, ptr %7, align 4
br label %74
74: ; preds = %73, %56
%75 = load ptr, ptr %12, align 8
%76 = getelementptr inbounds i8, ptr %75, i64 1
%77 = load i8, ptr %76, align 1
%78 = sext i8 %77 to i32
%79 = icmp eq i32 %78, 120
br i1 %79, label %86, label %80
80: ; preds = %74
%81 = load ptr, ptr %12, align 8
%82 = getelementptr inbounds i8, ptr %81, i64 1
%83 = load i8, ptr %82, align 1
%84 = sext i8 %83 to i32
%85 = icmp eq i32 %84, 88
br i1 %85, label %86, label %95
86: ; preds = %80, %74
%87 = load ptr, ptr %12, align 8
%88 = getelementptr inbounds i8, ptr %87, i64 2
%89 = load i8, ptr %88, align 1
%90 = call i64 @isxdigit(i8 noundef signext %89)
%91 = icmp ne i64 %90, 0
br i1 %91, label %92, label %95
92: ; preds = %86
%93 = load ptr, ptr %12, align 8
%94 = getelementptr inbounds i8, ptr %93, i64 2
store ptr %94, ptr %12, align 8
store i32 16, ptr %7, align 4
br label %95
95: ; preds = %92, %86, %80
br label %97
96: ; preds = %68
store i32 10, ptr %7, align 4
br label %97
97: ; preds = %96, %95
br label %98
98: ; preds = %97, %67
%99 = load ptr, ptr %12, align 8
%100 = load i8, ptr %99, align 1
%101 = icmp ne i8 %100, 0
br i1 %101, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %98
br label %102
102: ; preds = %.lr.ph2, %166
%103 = load ptr, ptr %12, align 8
%104 = load i8, ptr %103, align 1
store i8 %104, ptr %14, align 1
%105 = load i8, ptr %14, align 1
%106 = zext i8 %105 to i32
%107 = icmp sge i32 %106, 97
br i1 %107, label %108, label %113
108: ; preds = %102
%109 = load i8, ptr %14, align 1
%110 = zext i8 %109 to i32
%111 = sub nsw i32 %110, 97
%112 = add nsw i32 %111, 10
br label %135
113: ; preds = %102
%114 = load i8, ptr %14, align 1
%115 = zext i8 %114 to i32
%116 = icmp sge i32 %115, 65
br i1 %116, label %117, label %122
117: ; preds = %113
%118 = load i8, ptr %14, align 1
%119 = zext i8 %118 to i32
%120 = sub nsw i32 %119, 65
%121 = add nsw i32 %120, 10
br label %133
122: ; preds = %113
%123 = load i8, ptr %14, align 1
%124 = zext i8 %123 to i32
%125 = icmp sle i32 %124, 57
br i1 %125, label %126, label %130
126: ; preds = %122
%127 = load i8, ptr %14, align 1
%128 = zext i8 %127 to i32
%129 = sub nsw i32 %128, 48
br label %131
130: ; preds = %122
br label %131
131: ; preds = %130, %126
%132 = phi i32 [ %129, %126 ], [ 255, %130 ]
br label %133
133: ; preds = %131, %117
%134 = phi i32 [ %121, %117 ], [ %132, %131 ]
br label %135
135: ; preds = %133, %108
%136 = phi i32 [ %112, %108 ], [ %134, %133 ]
%137 = trunc i32 %136 to i8
store i8 %137, ptr %14, align 1
%138 = load i8, ptr %14, align 1
%139 = zext i8 %138 to i32
%140 = load i32, ptr %7, align 4
%141 = icmp sge i32 %139, %140
br i1 %141, label %142, label %143
142: ; preds = %135
br label %177
143: ; preds = %135
%144 = load i64, ptr %10, align 8
%145 = and i64 %144, 255
%146 = load i32, ptr %7, align 4
%147 = sext i32 %146 to i64
%148 = mul nsw i64 %145, %147
%149 = load i8, ptr %14, align 1
%150 = zext i8 %149 to i64
%151 = add nsw i64 %148, %150
store i64 %151, ptr %15, align 8
%152 = load i64, ptr %10, align 8
%153 = ashr i64 %152, 8
%154 = load i32, ptr %7, align 4
%155 = sext i32 %154 to i64
%156 = mul nsw i64 %153, %155
%157 = load i64, ptr %15, align 8
%158 = lshr i64 %157, 8
%159 = add i64 %156, %158
store i64 %159, ptr %16, align 8
%160 = load i64, ptr %16, align 8
%161 = load i32, ptr @ULLONG_MAX, align 4
%162 = ashr i32 %161, 8
%163 = sext i32 %162 to i64
%164 = icmp ugt i64 %160, %163
br i1 %164, label %165, label %166
165: ; preds = %143
store i32 1, ptr %9, align 4
br label %166
166: ; preds = %165, %143
%167 = load i64, ptr %16, align 8
%168 = shl i64 %167, 8
%169 = load i64, ptr %15, align 8
%170 = and i64 %169, 255
%171 = add i64 %168, %170
store i64 %171, ptr %10, align 8
%172 = load ptr, ptr %12, align 8
%173 = getelementptr inbounds i8, ptr %172, i32 1
store ptr %173, ptr %12, align 8
%174 = load ptr, ptr %12, align 8
%175 = load i8, ptr %174, align 1
%176 = icmp ne i8 %175, 0
br i1 %176, label %102, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %166
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %98
br label %177
177: ; preds = %.loopexit, %142
%178 = load ptr, ptr %12, align 8
%179 = load ptr, ptr %11, align 8
%180 = icmp eq ptr %178, %179
br i1 %180, label %181, label %184
181: ; preds = %177
%182 = load ptr, ptr %5, align 8
store ptr %182, ptr %12, align 8
%183 = load i32, ptr @EINVAL, align 4
store i32 %183, ptr @errno, align 4
store i64 0, ptr %10, align 8
br label %184
184: ; preds = %181, %177
%185 = load ptr, ptr %6, align 8
%186 = icmp ne ptr %185, null
br i1 %186, label %187, label %190
187: ; preds = %184
%188 = load ptr, ptr %12, align 8
%189 = load ptr, ptr %6, align 8
store ptr %188, ptr %189, align 8
br label %190
190: ; preds = %187, %184
%191 = load i32, ptr %9, align 4
%192 = icmp ne i32 %191, 0
br i1 %192, label %193, label %197
193: ; preds = %190
%194 = load i32, ptr @ERANGE, align 4
store i32 %194, ptr @errno, align 4
%195 = load i32, ptr @ULLONG_MAX, align 4
%196 = sext i32 %195 to i64
store i64 %196, ptr %4, align 8
br label %207
197: ; preds = %190
%198 = load i32, ptr %8, align 4
%199 = icmp ne i32 %198, 0
br i1 %199, label %200, label %203
200: ; preds = %197
%201 = load i64, ptr %10, align 8
%202 = sub nsw i64 0, %201
br label %205
203: ; preds = %197
%204 = load i64, ptr %10, align 8
br label %205
205: ; preds = %203, %200
%206 = phi i64 [ %202, %200 ], [ %204, %203 ]
store i64 %206, ptr %4, align 8
br label %207
207: ; preds = %205, %193, %65
%208 = load i64, ptr %4, align 8
ret i64 %208
}
declare i64 @isspace(i8 noundef signext) #1
declare i64 @isxdigit(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpv5gt4kpy.c'
source_filename = "/tmp/tmpv5gt4kpy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [34 x i8] c"Fichero resultado no es accesible\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"matriz resultado \0A\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"%.4f \00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @imprimeresultado(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca float, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %4, align 8
%10 = call ptr @fopen(ptr noundef %9, ptr noundef @.str)
store ptr %10, ptr %5, align 8
%11 = load ptr, ptr %5, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %16
13: ; preds = %2
%14 = call i32 @perror(ptr noundef @.str.1)
%15 = call i32 @exit(i32 noundef -1) #3
unreachable
16: ; preds = %2
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %7, align 4
br label %18
18: ; preds = %36, %16
%19 = load i32, ptr %7, align 4
%20 = icmp slt i32 %19, 3
br i1 %20, label %21, label %39
21: ; preds = %18
store i32 0, ptr %8, align 4
br label %22
22: ; preds = %31, %21
%23 = load i32, ptr %8, align 4
%24 = icmp slt i32 %23, 3
br i1 %24, label %25, label %34
25: ; preds = %22
%26 = load ptr, ptr %5, align 8
%27 = call i32 @fread(ptr noundef %6, i32 noundef 4, i32 noundef 1, ptr noundef %26)
%28 = load float, ptr %6, align 4
%29 = fpext float %28 to double
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %29)
br label %31
31: ; preds = %25
%32 = load i32, ptr %8, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %8, align 4
br label %22, !llvm.loop !6
34: ; preds = %22
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %36
36: ; preds = %34
%37 = load i32, ptr %7, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %7, align 4
br label %18, !llvm.loop !8
39: ; preds = %18
%40 = load ptr, ptr %5, align 8
%41 = call i32 @fclose(ptr noundef %40)
%42 = load i32, ptr %3, align 4
ret i32 %42
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fread(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" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv5gt4kpy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [34 x i8] c"Fichero resultado no es accesible\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"matriz resultado \0A\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"%.4f \00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @imprimeresultado(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca float, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %4, align 8
%10 = call ptr @fopen(ptr noundef %9, ptr noundef @.str)
store ptr %10, ptr %5, align 8
%11 = load ptr, ptr %5, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %16
13: ; preds = %2
%14 = call i32 @perror(ptr noundef @.str.1)
%15 = call i32 @exit(i32 noundef -1) #3
unreachable
16: ; preds = %2
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %7, align 4
%18 = load i32, ptr %7, align 4
%19 = icmp slt i32 %18, 3
br i1 %19, label %.lr.ph2, label %41
.lr.ph2: ; preds = %16
br label %20
20: ; preds = %.lr.ph2, %36
store i32 0, ptr %8, align 4
%21 = load i32, ptr %8, align 4
%22 = icmp slt i32 %21, 3
br i1 %22, label %.lr.ph, label %34
.lr.ph: ; preds = %20
br label %23
23: ; preds = %.lr.ph, %29
%24 = load ptr, ptr %5, align 8
%25 = call i32 @fread(ptr noundef %6, i32 noundef 4, i32 noundef 1, ptr noundef %24)
%26 = load float, ptr %6, align 4
%27 = fpext float %26 to double
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %27)
br label %29
29: ; preds = %23
%30 = load i32, ptr %8, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %8, align 4
%32 = load i32, ptr %8, align 4
%33 = icmp slt i32 %32, 3
br i1 %33, label %23, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %34
34: ; preds = %._crit_edge, %20
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %36
36: ; preds = %34
%37 = load i32, ptr %7, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %7, align 4
%39 = load i32, ptr %7, align 4
%40 = icmp slt i32 %39, 3
br i1 %40, label %20, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %36
br label %41
41: ; preds = %._crit_edge3, %16
%42 = load ptr, ptr %5, align 8
%43 = call i32 @fclose(ptr noundef %42)
%44 = load i32, ptr %3, align 4
ret i32 %44
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fread(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" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpxw50dl24.c'
source_filename = "/tmp/tmpxw50dl24.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @runTests() #0 {
%1 = call i32 (...) @testSuggestions()
ret void
}
declare i32 @testSuggestions(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxw50dl24.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @runTests() #0 {
%1 = call i32 (...) @testSuggestions()
ret void
}
declare i32 @testSuggestions(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptpbusogr.c'
source_filename = "/tmp/tmptpbusogr.c"
target datalayout = "e-m:e-p270: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/tmptpbusogr.c"
target datalayout = "e-m:e-p270: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/tmppkql3ij4.c'
source_filename = "/tmp/tmppkql3ij4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @allocateTemp() #0 {
%1 = call i32 (...) @allocateLabel()
ret i32 %1
}
declare i32 @allocateLabel(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppkql3ij4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @allocateTemp() #0 {
%1 = call i32 (...) @allocateLabel()
ret i32 %1
}
declare i32 @allocateLabel(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmph5sfrx10.c'
source_filename = "/tmp/tmph5sfrx10.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @tcpnumlisten(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%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 %struct.sockaddr_in, align 4
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
%11 = load i32, ptr %7, align 4
%12 = load i32, ptr %8, align 4
%13 = call i32 @sockaddrnumfill(ptr noundef %10, i32 noundef %11, i32 noundef %12)
%14 = load i32, ptr %6, align 4
%15 = call i64 @bind(i32 noundef %14, ptr noundef %10, i32 noundef 4)
%16 = icmp slt i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %4
store i32 -1, ptr %5, align 4
br label %25
18: ; preds = %4
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr %9, align 4
%21 = call i64 @listen(i32 noundef %19, i32 noundef %20)
%22 = icmp slt i64 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %18
store i32 -1, ptr %5, align 4
br label %25
24: ; preds = %18
store i32 0, ptr %5, align 4
br label %25
25: ; preds = %24, %23, %17
%26 = load i32, ptr %5, align 4
ret i32 %26
}
declare i32 @sockaddrnumfill(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @listen(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/tmph5sfrx10.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @tcpnumlisten(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%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 %struct.sockaddr_in, align 4
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
%11 = load i32, ptr %7, align 4
%12 = load i32, ptr %8, align 4
%13 = call i32 @sockaddrnumfill(ptr noundef %10, i32 noundef %11, i32 noundef %12)
%14 = load i32, ptr %6, align 4
%15 = call i64 @bind(i32 noundef %14, ptr noundef %10, i32 noundef 4)
%16 = icmp slt i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %4
store i32 -1, ptr %5, align 4
br label %25
18: ; preds = %4
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr %9, align 4
%21 = call i64 @listen(i32 noundef %19, i32 noundef %20)
%22 = icmp slt i64 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %18
store i32 -1, ptr %5, align 4
br label %25
24: ; preds = %18
store i32 0, ptr %5, align 4
br label %25
25: ; preds = %24, %23, %17
%26 = load i32, ptr %5, align 4
ret i32 %26
}
declare i32 @sockaddrnumfill(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @listen(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/tmpo6_2risq.c'
source_filename = "/tmp/tmpo6_2risq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong willreturn memory(none) uwtable
define dso_local float @fabsf(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = call i64 @fabs(float noundef %3)
%5 = sitofp i64 %4 to float
ret float %5
}
declare i64 @fabs(float noundef) #1
attributes #0 = { noinline nounwind sspstrong willreturn memory(none) uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo6_2risq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong willreturn memory(none) uwtable
define dso_local float @fabsf(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = call i64 @fabs(float noundef %3)
%5 = sitofp i64 %4 to float
ret float %5
}
declare i64 @fabs(float noundef) #1
attributes #0 = { noinline nounwind sspstrong willreturn memory(none) uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9gnozpg1.c'
source_filename = "/tmp/tmp9gnozpg1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @xxxor(i64 noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3) #0 {
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
store i64 %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%11 = load i64, ptr %7, align 8
%12 = load i64, ptr %5, align 8
%13 = icmp ne i64 %11, %12
%14 = xor i1 %13, true
%15 = zext i1 %14 to i32
%16 = call i32 @assert(i32 noundef %15)
%17 = load i64, ptr %5, align 8
%18 = call ptr @calloc(i64 noundef %17, i32 noundef 1)
store ptr %18, ptr %9, align 8
store i64 0, ptr %10, align 8
br label %19
19: ; preds = %39, %4
%20 = load i64, ptr %10, align 8
%21 = load i64, ptr %7, align 8
%22 = icmp slt i64 %20, %21
br i1 %22, label %23, label %42
23: ; preds = %19
%24 = load ptr, ptr %6, align 8
%25 = load i64, ptr %10, align 8
%26 = getelementptr inbounds i8, ptr %24, i64 %25
%27 = load i8, ptr %26, align 1
%28 = zext i8 %27 to i32
%29 = load ptr, ptr %8, align 8
%30 = load i64, ptr %10, align 8
%31 = getelementptr inbounds i8, ptr %29, i64 %30
%32 = load i8, ptr %31, align 1
%33 = zext i8 %32 to i32
%34 = xor i32 %28, %33
%35 = trunc i32 %34 to i8
%36 = load ptr, ptr %9, align 8
%37 = load i64, ptr %10, align 8
%38 = getelementptr inbounds i8, ptr %36, i64 %37
store i8 %35, ptr %38, align 1
br label %39
39: ; preds = %23
%40 = load i64, ptr %10, align 8
%41 = add nsw i64 %40, 1
store i64 %41, ptr %10, align 8
br label %19, !llvm.loop !6
42: ; preds = %19
%43 = load ptr, ptr %9, align 8
ret ptr %43
}
declare i32 @assert(i32 noundef) #1
declare ptr @calloc(i64 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/tmp9gnozpg1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @xxxor(i64 noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3) #0 {
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
store i64 %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%11 = load i64, ptr %7, align 8
%12 = load i64, ptr %5, align 8
%13 = icmp ne i64 %11, %12
%14 = xor i1 %13, true
%15 = zext i1 %14 to i32
%16 = call i32 @assert(i32 noundef %15)
%17 = load i64, ptr %5, align 8
%18 = call ptr @calloc(i64 noundef %17, i32 noundef 1)
store ptr %18, ptr %9, align 8
store i64 0, ptr %10, align 8
%19 = load i64, ptr %10, align 8
%20 = load i64, ptr %7, align 8
%21 = icmp slt i64 %19, %20
br i1 %21, label %.lr.ph, label %44
.lr.ph: ; preds = %4
br label %22
22: ; preds = %.lr.ph, %38
%23 = load ptr, ptr %6, align 8
%24 = load i64, ptr %10, align 8
%25 = getelementptr inbounds i8, ptr %23, i64 %24
%26 = load i8, ptr %25, align 1
%27 = zext i8 %26 to i32
%28 = load ptr, ptr %8, align 8
%29 = load i64, ptr %10, align 8
%30 = getelementptr inbounds i8, ptr %28, i64 %29
%31 = load i8, ptr %30, align 1
%32 = zext i8 %31 to i32
%33 = xor i32 %27, %32
%34 = trunc i32 %33 to i8
%35 = load ptr, ptr %9, align 8
%36 = load i64, ptr %10, align 8
%37 = getelementptr inbounds i8, ptr %35, i64 %36
store i8 %34, ptr %37, align 1
br label %38
38: ; preds = %22
%39 = load i64, ptr %10, align 8
%40 = add nsw i64 %39, 1
store i64 %40, ptr %10, align 8
%41 = load i64, ptr %10, align 8
%42 = load i64, ptr %7, align 8
%43 = icmp slt i64 %41, %42
br i1 %43, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %38
br label %44
44: ; preds = %._crit_edge, %4
%45 = load ptr, ptr %9, align 8
ret ptr %45
}
declare i32 @assert(i32 noundef) #1
declare ptr @calloc(i64 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/tmph0_kxdrb.c'
source_filename = "/tmp/tmph0_kxdrb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"[\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d,\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d]\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printTab(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %5, align 4
br label %7
7: ; preds = %19, %2
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = sub nsw i32 %9, 1
%11 = icmp slt i32 %8, %10
br i1 %11, label %12, label %22
12: ; preds = %7
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %5, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i32, ptr %13, i64 %15
%17 = load i32, ptr %16, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %17)
br label %19
19: ; preds = %12
%20 = load i32, ptr %5, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %5, align 4
br label %7, !llvm.loop !6
22: ; preds = %7
%23 = load ptr, ptr %3, align 8
%24 = load i32, ptr %4, align 4
%25 = sub nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i32, ptr %23, i64 %26
%28 = load i32, ptr %27, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %28)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmph0_kxdrb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"[\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d,\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d]\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printTab(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = sub nsw i32 %8, 1
%10 = icmp slt i32 %7, %9
br i1 %10, label %.lr.ph, label %25
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %18
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %5, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i32, ptr %12, i64 %14
%16 = load i32, ptr %15, align 4
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %16)
br label %18
18: ; preds = %11
%19 = load i32, ptr %5, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %5, align 4
%21 = load i32, ptr %5, align 4
%22 = load i32, ptr %4, align 4
%23 = sub nsw i32 %22, 1
%24 = icmp slt i32 %21, %23
br i1 %24, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %25
25: ; preds = %._crit_edge, %2
%26 = load ptr, ptr %3, align 8
%27 = load i32, ptr %4, align 4
%28 = sub nsw i32 %27, 1
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i32, ptr %26, i64 %29
%31 = load i32, ptr %30, align 4
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %31)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpdbslu8t_.c'
source_filename = "/tmp/tmpdbslu8t_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"0123456789ABCDEF\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @put_unsigned(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca [6 x i8], align 1
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 %9
store i8 0, ptr %10, align 1
br label %11
11: ; preds = %15, %3
%12 = load i32, ptr %6, align 4
%13 = add nsw i32 %12, -1
store i32 %13, ptr %6, align 4
%14 = icmp sge i32 %13, 0
br i1 %14, label %15, label %28
15: ; preds = %11
%16 = load i32, ptr %4, align 4
%17 = load i32, ptr %5, align 4
%18 = urem i32 %16, %17
%19 = zext i32 %18 to i64
%20 = getelementptr inbounds [17 x i8], ptr @.str, i64 0, i64 %19
%21 = load i8, ptr %20, align 1
%22 = load i32, ptr %6, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 %23
store i8 %21, ptr %24, align 1
%25 = load i32, ptr %5, align 4
%26 = load i32, ptr %4, align 4
%27 = udiv i32 %26, %25
store i32 %27, ptr %4, align 4
br label %11, !llvm.loop !6
28: ; preds = %11
%29 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
%30 = call i32 @put_string(ptr noundef %29)
ret void
}
declare i32 @put_string(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpdbslu8t_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"0123456789ABCDEF\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @put_unsigned(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca [6 x i8], align 1
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 %9
store i8 0, ptr %10, align 1
%11 = load i32, ptr %6, align 4
%12 = add nsw i32 %11, -1
store i32 %12, ptr %6, align 4
%13 = icmp sge i32 %12, 0
br i1 %13, label %.lr.ph, label %30
.lr.ph: ; preds = %3
br label %14
14: ; preds = %.lr.ph, %14
%15 = load i32, ptr %4, align 4
%16 = load i32, ptr %5, align 4
%17 = urem i32 %15, %16
%18 = zext i32 %17 to i64
%19 = getelementptr inbounds [17 x i8], ptr @.str, i64 0, i64 %18
%20 = load i8, ptr %19, align 1
%21 = load i32, ptr %6, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 %22
store i8 %20, ptr %23, align 1
%24 = load i32, ptr %5, align 4
%25 = load i32, ptr %4, align 4
%26 = udiv i32 %25, %24
store i32 %26, ptr %4, align 4
%27 = load i32, ptr %6, align 4
%28 = add nsw i32 %27, -1
store i32 %28, ptr %6, align 4
%29 = icmp sge i32 %28, 0
br i1 %29, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %30
30: ; preds = %._crit_edge, %3
%31 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
%32 = call i32 @put_string(ptr noundef %31)
ret void
}
declare i32 @put_string(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmppzmuzgd8.c'
source_filename = "/tmp/tmppzmuzgd8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gcd(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store i64 %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%7 = load i64, ptr %4, align 8
%8 = call i64 @labs(i64 noundef %7) #2
store i64 %8, ptr %4, align 8
%9 = load i64, ptr %5, align 8
%10 = call i64 @labs(i64 noundef %9) #2
store i64 %10, ptr %5, align 8
%11 = load i64, ptr %4, align 8
%12 = icmp eq i64 %11, 0
br i1 %12, label %16, label %13
13: ; preds = %2
%14 = load i64, ptr %5, align 8
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %13, %2
store i64 0, ptr %3, align 8
br label %29
17: ; preds = %13
br label %18
18: ; preds = %21, %17
%19 = load i64, ptr %5, align 8
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %27
21: ; preds = %18
%22 = load i64, ptr %4, align 8
%23 = load i64, ptr %5, align 8
%24 = srem i64 %22, %23
store i64 %24, ptr %6, align 8
%25 = load i64, ptr %5, align 8
store i64 %25, ptr %4, align 8
%26 = load i64, ptr %6, align 8
store i64 %26, ptr %5, align 8
br label %18, !llvm.loop !6
27: ; preds = %18
%28 = load i64, ptr %4, align 8
store i64 %28, ptr %3, align 8
br label %29
29: ; preds = %27, %16
%30 = load i64, ptr %3, align 8
ret i64 %30
}
; Function Attrs: nounwind willreturn memory(none)
declare i64 @labs(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind willreturn memory(none) "frame-pointer"="all" "no-trapping-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(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppzmuzgd8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gcd(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store i64 %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%7 = load i64, ptr %4, align 8
%8 = call i64 @labs(i64 noundef %7) #2
store i64 %8, ptr %4, align 8
%9 = load i64, ptr %5, align 8
%10 = call i64 @labs(i64 noundef %9) #2
store i64 %10, ptr %5, align 8
%11 = load i64, ptr %4, align 8
%12 = icmp eq i64 %11, 0
br i1 %12, label %16, label %13
13: ; preds = %2
%14 = load i64, ptr %5, align 8
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %13, %2
store i64 0, ptr %3, align 8
br label %30
17: ; preds = %13
%18 = load i64, ptr %5, align 8
%19 = icmp ne i64 %18, 0
br i1 %19, label %.lr.ph, label %28
.lr.ph: ; preds = %17
br label %20
20: ; preds = %.lr.ph, %20
%21 = load i64, ptr %4, align 8
%22 = load i64, ptr %5, align 8
%23 = srem i64 %21, %22
store i64 %23, ptr %6, align 8
%24 = load i64, ptr %5, align 8
store i64 %24, ptr %4, align 8
%25 = load i64, ptr %6, align 8
store i64 %25, ptr %5, align 8
%26 = load i64, ptr %5, align 8
%27 = icmp ne i64 %26, 0
br i1 %27, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %28
28: ; preds = %._crit_edge, %17
%29 = load i64, ptr %4, align 8
store i64 %29, ptr %3, align 8
br label %30
30: ; preds = %28, %16
%31 = load i64, ptr %3, align 8
ret i64 %31
}
; Function Attrs: nounwind willreturn memory(none)
declare i64 @labs(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind willreturn memory(none) "frame-pointer"="all" "no-trapping-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(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpyl4brb4a.c'
source_filename = "/tmp/tmpyl4brb4a.c"
target datalayout = "e-m:e-p270: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/tmpyl4brb4a.c"
target datalayout = "e-m:e-p270: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/tmp9c35ixt8.c'
source_filename = "/tmp/tmp9c35ixt8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @quick_sort(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
br label %8
8: ; preds = %38, %3
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %39
12: ; preds = %8
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %6, align 4
%16 = call i32 @partition(ptr noundef %13, i32 noundef %14, i32 noundef %15)
store i32 %16, ptr %7, align 4
%17 = load i32, ptr %7, align 4
%18 = load i32, ptr %5, align 4
%19 = sub nsw i32 %17, %18
%20 = load i32, ptr %6, align 4
%21 = load i32, ptr %7, align 4
%22 = sub nsw i32 %20, %21
%23 = icmp slt i32 %19, %22
br i1 %23, label %24, label %31
24: ; preds = %12
%25 = load ptr, ptr %4, align 8
%26 = load i32, ptr %5, align 4
%27 = load i32, ptr %7, align 4
%28 = sub nsw i32 %27, 1
call void @quick_sort(ptr noundef %25, i32 noundef %26, i32 noundef %28)
%29 = load i32, ptr %7, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %5, align 4
br label %38
31: ; preds = %12
%32 = load ptr, ptr %4, align 8
%33 = load i32, ptr %7, align 4
%34 = add nsw i32 %33, 1
%35 = load i32, ptr %6, align 4
call void @quick_sort(ptr noundef %32, i32 noundef %34, i32 noundef %35)
%36 = load i32, ptr %7, align 4
%37 = sub nsw i32 %36, 1
store i32 %37, ptr %6, align 4
br label %38
38: ; preds = %31, %24
br label %8, !llvm.loop !6
39: ; preds = %8
ret void
}
declare i32 @partition(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9c35ixt8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @quick_sort(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %41
.lr.ph: ; preds = %3
br label %11
11: ; preds = %.lr.ph, %37
%12 = load ptr, ptr %4, align 8
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %6, align 4
%15 = call i32 @partition(ptr noundef %12, i32 noundef %13, i32 noundef %14)
store i32 %15, ptr %7, align 4
%16 = load i32, ptr %7, align 4
%17 = load i32, ptr %5, align 4
%18 = sub nsw i32 %16, %17
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr %7, align 4
%21 = sub nsw i32 %19, %20
%22 = icmp slt i32 %18, %21
br i1 %22, label %23, label %30
23: ; preds = %11
%24 = load ptr, ptr %4, align 8
%25 = load i32, ptr %5, align 4
%26 = load i32, ptr %7, align 4
%27 = sub nsw i32 %26, 1
call void @quick_sort(ptr noundef %24, i32 noundef %25, i32 noundef %27)
%28 = load i32, ptr %7, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %5, align 4
br label %37
30: ; preds = %11
%31 = load ptr, ptr %4, align 8
%32 = load i32, ptr %7, align 4
%33 = add nsw i32 %32, 1
%34 = load i32, ptr %6, align 4
call void @quick_sort(ptr noundef %31, i32 noundef %33, i32 noundef %34)
%35 = load i32, ptr %7, align 4
%36 = sub nsw i32 %35, 1
store i32 %36, ptr %6, align 4
br label %37
37: ; preds = %30, %23
%38 = load i32, ptr %5, align 4
%39 = load i32, ptr %6, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %37
br label %41
41: ; preds = %._crit_edge, %3
ret void
}
declare i32 @partition(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpdtdxyrad.c'
source_filename = "/tmp/tmpdtdxyrad.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"NOT IMPLEMENTED:pa_utf8_to_locale\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pa_utf8_to_locale() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
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/tmpdtdxyrad.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"NOT IMPLEMENTED:pa_utf8_to_locale\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pa_utf8_to_locale() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
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/tmpcg_ex_xm.c'
source_filename = "/tmp/tmpcg_ex_xm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [11 x i8] c"Chave: %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"Estado Atual: \00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"%d | \00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.6 = private unnamed_addr constant [18 x i8] c"Resultado Final: \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 [100 x i32], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
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 %7, align 4
br label %12
12: ; preds = %16, %2
%13 = call i64 @scanf(ptr noundef @.str, ptr noundef %11)
%14 = load i64, ptr @EOF, align 8
%15 = icmp ne i64 %13, %14
br i1 %15, label %16, label %23
16: ; preds = %12
%17 = load i32, ptr %11, align 4
%18 = load i32, ptr %7, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 %19
store i32 %17, ptr %20, align 4
%21 = load i32, ptr %7, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %7, align 4
br label %12, !llvm.loop !6
23: ; preds = %12
store i32 1, ptr %8, align 4
br label %24
24: ; preds = %107, %23
%25 = load i32, ptr %8, align 4
%26 = load i32, ptr %7, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %110
28: ; preds = %24
%29 = load i32, ptr %8, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 %30
%32 = load i32, ptr %31, align 4
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %32)
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %9, align 4
br label %35
35: ; preds = %46, %28
%36 = load i32, ptr %9, align 4
%37 = load i32, ptr %7, align 4
%38 = sub nsw i32 %37, 1
%39 = icmp slt i32 %36, %38
br i1 %39, label %40, label %49
40: ; preds = %35
%41 = load i32, ptr %9, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 %42
%44 = load i32, ptr %43, align 4
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %44)
br label %46
46: ; preds = %40
%47 = load i32, ptr %9, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %9, align 4
br label %35, !llvm.loop !8
49: ; preds = %35
%50 = load i32, ptr %7, align 4
%51 = sub nsw i32 %50, 1
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 %52
%54 = load i32, ptr %53, align 4
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %54)
%56 = load i32, ptr %8, align 4
store i32 %56, ptr %10, align 4
br label %57
57: ; preds = %102, %49
%58 = load i32, ptr %10, align 4
%59 = icmp sgt i32 %58, 0
br i1 %59, label %60, label %105
60: ; preds = %57
%61 = load i32, ptr %10, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 %62
%64 = load i32, ptr %63, align 4
%65 = load i32, ptr %10, align 4
%66 = sub nsw i32 %65, 1
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 %67
%69 = load i32, ptr %68, align 4
%70 = icmp slt i32 %64, %69
br i1 %70, label %71, label %101
71: ; preds = %60
%72 = load i32, ptr %10, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 %73
%75 = load i32, ptr %10, align 4
%76 = sub nsw i32 %75, 1
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 %77
%79 = call i32 @swap(ptr noundef %74, ptr noundef %78)
store i32 0, ptr %9, align 4
br label %80
80: ; preds = %91, %71
%81 = load i32, ptr %9, align 4
%82 = load i32, ptr %7, align 4
%83 = sub nsw i32 %82, 1
%84 = icmp slt i32 %81, %83
br i1 %84, label %85, label %94
85: ; preds = %80
%86 = load i32, ptr %9, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 %87
%89 = load i32, ptr %88, align 4
%90 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %89)
br label %91
91: ; preds = %85
%92 = load i32, ptr %9, align 4
%93 = add nsw i32 %92, 1
store i32 %93, ptr %9, align 4
br label %80, !llvm.loop !9
94: ; preds = %80
%95 = load i32, ptr %7, align 4
%96 = sub nsw i32 %95, 1
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 %97
%99 = load i32, ptr %98, align 4
%100 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %99)
br label %101
101: ; preds = %94, %60
br label %102
102: ; preds = %101
%103 = load i32, ptr %10, align 4
%104 = add nsw i32 %103, -1
store i32 %104, ptr %10, align 4
br label %57, !llvm.loop !10
105: ; preds = %57
%106 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %107
107: ; preds = %105
%108 = load i32, ptr %8, align 4
%109 = add nsw i32 %108, 1
store i32 %109, ptr %8, align 4
br label %24, !llvm.loop !11
110: ; preds = %24
%111 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
store i32 0, ptr %9, align 4
br label %112
112: ; preds = %123, %110
%113 = load i32, ptr %9, align 4
%114 = load i32, ptr %7, align 4
%115 = sub nsw i32 %114, 1
%116 = icmp slt i32 %113, %115
br i1 %116, label %117, label %126
117: ; preds = %112
%118 = load i32, ptr %9, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 %119
%121 = load i32, ptr %120, align 4
%122 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %121)
br label %123
123: ; preds = %117
%124 = load i32, ptr %9, align 4
%125 = add nsw i32 %124, 1
store i32 %125, ptr %9, align 4
br label %112, !llvm.loop !12
126: ; preds = %112
%127 = load i32, ptr %7, align 4
%128 = sub nsw i32 %127, 1
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 %129
%131 = load i32, ptr %130, align 4
%132 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %131)
ret i32 0
}
declare i64 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @swap(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcg_ex_xm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [11 x i8] c"Chave: %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"Estado Atual: \00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"%d | \00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.6 = private unnamed_addr constant [18 x i8] c"Resultado Final: \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 [100 x i32], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
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 %7, align 4
%12 = call i64 @scanf(ptr noundef @.str, ptr noundef %11)
%13 = load i64, ptr @EOF, align 8
%14 = icmp ne i64 %12, %13
br i1 %14, label %.lr.ph, label %25
.lr.ph: ; preds = %2
br label %15
15: ; preds = %.lr.ph, %15
%16 = load i32, ptr %11, align 4
%17 = load i32, ptr %7, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 %18
store i32 %16, ptr %19, align 4
%20 = load i32, ptr %7, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %7, align 4
%22 = call i64 @scanf(ptr noundef @.str, ptr noundef %11)
%23 = load i64, ptr @EOF, align 8
%24 = icmp ne i64 %22, %23
br i1 %24, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %25
25: ; preds = %._crit_edge, %2
store i32 1, ptr %8, align 4
%26 = load i32, ptr %8, align 4
%27 = load i32, ptr %7, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %.lr.ph11, label %121
.lr.ph11: ; preds = %25
br label %29
29: ; preds = %.lr.ph11, %115
%30 = load i32, ptr %8, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 %31
%33 = load i32, ptr %32, align 4
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %33)
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %9, align 4
%36 = load i32, ptr %9, align 4
%37 = load i32, ptr %7, align 4
%38 = sub nsw i32 %37, 1
%39 = icmp slt i32 %36, %38
br i1 %39, label %.lr.ph2, label %53
.lr.ph2: ; preds = %29
br label %40
40: ; preds = %.lr.ph2, %46
%41 = load i32, ptr %9, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 %42
%44 = load i32, ptr %43, align 4
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %44)
br label %46
46: ; preds = %40
%47 = load i32, ptr %9, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %9, align 4
%49 = load i32, ptr %9, align 4
%50 = load i32, ptr %7, align 4
%51 = sub nsw i32 %50, 1
%52 = icmp slt i32 %49, %51
br i1 %52, label %40, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %46
br label %53
53: ; preds = %._crit_edge3, %29
%54 = load i32, ptr %7, align 4
%55 = sub nsw i32 %54, 1
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 %56
%58 = load i32, ptr %57, align 4
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %58)
%60 = load i32, ptr %8, align 4
store i32 %60, ptr %10, align 4
%61 = load i32, ptr %10, align 4
%62 = icmp sgt i32 %61, 0
br i1 %62, label %.lr.ph8, label %113
.lr.ph8: ; preds = %53
br label %63
63: ; preds = %.lr.ph8, %108
%64 = load i32, ptr %10, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 %65
%67 = load i32, ptr %66, align 4
%68 = load i32, ptr %10, align 4
%69 = sub nsw i32 %68, 1
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 %70
%72 = load i32, ptr %71, align 4
%73 = icmp slt i32 %67, %72
br i1 %73, label %74, label %107
74: ; preds = %63
%75 = load i32, ptr %10, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 %76
%78 = load i32, ptr %10, align 4
%79 = sub nsw i32 %78, 1
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 %80
%82 = call i32 @swap(ptr noundef %77, ptr noundef %81)
store i32 0, ptr %9, align 4
%83 = load i32, ptr %9, align 4
%84 = load i32, ptr %7, align 4
%85 = sub nsw i32 %84, 1
%86 = icmp slt i32 %83, %85
br i1 %86, label %.lr.ph5, label %100
.lr.ph5: ; preds = %74
br label %87
87: ; preds = %.lr.ph5, %93
%88 = load i32, ptr %9, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 %89
%91 = load i32, ptr %90, align 4
%92 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %91)
br label %93
93: ; preds = %87
%94 = load i32, ptr %9, align 4
%95 = add nsw i32 %94, 1
store i32 %95, ptr %9, align 4
%96 = load i32, ptr %9, align 4
%97 = load i32, ptr %7, align 4
%98 = sub nsw i32 %97, 1
%99 = icmp slt i32 %96, %98
br i1 %99, label %87, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %93
br label %100
100: ; preds = %._crit_edge6, %74
%101 = load i32, ptr %7, align 4
%102 = sub nsw i32 %101, 1
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 %103
%105 = load i32, ptr %104, align 4
%106 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %105)
br label %107
107: ; preds = %100, %63
br label %108
108: ; preds = %107
%109 = load i32, ptr %10, align 4
%110 = add nsw i32 %109, -1
store i32 %110, ptr %10, align 4
%111 = load i32, ptr %10, align 4
%112 = icmp sgt i32 %111, 0
br i1 %112, label %63, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %108
br label %113
113: ; preds = %._crit_edge9, %53
%114 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %115
115: ; preds = %113
%116 = load i32, ptr %8, align 4
%117 = add nsw i32 %116, 1
store i32 %117, ptr %8, align 4
%118 = load i32, ptr %8, align 4
%119 = load i32, ptr %7, align 4
%120 = icmp slt i32 %118, %119
br i1 %120, label %29, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %115
br label %121
121: ; preds = %._crit_edge12, %25
%122 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
store i32 0, ptr %9, align 4
%123 = load i32, ptr %9, align 4
%124 = load i32, ptr %7, align 4
%125 = sub nsw i32 %124, 1
%126 = icmp slt i32 %123, %125
br i1 %126, label %.lr.ph14, label %140
.lr.ph14: ; preds = %121
br label %127
127: ; preds = %.lr.ph14, %133
%128 = load i32, ptr %9, align 4
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 %129
%131 = load i32, ptr %130, align 4
%132 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %131)
br label %133
133: ; preds = %127
%134 = load i32, ptr %9, align 4
%135 = add nsw i32 %134, 1
store i32 %135, ptr %9, align 4
%136 = load i32, ptr %9, align 4
%137 = load i32, ptr %7, align 4
%138 = sub nsw i32 %137, 1
%139 = icmp slt i32 %136, %138
br i1 %139, label %127, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %133
br label %140
140: ; preds = %._crit_edge15, %121
%141 = load i32, ptr %7, align 4
%142 = sub nsw i32 %141, 1
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 %143
%145 = load i32, ptr %144, align 4
%146 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %145)
ret i32 0
}
declare i64 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @swap(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
|
; ModuleID = '/tmp/tmpa7ogoinj.c'
source_filename = "/tmp/tmpa7ogoinj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test25() #0 {
ret i32 819
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa7ogoinj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test25() #0 {
ret i32 819
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpadh_nhy4.c'
source_filename = "/tmp/tmpadh_nhy4.c"
target datalayout = "e-m:e-p270: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/tmpadh_nhy4.c"
target datalayout = "e-m:e-p270: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/tmpbovsv5uz.c'
source_filename = "/tmp/tmpbovsv5uz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @util_runcoproc(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca [2 x i32], align 4
%13 = alloca [2 x i32], align 4
%14 = alloca [2 x i32], align 4
%15 = 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 ptr %4, ptr %10, align 8
store i32 0, ptr %15, align 4
%16 = load ptr, ptr %8, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %18, label %27
18: ; preds = %5
%19 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 0
%20 = call i64 @pipe(ptr noundef %19)
%21 = icmp slt i64 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %18
store i32 25, ptr %15, align 4
br label %192
23: ; preds = %18
%24 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 1
%25 = load i32, ptr %24, align 4
%26 = load ptr, ptr %8, align 8
store i32 %25, ptr %26, align 4
br label %27
27: ; preds = %23, %5
%28 = load ptr, ptr %9, align 8
%29 = icmp ne ptr %28, null
br i1 %29, label %30, label %49
30: ; preds = %27
%31 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 0
%32 = call i64 @pipe(ptr noundef %31)
%33 = icmp slt i64 %32, 0
br i1 %33, label %34, label %45
34: ; preds = %30
%35 = load ptr, ptr %8, align 8
%36 = icmp ne ptr %35, null
br i1 %36, label %37, label %44
37: ; preds = %34
%38 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 0
%39 = load i32, ptr %38, align 4
%40 = call i32 @close(i32 noundef %39)
%41 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 1
%42 = load i32, ptr %41, align 4
%43 = call i32 @close(i32 noundef %42)
br label %44
44: ; preds = %37, %34
store i32 25, ptr %15, align 4
br label %192
45: ; preds = %30
%46 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 0
%47 = load i32, ptr %46, align 4
%48 = load ptr, ptr %9, align 8
store i32 %47, ptr %48, align 4
br label %49
49: ; preds = %45, %27
%50 = load ptr, ptr %10, align 8
%51 = icmp ne ptr %50, null
br i1 %51, label %52, label %81
52: ; preds = %49
%53 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 0
%54 = call i64 @pipe(ptr noundef %53)
%55 = icmp slt i64 %54, 0
br i1 %55, label %56, label %77
56: ; preds = %52
%57 = load ptr, ptr %8, align 8
%58 = icmp ne ptr %57, null
br i1 %58, label %59, label %66
59: ; preds = %56
%60 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 0
%61 = load i32, ptr %60, align 4
%62 = call i32 @close(i32 noundef %61)
%63 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 1
%64 = load i32, ptr %63, align 4
%65 = call i32 @close(i32 noundef %64)
br label %66
66: ; preds = %59, %56
%67 = load ptr, ptr %9, align 8
%68 = icmp ne ptr %67, null
br i1 %68, label %69, label %76
69: ; preds = %66
%70 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 0
%71 = load i32, ptr %70, align 4
%72 = call i32 @close(i32 noundef %71)
%73 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 1
%74 = load i32, ptr %73, align 4
%75 = call i32 @close(i32 noundef %74)
br label %76
76: ; preds = %69, %66
store i32 25, ptr %15, align 4
br label %192
77: ; preds = %52
%78 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 0
%79 = load i32, ptr %78, align 4
%80 = load ptr, ptr %10, align 8
store i32 %79, ptr %80, align 4
br label %81
81: ; preds = %77, %49
%82 = call i32 (...) @fork()
store i32 %82, ptr %11, align 4
switch i32 %82, label %163 [
i32 -1, label %83
i32 0, label %84
]
83: ; preds = %81
store i32 23, ptr %15, align 4
br label %191
84: ; preds = %81
%85 = load ptr, ptr %8, align 8
%86 = icmp ne ptr %85, null
br i1 %86, label %87, label %94
87: ; preds = %84
%88 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 1
%89 = load i32, ptr %88, align 4
%90 = call i32 @close(i32 noundef %89)
%91 = icmp slt i32 %90, 0
br i1 %91, label %92, label %94
92: ; preds = %87
%93 = call i32 @exit(i32 noundef 1) #3
unreachable
94: ; preds = %87, %84
%95 = load ptr, ptr %9, align 8
%96 = icmp ne ptr %95, null
br i1 %96, label %97, label %104
97: ; preds = %94
%98 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 0
%99 = load i32, ptr %98, align 4
%100 = call i32 @close(i32 noundef %99)
%101 = icmp slt i32 %100, 0
br i1 %101, label %102, label %104
102: ; preds = %97
%103 = call i32 @exit(i32 noundef 1) #3
unreachable
104: ; preds = %97, %94
%105 = load ptr, ptr %10, align 8
%106 = icmp ne ptr %105, null
br i1 %106, label %107, label %114
107: ; preds = %104
%108 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 0
%109 = load i32, ptr %108, align 4
%110 = call i32 @close(i32 noundef %109)
%111 = icmp slt i32 %110, 0
br i1 %111, label %112, label %114
112: ; preds = %107
%113 = call i32 @exit(i32 noundef 1) #3
unreachable
114: ; preds = %107, %104
%115 = load ptr, ptr %8, align 8
%116 = icmp ne ptr %115, null
br i1 %116, label %117, label %120
117: ; preds = %114
%118 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 0
%119 = load i32, ptr %118, align 4
br label %121
120: ; preds = %114
br label %121
121: ; preds = %120, %117
%122 = phi i32 [ %119, %117 ], [ -1, %120 ]
%123 = call i32 @_redirect_fd(i32 noundef %122, i32 noundef 0)
store i32 %123, ptr %15, align 4
%124 = icmp ne i32 %123, 0
br i1 %124, label %125, label %127
125: ; preds = %121
%126 = call i32 @exit(i32 noundef 1) #3
unreachable
127: ; preds = %121
%128 = load ptr, ptr %9, align 8
%129 = icmp ne ptr %128, null
br i1 %129, label %130, label %133
130: ; preds = %127
%131 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 1
%132 = load i32, ptr %131, align 4
br label %134
133: ; preds = %127
br label %134
134: ; preds = %133, %130
%135 = phi i32 [ %132, %130 ], [ -1, %133 ]
%136 = call i32 @_redirect_fd(i32 noundef %135, i32 noundef 1)
store i32 %136, ptr %15, align 4
%137 = icmp ne i32 %136, 0
br i1 %137, label %138, label %140
138: ; preds = %134
%139 = call i32 @exit(i32 noundef 1) #3
unreachable
140: ; preds = %134
%141 = load ptr, ptr %10, align 8
%142 = icmp ne ptr %141, null
br i1 %142, label %143, label %146
143: ; preds = %140
%144 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 1
%145 = load i32, ptr %144, align 4
br label %147
146: ; preds = %140
br label %147
147: ; preds = %146, %143
%148 = phi i32 [ %145, %143 ], [ -2, %146 ]
%149 = call i32 @_redirect_fd(i32 noundef %148, i32 noundef 2)
store i32 %149, ptr %15, align 4
%150 = icmp ne i32 %149, 0
br i1 %150, label %151, label %153
151: ; preds = %147
%152 = call i32 @exit(i32 noundef 1) #3
unreachable
153: ; preds = %147
%154 = load ptr, ptr %6, align 8
%155 = getelementptr inbounds ptr, ptr %154, i64 0
%156 = load ptr, ptr %155, align 8
%157 = load ptr, ptr %6, align 8
%158 = call i32 @execvp(ptr noundef %156, ptr noundef %157)
%159 = icmp slt i32 %158, 0
br i1 %159, label %160, label %162
160: ; preds = %153
%161 = call i32 @exit(i32 noundef 1) #3
unreachable
162: ; preds = %153
br label %191
163: ; preds = %81
%164 = load ptr, ptr %8, align 8
%165 = icmp ne ptr %164, null
br i1 %165, label %166, label %172
166: ; preds = %163
%167 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 0
%168 = load i32, ptr %167, align 4
%169 = call i32 @close(i32 noundef %168)
%170 = icmp slt i32 %169, 0
br i1 %170, label %171, label %172
171: ; preds = %166
store i32 25, ptr %15, align 4
br label %192
172: ; preds = %166, %163
%173 = load ptr, ptr %9, align 8
%174 = icmp ne ptr %173, null
br i1 %174, label %175, label %181
175: ; preds = %172
%176 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 1
%177 = load i32, ptr %176, align 4
%178 = call i32 @close(i32 noundef %177)
%179 = icmp slt i32 %178, 0
br i1 %179, label %180, label %181
180: ; preds = %175
store i32 25, ptr %15, align 4
br label %192
181: ; preds = %175, %172
%182 = load ptr, ptr %10, align 8
%183 = icmp ne ptr %182, null
br i1 %183, label %184, label %190
184: ; preds = %181
%185 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 1
%186 = load i32, ptr %185, align 4
%187 = call i32 @close(i32 noundef %186)
%188 = icmp slt i32 %187, 0
br i1 %188, label %189, label %190
189: ; preds = %184
store i32 25, ptr %15, align 4
br label %192
190: ; preds = %184, %181
br label %191
191: ; preds = %190, %162, %83
br label %192
192: ; preds = %191, %189, %180, %171, %76, %44, %22
%193 = load i32, ptr %15, align 4
%194 = icmp eq i32 %193, 0
br i1 %194, label %195, label %201
195: ; preds = %192
%196 = load ptr, ptr %7, align 8
%197 = icmp ne ptr %196, null
br i1 %197, label %198, label %201
198: ; preds = %195
%199 = load i32, ptr %11, align 4
%200 = load ptr, ptr %7, align 8
store i32 %199, ptr %200, align 4
br label %201
201: ; preds = %198, %195, %192
%202 = load i32, ptr %15, align 4
ret i32 %202
}
declare i64 @pipe(ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @fork(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @_redirect_fd(i32 noundef, i32 noundef) #1
declare i32 @execvp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbovsv5uz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @util_runcoproc(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca [2 x i32], align 4
%13 = alloca [2 x i32], align 4
%14 = alloca [2 x i32], align 4
%15 = 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 ptr %4, ptr %10, align 8
store i32 0, ptr %15, align 4
%16 = load ptr, ptr %8, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %18, label %27
18: ; preds = %5
%19 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 0
%20 = call i64 @pipe(ptr noundef %19)
%21 = icmp slt i64 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %18
store i32 25, ptr %15, align 4
br label %192
23: ; preds = %18
%24 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 1
%25 = load i32, ptr %24, align 4
%26 = load ptr, ptr %8, align 8
store i32 %25, ptr %26, align 4
br label %27
27: ; preds = %23, %5
%28 = load ptr, ptr %9, align 8
%29 = icmp ne ptr %28, null
br i1 %29, label %30, label %49
30: ; preds = %27
%31 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 0
%32 = call i64 @pipe(ptr noundef %31)
%33 = icmp slt i64 %32, 0
br i1 %33, label %34, label %45
34: ; preds = %30
%35 = load ptr, ptr %8, align 8
%36 = icmp ne ptr %35, null
br i1 %36, label %37, label %44
37: ; preds = %34
%38 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 0
%39 = load i32, ptr %38, align 4
%40 = call i32 @close(i32 noundef %39)
%41 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 1
%42 = load i32, ptr %41, align 4
%43 = call i32 @close(i32 noundef %42)
br label %44
44: ; preds = %37, %34
store i32 25, ptr %15, align 4
br label %192
45: ; preds = %30
%46 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 0
%47 = load i32, ptr %46, align 4
%48 = load ptr, ptr %9, align 8
store i32 %47, ptr %48, align 4
br label %49
49: ; preds = %45, %27
%50 = load ptr, ptr %10, align 8
%51 = icmp ne ptr %50, null
br i1 %51, label %52, label %81
52: ; preds = %49
%53 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 0
%54 = call i64 @pipe(ptr noundef %53)
%55 = icmp slt i64 %54, 0
br i1 %55, label %56, label %77
56: ; preds = %52
%57 = load ptr, ptr %8, align 8
%58 = icmp ne ptr %57, null
br i1 %58, label %59, label %66
59: ; preds = %56
%60 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 0
%61 = load i32, ptr %60, align 4
%62 = call i32 @close(i32 noundef %61)
%63 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 1
%64 = load i32, ptr %63, align 4
%65 = call i32 @close(i32 noundef %64)
br label %66
66: ; preds = %59, %56
%67 = load ptr, ptr %9, align 8
%68 = icmp ne ptr %67, null
br i1 %68, label %69, label %76
69: ; preds = %66
%70 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 0
%71 = load i32, ptr %70, align 4
%72 = call i32 @close(i32 noundef %71)
%73 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 1
%74 = load i32, ptr %73, align 4
%75 = call i32 @close(i32 noundef %74)
br label %76
76: ; preds = %69, %66
store i32 25, ptr %15, align 4
br label %192
77: ; preds = %52
%78 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 0
%79 = load i32, ptr %78, align 4
%80 = load ptr, ptr %10, align 8
store i32 %79, ptr %80, align 4
br label %81
81: ; preds = %77, %49
%82 = call i32 (...) @fork()
store i32 %82, ptr %11, align 4
switch i32 %82, label %163 [
i32 -1, label %83
i32 0, label %84
]
83: ; preds = %81
store i32 23, ptr %15, align 4
br label %191
84: ; preds = %81
%85 = load ptr, ptr %8, align 8
%86 = icmp ne ptr %85, null
br i1 %86, label %87, label %94
87: ; preds = %84
%88 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 1
%89 = load i32, ptr %88, align 4
%90 = call i32 @close(i32 noundef %89)
%91 = icmp slt i32 %90, 0
br i1 %91, label %92, label %94
92: ; preds = %87
%93 = call i32 @exit(i32 noundef 1) #3
unreachable
94: ; preds = %87, %84
%95 = load ptr, ptr %9, align 8
%96 = icmp ne ptr %95, null
br i1 %96, label %97, label %104
97: ; preds = %94
%98 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 0
%99 = load i32, ptr %98, align 4
%100 = call i32 @close(i32 noundef %99)
%101 = icmp slt i32 %100, 0
br i1 %101, label %102, label %104
102: ; preds = %97
%103 = call i32 @exit(i32 noundef 1) #3
unreachable
104: ; preds = %97, %94
%105 = load ptr, ptr %10, align 8
%106 = icmp ne ptr %105, null
br i1 %106, label %107, label %114
107: ; preds = %104
%108 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 0
%109 = load i32, ptr %108, align 4
%110 = call i32 @close(i32 noundef %109)
%111 = icmp slt i32 %110, 0
br i1 %111, label %112, label %114
112: ; preds = %107
%113 = call i32 @exit(i32 noundef 1) #3
unreachable
114: ; preds = %107, %104
%115 = load ptr, ptr %8, align 8
%116 = icmp ne ptr %115, null
br i1 %116, label %117, label %120
117: ; preds = %114
%118 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 0
%119 = load i32, ptr %118, align 4
br label %121
120: ; preds = %114
br label %121
121: ; preds = %120, %117
%122 = phi i32 [ %119, %117 ], [ -1, %120 ]
%123 = call i32 @_redirect_fd(i32 noundef %122, i32 noundef 0)
store i32 %123, ptr %15, align 4
%124 = icmp ne i32 %123, 0
br i1 %124, label %125, label %127
125: ; preds = %121
%126 = call i32 @exit(i32 noundef 1) #3
unreachable
127: ; preds = %121
%128 = load ptr, ptr %9, align 8
%129 = icmp ne ptr %128, null
br i1 %129, label %130, label %133
130: ; preds = %127
%131 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 1
%132 = load i32, ptr %131, align 4
br label %134
133: ; preds = %127
br label %134
134: ; preds = %133, %130
%135 = phi i32 [ %132, %130 ], [ -1, %133 ]
%136 = call i32 @_redirect_fd(i32 noundef %135, i32 noundef 1)
store i32 %136, ptr %15, align 4
%137 = icmp ne i32 %136, 0
br i1 %137, label %138, label %140
138: ; preds = %134
%139 = call i32 @exit(i32 noundef 1) #3
unreachable
140: ; preds = %134
%141 = load ptr, ptr %10, align 8
%142 = icmp ne ptr %141, null
br i1 %142, label %143, label %146
143: ; preds = %140
%144 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 1
%145 = load i32, ptr %144, align 4
br label %147
146: ; preds = %140
br label %147
147: ; preds = %146, %143
%148 = phi i32 [ %145, %143 ], [ -2, %146 ]
%149 = call i32 @_redirect_fd(i32 noundef %148, i32 noundef 2)
store i32 %149, ptr %15, align 4
%150 = icmp ne i32 %149, 0
br i1 %150, label %151, label %153
151: ; preds = %147
%152 = call i32 @exit(i32 noundef 1) #3
unreachable
153: ; preds = %147
%154 = load ptr, ptr %6, align 8
%155 = getelementptr inbounds ptr, ptr %154, i64 0
%156 = load ptr, ptr %155, align 8
%157 = load ptr, ptr %6, align 8
%158 = call i32 @execvp(ptr noundef %156, ptr noundef %157)
%159 = icmp slt i32 %158, 0
br i1 %159, label %160, label %162
160: ; preds = %153
%161 = call i32 @exit(i32 noundef 1) #3
unreachable
162: ; preds = %153
br label %191
163: ; preds = %81
%164 = load ptr, ptr %8, align 8
%165 = icmp ne ptr %164, null
br i1 %165, label %166, label %172
166: ; preds = %163
%167 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 0
%168 = load i32, ptr %167, align 4
%169 = call i32 @close(i32 noundef %168)
%170 = icmp slt i32 %169, 0
br i1 %170, label %171, label %172
171: ; preds = %166
store i32 25, ptr %15, align 4
br label %192
172: ; preds = %166, %163
%173 = load ptr, ptr %9, align 8
%174 = icmp ne ptr %173, null
br i1 %174, label %175, label %181
175: ; preds = %172
%176 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 1
%177 = load i32, ptr %176, align 4
%178 = call i32 @close(i32 noundef %177)
%179 = icmp slt i32 %178, 0
br i1 %179, label %180, label %181
180: ; preds = %175
store i32 25, ptr %15, align 4
br label %192
181: ; preds = %175, %172
%182 = load ptr, ptr %10, align 8
%183 = icmp ne ptr %182, null
br i1 %183, label %184, label %190
184: ; preds = %181
%185 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 1
%186 = load i32, ptr %185, align 4
%187 = call i32 @close(i32 noundef %186)
%188 = icmp slt i32 %187, 0
br i1 %188, label %189, label %190
189: ; preds = %184
store i32 25, ptr %15, align 4
br label %192
190: ; preds = %184, %181
br label %191
191: ; preds = %190, %162, %83
br label %192
192: ; preds = %191, %189, %180, %171, %76, %44, %22
%193 = load i32, ptr %15, align 4
%194 = icmp eq i32 %193, 0
br i1 %194, label %195, label %201
195: ; preds = %192
%196 = load ptr, ptr %7, align 8
%197 = icmp ne ptr %196, null
br i1 %197, label %198, label %201
198: ; preds = %195
%199 = load i32, ptr %11, align 4
%200 = load ptr, ptr %7, align 8
store i32 %199, ptr %200, align 4
br label %201
201: ; preds = %198, %195, %192
%202 = load i32, ptr %15, align 4
ret i32 %202
}
declare i64 @pipe(ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @fork(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @_redirect_fd(i32 noundef, i32 noundef) #1
declare i32 @execvp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5ztvv01w.c'
source_filename = "/tmp/tmp5ztvv01w.c"
target datalayout = "e-m:e-p270: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/tmp5ztvv01w.c"
target datalayout = "e-m:e-p270: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/tmpmtbq939c.c'
source_filename = "/tmp/tmpmtbq939c.c"
target datalayout = "e-m:e-p270: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/tmpmtbq939c.c"
target datalayout = "e-m:e-p270: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/tmp5gtzmry8.c'
source_filename = "/tmp/tmp5gtzmry8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"no input\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [22 x i8] c"error opening file %s\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"writing file %s\00", align 1
@.str.3 = private unnamed_addr constant [26 x i8] c"writing file %s to stdout\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [128 x i8], align 16
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 128, ptr %7, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp ne i32 %10, 2
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 (ptr, ...) @error(ptr noundef @.str)
br label %14
14: ; preds = %12, %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i32 1
store ptr %16, ptr %5, align 8
%17 = load ptr, ptr %16, align 8
%18 = load i32, ptr @O_RDWR, align 4
%19 = call i32 @open(ptr noundef %17, i32 noundef %18, i32 noundef 420)
store i32 %19, ptr %6, align 4
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %25
21: ; preds = %14
%22 = load ptr, ptr %5, align 8
%23 = load ptr, ptr %22, align 8
%24 = call i32 (ptr, ...) @error(ptr noundef @.str.1, ptr noundef %23)
br label %25
25: ; preds = %21, %14
%26 = load i32, ptr %6, align 4
%27 = call i32 @lseek(i32 noundef %26, i64 noundef 0, i32 noundef 0)
%28 = load i32, ptr %6, align 4
%29 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
%30 = load i32, ptr %7, align 4
%31 = call i32 @read(i32 noundef %28, ptr noundef %29, i32 noundef %30)
store i32 %31, ptr %9, align 4
%32 = icmp sgt i32 %31, 0
br i1 %32, label %33, label %47
33: ; preds = %25
%34 = load i32, ptr %6, align 4
%35 = call i32 @lseek(i32 noundef %34, i64 noundef 0, i32 noundef 2)
%36 = load i32, ptr %9, align 4
%37 = load i32, ptr %6, align 4
%38 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
%39 = load i32, ptr %9, align 4
%40 = call i32 @write(i32 noundef %37, ptr noundef %38, i32 noundef %39)
%41 = icmp ne i32 %36, %40
br i1 %41, label %42, label %46
42: ; preds = %33
%43 = load ptr, ptr %5, align 8
%44 = load ptr, ptr %43, align 8
%45 = call i32 (ptr, ...) @error(ptr noundef @.str.2, ptr noundef %44)
br label %46
46: ; preds = %42, %33
br label %47
47: ; preds = %46, %25
%48 = load i32, ptr %6, align 4
%49 = call i32 @lseek(i32 noundef %48, i64 noundef 0, i32 noundef 0)
br label %50
50: ; preds = %66, %47
%51 = load i32, ptr %6, align 4
%52 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
%53 = load i32, ptr %7, align 4
%54 = call i32 @read(i32 noundef %51, ptr noundef %52, i32 noundef %53)
store i32 %54, ptr %9, align 4
%55 = icmp sgt i32 %54, 0
br i1 %55, label %56, label %67
56: ; preds = %50
%57 = load i32, ptr %9, align 4
%58 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
%59 = load i32, ptr %9, align 4
%60 = call i32 @write(i32 noundef 1, ptr noundef %58, i32 noundef %59)
%61 = icmp ne i32 %57, %60
br i1 %61, label %62, label %66
62: ; preds = %56
%63 = load ptr, ptr %5, align 8
%64 = load ptr, ptr %63, align 8
%65 = call i32 (ptr, ...) @error(ptr noundef @.str.3, ptr noundef %64)
br label %66
66: ; preds = %62, %56
br label %50, !llvm.loop !6
67: ; preds = %50
%68 = load i32, ptr %6, align 4
%69 = call i32 @close(i32 noundef %68)
ret i32 0
}
declare i32 @error(ptr noundef, ...) #1
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @lseek(i32 noundef, i64 noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5gtzmry8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"no input\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [22 x i8] c"error opening file %s\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"writing file %s\00", align 1
@.str.3 = private unnamed_addr constant [26 x i8] c"writing file %s to stdout\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [128 x i8], align 16
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 128, ptr %7, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp ne i32 %10, 2
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 (ptr, ...) @error(ptr noundef @.str)
br label %14
14: ; preds = %12, %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i32 1
store ptr %16, ptr %5, align 8
%17 = load ptr, ptr %16, align 8
%18 = load i32, ptr @O_RDWR, align 4
%19 = call i32 @open(ptr noundef %17, i32 noundef %18, i32 noundef 420)
store i32 %19, ptr %6, align 4
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %25
21: ; preds = %14
%22 = load ptr, ptr %5, align 8
%23 = load ptr, ptr %22, align 8
%24 = call i32 (ptr, ...) @error(ptr noundef @.str.1, ptr noundef %23)
br label %25
25: ; preds = %21, %14
%26 = load i32, ptr %6, align 4
%27 = call i32 @lseek(i32 noundef %26, i64 noundef 0, i32 noundef 0)
%28 = load i32, ptr %6, align 4
%29 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
%30 = load i32, ptr %7, align 4
%31 = call i32 @read(i32 noundef %28, ptr noundef %29, i32 noundef %30)
store i32 %31, ptr %9, align 4
%32 = icmp sgt i32 %31, 0
br i1 %32, label %33, label %47
33: ; preds = %25
%34 = load i32, ptr %6, align 4
%35 = call i32 @lseek(i32 noundef %34, i64 noundef 0, i32 noundef 2)
%36 = load i32, ptr %9, align 4
%37 = load i32, ptr %6, align 4
%38 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
%39 = load i32, ptr %9, align 4
%40 = call i32 @write(i32 noundef %37, ptr noundef %38, i32 noundef %39)
%41 = icmp ne i32 %36, %40
br i1 %41, label %42, label %46
42: ; preds = %33
%43 = load ptr, ptr %5, align 8
%44 = load ptr, ptr %43, align 8
%45 = call i32 (ptr, ...) @error(ptr noundef @.str.2, ptr noundef %44)
br label %46
46: ; preds = %42, %33
br label %47
47: ; preds = %46, %25
%48 = load i32, ptr %6, align 4
%49 = call i32 @lseek(i32 noundef %48, i64 noundef 0, i32 noundef 0)
%50 = load i32, ptr %6, align 4
%51 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
%52 = load i32, ptr %7, align 4
%53 = call i32 @read(i32 noundef %50, ptr noundef %51, i32 noundef %52)
store i32 %53, ptr %9, align 4
%54 = icmp sgt i32 %53, 0
br i1 %54, label %.lr.ph, label %70
.lr.ph: ; preds = %47
br label %55
55: ; preds = %.lr.ph, %65
%56 = load i32, ptr %9, align 4
%57 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
%58 = load i32, ptr %9, align 4
%59 = call i32 @write(i32 noundef 1, ptr noundef %57, i32 noundef %58)
%60 = icmp ne i32 %56, %59
br i1 %60, label %61, label %65
61: ; preds = %55
%62 = load ptr, ptr %5, align 8
%63 = load ptr, ptr %62, align 8
%64 = call i32 (ptr, ...) @error(ptr noundef @.str.3, ptr noundef %63)
br label %65
65: ; preds = %61, %55
%66 = load i32, ptr %6, align 4
%67 = load i32, ptr %7, align 4
%68 = call i32 @read(i32 noundef %66, ptr noundef %51, i32 noundef %67)
store i32 %68, ptr %9, align 4
%69 = icmp sgt i32 %68, 0
br i1 %69, label %55, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %65
br label %70
70: ; preds = %._crit_edge, %47
%71 = load i32, ptr %6, align 4
%72 = call i32 @close(i32 noundef %71)
ret i32 0
}
declare i32 @error(ptr noundef, ...) #1
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @lseek(i32 noundef, i64 noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpuvv4g0te.c'
source_filename = "/tmp/tmpuvv4g0te.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i64 0, align 8
@EPERM = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [13 x i8] c"non_existent\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"open()\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"All Ok!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%3 = load i64, ptr @errno, align 8
%4 = icmp eq i64 %3, 0
%5 = zext i1 %4 to i32
%6 = call i32 @assert(i32 noundef %5)
%7 = load i64, ptr @EPERM, align 8
store i64 %7, ptr @errno, align 8
%8 = load i64, ptr @errno, align 8
%9 = load i64, ptr @EPERM, align 8
%10 = icmp eq i64 %8, %9
%11 = zext i1 %10 to i32
%12 = call i32 @assert(i32 noundef %11)
%13 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %13, ptr %2, align 8
%14 = load ptr, ptr %2, align 8
%15 = icmp eq ptr %14, null
br i1 %15, label %16, label %18
16: ; preds = %0
%17 = call i32 @perror(ptr noundef @.str.2)
br label %21
18: ; preds = %0
%19 = load ptr, ptr %2, align 8
%20 = call i32 @fclose(ptr noundef %19)
br label %21
21: ; preds = %18, %16
%22 = call i32 @printf(ptr noundef @.str.3)
%23 = load i32, ptr %1, align 4
ret i32 %23
}
declare i32 @assert(i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @fclose(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/tmpuvv4g0te.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i64 0, align 8
@EPERM = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [13 x i8] c"non_existent\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"open()\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"All Ok!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%3 = load i64, ptr @errno, align 8
%4 = icmp eq i64 %3, 0
%5 = zext i1 %4 to i32
%6 = call i32 @assert(i32 noundef %5)
%7 = load i64, ptr @EPERM, align 8
store i64 %7, ptr @errno, align 8
%8 = load i64, ptr @errno, align 8
%9 = load i64, ptr @EPERM, align 8
%10 = icmp eq i64 %8, %9
%11 = zext i1 %10 to i32
%12 = call i32 @assert(i32 noundef %11)
%13 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %13, ptr %2, align 8
%14 = load ptr, ptr %2, align 8
%15 = icmp eq ptr %14, null
br i1 %15, label %16, label %18
16: ; preds = %0
%17 = call i32 @perror(ptr noundef @.str.2)
br label %21
18: ; preds = %0
%19 = load ptr, ptr %2, align 8
%20 = call i32 @fclose(ptr noundef %19)
br label %21
21: ; preds = %18, %16
%22 = call i32 @printf(ptr noundef @.str.3)
%23 = load i32, ptr %1, align 4
ret i32 %23
}
declare i32 @assert(i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @fclose(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/tmp9zpkq4u9.c'
source_filename = "/tmp/tmp9zpkq4u9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.hostent = type { ptr }
%struct.in_addr = type { i32 }
@.str = private unnamed_addr constant [15 x i8] c"STUN on %s:%u\0A\00", align 1
@EIO = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @print_stun_probe(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
%10 = load ptr, ptr %5, align 8
%11 = load i32, ptr %6, align 4
%12 = call i32 @printf(ptr noundef @.str, ptr noundef %10, i32 noundef %11)
%13 = call i32 @time(ptr noundef null)
%14 = call i32 @srand(i32 noundef %13)
%15 = load ptr, ptr %5, align 8
%16 = call ptr @gethostbyname(ptr noundef %15)
store ptr %16, ptr %9, align 8
%17 = load ptr, ptr %9, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %22, label %19
19: ; preds = %3
%20 = load i32, ptr @EIO, align 4
%21 = sub nsw i32 0, %20
store i32 %21, ptr %4, align 4
br label %36
22: ; preds = %3
%23 = load ptr, ptr %9, align 8
%24 = getelementptr inbounds %struct.hostent, ptr %23, i32 0, i32 0
%25 = load ptr, ptr %24, align 8
%26 = getelementptr inbounds i64, ptr %25, i64 0
%27 = load i64, ptr %26, align 8
%28 = inttoptr i64 %27 to ptr
%29 = getelementptr inbounds %struct.in_addr, ptr %28, i32 0, i32 0
%30 = load i32, ptr %29, align 4
%31 = call ptr @inet_ntoa(i32 %30)
store ptr %31, ptr %8, align 8
%32 = load ptr, ptr %8, align 8
%33 = load i32, ptr %6, align 4
%34 = load i32, ptr %7, align 4
%35 = call i32 @stun_test(ptr noundef %32, i32 noundef %33, i32 noundef %34)
store i32 %35, ptr %4, align 4
br label %36
36: ; preds = %22, %19
%37 = load i32, ptr %4, align 4
ret i32 %37
}
declare i32 @printf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare ptr @gethostbyname(ptr noundef) #1
declare ptr @inet_ntoa(i32) #1
declare i32 @stun_test(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/tmp9zpkq4u9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.hostent = type { ptr }
%struct.in_addr = type { i32 }
@.str = private unnamed_addr constant [15 x i8] c"STUN on %s:%u\0A\00", align 1
@EIO = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @print_stun_probe(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
%10 = load ptr, ptr %5, align 8
%11 = load i32, ptr %6, align 4
%12 = call i32 @printf(ptr noundef @.str, ptr noundef %10, i32 noundef %11)
%13 = call i32 @time(ptr noundef null)
%14 = call i32 @srand(i32 noundef %13)
%15 = load ptr, ptr %5, align 8
%16 = call ptr @gethostbyname(ptr noundef %15)
store ptr %16, ptr %9, align 8
%17 = load ptr, ptr %9, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %22, label %19
19: ; preds = %3
%20 = load i32, ptr @EIO, align 4
%21 = sub nsw i32 0, %20
store i32 %21, ptr %4, align 4
br label %36
22: ; preds = %3
%23 = load ptr, ptr %9, align 8
%24 = getelementptr inbounds %struct.hostent, ptr %23, i32 0, i32 0
%25 = load ptr, ptr %24, align 8
%26 = getelementptr inbounds i64, ptr %25, i64 0
%27 = load i64, ptr %26, align 8
%28 = inttoptr i64 %27 to ptr
%29 = getelementptr inbounds %struct.in_addr, ptr %28, i32 0, i32 0
%30 = load i32, ptr %29, align 4
%31 = call ptr @inet_ntoa(i32 %30)
store ptr %31, ptr %8, align 8
%32 = load ptr, ptr %8, align 8
%33 = load i32, ptr %6, align 4
%34 = load i32, ptr %7, align 4
%35 = call i32 @stun_test(ptr noundef %32, i32 noundef %33, i32 noundef %34)
store i32 %35, ptr %4, align 4
br label %36
36: ; preds = %22, %19
%37 = load i32, ptr %4, align 4
ret i32 %37
}
declare i32 @printf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare ptr @gethostbyname(ptr noundef) #1
declare ptr @inet_ntoa(i32) #1
declare i32 @stun_test(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/tmp7hm_rpj9.c'
source_filename = "/tmp/tmp7hm_rpj9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i8 0, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i8, align 1
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %7, align 4
br label %9
9: ; preds = %44, %2
%10 = call signext i8 (...) @getchar()
store i8 %10, ptr %6, align 1
%11 = sext i8 %10 to i32
%12 = load i8, ptr @EOF, align 1
%13 = sext i8 %12 to i32
%14 = icmp ne i32 %11, %13
br i1 %14, label %15, label %45
15: ; preds = %9
%16 = load i8, ptr %6, align 1
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 32
br i1 %18, label %19, label %27
19: ; preds = %15
%20 = load i32, ptr %7, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %7, align 4
%22 = load i32, ptr %7, align 4
%23 = icmp eq i32 %22, 4
br i1 %23, label %24, label %26
24: ; preds = %19
%25 = call i32 @putchar(i8 noundef signext 9)
store i32 0, ptr %7, align 4
br label %26
26: ; preds = %24, %19
br label %44
27: ; preds = %15
%28 = load i32, ptr %7, align 4
%29 = icmp sgt i32 %28, 0
br i1 %29, label %30, label %41
30: ; preds = %27
store i32 0, ptr %8, align 4
br label %31
31: ; preds = %37, %30
%32 = load i32, ptr %8, align 4
%33 = load i32, ptr %7, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %35, label %40
35: ; preds = %31
%36 = call i32 @putchar(i8 noundef signext 32)
br label %37
37: ; preds = %35
%38 = load i32, ptr %8, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %8, align 4
br label %31, !llvm.loop !6
40: ; preds = %31
br label %41
41: ; preds = %40, %27
%42 = load i8, ptr %6, align 1
%43 = call i32 @putchar(i8 noundef signext %42)
store i32 0, ptr %7, align 4
br label %44
44: ; preds = %41, %26
br label %9, !llvm.loop !8
45: ; preds = %9
ret i32 0
}
declare signext i8 @getchar(...) #1
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7hm_rpj9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i8 0, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i8, align 1
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %7, align 4
%9 = call signext i8 (...) @getchar()
store i8 %9, ptr %6, align 1
%10 = sext i8 %9 to i32
%11 = load i8, ptr @EOF, align 1
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %10, %12
br i1 %13, label %.lr.ph2, label %51
.lr.ph2: ; preds = %2
br label %14
14: ; preds = %.lr.ph2, %45
%15 = load i8, ptr %6, align 1
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 32
br i1 %17, label %18, label %26
18: ; preds = %14
%19 = load i32, ptr %7, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %7, align 4
%21 = load i32, ptr %7, align 4
%22 = icmp eq i32 %21, 4
br i1 %22, label %23, label %25
23: ; preds = %18
%24 = call i32 @putchar(i8 noundef signext 9)
store i32 0, ptr %7, align 4
br label %25
25: ; preds = %23, %18
br label %45
26: ; preds = %14
%27 = load i32, ptr %7, align 4
%28 = icmp sgt i32 %27, 0
br i1 %28, label %29, label %42
29: ; preds = %26
store i32 0, ptr %8, align 4
%30 = load i32, ptr %8, align 4
%31 = load i32, ptr %7, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %.lr.ph, label %41
.lr.ph: ; preds = %29
br label %33
33: ; preds = %.lr.ph, %35
%34 = call i32 @putchar(i8 noundef signext 32)
br label %35
35: ; preds = %33
%36 = load i32, ptr %8, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %8, align 4
%38 = load i32, ptr %8, align 4
%39 = load i32, ptr %7, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %33, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %35
br label %41
41: ; preds = %._crit_edge, %29
br label %42
42: ; preds = %41, %26
%43 = load i8, ptr %6, align 1
%44 = call i32 @putchar(i8 noundef signext %43)
store i32 0, ptr %7, align 4
br label %45
45: ; preds = %42, %25
%46 = call signext i8 (...) @getchar()
store i8 %46, ptr %6, align 1
%47 = sext i8 %46 to i32
%48 = load i8, ptr @EOF, align 1
%49 = sext i8 %48 to i32
%50 = icmp ne i32 %47, %49
br i1 %50, label %14, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %45
br label %51
51: ; preds = %._crit_edge3, %2
ret i32 0
}
declare signext i8 @getchar(...) #1
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpz6g_pzi_.c'
source_filename = "/tmp/tmpz6g_pzi_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f14(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = and i64 %3, 16383
%5 = icmp uge i64 %4, 8194
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 (...) @abort() #2
unreachable
8: ; preds = %1
ret void
}
; Function Attrs: noreturn
declare i32 @abort(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { 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/tmpz6g_pzi_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f14(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = and i64 %3, 16383
%5 = icmp uge i64 %4, 8194
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 (...) @abort() #2
unreachable
8: ; preds = %1
ret void
}
; Function Attrs: noreturn
declare i32 @abort(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { 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/tmpcaiba55c.c'
source_filename = "/tmp/tmpcaiba55c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @digit_count(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %2, align 8
store i64 1, ptr %3, align 8
store i64 10, ptr %4, align 8
br label %5
5: ; preds = %9, %1
%6 = load i64, ptr %4, align 8
%7 = load i64, ptr %2, align 8
%8 = icmp ult i64 %6, %7
br i1 %8, label %9, label %14
9: ; preds = %5
%10 = load i64, ptr %4, align 8
%11 = mul i64 %10, 10
store i64 %11, ptr %4, align 8
%12 = load i64, ptr %3, align 8
%13 = add i64 %12, 1
store i64 %13, ptr %3, align 8
br label %5, !llvm.loop !6
14: ; preds = %5
%15 = load i64, ptr %3, align 8
ret i64 %15
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpcaiba55c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @digit_count(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %2, align 8
store i64 1, ptr %3, align 8
store i64 10, ptr %4, align 8
%5 = load i64, ptr %4, align 8
%6 = load i64, ptr %2, align 8
%7 = icmp ult i64 %5, %6
br i1 %7, label %.lr.ph, label %16
.lr.ph: ; preds = %1
br label %8
8: ; preds = %.lr.ph, %8
%9 = load i64, ptr %4, align 8
%10 = mul i64 %9, 10
store i64 %10, ptr %4, align 8
%11 = load i64, ptr %3, align 8
%12 = add i64 %11, 1
store i64 %12, ptr %3, align 8
%13 = load i64, ptr %4, align 8
%14 = load i64, ptr %2, align 8
%15 = icmp ult i64 %13, %14
br i1 %15, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %8
br label %16
16: ; preds = %._crit_edge, %1
%17 = load i64, ptr %3, align 8
ret i64 %17
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpffo78m3q.c'
source_filename = "/tmp/tmpffo78m3q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@INT_MAX = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @RMQUtil(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %8, align 8
store i32 %1, ptr %9, align 4
store i32 %2, ptr %10, align 4
store i32 %3, ptr %11, align 4
store i32 %4, ptr %12, align 4
store i32 %5, ptr %13, align 4
%15 = load i32, ptr %11, align 4
%16 = load i32, ptr %9, align 4
%17 = icmp sle i32 %15, %16
br i1 %17, label %18, label %28
18: ; preds = %6
%19 = load i32, ptr %12, align 4
%20 = load i32, ptr %10, align 4
%21 = icmp sge i32 %19, %20
br i1 %21, label %22, label %28
22: ; preds = %18
%23 = load ptr, ptr %8, align 8
%24 = load i32, ptr %13, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, ptr %23, i64 %25
%27 = load i32, ptr %26, align 4
store i32 %27, ptr %7, align 4
br label %62
28: ; preds = %18, %6
%29 = load i32, ptr %10, align 4
%30 = load i32, ptr %11, align 4
%31 = icmp slt i32 %29, %30
br i1 %31, label %36, label %32
32: ; preds = %28
%33 = load i32, ptr %9, align 4
%34 = load i32, ptr %12, align 4
%35 = icmp sgt i32 %33, %34
br i1 %35, label %36, label %38
36: ; preds = %32, %28
%37 = load i32, ptr @INT_MAX, align 4
store i32 %37, ptr %7, align 4
br label %62
38: ; preds = %32
%39 = load i32, ptr %9, align 4
%40 = load i32, ptr %10, align 4
%41 = call i32 @getMid(i32 noundef %39, i32 noundef %40)
store i32 %41, ptr %14, align 4
%42 = load ptr, ptr %8, align 8
%43 = load i32, ptr %9, align 4
%44 = load i32, ptr %14, align 4
%45 = load i32, ptr %11, align 4
%46 = load i32, ptr %12, align 4
%47 = load i32, ptr %13, align 4
%48 = mul nsw i32 2, %47
%49 = add nsw i32 %48, 1
%50 = call i32 @RMQUtil(ptr noundef %42, i32 noundef %43, i32 noundef %44, i32 noundef %45, i32 noundef %46, i32 noundef %49)
%51 = load ptr, ptr %8, align 8
%52 = load i32, ptr %14, align 4
%53 = add nsw i32 %52, 1
%54 = load i32, ptr %10, align 4
%55 = load i32, ptr %11, align 4
%56 = load i32, ptr %12, align 4
%57 = load i32, ptr %13, align 4
%58 = mul nsw i32 2, %57
%59 = add nsw i32 %58, 2
%60 = call i32 @RMQUtil(ptr noundef %51, i32 noundef %53, i32 noundef %54, i32 noundef %55, i32 noundef %56, i32 noundef %59)
%61 = call i32 @minVal(i32 noundef %50, i32 noundef %60)
store i32 %61, ptr %7, align 4
br label %62
62: ; preds = %38, %36, %22
%63 = load i32, ptr %7, align 4
ret i32 %63
}
declare i32 @getMid(i32 noundef, i32 noundef) #1
declare i32 @minVal(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/tmpffo78m3q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@INT_MAX = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @RMQUtil(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %8, align 8
store i32 %1, ptr %9, align 4
store i32 %2, ptr %10, align 4
store i32 %3, ptr %11, align 4
store i32 %4, ptr %12, align 4
store i32 %5, ptr %13, align 4
%15 = load i32, ptr %11, align 4
%16 = load i32, ptr %9, align 4
%17 = icmp sle i32 %15, %16
br i1 %17, label %18, label %28
18: ; preds = %6
%19 = load i32, ptr %12, align 4
%20 = load i32, ptr %10, align 4
%21 = icmp sge i32 %19, %20
br i1 %21, label %22, label %28
22: ; preds = %18
%23 = load ptr, ptr %8, align 8
%24 = load i32, ptr %13, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, ptr %23, i64 %25
%27 = load i32, ptr %26, align 4
store i32 %27, ptr %7, align 4
br label %62
28: ; preds = %18, %6
%29 = load i32, ptr %10, align 4
%30 = load i32, ptr %11, align 4
%31 = icmp slt i32 %29, %30
br i1 %31, label %36, label %32
32: ; preds = %28
%33 = load i32, ptr %9, align 4
%34 = load i32, ptr %12, align 4
%35 = icmp sgt i32 %33, %34
br i1 %35, label %36, label %38
36: ; preds = %32, %28
%37 = load i32, ptr @INT_MAX, align 4
store i32 %37, ptr %7, align 4
br label %62
38: ; preds = %32
%39 = load i32, ptr %9, align 4
%40 = load i32, ptr %10, align 4
%41 = call i32 @getMid(i32 noundef %39, i32 noundef %40)
store i32 %41, ptr %14, align 4
%42 = load ptr, ptr %8, align 8
%43 = load i32, ptr %9, align 4
%44 = load i32, ptr %14, align 4
%45 = load i32, ptr %11, align 4
%46 = load i32, ptr %12, align 4
%47 = load i32, ptr %13, align 4
%48 = mul nsw i32 2, %47
%49 = add nsw i32 %48, 1
%50 = call i32 @RMQUtil(ptr noundef %42, i32 noundef %43, i32 noundef %44, i32 noundef %45, i32 noundef %46, i32 noundef %49)
%51 = load ptr, ptr %8, align 8
%52 = load i32, ptr %14, align 4
%53 = add nsw i32 %52, 1
%54 = load i32, ptr %10, align 4
%55 = load i32, ptr %11, align 4
%56 = load i32, ptr %12, align 4
%57 = load i32, ptr %13, align 4
%58 = mul nsw i32 2, %57
%59 = add nsw i32 %58, 2
%60 = call i32 @RMQUtil(ptr noundef %51, i32 noundef %53, i32 noundef %54, i32 noundef %55, i32 noundef %56, i32 noundef %59)
%61 = call i32 @minVal(i32 noundef %50, i32 noundef %60)
store i32 %61, ptr %7, align 4
br label %62
62: ; preds = %38, %36, %22
%63 = load i32, ptr %7, align 4
ret i32 %63
}
declare i32 @getMid(i32 noundef, i32 noundef) #1
declare i32 @minVal(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/tmpuyamubg5.c'
source_filename = "/tmp/tmpuyamubg5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@toRoman.roman = internal global [4 x [10 x ptr]] [[10 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2, ptr @.str.3, ptr @.str.4, ptr @.str.5, ptr @.str.6, ptr @.str.7, ptr @.str.8, ptr @.str.9], [10 x ptr] [ptr @.str, ptr @.str.10, ptr @.str.11, ptr @.str.12, ptr @.str.13, ptr @.str.14, ptr @.str.15, ptr @.str.16, ptr @.str.17, ptr @.str.18], [10 x ptr] [ptr @.str, ptr @.str.19, ptr @.str.20, ptr @.str.21, ptr @.str.22, ptr @.str.23, ptr @.str.24, ptr @.str.25, ptr @.str.26, ptr @.str.27], [10 x ptr] [ptr @.str, ptr @.str.28, ptr @.str.29, ptr @.str.30, ptr null, ptr null, ptr null, ptr null, ptr null, ptr null]], align 16
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"I\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"II\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"III\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"IV\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"V\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"VI\00", align 1
@.str.7 = private unnamed_addr constant [4 x i8] c"VII\00", align 1
@.str.8 = private unnamed_addr constant [5 x i8] c"VIII\00", align 1
@.str.9 = private unnamed_addr constant [3 x i8] c"IX\00", align 1
@.str.10 = private unnamed_addr constant [2 x i8] c"X\00", align 1
@.str.11 = private unnamed_addr constant [3 x i8] c"XX\00", align 1
@.str.12 = private unnamed_addr constant [4 x i8] c"XXX\00", align 1
@.str.13 = private unnamed_addr constant [3 x i8] c"XL\00", align 1
@.str.14 = private unnamed_addr constant [2 x i8] c"L\00", align 1
@.str.15 = private unnamed_addr constant [3 x i8] c"LX\00", align 1
@.str.16 = private unnamed_addr constant [4 x i8] c"LXX\00", align 1
@.str.17 = private unnamed_addr constant [5 x i8] c"LXXX\00", align 1
@.str.18 = private unnamed_addr constant [3 x i8] c"XC\00", align 1
@.str.19 = private unnamed_addr constant [2 x i8] c"C\00", align 1
@.str.20 = private unnamed_addr constant [3 x i8] c"CC\00", align 1
@.str.21 = private unnamed_addr constant [4 x i8] c"CCC\00", align 1
@.str.22 = private unnamed_addr constant [3 x i8] c"CD\00", align 1
@.str.23 = private unnamed_addr constant [2 x i8] c"D\00", align 1
@.str.24 = private unnamed_addr constant [3 x i8] c"DC\00", align 1
@.str.25 = private unnamed_addr constant [4 x i8] c"DCC\00", align 1
@.str.26 = private unnamed_addr constant [5 x i8] c"DCCC\00", align 1
@.str.27 = private unnamed_addr constant [3 x i8] c"CM\00", align 1
@.str.28 = private unnamed_addr constant [2 x i8] c"M\00", align 1
@.str.29 = private unnamed_addr constant [3 x i8] c"MM\00", align 1
@.str.30 = private unnamed_addr constant [4 x i8] c"MMM\00", align 1
@.str.31 = private unnamed_addr constant [6 x i8] c"%d = \00", align 1
@.str.32 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.33 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @toRoman(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.31, i32 noundef %6)
store i32 0, ptr %4, align 4
store i32 10000, ptr %3, align 4
br label %8
8: ; preds = %27, %1
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %9, 4
br i1 %10, label %11, label %32
11: ; preds = %8
%12 = load i32, ptr %2, align 4
%13 = load i32, ptr %3, align 4
%14 = srem i32 %12, %13
%15 = load i32, ptr %3, align 4
%16 = sdiv i32 %15, 10
%17 = sdiv i32 %14, %16
store i32 %17, ptr %5, align 4
%18 = load i32, ptr %4, align 4
%19 = sub nsw i32 3, %18
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [4 x [10 x ptr]], ptr @toRoman.roman, i64 0, i64 %20
%22 = load i32, ptr %5, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [10 x ptr], ptr %21, i64 0, i64 %23
%25 = load ptr, ptr %24, align 8
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.32, ptr noundef %25)
br label %27
27: ; preds = %11
%28 = load i32, ptr %4, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %4, align 4
%30 = load i32, ptr %3, align 4
%31 = sdiv i32 %30, 10
store i32 %31, ptr %3, align 4
br label %8, !llvm.loop !6
32: ; preds = %8
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.33)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuyamubg5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@toRoman.roman = internal global [4 x [10 x ptr]] [[10 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2, ptr @.str.3, ptr @.str.4, ptr @.str.5, ptr @.str.6, ptr @.str.7, ptr @.str.8, ptr @.str.9], [10 x ptr] [ptr @.str, ptr @.str.10, ptr @.str.11, ptr @.str.12, ptr @.str.13, ptr @.str.14, ptr @.str.15, ptr @.str.16, ptr @.str.17, ptr @.str.18], [10 x ptr] [ptr @.str, ptr @.str.19, ptr @.str.20, ptr @.str.21, ptr @.str.22, ptr @.str.23, ptr @.str.24, ptr @.str.25, ptr @.str.26, ptr @.str.27], [10 x ptr] [ptr @.str, ptr @.str.28, ptr @.str.29, ptr @.str.30, ptr null, ptr null, ptr null, ptr null, ptr null, ptr null]], align 16
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"I\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"II\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"III\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"IV\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"V\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"VI\00", align 1
@.str.7 = private unnamed_addr constant [4 x i8] c"VII\00", align 1
@.str.8 = private unnamed_addr constant [5 x i8] c"VIII\00", align 1
@.str.9 = private unnamed_addr constant [3 x i8] c"IX\00", align 1
@.str.10 = private unnamed_addr constant [2 x i8] c"X\00", align 1
@.str.11 = private unnamed_addr constant [3 x i8] c"XX\00", align 1
@.str.12 = private unnamed_addr constant [4 x i8] c"XXX\00", align 1
@.str.13 = private unnamed_addr constant [3 x i8] c"XL\00", align 1
@.str.14 = private unnamed_addr constant [2 x i8] c"L\00", align 1
@.str.15 = private unnamed_addr constant [3 x i8] c"LX\00", align 1
@.str.16 = private unnamed_addr constant [4 x i8] c"LXX\00", align 1
@.str.17 = private unnamed_addr constant [5 x i8] c"LXXX\00", align 1
@.str.18 = private unnamed_addr constant [3 x i8] c"XC\00", align 1
@.str.19 = private unnamed_addr constant [2 x i8] c"C\00", align 1
@.str.20 = private unnamed_addr constant [3 x i8] c"CC\00", align 1
@.str.21 = private unnamed_addr constant [4 x i8] c"CCC\00", align 1
@.str.22 = private unnamed_addr constant [3 x i8] c"CD\00", align 1
@.str.23 = private unnamed_addr constant [2 x i8] c"D\00", align 1
@.str.24 = private unnamed_addr constant [3 x i8] c"DC\00", align 1
@.str.25 = private unnamed_addr constant [4 x i8] c"DCC\00", align 1
@.str.26 = private unnamed_addr constant [5 x i8] c"DCCC\00", align 1
@.str.27 = private unnamed_addr constant [3 x i8] c"CM\00", align 1
@.str.28 = private unnamed_addr constant [2 x i8] c"M\00", align 1
@.str.29 = private unnamed_addr constant [3 x i8] c"MM\00", align 1
@.str.30 = private unnamed_addr constant [4 x i8] c"MMM\00", align 1
@.str.31 = private unnamed_addr constant [6 x i8] c"%d = \00", align 1
@.str.32 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.33 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @toRoman(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.31, i32 noundef %6)
store i32 0, ptr %4, align 4
store i32 10000, ptr %3, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 4
br i1 %9, label %.lr.ph, label %33
.lr.ph: ; preds = %1
br label %10
10: ; preds = %.lr.ph, %26
%11 = load i32, ptr %2, align 4
%12 = load i32, ptr %3, align 4
%13 = srem i32 %11, %12
%14 = load i32, ptr %3, align 4
%15 = sdiv i32 %14, 10
%16 = sdiv i32 %13, %15
store i32 %16, ptr %5, align 4
%17 = load i32, ptr %4, align 4
%18 = sub nsw i32 3, %17
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [4 x [10 x ptr]], ptr @toRoman.roman, i64 0, i64 %19
%21 = load i32, ptr %5, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [10 x ptr], ptr %20, i64 0, i64 %22
%24 = load ptr, ptr %23, align 8
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.32, ptr noundef %24)
br label %26
26: ; preds = %10
%27 = load i32, ptr %4, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %4, align 4
%29 = load i32, ptr %3, align 4
%30 = sdiv i32 %29, 10
store i32 %30, ptr %3, align 4
%31 = load i32, ptr %4, align 4
%32 = icmp slt i32 %31, 4
br i1 %32, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %33
33: ; preds = %._crit_edge, %1
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.33)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpq9ry2exu.c'
source_filename = "/tmp/tmpq9ry2exu.c"
target datalayout = "e-m:e-p270: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/tmpq9ry2exu.c"
target datalayout = "e-m:e-p270: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/tmpjcptf82e.c'
source_filename = "/tmp/tmpjcptf82e.c"
target datalayout = "e-m:e-p270: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.areas = private unnamed_addr constant [5 x i32] [i32 10, i32 12, i32 13, i32 14, i32 20], align 16
@__const.main.name = private unnamed_addr constant [4 x i8] c"Zed\00", align 1
@__const.main.full_name = private unnamed_addr constant [12 x i8] c"Zed A. Shaw\00", align 1
@.str = private unnamed_addr constant [25 x i8] c"The size of an int: %ld\0A\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"The size of areas (int[]): %ld\0A\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"The number of ints in areas: %ld\0A\00", align 1
@.str.3 = private unnamed_addr constant [32 x i8] c"The first area %d, the 2nd %d.\0A\00", align 1
@.str.4 = private unnamed_addr constant [25 x i8] c"The size of a char: %ld\0A\00", align 1
@.str.5 = private unnamed_addr constant [32 x i8] c"The size of name (char[]): %ld\0A\00", align 1
@.str.6 = private unnamed_addr constant [26 x i8] c"The number of chars: %ld\0A\00", align 1
@.str.7 = private unnamed_addr constant [37 x i8] c"The size of full_name (char[]): %ld\0A\00", align 1
@.str.8 = private unnamed_addr constant [30 x i8] c"name=\22%s\22 and full_name=\22%s\22\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 [5 x i32], align 16
%7 = alloca [4 x i8], align 1
%8 = alloca [12 x i8], align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main.areas, i64 20, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @__const.main.name, i64 4, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %8, ptr align 1 @__const.main.full_name, i64 12, i1 false)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str, i64 noundef 4)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef 20)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef 5)
%12 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 0
%13 = load i32, ptr %12, align 16
%14 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 1
%15 = load i32, ptr %14, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %13, i32 noundef %15)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i64 noundef 1)
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i64 noundef 4)
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i64 noundef 4)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i64 noundef 12)
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i64 noundef 12)
%22 = getelementptr inbounds [4 x i8], ptr %7, i64 0, i64 0
%23 = getelementptr inbounds [12 x i8], ptr %8, i64 0, i64 0
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %22, ptr noundef %23)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjcptf82e.c"
target datalayout = "e-m:e-p270: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.areas = private unnamed_addr constant [5 x i32] [i32 10, i32 12, i32 13, i32 14, i32 20], align 16
@__const.main.name = private unnamed_addr constant [4 x i8] c"Zed\00", align 1
@__const.main.full_name = private unnamed_addr constant [12 x i8] c"Zed A. Shaw\00", align 1
@.str = private unnamed_addr constant [25 x i8] c"The size of an int: %ld\0A\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"The size of areas (int[]): %ld\0A\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"The number of ints in areas: %ld\0A\00", align 1
@.str.3 = private unnamed_addr constant [32 x i8] c"The first area %d, the 2nd %d.\0A\00", align 1
@.str.4 = private unnamed_addr constant [25 x i8] c"The size of a char: %ld\0A\00", align 1
@.str.5 = private unnamed_addr constant [32 x i8] c"The size of name (char[]): %ld\0A\00", align 1
@.str.6 = private unnamed_addr constant [26 x i8] c"The number of chars: %ld\0A\00", align 1
@.str.7 = private unnamed_addr constant [37 x i8] c"The size of full_name (char[]): %ld\0A\00", align 1
@.str.8 = private unnamed_addr constant [30 x i8] c"name=\22%s\22 and full_name=\22%s\22\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 [5 x i32], align 16
%7 = alloca [4 x i8], align 1
%8 = alloca [12 x i8], align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main.areas, i64 20, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @__const.main.name, i64 4, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %8, ptr align 1 @__const.main.full_name, i64 12, i1 false)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str, i64 noundef 4)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef 20)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef 5)
%12 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 0
%13 = load i32, ptr %12, align 16
%14 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 1
%15 = load i32, ptr %14, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %13, i32 noundef %15)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i64 noundef 1)
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i64 noundef 4)
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i64 noundef 4)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i64 noundef 12)
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i64 noundef 12)
%22 = getelementptr inbounds [4 x i8], ptr %7, i64 0, i64 0
%23 = getelementptr inbounds [12 x i8], ptr %8, i64 0, i64 0
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %22, ptr noundef %23)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpg29p53p5.c'
source_filename = "/tmp/tmpg29p53p5.c"
target datalayout = "e-m:e-p270: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/tmpg29p53p5.c"
target datalayout = "e-m:e-p270: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/tmp_8r677ab.c'
source_filename = "/tmp/tmp_8r677ab.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"Hello World from thread = %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"Number of threads = %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"In thread %d x is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %8, align 4
%9 = call i32 (...) @omp_get_thread_num()
store i32 %9, ptr %7, align 4
%10 = load i32, ptr %7, align 4
%11 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %10)
%12 = load i32, ptr %7, align 4
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %18
14: ; preds = %2
store i32 5, ptr %8, align 4
%15 = call i32 (...) @omp_get_num_threads()
store i32 %15, ptr %6, align 4
%16 = load i32, ptr %6, align 4
%17 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %16)
br label %18
18: ; preds = %14, %2
%19 = call i32 (...) @omp_get_thread_num()
store i32 %19, ptr %7, align 4
%20 = load i32, ptr %7, align 4
%21 = load i32, ptr %8, align 4
%22 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %20, i32 noundef %21)
%23 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @omp_get_thread_num(...) #1
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
declare i32 @omp_get_num_threads(...) #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/tmp_8r677ab.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"Hello World from thread = %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"Number of threads = %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"In thread %d x is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %8, align 4
%9 = call i32 (...) @omp_get_thread_num()
store i32 %9, ptr %7, align 4
%10 = load i32, ptr %7, align 4
%11 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %10)
%12 = load i32, ptr %7, align 4
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %18
14: ; preds = %2
store i32 5, ptr %8, align 4
%15 = call i32 (...) @omp_get_num_threads()
store i32 %15, ptr %6, align 4
%16 = load i32, ptr %6, align 4
%17 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %16)
br label %18
18: ; preds = %14, %2
%19 = call i32 (...) @omp_get_thread_num()
store i32 %19, ptr %7, align 4
%20 = load i32, ptr %7, align 4
%21 = load i32, ptr %8, align 4
%22 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %20, i32 noundef %21)
%23 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @omp_get_thread_num(...) #1
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
declare i32 @omp_get_num_threads(...) #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/tmp3lu50uxi.c'
source_filename = "/tmp/tmp3lu50uxi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f12(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 ne i32 %3, 0
br i1 %4, label %5, label %6
5: ; preds = %1
br label %8
6: ; preds = %1
%7 = call i32 (...) @f10_t()
br label %8
8: ; preds = %6, %5
%9 = phi i32 [ 0, %5 ], [ %7, %6 ]
ret i32 %9
}
declare i32 @f10_t(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3lu50uxi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f12(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 ne i32 %3, 0
br i1 %4, label %5, label %6
5: ; preds = %1
br label %8
6: ; preds = %1
%7 = call i32 (...) @f10_t()
br label %8
8: ; preds = %6, %5
%9 = phi i32 [ 0, %5 ], [ %7, %6 ]
ret i32 %9
}
declare i32 @f10_t(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzgrp6pmz.c'
source_filename = "/tmp/tmpzgrp6pmz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_LN2 = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @period_to_bend(double noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, double noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca double, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca double, align 8
%14 = alloca i32, align 4
%15 = alloca double, align 8
store double %0, ptr %8, align 8
store i32 %1, ptr %9, align 4
store i32 %2, ptr %10, align 4
store i32 %3, ptr %11, align 4
store i32 %4, ptr %12, align 4
store double %5, ptr %13, align 8
%16 = load i32, ptr %9, align 4
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %6
store i32 0, ptr %7, align 4
br label %81
19: ; preds = %6
%20 = load i32, ptr %12, align 4
%21 = icmp ne i32 %20, 0
br i1 %21, label %22, label %42
22: ; preds = %19
%23 = load i32, ptr %9, align 4
%24 = sub nsw i32 240, %23
%25 = shl i32 %24, 4
%26 = sitofp i32 %25 to double
%27 = load double, ptr %8, align 8
%28 = fsub double %26, %27
%29 = fmul double 8.000000e+00, %28
%30 = fmul double 1.000000e+02, %29
%31 = fptosi double %30 to i32
store i32 %31, ptr %14, align 4
%32 = load i32, ptr %11, align 4
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %38
34: ; preds = %22
%35 = load i32, ptr %14, align 4
%36 = sdiv i32 %35, 12800
%37 = mul nsw i32 %36, 12800
br label %40
38: ; preds = %22
%39 = load i32, ptr %14, align 4
br label %40
40: ; preds = %38, %34
%41 = phi i32 [ %37, %34 ], [ %39, %38 ]
store i32 %41, ptr %7, align 4
br label %81
42: ; preds = %19
%43 = load i32, ptr %10, align 4
%44 = icmp ne i32 %43, 0
br i1 %44, label %45, label %54
45: ; preds = %42
%46 = load double, ptr %8, align 8
%47 = fcmp ogt double %46, 9.070000e+02
br i1 %47, label %48, label %49
48: ; preds = %45
store double 9.070000e+02, ptr %8, align 8
br label %49
49: ; preds = %48, %45
%50 = load double, ptr %8, align 8
%51 = fcmp olt double %50, 1.080000e+02
br i1 %51, label %52, label %53
52: ; preds = %49
store double 1.080000e+02, ptr %8, align 8
br label %53
53: ; preds = %52, %49
br label %54
54: ; preds = %53, %42
%55 = load double, ptr %8, align 8
%56 = fcmp olt double %55, 8.000000e+00
br i1 %56, label %57, label %58
57: ; preds = %54
store double 8.000000e+00, ptr %8, align 8
br label %58
58: ; preds = %57, %54
%59 = load i32, ptr %9, align 4
%60 = load double, ptr %13, align 8
%61 = call double @note_to_period(i32 noundef %59, i32 noundef 0, i32 noundef 0, double noundef %60)
store double %61, ptr %15, align 8
%62 = load double, ptr %15, align 8
%63 = load double, ptr %8, align 8
%64 = fdiv double %62, %63
%65 = call double @log(double noundef %64) #3
%66 = fmul double 1.536000e+03, %65
%67 = load double, ptr @M_LN2, align 8
%68 = fdiv double %66, %67
%69 = fmul double 1.000000e+02, %68
%70 = call i32 @round(double noundef %69)
store i32 %70, ptr %14, align 4
%71 = load i32, ptr %11, align 4
%72 = icmp ne i32 %71, 0
br i1 %72, label %73, label %77
73: ; preds = %58
%74 = load i32, ptr %14, align 4
%75 = sdiv i32 %74, 12800
%76 = mul nsw i32 %75, 12800
br label %79
77: ; preds = %58
%78 = load i32, ptr %14, align 4
br label %79
79: ; preds = %77, %73
%80 = phi i32 [ %76, %73 ], [ %78, %77 ]
store i32 %80, ptr %7, align 4
br label %81
81: ; preds = %79, %40, %18
%82 = load i32, ptr %7, align 4
ret i32 %82
}
declare double @note_to_period(i32 noundef, i32 noundef, i32 noundef, double noundef) #1
declare i32 @round(double noundef) #1
; Function Attrs: nounwind
declare double @log(double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzgrp6pmz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_LN2 = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @period_to_bend(double noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, double noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca double, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca double, align 8
%14 = alloca i32, align 4
%15 = alloca double, align 8
store double %0, ptr %8, align 8
store i32 %1, ptr %9, align 4
store i32 %2, ptr %10, align 4
store i32 %3, ptr %11, align 4
store i32 %4, ptr %12, align 4
store double %5, ptr %13, align 8
%16 = load i32, ptr %9, align 4
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %6
store i32 0, ptr %7, align 4
br label %81
19: ; preds = %6
%20 = load i32, ptr %12, align 4
%21 = icmp ne i32 %20, 0
br i1 %21, label %22, label %42
22: ; preds = %19
%23 = load i32, ptr %9, align 4
%24 = sub nsw i32 240, %23
%25 = shl i32 %24, 4
%26 = sitofp i32 %25 to double
%27 = load double, ptr %8, align 8
%28 = fsub double %26, %27
%29 = fmul double 8.000000e+00, %28
%30 = fmul double 1.000000e+02, %29
%31 = fptosi double %30 to i32
store i32 %31, ptr %14, align 4
%32 = load i32, ptr %11, align 4
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %38
34: ; preds = %22
%35 = load i32, ptr %14, align 4
%36 = sdiv i32 %35, 12800
%37 = mul nsw i32 %36, 12800
br label %40
38: ; preds = %22
%39 = load i32, ptr %14, align 4
br label %40
40: ; preds = %38, %34
%41 = phi i32 [ %37, %34 ], [ %39, %38 ]
store i32 %41, ptr %7, align 4
br label %81
42: ; preds = %19
%43 = load i32, ptr %10, align 4
%44 = icmp ne i32 %43, 0
br i1 %44, label %45, label %54
45: ; preds = %42
%46 = load double, ptr %8, align 8
%47 = fcmp ogt double %46, 9.070000e+02
br i1 %47, label %48, label %49
48: ; preds = %45
store double 9.070000e+02, ptr %8, align 8
br label %49
49: ; preds = %48, %45
%50 = load double, ptr %8, align 8
%51 = fcmp olt double %50, 1.080000e+02
br i1 %51, label %52, label %53
52: ; preds = %49
store double 1.080000e+02, ptr %8, align 8
br label %53
53: ; preds = %52, %49
br label %54
54: ; preds = %53, %42
%55 = load double, ptr %8, align 8
%56 = fcmp olt double %55, 8.000000e+00
br i1 %56, label %57, label %58
57: ; preds = %54
store double 8.000000e+00, ptr %8, align 8
br label %58
58: ; preds = %57, %54
%59 = load i32, ptr %9, align 4
%60 = load double, ptr %13, align 8
%61 = call double @note_to_period(i32 noundef %59, i32 noundef 0, i32 noundef 0, double noundef %60)
store double %61, ptr %15, align 8
%62 = load double, ptr %15, align 8
%63 = load double, ptr %8, align 8
%64 = fdiv double %62, %63
%65 = call double @log(double noundef %64) #3
%66 = fmul double 1.536000e+03, %65
%67 = load double, ptr @M_LN2, align 8
%68 = fdiv double %66, %67
%69 = fmul double 1.000000e+02, %68
%70 = call i32 @round(double noundef %69)
store i32 %70, ptr %14, align 4
%71 = load i32, ptr %11, align 4
%72 = icmp ne i32 %71, 0
br i1 %72, label %73, label %77
73: ; preds = %58
%74 = load i32, ptr %14, align 4
%75 = sdiv i32 %74, 12800
%76 = mul nsw i32 %75, 12800
br label %79
77: ; preds = %58
%78 = load i32, ptr %14, align 4
br label %79
79: ; preds = %77, %73
%80 = phi i32 [ %76, %73 ], [ %78, %77 ]
store i32 %80, ptr %7, align 4
br label %81
81: ; preds = %79, %40, %18
%82 = load i32, ptr %7, align 4
ret i32 %82
}
declare double @note_to_period(i32 noundef, i32 noundef, i32 noundef, double noundef) #1
declare i32 @round(double noundef) #1
; Function Attrs: nounwind
declare double @log(double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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"}
|
; ModuleID = '/tmp/tmpisu0wwj4.c'
source_filename = "/tmp/tmpisu0wwj4.c"
target datalayout = "e-m:e-p270: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 [20 x i8] c"Error: Line %d: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"Error: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sensors_default_parse_error(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %12
7: ; preds = %2
%8 = load i32, ptr @stderr, align 4
%9 = load i32, ptr %4, align 4
%10 = load ptr, ptr %3, align 8
%11 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %8, ptr noundef @.str, i32 noundef %9, ptr noundef %10)
br label %16
12: ; preds = %2
%13 = load i32, ptr @stderr, align 4
%14 = load ptr, ptr %3, align 8
%15 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %13, ptr noundef @.str.1, ptr noundef %14)
br label %16
16: ; preds = %12, %7
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpisu0wwj4.c"
target datalayout = "e-m:e-p270: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 [20 x i8] c"Error: Line %d: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"Error: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sensors_default_parse_error(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %12
7: ; preds = %2
%8 = load i32, ptr @stderr, align 4
%9 = load i32, ptr %4, align 4
%10 = load ptr, ptr %3, align 8
%11 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %8, ptr noundef @.str, i32 noundef %9, ptr noundef %10)
br label %16
12: ; preds = %2
%13 = load i32, ptr @stderr, align 4
%14 = load ptr, ptr %3, align 8
%15 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %13, ptr noundef @.str.1, ptr noundef %14)
br label %16
16: ; preds = %12, %7
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp75s3cz42.c'
source_filename = "/tmp/tmp75s3cz42.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tam_sayiya_yuvarla(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
store double %0, ptr %2, align 8
%4 = load double, ptr %2, align 8
%5 = fadd double %4, 5.000000e-01
%6 = call double @llvm.floor.f64(double %5)
store double %6, ptr %3, align 8
%7 = load double, ptr %3, align 8
ret double %7
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.floor.f64(double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp75s3cz42.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tam_sayiya_yuvarla(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
store double %0, ptr %2, align 8
%4 = load double, ptr %2, align 8
%5 = fadd double %4, 5.000000e-01
%6 = call double @llvm.floor.f64(double %5)
store double %6, ptr %3, align 8
%7 = load double, ptr %3, align 8
ret double %7
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.floor.f64(double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdo8kjp4y.c'
source_filename = "/tmp/tmpdo8kjp4y.c"
target datalayout = "e-m:e-p270: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/tmpdo8kjp4y.c"
target datalayout = "e-m:e-p270: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/tmp2289yt6h.c'
source_filename = "/tmp/tmp2289yt6h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@read_mem_segment.chunk_size = internal constant i64 1024, align 8
@STDOUT_FILENO = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [23 x i8] c"read_mem_segment write\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @read_mem_segment(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i64 0, ptr %7, align 8
%9 = load ptr, ptr %3, align 8
store ptr %9, ptr %8, align 8
br label %10
10: ; preds = %33, %2
%11 = load i64, ptr %7, align 8
%12 = load i64, ptr %4, align 8
%13 = icmp slt i64 %11, %12
br i1 %13, label %14, label %40
14: ; preds = %10
%15 = load i64, ptr %4, align 8
%16 = load i64, ptr %7, align 8
%17 = sub nsw i64 %15, %16
%18 = icmp sge i64 %17, 1024
br i1 %18, label %19, label %20
19: ; preds = %14
store i64 1024, ptr %5, align 8
br label %24
20: ; preds = %14
%21 = load i64, ptr %4, align 8
%22 = load i64, ptr %7, align 8
%23 = sub nsw i64 %21, %22
store i64 %23, ptr %5, align 8
br label %24
24: ; preds = %20, %19
%25 = load i32, ptr @STDOUT_FILENO, align 4
%26 = load ptr, ptr %8, align 8
%27 = load i64, ptr %5, align 8
%28 = call i64 @write(i32 noundef %25, ptr noundef %26, i64 noundef %27)
store i64 %28, ptr %6, align 8
%29 = load i64, ptr %6, align 8
%30 = icmp slt i64 %29, 0
br i1 %30, label %31, label %33
31: ; preds = %24
%32 = call i32 @perror(ptr noundef @.str)
br label %33
33: ; preds = %31, %24
%34 = load i64, ptr %6, align 8
%35 = load i64, ptr %7, align 8
%36 = add nsw i64 %35, %34
store i64 %36, ptr %7, align 8
%37 = load i64, ptr %6, align 8
%38 = load ptr, ptr %8, align 8
%39 = getelementptr inbounds i8, ptr %38, i64 %37
store ptr %39, ptr %8, align 8
br label %10, !llvm.loop !6
40: ; preds = %10
ret void
}
declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2289yt6h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@read_mem_segment.chunk_size = internal constant i64 1024, align 8
@STDOUT_FILENO = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [23 x i8] c"read_mem_segment write\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @read_mem_segment(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i64 0, ptr %7, align 8
%9 = load ptr, ptr %3, align 8
store ptr %9, ptr %8, align 8
%10 = load i64, ptr %7, align 8
%11 = load i64, ptr %4, align 8
%12 = icmp slt i64 %10, %11
br i1 %12, label %.lr.ph, label %42
.lr.ph: ; preds = %2
br label %13
13: ; preds = %.lr.ph, %32
%14 = load i64, ptr %4, align 8
%15 = load i64, ptr %7, align 8
%16 = sub nsw i64 %14, %15
%17 = icmp sge i64 %16, 1024
br i1 %17, label %18, label %19
18: ; preds = %13
store i64 1024, ptr %5, align 8
br label %23
19: ; preds = %13
%20 = load i64, ptr %4, align 8
%21 = load i64, ptr %7, align 8
%22 = sub nsw i64 %20, %21
store i64 %22, ptr %5, align 8
br label %23
23: ; preds = %19, %18
%24 = load i32, ptr @STDOUT_FILENO, align 4
%25 = load ptr, ptr %8, align 8
%26 = load i64, ptr %5, align 8
%27 = call i64 @write(i32 noundef %24, ptr noundef %25, i64 noundef %26)
store i64 %27, ptr %6, align 8
%28 = load i64, ptr %6, align 8
%29 = icmp slt i64 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %23
%31 = call i32 @perror(ptr noundef @.str)
br label %32
32: ; preds = %30, %23
%33 = load i64, ptr %6, align 8
%34 = load i64, ptr %7, align 8
%35 = add nsw i64 %34, %33
store i64 %35, ptr %7, align 8
%36 = load i64, ptr %6, align 8
%37 = load ptr, ptr %8, align 8
%38 = getelementptr inbounds i8, ptr %37, i64 %36
store ptr %38, ptr %8, align 8
%39 = load i64, ptr %7, align 8
%40 = load i64, ptr %4, align 8
%41 = icmp slt i64 %39, %40
br i1 %41, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %42
42: ; preds = %._crit_edge, %2
ret void
}
declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpb8e16q52.c'
source_filename = "/tmp/tmpb8e16q52.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"/proc/pmu/info\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"AC Power\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.4 = private unnamed_addr constant [14 x i8] c"Battery count\00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c"/proc/pmu/battery_%d\00", align 1
@.str.6 = private unnamed_addr constant [6 x i8] c"flags\00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"%x\00", align 1
@.str.8 = private unnamed_addr constant [7 x i8] c"charge\00", align 1
@.str.9 = private unnamed_addr constant [11 x i8] c"max_charge\00", align 1
@.str.10 = private unnamed_addr constant [8 x i8] c"voltage\00", align 1
@.str.11 = private unnamed_addr constant [8 x i8] c"current\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @print_battery_proc_pmu() #0 {
%1 = alloca i32, align 4
%2 = alloca [80 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca [20 x i8], align 16
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
store i32 0, 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
%17 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %17, ptr %10, align 8
%18 = load ptr, ptr %10, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %20, label %21
20: ; preds = %0
store i32 0, ptr %1, align 4
br label %155
21: ; preds = %0
br label %22
22: ; preds = %48, %21
%23 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%24 = load ptr, ptr %10, align 8
%25 = call ptr @fgets(ptr noundef %23, i32 noundef 80, ptr noundef %24)
%26 = icmp ne ptr %25, null
br i1 %26, label %27, label %49
27: ; preds = %22
%28 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%29 = call i32 @strlen(ptr noundef @.str.2)
%30 = call i64 @strncmp(ptr noundef @.str.2, ptr noundef %28, i32 noundef %29)
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %37
32: ; preds = %27
%33 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%34 = call i64 @strchr(ptr noundef %33, i8 noundef signext 58)
%35 = add nsw i64 %34, 2
%36 = call i32 (i64, ptr, ...) @sscanf(i64 noundef %35, ptr noundef @.str.3, ptr noundef %4)
br label %48
37: ; preds = %27
%38 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%39 = call i32 @strlen(ptr noundef @.str.4)
%40 = call i64 @strncmp(ptr noundef @.str.4, ptr noundef %38, i32 noundef %39)
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %47
42: ; preds = %37
%43 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%44 = call i64 @strchr(ptr noundef %43, i8 noundef signext 58)
%45 = add nsw i64 %44, 2
%46 = call i32 (i64, ptr, ...) @sscanf(i64 noundef %45, ptr noundef @.str.3, ptr noundef %5)
br label %47
47: ; preds = %42, %37
br label %48
48: ; preds = %47, %32
br label %22, !llvm.loop !6
49: ; preds = %22
%50 = load ptr, ptr %10, align 8
%51 = call i32 @fclose(ptr noundef %50)
store i32 0, ptr %3, align 4
br label %52
52: ; preds = %146, %49
%53 = load i32, ptr %3, align 4
%54 = load i32, ptr %5, align 4
%55 = icmp slt i32 %53, %54
br i1 %55, label %56, label %149
56: ; preds = %52
store i32 0, ptr %12, align 4
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
store i32 0, ptr %15, align 4
store i32 0, ptr %16, align 4
%57 = getelementptr inbounds [20 x i8], ptr %11, i64 0, i64 0
%58 = load i32, ptr %3, align 4
%59 = call i32 @snprintf(ptr noundef %57, i32 noundef 20, ptr noundef @.str.5, i32 noundef %58)
%60 = getelementptr inbounds [20 x i8], ptr %11, i64 0, i64 0
%61 = call ptr @fopen(ptr noundef %60, ptr noundef @.str.1)
store ptr %61, ptr %10, align 8
%62 = load ptr, ptr %10, align 8
%63 = icmp eq ptr %62, null
br i1 %63, label %64, label %65
64: ; preds = %56
br label %146
65: ; preds = %56
br label %66
66: ; preds = %125, %65
%67 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%68 = load ptr, ptr %10, align 8
%69 = call ptr @fgets(ptr noundef %67, i32 noundef 80, ptr noundef %68)
%70 = icmp ne ptr %69, null
br i1 %70, label %71, label %126
71: ; preds = %66
%72 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%73 = call i32 @strlen(ptr noundef @.str.6)
%74 = call i64 @strncmp(ptr noundef @.str.6, ptr noundef %72, i32 noundef %73)
%75 = icmp eq i64 %74, 0
br i1 %75, label %76, label %81
76: ; preds = %71
%77 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%78 = call i64 @strchr(ptr noundef %77, i8 noundef signext 58)
%79 = add nsw i64 %78, 2
%80 = call i32 (i64, ptr, ...) @sscanf(i64 noundef %79, ptr noundef @.str.7, ptr noundef %12)
br label %125
81: ; preds = %71
%82 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%83 = call i32 @strlen(ptr noundef @.str.8)
%84 = call i64 @strncmp(ptr noundef @.str.8, ptr noundef %82, i32 noundef %83)
%85 = icmp eq i64 %84, 0
br i1 %85, label %86, label %91
86: ; preds = %81
%87 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%88 = call i64 @strchr(ptr noundef %87, i8 noundef signext 58)
%89 = add nsw i64 %88, 2
%90 = call i32 (i64, ptr, ...) @sscanf(i64 noundef %89, ptr noundef @.str.3, ptr noundef %13)
br label %124
91: ; preds = %81
%92 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%93 = call i32 @strlen(ptr noundef @.str.9)
%94 = call i64 @strncmp(ptr noundef @.str.9, ptr noundef %92, i32 noundef %93)
%95 = icmp eq i64 %94, 0
br i1 %95, label %96, label %101
96: ; preds = %91
%97 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%98 = call i64 @strchr(ptr noundef %97, i8 noundef signext 58)
%99 = add nsw i64 %98, 2
%100 = call i32 (i64, ptr, ...) @sscanf(i64 noundef %99, ptr noundef @.str.3, ptr noundef %14)
br label %123
101: ; preds = %91
%102 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%103 = call i32 @strlen(ptr noundef @.str.10)
%104 = call i64 @strncmp(ptr noundef @.str.10, ptr noundef %102, i32 noundef %103)
%105 = icmp eq i64 %104, 0
br i1 %105, label %106, label %111
106: ; preds = %101
%107 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%108 = call i64 @strchr(ptr noundef %107, i8 noundef signext 58)
%109 = add nsw i64 %108, 2
%110 = call i32 (i64, ptr, ...) @sscanf(i64 noundef %109, ptr noundef @.str.3, ptr noundef %15)
br label %122
111: ; preds = %101
%112 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%113 = call i32 @strlen(ptr noundef @.str.11)
%114 = call i64 @strncmp(ptr noundef @.str.11, ptr noundef %112, i32 noundef %113)
%115 = icmp eq i64 %114, 0
br i1 %115, label %116, label %121
116: ; preds = %111
%117 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%118 = call i64 @strchr(ptr noundef %117, i8 noundef signext 58)
%119 = add nsw i64 %118, 2
%120 = call i32 (i64, ptr, ...) @sscanf(i64 noundef %119, ptr noundef @.str.3, ptr noundef %16)
br label %121
121: ; preds = %116, %111
br label %122
122: ; preds = %121, %106
br label %123
123: ; preds = %122, %96
br label %124
124: ; preds = %123, %86
br label %125
125: ; preds = %124, %76
br label %66, !llvm.loop !8
126: ; preds = %66
%127 = load ptr, ptr %10, align 8
%128 = call i32 @fclose(ptr noundef %127)
%129 = load i32, ptr %12, align 4
%130 = and i32 %129, 1
%131 = icmp ne i32 %130, 0
br i1 %131, label %133, label %132
132: ; preds = %126
br label %146
133: ; preds = %126
%134 = load i32, ptr %13, align 4
%135 = load i32, ptr %6, align 4
%136 = add i32 %135, %134
store i32 %136, ptr %6, align 4
%137 = load i32, ptr %14, align 4
%138 = load i32, ptr %7, align 4
%139 = add i32 %138, %137
store i32 %139, ptr %7, align 4
%140 = load i32, ptr %15, align 4
%141 = load i32, ptr %8, align 4
%142 = add i32 %141, %140
store i32 %142, ptr %8, align 4
%143 = load i32, ptr %16, align 4
%144 = load i32, ptr %9, align 4
%145 = add i32 %144, %143
store i32 %145, ptr %9, align 4
br label %146
146: ; preds = %133, %132, %64
%147 = load i32, ptr %3, align 4
%148 = add nsw i32 %147, 1
store i32 %148, ptr %3, align 4
br label %52, !llvm.loop !9
149: ; preds = %52
%150 = load i32, ptr %8, align 4
%151 = load i32, ptr %6, align 4
%152 = load i32, ptr %7, align 4
%153 = load i32, ptr %9, align 4
%154 = call i32 @show_pmu_power_line(i32 noundef %150, i32 noundef %151, i32 noundef %152, i32 noundef %153)
store i32 1, ptr %1, align 4
br label %155
155: ; preds = %149, %20
%156 = load i32, ptr %1, align 4
ret i32 %156
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @sscanf(i64 noundef, ptr noundef, ...) #1
declare i64 @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @show_pmu_power_line(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb8e16q52.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"/proc/pmu/info\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"AC Power\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.4 = private unnamed_addr constant [14 x i8] c"Battery count\00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c"/proc/pmu/battery_%d\00", align 1
@.str.6 = private unnamed_addr constant [6 x i8] c"flags\00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"%x\00", align 1
@.str.8 = private unnamed_addr constant [7 x i8] c"charge\00", align 1
@.str.9 = private unnamed_addr constant [11 x i8] c"max_charge\00", align 1
@.str.10 = private unnamed_addr constant [8 x i8] c"voltage\00", align 1
@.str.11 = private unnamed_addr constant [8 x i8] c"current\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @print_battery_proc_pmu() #0 {
%1 = alloca i32, align 4
%2 = alloca [80 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca [20 x i8], align 16
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
store i32 0, 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
%17 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %17, ptr %10, align 8
%18 = load ptr, ptr %10, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %20, label %21
20: ; preds = %0
store i32 0, ptr %1, align 4
br label %161
21: ; preds = %0
%22 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%23 = load ptr, ptr %10, align 8
%24 = call ptr @fgets(ptr noundef %22, i32 noundef 80, ptr noundef %23)
%25 = icmp ne ptr %24, null
br i1 %25, label %.lr.ph, label %51
.lr.ph: ; preds = %21
br label %26
26: ; preds = %.lr.ph, %47
%27 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%28 = call i32 @strlen(ptr noundef @.str.2)
%29 = call i64 @strncmp(ptr noundef @.str.2, ptr noundef %27, i32 noundef %28)
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %36
31: ; preds = %26
%32 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%33 = call i64 @strchr(ptr noundef %32, i8 noundef signext 58)
%34 = add nsw i64 %33, 2
%35 = call i32 (i64, ptr, ...) @sscanf(i64 noundef %34, ptr noundef @.str.3, ptr noundef %4)
br label %47
36: ; preds = %26
%37 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%38 = call i32 @strlen(ptr noundef @.str.4)
%39 = call i64 @strncmp(ptr noundef @.str.4, ptr noundef %37, i32 noundef %38)
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %46
41: ; preds = %36
%42 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%43 = call i64 @strchr(ptr noundef %42, i8 noundef signext 58)
%44 = add nsw i64 %43, 2
%45 = call i32 (i64, ptr, ...) @sscanf(i64 noundef %44, ptr noundef @.str.3, ptr noundef %5)
br label %46
46: ; preds = %41, %36
br label %47
47: ; preds = %46, %31
%48 = load ptr, ptr %10, align 8
%49 = call ptr @fgets(ptr noundef %22, i32 noundef 80, ptr noundef %48)
%50 = icmp ne ptr %49, null
br i1 %50, label %26, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %47
br label %51
51: ; preds = %._crit_edge, %21
%52 = load ptr, ptr %10, align 8
%53 = call i32 @fclose(ptr noundef %52)
store i32 0, ptr %3, align 4
%54 = load i32, ptr %3, align 4
%55 = load i32, ptr %5, align 4
%56 = icmp slt i32 %54, %55
br i1 %56, label %.lr.ph5, label %155
.lr.ph5: ; preds = %51
br label %57
57: ; preds = %.lr.ph5, %149
store i32 0, ptr %12, align 4
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
store i32 0, ptr %15, align 4
store i32 0, ptr %16, align 4
%58 = getelementptr inbounds [20 x i8], ptr %11, i64 0, i64 0
%59 = load i32, ptr %3, align 4
%60 = call i32 @snprintf(ptr noundef %58, i32 noundef 20, ptr noundef @.str.5, i32 noundef %59)
%61 = getelementptr inbounds [20 x i8], ptr %11, i64 0, i64 0
%62 = call ptr @fopen(ptr noundef %61, ptr noundef @.str.1)
store ptr %62, ptr %10, align 8
%63 = load ptr, ptr %10, align 8
%64 = icmp eq ptr %63, null
br i1 %64, label %65, label %66
65: ; preds = %57
br label %149
66: ; preds = %57
%67 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%68 = load ptr, ptr %10, align 8
%69 = call ptr @fgets(ptr noundef %67, i32 noundef 80, ptr noundef %68)
%70 = icmp ne ptr %69, null
br i1 %70, label %.lr.ph2, label %129
.lr.ph2: ; preds = %66
br label %71
71: ; preds = %.lr.ph2, %125
%72 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%73 = call i32 @strlen(ptr noundef @.str.6)
%74 = call i64 @strncmp(ptr noundef @.str.6, ptr noundef %72, i32 noundef %73)
%75 = icmp eq i64 %74, 0
br i1 %75, label %76, label %81
76: ; preds = %71
%77 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%78 = call i64 @strchr(ptr noundef %77, i8 noundef signext 58)
%79 = add nsw i64 %78, 2
%80 = call i32 (i64, ptr, ...) @sscanf(i64 noundef %79, ptr noundef @.str.7, ptr noundef %12)
br label %125
81: ; preds = %71
%82 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%83 = call i32 @strlen(ptr noundef @.str.8)
%84 = call i64 @strncmp(ptr noundef @.str.8, ptr noundef %82, i32 noundef %83)
%85 = icmp eq i64 %84, 0
br i1 %85, label %86, label %91
86: ; preds = %81
%87 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%88 = call i64 @strchr(ptr noundef %87, i8 noundef signext 58)
%89 = add nsw i64 %88, 2
%90 = call i32 (i64, ptr, ...) @sscanf(i64 noundef %89, ptr noundef @.str.3, ptr noundef %13)
br label %124
91: ; preds = %81
%92 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%93 = call i32 @strlen(ptr noundef @.str.9)
%94 = call i64 @strncmp(ptr noundef @.str.9, ptr noundef %92, i32 noundef %93)
%95 = icmp eq i64 %94, 0
br i1 %95, label %96, label %101
96: ; preds = %91
%97 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%98 = call i64 @strchr(ptr noundef %97, i8 noundef signext 58)
%99 = add nsw i64 %98, 2
%100 = call i32 (i64, ptr, ...) @sscanf(i64 noundef %99, ptr noundef @.str.3, ptr noundef %14)
br label %123
101: ; preds = %91
%102 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%103 = call i32 @strlen(ptr noundef @.str.10)
%104 = call i64 @strncmp(ptr noundef @.str.10, ptr noundef %102, i32 noundef %103)
%105 = icmp eq i64 %104, 0
br i1 %105, label %106, label %111
106: ; preds = %101
%107 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%108 = call i64 @strchr(ptr noundef %107, i8 noundef signext 58)
%109 = add nsw i64 %108, 2
%110 = call i32 (i64, ptr, ...) @sscanf(i64 noundef %109, ptr noundef @.str.3, ptr noundef %15)
br label %122
111: ; preds = %101
%112 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%113 = call i32 @strlen(ptr noundef @.str.11)
%114 = call i64 @strncmp(ptr noundef @.str.11, ptr noundef %112, i32 noundef %113)
%115 = icmp eq i64 %114, 0
br i1 %115, label %116, label %121
116: ; preds = %111
%117 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%118 = call i64 @strchr(ptr noundef %117, i8 noundef signext 58)
%119 = add nsw i64 %118, 2
%120 = call i32 (i64, ptr, ...) @sscanf(i64 noundef %119, ptr noundef @.str.3, ptr noundef %16)
br label %121
121: ; preds = %116, %111
br label %122
122: ; preds = %121, %106
br label %123
123: ; preds = %122, %96
br label %124
124: ; preds = %123, %86
br label %125
125: ; preds = %124, %76
%126 = load ptr, ptr %10, align 8
%127 = call ptr @fgets(ptr noundef %67, i32 noundef 80, ptr noundef %126)
%128 = icmp ne ptr %127, null
br i1 %128, label %71, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %125
br label %129
129: ; preds = %._crit_edge3, %66
%130 = load ptr, ptr %10, align 8
%131 = call i32 @fclose(ptr noundef %130)
%132 = load i32, ptr %12, align 4
%133 = and i32 %132, 1
%134 = icmp ne i32 %133, 0
br i1 %134, label %136, label %135
135: ; preds = %129
br label %149
136: ; preds = %129
%137 = load i32, ptr %13, align 4
%138 = load i32, ptr %6, align 4
%139 = add i32 %138, %137
store i32 %139, ptr %6, align 4
%140 = load i32, ptr %14, align 4
%141 = load i32, ptr %7, align 4
%142 = add i32 %141, %140
store i32 %142, ptr %7, align 4
%143 = load i32, ptr %15, align 4
%144 = load i32, ptr %8, align 4
%145 = add i32 %144, %143
store i32 %145, ptr %8, align 4
%146 = load i32, ptr %16, align 4
%147 = load i32, ptr %9, align 4
%148 = add i32 %147, %146
store i32 %148, ptr %9, align 4
br label %149
149: ; preds = %136, %135, %65
%150 = load i32, ptr %3, align 4
%151 = add nsw i32 %150, 1
store i32 %151, ptr %3, align 4
%152 = load i32, ptr %3, align 4
%153 = load i32, ptr %5, align 4
%154 = icmp slt i32 %152, %153
br i1 %154, label %57, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %149
br label %155
155: ; preds = %._crit_edge6, %51
%156 = load i32, ptr %8, align 4
%157 = load i32, ptr %6, align 4
%158 = load i32, ptr %7, align 4
%159 = load i32, ptr %9, align 4
%160 = call i32 @show_pmu_power_line(i32 noundef %156, i32 noundef %157, i32 noundef %158, i32 noundef %159)
store i32 1, ptr %1, align 4
br label %161
161: ; preds = %155, %20
%162 = load i32, ptr %1, align 4
ret i32 %162
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @sscanf(i64 noundef, ptr noundef, ...) #1
declare i64 @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @show_pmu_power_line(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpn9cwyvw6.c'
source_filename = "/tmp/tmpn9cwyvw6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str, i32 noundef 4)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpn9cwyvw6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str, i32 noundef 4)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgamv9ujr.c'
source_filename = "/tmp/tmpgamv9ujr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nil_icub(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %8, align 8
%10 = load ptr, ptr %9, align 8
%11 = load ptr, ptr %10, align 8
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = mul i64 4, %13
%15 = load i32, ptr %6, align 4
%16 = sext i32 %15 to i64
%17 = mul i64 %14, %16
%18 = load i32, ptr %7, align 4
%19 = sext i32 %18 to i64
%20 = mul i64 %17, %19
%21 = trunc i64 %20 to i32
%22 = call i32 @memset(ptr noundef %11, i32 noundef 0, i32 noundef %21)
ret void
}
declare i32 @memset(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/tmpgamv9ujr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nil_icub(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %8, align 8
%10 = load ptr, ptr %9, align 8
%11 = load ptr, ptr %10, align 8
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = mul i64 4, %13
%15 = load i32, ptr %6, align 4
%16 = sext i32 %15 to i64
%17 = mul i64 %14, %16
%18 = load i32, ptr %7, align 4
%19 = sext i32 %18 to i64
%20 = mul i64 %17, %19
%21 = trunc i64 %20 to i32
%22 = call i32 @memset(ptr noundef %11, i32 noundef 0, i32 noundef %21)
ret void
}
declare i32 @memset(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"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.