Skip to content

Commit

Permalink
Merge pull request #500 from JuliaReach/schillic/482
Browse files Browse the repository at this point in the history
#482 - Support partial property mappings
  • Loading branch information
schillic authored Feb 26, 2019
2 parents 309f6d2 + 5ee1b38 commit cfbbbfd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,13 @@ function solve!(system::InitialValueProblem{<:HybridSystem,
op=opC,
invariant=source_invariant)
inout_map = reach_tube.options[:inout_map] # TODO temporary hack
if property != nothing
# get the property for the current location
property_loc = property isa Dict ? property[loc] : property
# get the property for the current location
property_loc = property isa Dict ?
get(property, loc_id, nothing) :
property
if property_loc != nothing
for (i, reach_set) in enumerate(reach_tube.Xk)
if !check_property(reach_set.X, property_loc)
if !check(property_loc, reach_set.X)
return CheckSolution(false, i, options)
end
end
Expand Down

0 comments on commit cfbbbfd

Please sign in to comment.