Skip to content

Commit

Permalink
#94: Fixed an issue where an empty graph would be passed to the templ…
Browse files Browse the repository at this point in the history
…ate manager
  • Loading branch information
Francesco-Cos committed Nov 4, 2024
1 parent a27d457 commit d77c2b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sxpat/xplore.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,8 @@ def optimize_constants(specs_obj: Specifications, initial_error_threshold: int)

# load graph for next iteration
graph = AnnotatedGraph(verilog_filename, is_clean=False)
if graph.num_gates == 0:
break
graph.extract_subgraph(specs_obj)

# revert state
Expand Down

0 comments on commit d77c2b7

Please sign in to comment.