2019-01-08 01:16:03 +03:00
|
|
|
name: macaw-refinement
|
|
|
|
version: 0.0.1
|
2019-01-08 02:13:50 +03:00
|
|
|
synopsis: Additional refinement operations for binary code discovery to improve coverage
|
2019-01-08 01:16:03 +03:00
|
|
|
author: Galois, Inc.
|
|
|
|
maintainer: kquick@galois.com
|
2019-01-08 02:13:50 +03:00
|
|
|
homepage: https://github.com/GaloisInc/macaw/refinement
|
2019-01-08 01:16:03 +03:00
|
|
|
license: BSD3
|
|
|
|
license-file: LICENSE
|
|
|
|
|
2019-01-08 02:13:50 +03:00
|
|
|
build-type: Simple
|
|
|
|
cabal-version: >= 2.0
|
|
|
|
|
|
|
|
description:
|
|
|
|
The refinement library provides supplemental functionality for
|
2020-03-13 03:15:08 +03:00
|
|
|
discovery of elements that macaw-base is not able to discover
|
2019-01-08 02:13:50 +03:00
|
|
|
via pattern matching. This library will use crucible symbolic
|
|
|
|
analysis to attempt to determine elements that could not be
|
2020-03-13 03:15:08 +03:00
|
|
|
identified by macaw-base. The identification provided by
|
|
|
|
macaw-base is incomplete, and so is the identification by this
|
2019-01-08 02:13:50 +03:00
|
|
|
macaw-refinement, but macaw-refinement attempts to additionally
|
|
|
|
"refine" the analysis to achieve even more information which can
|
|
|
|
then be provided back to the macaw analysis.
|
|
|
|
.
|
|
|
|
* Terminator effects for incomplete blocks. For example, the target
|
|
|
|
IP address by symbolic evaluation (e.g. of jump tables). If the
|
|
|
|
current block does not provide sufficient information to
|
|
|
|
symbolically identify the target, previous blocks can be added to
|
|
|
|
the analysis (back to the entry block or a loop point).
|
|
|
|
.
|
|
|
|
* Argument liveness (determining which registers and memory
|
|
|
|
locations are used/live by a block allows determination of ABI
|
|
|
|
compliance (for transformations) and specific block
|
|
|
|
requirements (which currently start with a full register state and
|
|
|
|
blank memory).
|
|
|
|
.
|
|
|
|
* Call graphs. Determination of targets of call instructions that
|
|
|
|
cannot be identified by pattern matching via symbolic evaluation,
|
|
|
|
using techniques similar to those for identifying incomplete blocks.
|
|
|
|
|
|
|
|
extra-source-files: Changelog.md
|
|
|
|
README.md
|
|
|
|
|
|
|
|
source-repository head
|
|
|
|
type: git
|
|
|
|
location: git://github.com/GaloisInc/macaw.git
|
|
|
|
|
|
|
|
|
2019-01-08 01:16:03 +03:00
|
|
|
library
|
|
|
|
build-depends: base >= 4
|
|
|
|
, ansi-wl-pprint
|
|
|
|
, containers
|
|
|
|
, crucible >= 0.4
|
|
|
|
, crucible-llvm
|
|
|
|
, lens
|
|
|
|
, macaw-base
|
2019-02-07 04:58:21 +03:00
|
|
|
, macaw-loader
|
2019-02-09 01:10:08 +03:00
|
|
|
, macaw-loader-ppc
|
|
|
|
, macaw-loader-x86
|
|
|
|
, macaw-ppc
|
2019-01-08 01:16:03 +03:00
|
|
|
, macaw-symbolic
|
2019-02-09 01:10:08 +03:00
|
|
|
, macaw-ppc-symbolic
|
2019-01-08 01:16:03 +03:00
|
|
|
, mtl
|
|
|
|
, parameterized-utils
|
2019-01-29 02:04:21 +03:00
|
|
|
, prettyprinter
|
2019-01-08 01:16:03 +03:00
|
|
|
, text
|
|
|
|
, what4 >= 0.4.0
|
2020-03-13 03:15:08 +03:00
|
|
|
, scheduler >= 1.4 && < 1.5
|
|
|
|
, async
|
2020-05-22 09:42:41 +03:00
|
|
|
, lumberjack >= 0.1.0.2 && < 0.2
|
2020-03-13 03:15:08 +03:00
|
|
|
, unliftio-core >= 0.2 && < 0.3
|
|
|
|
, exceptions >= 0.10 && < 0.11
|
|
|
|
, haggle
|
2019-01-08 01:16:03 +03:00
|
|
|
|
|
|
|
hs-source-dirs: src
|
|
|
|
|
2019-01-25 01:48:55 +03:00
|
|
|
exposed-modules: Data.Macaw.Refinement
|
|
|
|
|
2019-01-28 21:50:35 +03:00
|
|
|
other-modules: Data.Macaw.Refinement.FuncBlockUtils
|
2020-03-13 03:15:08 +03:00
|
|
|
Data.Macaw.Refinement.Logging
|
2019-01-28 21:50:35 +03:00
|
|
|
Data.Macaw.Refinement.Path
|
2020-03-13 03:15:08 +03:00
|
|
|
Data.Macaw.Refinement.Solver
|
2019-01-28 21:50:35 +03:00
|
|
|
Data.Macaw.Refinement.Target
|
2019-02-08 06:43:58 +03:00
|
|
|
Data.Macaw.Refinement.SymbolicExecution
|
2019-01-25 01:48:55 +03:00
|
|
|
Data.Macaw.Refinement.UnknownTransfer
|
2019-01-08 01:16:03 +03:00
|
|
|
|
2019-01-08 02:13:50 +03:00
|
|
|
default-language: Haskell2010
|
2019-01-11 01:41:44 +03:00
|
|
|
ghc-options: -Wall -Wcompat
|
2019-01-08 01:16:03 +03:00
|
|
|
ghc-prof-options: -O2 -fprof-auto-top
|
2019-01-11 01:53:12 +03:00
|
|
|
|
|
|
|
|
|
|
|
executable run-refinement
|
|
|
|
hs-source-dirs: tools
|
|
|
|
main-is: run-refinement.hs
|
2020-03-13 03:15:08 +03:00
|
|
|
other-modules: Summary, Options, Initialization
|
2019-01-11 01:53:12 +03:00
|
|
|
default-language: Haskell2010
|
2020-03-13 03:15:08 +03:00
|
|
|
ghc-options: -Wall -Wcompat -rtsopts -threaded
|
2019-01-11 01:53:12 +03:00
|
|
|
build-depends: base >= 4
|
|
|
|
, bytestring
|
|
|
|
, containers
|
|
|
|
, elf-edit
|
|
|
|
, exceptions
|
|
|
|
, lens
|
|
|
|
, macaw-base
|
|
|
|
, macaw-loader
|
|
|
|
, macaw-loader-x86
|
|
|
|
, macaw-loader-ppc
|
|
|
|
, macaw-ppc
|
2019-02-09 01:10:08 +03:00
|
|
|
, macaw-ppc-symbolic
|
2019-01-11 01:53:12 +03:00
|
|
|
, macaw-refinement
|
|
|
|
, macaw-symbolic
|
|
|
|
, macaw-x86
|
2019-02-01 01:55:26 +03:00
|
|
|
, macaw-x86-symbolic
|
2019-01-11 04:25:12 +03:00
|
|
|
, optparse-applicative
|
2019-01-11 01:53:12 +03:00
|
|
|
, parameterized-utils
|
2019-02-08 04:15:00 +03:00
|
|
|
, prettyprinter
|
2019-01-11 01:53:12 +03:00
|
|
|
, semmc-ppc
|
2019-01-23 07:04:26 +03:00
|
|
|
, text
|
2020-03-13 03:15:08 +03:00
|
|
|
, what4
|
|
|
|
, crucible
|
|
|
|
, mtl
|
|
|
|
, lumberjack
|
|
|
|
, unliftio-core
|
2019-01-23 07:04:26 +03:00
|
|
|
|
|
|
|
test-suite test-refinements
|
|
|
|
type: exitcode-stdio-1.0
|
2019-02-08 04:15:00 +03:00
|
|
|
buildable: True
|
2019-01-23 07:04:26 +03:00
|
|
|
default-language: Haskell2010
|
2020-03-13 03:15:08 +03:00
|
|
|
GHC-options: -Wall -Wcompat
|
|
|
|
hs-source-dirs: tests, tools
|
2019-01-23 07:04:26 +03:00
|
|
|
main-is: RefinementTests.hs
|
2020-03-13 03:15:08 +03:00
|
|
|
other-modules: Summary, Initialization, Options
|
2019-01-23 07:04:26 +03:00
|
|
|
build-depends: base >= 4
|
|
|
|
, ansi-wl-pprint
|
|
|
|
, bytestring
|
|
|
|
, containers
|
|
|
|
, directory
|
|
|
|
, elf-edit
|
|
|
|
, exceptions
|
|
|
|
, filepath
|
|
|
|
, filemanip
|
|
|
|
, lens
|
|
|
|
, macaw-base
|
|
|
|
, macaw-loader
|
|
|
|
, macaw-loader-x86
|
|
|
|
, macaw-loader-ppc
|
|
|
|
, macaw-ppc
|
2019-02-09 01:10:08 +03:00
|
|
|
, macaw-ppc-symbolic
|
2019-01-23 23:04:41 +03:00
|
|
|
, macaw-refinement
|
2019-01-30 03:29:54 +03:00
|
|
|
, macaw-symbolic
|
2019-01-23 07:04:26 +03:00
|
|
|
, macaw-x86
|
2019-01-30 03:29:54 +03:00
|
|
|
, macaw-x86-symbolic
|
2020-03-13 03:15:08 +03:00
|
|
|
, crucible
|
|
|
|
, crucible-llvm
|
|
|
|
, what4
|
|
|
|
, optparse-applicative >= 0.13 && < 0.16
|
2019-01-23 07:04:26 +03:00
|
|
|
, parameterized-utils
|
|
|
|
, QuickCheck >= 2.7
|
|
|
|
, semmc-ppc
|
2020-03-13 03:15:08 +03:00
|
|
|
, text
|
2019-01-23 07:04:26 +03:00
|
|
|
, tagged
|
|
|
|
, tasty
|
|
|
|
, tasty-hspec
|
|
|
|
, tasty-hunit
|
2020-03-13 03:15:08 +03:00
|
|
|
, prettyprinter
|
|
|
|
, mtl
|
|
|
|
, lumberjack
|
|
|
|
, unliftio-core
|