Skip to content

Commit

Permalink
clean up code and write docstrings and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Cliff Hodel committed Dec 20, 2023
1 parent 62785f4 commit f8a2a9d
Show file tree
Hide file tree
Showing 7 changed files with 607 additions and 778 deletions.
4 changes: 2 additions & 2 deletions dace/sdfg/work_depth_analysis/assumptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def propagate_assumptions_equal_symbols(condensed_assumptions):
equality_subs1.update({sym: sp.Symbol(uf.find(sym))})

equality_subs2 = {}
# In a second step, each symbol gets replace with its equal number (if present)
# In a second step, each symbol gets replaced with its equal number (if present)
# using equality_subs2.
for sym, assum in condensed_assumptions.items():
for e in assum.equal:
Expand Down Expand Up @@ -182,7 +182,7 @@ def parse_assumptions(assumptions, array_symbols):
Parses a list of assumptions into substitution dictionaries. Firstly, it gathers all assumptions and
keeps only the strongest ones. Afterwards it constructs two substitution dicts for the equality
assumptions: First dict for symbol==symbol assumptions; second dict for symbol==number assumptions.
The other assumptions get handles by N tuples of substitution dicts (N = max number of concurrent
The other assumptions get handled by N tuples of substitution dicts (N = max number of concurrent
assumptions for a single symbol). Each tuple is responsible for at most one assumption for each symbol.
First dict in the tuple substitutes the symbol with the assumption; second dict restores the initial symbol.
Expand Down
233 changes: 0 additions & 233 deletions dace/sdfg/work_depth_analysis/extrapolation.py

This file was deleted.

Loading

0 comments on commit f8a2a9d

Please sign in to comment.