Commit 81b71d8 1 parent 88e3983 commit 81b71d8 Copy full SHA for 81b71d8
File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -1256,13 +1256,15 @@ struct
1256
1256
let goal_reached = AD. exists (fun g -> is_prefix_of n g) goal in
1257
1257
let already_visited = AD. subset (AD. singleton n) visited in
1258
1258
if already_visited then
1259
- false , graph
1260
- else if goal_reached then
1261
- let graph = ValueDomain.ADGraph. add node (AD. singleton n) graph in
1262
- (true , graph)
1263
- else begin
1259
+ if goal_reached then
1260
+ let graph = ValueDomain.ADGraph. add node (AD. singleton n) graph in
1261
+ (true , graph)
1262
+ else
1263
+ false , graph
1264
+ else
1265
+ begin
1264
1266
let found, graph = dfs n (visited, graph) in
1265
- if found then
1267
+ if goal_reached || found then
1266
1268
let graph = ValueDomain.ADGraph. add node (AD. singleton n) graph in
1267
1269
(true , graph)
1268
1270
else
You can’t perform that action at this time.
0 commit comments