Skip to content

Commit 79e2f13

Browse files
committed
Fix off-by-one index for the sink state of IMDP abstractions
1 parent 786815c commit 79e2f13

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/abstractions/abstraction.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ function convert_property(
155155
prop = system_property(spec)
156156

157157
reach_states = Int32[]
158-
avoid_states = Int32[numregions(state_abstraction)] # Absorbing state
158+
avoid_states = Int32[numregions(state_abstraction) + 1] # Absorbing state
159159

160160
for (i, source_region) in enumerate(regions(state_abstraction))
161161
if ispessimistic(spec) && source_region reach(prop)
@@ -176,7 +176,7 @@ function convert_property(
176176
prop = system_property(spec)
177177

178178
reach_states = Int32[]
179-
avoid_states = Int32[numregions(state_abstraction)] # Absorbing state
179+
avoid_states = Int32[numregions(state_abstraction) + 1] # Absorbing state
180180

181181
for (i, source_region) in enumerate(regions(state_abstraction))
182182
if ispessimistic(spec) && !iszeromeasure(avoid(prop), source_region)
@@ -200,7 +200,7 @@ function convert_property(
200200
)
201201
prop = system_property(spec)
202202

203-
avoid_states = Int32[numregions(state_abstraction)] # Absorbing state
203+
avoid_states = Int32[numregions(state_abstraction) + 1] # Absorbing state
204204

205205
for (i, source_region) in enumerate(regions(state_abstraction))
206206
if ispessimistic(spec) && !iszeromeasure(avoid(prop), source_region)

0 commit comments

Comments
 (0)