Skip to content

Commit

Permalink
Merge pull request #3613 from JuliaReach/schillic/simplify_issubset
Browse files Browse the repository at this point in the history
Merge metaprogramming loops
  • Loading branch information
schillic authored Sep 7, 2024
2 parents a6f15cd + 5d67fc4 commit 9551ed7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/ConcreteOperations/issubset.jl
Original file line number Diff line number Diff line change
Expand Up @@ -790,15 +790,10 @@ function _issubset_in_emptyset(X::LazySet, ∅::EmptySet, witness::Bool=false)
end

# disambiguations
for ST in [:AbstractPolytope, :UnionSet, :UnionSetArray]
for ST in [:AbstractPolytope, :UnionSet, :UnionSetArray, :AbstractSingleton, :LineSegment]
@eval (X::($ST), ∅::EmptySet, witness::Bool=false) = _issubset_in_emptyset(X, ∅, witness)
end

# disambiguations for sets that are never empty
for ST in [:AbstractSingleton, :LineSegment]
@eval (X::($ST), ::EmptySet, witness::Bool=false) = witness ? (false, an_element(X)) : false
end

"""
⊆(U::UnionSet, X::LazySet, [witness]::Bool=false)
Expand Down

0 comments on commit 9551ed7

Please sign in to comment.