Skip to content

Commit

Permalink
Fix relaxer bug due to datatype mismatches
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanzwicknagl committed Mar 4, 2024
1 parent 1c7ce8b commit e535311
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions backend/src/viasp/asp/reify.py
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,9 @@ def visit_ShowTerm(self, showTerm: ast.ShowTerm): # type: ignore

return new_rules

def visit_Minimize(self, minimize: ast.Minimize): # type: ignore
return [minimize]

def replace_anon_variables(
self, literals: List[ast.Literal]) -> None: # type: ignore
"""
Expand Down
2 changes: 1 addition & 1 deletion backend/src/viasp/asp/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def merge_nodes(nodes: frozenset) -> Tuple[AST, ...]:

def remove_loops(g: nx.DiGraph) -> Tuple[nx.DiGraph, FrozenSet[Tuple[AST, ...]]]:
remove_edges: List[Tuple[AST, AST]] = []
where_recursion_happens: Set[AST] = set()
where_recursion_happens: Set[Tuple[AST]] = set()
for edge in g.edges:
u, v = edge
if u == v:
Expand Down

0 comments on commit e535311

Please sign in to comment.