Switch to using Tries.

This commit is contained in:
Iavor S. Diatchki 2015-01-06 11:47:40 -08:00
parent e5d31595ab
commit ad807491a5

View File

@ -9,17 +9,10 @@ module Cryptol.TypeCheck.Solver.Numeric.NonLin
import Cryptol.TypeCheck.Solver.Numeric.AST import Cryptol.TypeCheck.Solver.Numeric.AST
import Cryptol.Utils.Panic(panic) import Cryptol.Utils.Panic(panic)
{-
import Data.GenericTrie (Trie) import Data.GenericTrie (Trie)
import qualified Data.GenericTrie as Trie import qualified Data.GenericTrie as Trie
-}
import Data.Map (Map)
import qualified Data.Map as Trie
import MonadLib import MonadLib
type Trie = Map
-- | Factor-out non-linear terms, by naming them -- | Factor-out non-linear terms, by naming them
nonLinProp :: NonLinS -> Prop -> ([(Name,Expr)], Prop, NonLinS) nonLinProp :: NonLinS -> Prop -> ([(Name,Expr)], Prop, NonLinS)
nonLinProp s0 prop = case runId $ runStateT s0 $ nonLinPropM prop of nonLinProp s0 prop = case runId $ runStateT s0 $ nonLinPropM prop of