Commit 7527d054 authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

[lib] MCLAnalyser: __mac_exhaustive_search; Remove never reached code; see more...

At the end of the process the last current_mac should not have 0 frontiers; it seems to be a nonsense
parent a28ea11c
...@@ -731,21 +731,15 @@ class MCLAnalyser(object): ...@@ -731,21 +731,15 @@ class MCLAnalyser(object):
## TEST ## TEST
print("__mac_exhaustive_search:: final current step ?", self.unfolder.get_current_step()) print("__mac_exhaustive_search:: final current step ?", self.unfolder.get_current_step())
yield current_mac
if current_mac.nb_activated_frontiers == 0: # mac_list.append(current_mac)
# Condition that seems to be never reached..
print("NOT REACHABLE") # Keep a list of frontier values to be banned in the next search
reachable = False # - Get all activated frontiers on the current DimacsFrontierSol
else: # - Build a list of their opposite values
yield current_mac forbidden_frontier_values.append(
# mac_list.append(current_mac) [-var for var in current_mac.activated_frontier_values]
)
# Keep a list of frontier values to be banned in the next search
# - Get all activated frontiers on the current DimacsFrontierSol
# - Build a list of their opposite values
forbidden_frontier_values.append(
[-var for var in current_mac.activated_frontier_values]
)
def next_mac(self, query, max_step): def next_mac(self, query, max_step):
"""Search a Minimal Access Condition for the given query. """Search a Minimal Access Condition for the given query.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment