Skip to content

Commit

Permalink
Рефакторинг: избыточный параметр в DoOptTree (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mazdaywik committed Apr 12, 2020
1 parent 865eb4d commit 0f1ab24
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/compiler/OptTree.ref
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,15 @@ OptTree-Aux {
s.Cycles s.OptDrive s.OptSpec
((e.DriveFuncNames) e.DriveInfo-Specific)
((e.SpecFuncNames) e.SpecInfo-Specific)
(e.OptimizableFunctions)
e.AST
>;
}

DoOptTree {
0 s.OptDrive s.OptSpec
(e.DriveInfo) (e.SpecInfo) (e.OptimizableFunctions) e.AST
0 s.OptDrive s.OptSpec (e.DriveInfo) (e.SpecInfo) e.AST
= <OptTree-Spec-CleanupColdFunctions e.AST>;

s.Cycles s.OptDrive s.OptSpec
(e.DriveInfo) (e.SpecInfo) (e.OptimizableFunctions) e.AST
s.Cycles s.OptDrive s.OptSpec (e.DriveInfo) (e.SpecInfo) e.AST
= e.AST : e.OriginAST

= <DoOptTree-DriveLoop s.Cycles s.OptDrive (e.DriveInfo) e.AST>
Expand All @@ -82,10 +79,7 @@ DoOptTree {
e.AST^ = s.Cycles e.AST;
}
: s.Cycles^ e.AST^
= <DoOptTree
s.Cycles s.OptDrive s.OptSpec
(e.DriveInfo) (e.SpecInfo) (e.OptimizableFunctions) e.AST
>;
= <DoOptTree s.Cycles s.OptDrive s.OptSpec (e.DriveInfo) (e.SpecInfo) e.AST>;
}

DoOptTree-DriveLoop {
Expand Down

0 comments on commit 0f1ab24

Please sign in to comment.