@@ -67,18 +67,18 @@ function check_constraints(
6767 ex:: AbstractExpression ,
6868 options:: AbstractOptions ,
6969 maxsize:: Int ,
70- cursize :: Union{Int,Nothing} = nothing ,
70+ cached_size :: Union{Int,Nothing} = nothing ,
7171):: Bool
7272 tree = get_tree (ex)
73- return check_constraints (tree, options, maxsize, cursize )
73+ return check_constraints (tree, options, maxsize, cached_size )
7474end
7575function check_constraints (
7676 tree:: AbstractExpressionNode ,
7777 options:: AbstractOptions ,
7878 maxsize:: Int ,
79- cursize :: Union{Int,Nothing} = nothing ,
79+ cached_size :: Union{Int,Nothing} = nothing ,
8080):: Bool
81- @something (cursize , compute_complexity (tree, options)) > maxsize && return false
81+ @something (cached_size , compute_complexity (tree, options)) > maxsize && return false
8282 count_depth (tree) > options. maxdepth && return false
8383 any_invalid = any (enumerate (options. op_constraints)) do (degree, degree_constraints)
8484 any (enumerate (degree_constraints)) do (op_idx, cons)
0 commit comments