Skip to content

Commit

Permalink
use AbstractVector instead of Vector
Browse files Browse the repository at this point in the history
  • Loading branch information
kpotomkin committed Aug 14, 2019
1 parent 57dccd5 commit cbc556a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Properties/BadStatesProperty.jl
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Let ``Y`` be the bad states represented by 𝑃.
return isdisjoint(X, 𝑃.bad, witness)
end

@inline function project(𝑃::BadStatesProperty, vars::Vector{Int})
@inline function project(𝑃::BadStatesProperty, vars::AbstractVector{Int})
proj = project(𝑃.bad, vars)
return BadStatesProperty(proj)
end
2 changes: 1 addition & 1 deletion src/Properties/Conjunction.jl
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@ function check(𝑃::Conjunction, X::LazySet{N};
return witness ? (true, N[]) : true
end

function project(𝑃::Conjunction, vars::Vector{Int})
@inline function project(𝑃::Conjunction, vars::AbstractVector{Int})
return Conjunction([project(conjunct, vars) for conjunct in 𝑃.conjuncts])
end
2 changes: 1 addition & 1 deletion src/Properties/Disjunction.jl
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,6 @@ function _reorder!(𝑃::Disjunction, i::Int)
return nothing
end

function project(𝑃::Disjunction, vars::Vector{Int})
@inline function project(𝑃::Disjunction, vars::AbstractVector{Int})
return Disjunction([project(disjunct, vars) for disjunct in 𝑃.disjuncts])
end
2 changes: 1 addition & 1 deletion src/Properties/SafeStatesProperty.jl
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Let ``Y`` be the safe states represented by 𝑃.
return (X, 𝑃.safe, witness)
end

@inline function project(𝑃::SafeStatesProperty, vars::Vector{Int})
@inline function project(𝑃::SafeStatesProperty, vars::AbstractVector{Int})
proj = project(𝑃.safe, vars)
return SafeStatesProperty(proj)
end

0 comments on commit cbc556a

Please sign in to comment.