diff options
author | 2012-09-19 15:29:06 +0200 | |
---|---|---|
committer | 2012-09-19 15:29:06 +0200 | |
commit | f9168987b3ad238db82b52188811915e0cc287c8 (patch) | |
tree | 9f70f91cd56c38646aab4f9cc15139a401675fac | |
parent | 935f892b8deb0ef77db8874b4edb64957bcd409b (diff) |
Chalice: Fix bug of computing the function height.
-rw-r--r-- | Chalice/src/main/scala/Resolver.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Chalice/src/main/scala/Resolver.scala b/Chalice/src/main/scala/Resolver.scala index 343d76dd..95ae5f9e 100644 --- a/Chalice/src/main/scala/Resolver.scala +++ b/Chalice/src/main/scala/Resolver.scala @@ -301,7 +301,7 @@ object Resolver { // fill in SCC and height for recursive functions
val (callGraphCondensation, h) = calls.computeSCC;
- val callGraphTopoSort = callGraphCondensation.computeTopologicalSort
+ val callGraphTopoSort = callGraphCondensation.computeTopologicalSort.reverse
h.keys foreach {f:Function =>
f.SCC = h(f);
f.height = callGraphTopoSort.indexOf(h(f))
|