mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-12-18 05:21:57 +03:00
Switch to using Tries.
This commit is contained in:
parent
e5d31595ab
commit
ad807491a5
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user