Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
ethteck committed Mar 25, 2024
1 parent f403938 commit 72b3723
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions m2c/flow_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
class ArchFlowGraph(ArchAsm):
asm_patterns: List[AsmPattern] = []

def simplify_ir(self, flow_graph: FlowGraph) -> None: ...
def simplify_ir(self, flow_graph: FlowGraph) -> None:
...


class Reference(abc.ABC):
Expand Down Expand Up @@ -650,7 +651,8 @@ def name(self) -> str:
return str(self.block.index)

@abc.abstractmethod
def children(self) -> List[Node]: ...
def children(self) -> List[Node]:
...

def __repr__(self) -> str:
return f"<{self.__class__.__name__}: {self.name()}>"
Expand Down
1 change: 1 addition & 0 deletions m2c/translate.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ class Platform(Arch):

pass


ASSOCIATIVE_OPS: Set[str] = {"+", "&&", "||", "&", "|", "^", "*"}
COMPOUND_ASSIGNMENT_OPS: Set[str] = {"+", "-", "*", "/", "%", "&", "|", "^", "<<", ">>"}
PSEUDO_FUNCTION_OPS: Set[str] = {
Expand Down

0 comments on commit 72b3723

Please sign in to comment.