1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 01:47:01 +03:00

🔥 Data.Abstract.Address.

This commit is contained in:
Rob Rix 2018-08-10 13:46:24 -04:00
parent b93c15370e
commit d05f3c6ae3
9 changed files with 12 additions and 16 deletions

View File

@ -48,7 +48,6 @@ library
, Control.Abstract.TermEvaluator , Control.Abstract.TermEvaluator
, Control.Abstract.Value , Control.Abstract.Value
-- Datatypes for abstract interpretation -- Datatypes for abstract interpretation
, Data.Abstract.Address
, Data.Abstract.Address.Located , Data.Abstract.Address.Located
, Data.Abstract.Address.Monovariant , Data.Abstract.Address.Monovariant
, Data.Abstract.Address.Precise , Data.Abstract.Address.Precise

View File

@ -18,7 +18,7 @@ module Analysis.Abstract.Graph
import Algebra.Graph.Export.Dot hiding (vertexName) import Algebra.Graph.Export.Dot hiding (vertexName)
import Control.Abstract hiding (Function(..)) import Control.Abstract hiding (Function(..))
import Data.Abstract.Address import Data.Abstract.Address.Located
import Data.Abstract.BaseError import Data.Abstract.BaseError
import Data.Abstract.Ref import Data.Abstract.Ref
import Data.Abstract.Declarations import Data.Abstract.Declarations

View File

@ -7,7 +7,9 @@ module Control.Abstract.Addressable
import Control.Abstract.Context import Control.Abstract.Context
import Control.Abstract.Evaluator import Control.Abstract.Evaluator
import Control.Abstract.Hole import Control.Abstract.Hole
import Data.Abstract.Address import Data.Abstract.Address.Located
import Data.Abstract.Address.Monovariant
import Data.Abstract.Address.Precise
import Data.Abstract.Name import Data.Abstract.Name
import qualified Data.Set as Set import qualified Data.Set as Set
import Prologue import Prologue

View File

@ -1,9 +0,0 @@
module Data.Abstract.Address
( Precise (..)
, Located (..)
, Monovariant (..)
) where
import Data.Abstract.Address.Located
import Data.Abstract.Address.Monovariant
import Data.Abstract.Address.Precise

View File

@ -31,7 +31,7 @@ import Prelude hiding (head, lookup)
import Prologue import Prologue
-- $setup -- $setup
-- >>> import Data.Abstract.Address -- >>> import Data.Abstract.Address.Precise
-- >>> let bright = push (insertEnv (name "foo") (Precise 0) lowerBound) -- >>> let bright = push (insertEnv (name "foo") (Precise 0) lowerBound)
-- >>> let shadowed = insertEnv (name "foo") (Precise 1) bright -- >>> let shadowed = insertEnv (name "foo") (Precise 1) bright

View File

@ -29,7 +29,9 @@ import Analysis.Abstract.Caching
import Analysis.Abstract.Collecting import Analysis.Abstract.Collecting
import Analysis.Abstract.Graph as Graph import Analysis.Abstract.Graph as Graph
import Control.Abstract import Control.Abstract
import Data.Abstract.Address import Data.Abstract.Address.Located
import Data.Abstract.Address.Monovariant
import Data.Abstract.Address.Precise
import Data.Abstract.BaseError (BaseError(..)) import Data.Abstract.BaseError (BaseError(..))
import Data.Abstract.Evaluatable import Data.Abstract.Evaluatable
import Data.Abstract.Module import Data.Abstract.Module

View File

@ -9,7 +9,8 @@ import Analysis.Abstract.Collecting
import Control.Abstract import Control.Abstract
import Control.Exception (displayException) import Control.Exception (displayException)
import Control.Monad.Effect.Trace (runPrintingTrace) import Control.Monad.Effect.Trace (runPrintingTrace)
import Data.Abstract.Address import Data.Abstract.Address.Monovariant
import Data.Abstract.Address.Precise
import Data.Abstract.BaseError (BaseError(..)) import Data.Abstract.BaseError (BaseError(..))
import Data.Abstract.Evaluatable import Data.Abstract.Evaluatable
import Data.Abstract.Module import Data.Abstract.Module

View File

@ -5,6 +5,7 @@ module Control.Abstract.Evaluator.Spec
) where ) where
import Control.Abstract import Control.Abstract
import Data.Abstract.Address.Precise
import Data.Abstract.BaseError import Data.Abstract.BaseError
import Data.Abstract.Module import Data.Abstract.Module
import qualified Data.Abstract.Number as Number import qualified Data.Abstract.Number as Number

View File

@ -22,7 +22,7 @@ import Control.Abstract
import Control.Arrow ((&&&)) import Control.Arrow ((&&&))
import Control.Monad.Effect.Trace as X (runIgnoringTrace, runReturningTrace) import Control.Monad.Effect.Trace as X (runIgnoringTrace, runReturningTrace)
import Control.Monad ((>=>)) import Control.Monad ((>=>))
import Data.Abstract.Address as X import Data.Abstract.Address.Precise as X
import Data.Abstract.Environment as Env import Data.Abstract.Environment as Env
import Data.Abstract.Evaluatable import Data.Abstract.Evaluatable
import Data.Abstract.FreeVariables as X import Data.Abstract.FreeVariables as X