text
stringlengths
1
24.5M
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "ControlFlow.h" #include "Interference.h" #include "Liveness.h" namespace regalloc { using vreg_t = uint...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "VirtualRegistersFile.h" #include "Debug.h" namespace regalloc { constexpr vreg_t REG_MAX = std::numeric_limits<vreg_...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <boost/dynamic_bitset/dynamic_bitset.hpp> namespace regalloc { using vreg_t = uint16_t; /* * This class tracks which...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "LinearScan.h" #include <algorithm> #include <optional> #include <utility> #include <vector> #include "ControlFlow.h" ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <cstdint> #include <functional> #include <queue> #include "DeterministicContainers.h" #include "DexClass....
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "LiveInterval.h" namespace fastregalloc { LiveIntervals init_live_intervals( cfg::ControlFlowGraph& cfg, std::...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <utility> #include <vector> #include "ControlFlow.h" #include "DeterministicContainers.h" #include "IRIns...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "CheckCastAnalysis.h" #include <sstream> #include "FrameworkApi.h" #include "ReachingDefinitions.h" #include "Show.h" ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <optional> #include <vector> #include "CheckCastConfig.h" #include "ControlFlow.h" #include "Deterministi...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once namespace check_casts { struct CheckCastConfig { bool weaken{true}; }; } // namespace check_casts
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "CheckCastTransform.h" namespace check_casts { namespace impl { Stats apply(cfg::ControlFlowGraph& cfg, const CheckCa...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <boost/optional.hpp> #include <vector> #include "CheckCastAnalysis.h" namespace check_casts { namespace...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "RClass.h" #include <limits> #include <string> #include "CFGMutation.h" #include "ConstantPropagationAnalysis.h" #incl...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <utility> #include "DeterministicContainers.h" #include "DexClass.h" #include "GlobalConfig.h" #include "...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "ReachableResources.h" #include <boost/algorithm/string/predicate.hpp> #include <boost/regex.hpp> #include "DexClass.h...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <utility> #include "DeterministicContainers.h" #include "GlobalConfig.h" #include "PassManager.h" #includ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "StaticIds.h" #include <boost/filesystem/operations.hpp> #include <boost/regex.hpp> #include <fstream> #include <functi...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <cstdint> #include <functional> #include <string> namespace resources { // Read the simple text file for ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "Shrinker.h" #include <fstream> #include "BranchPrefixHoisting.h" #include "ConstantUses.h" #include "ConstructorParam...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "CommonSubexpressionElimination.h" #include "ConfigFiles.h" #include "ConstantEnvironment.h" #include "Con...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "SwitchDispatch.h" #include <cmath> #include "Creators.h" #include "MethodUtil.h" #include "ScopedCFG.h" #include "Sho...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <boost/optional.hpp> // NOLINT #include <utility> #include "DexClass.h" struct Location; namespace disp...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "SwitchEquivFinder.h" #include <algorithm> #include <map> #include <vector> #include "CFGMutation.h" #include "Constan...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <boost/optional.hpp> #include <boost/variant/get.hpp> #include <boost/variant/variant.hpp> #include <map> ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <boost/optional.hpp> #include <vector> #include "ConstantPropagationAnalysis.h" #include "ControlFlow.h" ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "GlobalTypeAnalyzer.h" #include "ConcurrentContainers.h" #include "ControlFlow.h" #include "IFieldAnalysisUtil.h" #incl...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <sparta/HashedAbstractPartition.h> #include "CallGraph.h" #include "DexTypeEnvironment.h" #include "Local...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "LocalTypeAnalyzer.h" #include <ostream> #include <sstream> #include "Resolver.h" #include "Show.h" #include "Trace.h"...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "BaseIRAnalyzer.h" #include "DexTypeEnvironment.h" #include "InstructionAnalyzer.h" namespace type_analyz...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "ResolveMethodRefs.h" #include "CFGMutation.h" #include "ScopedCFG.h" #include "Show.h" #include "Trace.h" #include "Ty...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <algorithm> #include <map> #include <set> #include <string> #include <vector> #include "DexClass.h" #incl...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "TypeAnalysisRuntimeAssert.h" #include "ControlFlow.h" #include "IRCode.h" #include "IRInstruction.h" #include "Proguar...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "DexClass.h" #include "LocalTypeAnalyzer.h" #include "PassManager.h" #include "Trace.h" #include "WholePro...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "TypeAnalysisTransform.h" #include "DeterministicContainers.h" #include "IRInstruction.h" #include "KotlinNullCheckMeth...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "ControlFlow.h" #include "DeterministicContainers.h" #include "IRCode.h" #include "LocalTypeAnalyzer.h" #i...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "WholeProgramState.h" #include "GlobalTypeAnalyzer.h" #include "Resolver.h" #include "Show.h" #include "Walkers.h" usi...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <sparta/HashedAbstractPartition.h> #include "CallGraph.h" #include "ConcurrentContainers.h" #include "Dex...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "TypeStringRewriter.h" #include "ControlFlow.h" #include "Trace.h" #include "Walkers.h" namespace { /* In Signature a...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "DeterministicContainers.h" #include "DexClass.h" /** * When we rename dex type or replace an old type w...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "WrappedPrimitives.h" #include <inttypes.h> #include "CFGMutation.h" #include "ConstantEnvironment.h" #include "Consta...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "ConstantPropagationAnalysis.h" #include "ConstantPropagationWholeProgramState.h" #include "ControlFlow.h"...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "DexDefs.h"
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <cstdint> #include "Util.h" /* * The the dex spec can be found here: * https://source.android.com/devi...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "DexEncoding.h" #include <sstream> #include <stdexcept> namespace dex_encoding { namespace details { void throw_inval...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <cstdint> #include <string> namespace dex_encoding { namespace details { // Hide throw details. [[noretu...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "DexOpcodeDefs.h" #include <sstream> #include <stdexcept> std::string print(DexOpcode opcode) { /* clang-format off ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <cstdint> #include <string> /* * Dex opcode formats as defined by the spec; the _d and _s variants indic...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "file-utils.h" size_t FileHandle::fwrite_impl(const void* p, size_t size, size_t count) { auto ret = ::fwrite(p, size...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "Util.h" #include <cstdint> #include <cstdio> #include <memory> #include <string> class FileHandle { pu...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "mmap.h" #include <cstdint> #include <stdlib.h> #include <sys/mman.h> #include <memory> #include <sstream> #include <u...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "Util.h" #include <stddef.h> #include <sys/mman.h> #include <sys/types.h> #include <map> #include <string> class Mapp...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <map> #include <set> #include <type_traits> #include <utility> template <typename T> struct fake_dependen...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "QuickData.h" #include "file-utils.h" #include "mmap.h" #include <cstring> #include <sstream> #include <stdexcept> #inc...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "Util.h" #include <map> #include <memory> #include <string> #include <unordered_map> class MappedFile; ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <algorithm> #include <memory> #include <type_traits> #include <utility> #include "NoDefaultComparator.h" ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <functional> #include <memory> #include <ostream> #include <type_traits> #include <utility> #include <spa...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <functional> #include <initializer_list> #include <ostream> #include <sstream> #include <utility> #includ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <type_traits> #include <utility> namespace sparta { enum class AbstractMapMutability { // The abstract...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <type_traits> #include <sparta/AbstractDomain.h> #include <sparta/TypeTraits.h> namespace sparta { name...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <functional> #include <initializer_list> #include <ostream> #include <sstream> #include <utility> #includ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <type_traits> #include <utility> namespace sparta { /* * This describes the API for a generic set conta...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <boost/optional.hpp> #include <functional> #include <memory> #include <type_traits> #include <unordered_ma...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <type_traits> namespace sparta { // Template helpers to get the array of a function type or similar. tem...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <ostream> #include <sstream> #include <type_traits> #include <utility> #include <boost/intrusive/pointer_...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <algorithm> #include <cstddef> #include <functional> #include <initializer_list> #include <sstream> #inclu...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <boost/optional.hpp> #include <boost/variant.hpp> #include <sstream> #include <type_traits> #include <spa...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <exception> #include <boost/config.hpp> #include <boost/current_function.hpp> #include <boost/exception/a...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <array> #include <bitset> #include <cstddef> #include <functional> #include <initializer_list> #include <n...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <sparta/AbstractDomain.h> namespace sparta { /* * This class defines the interface to a chaotic fixpoin...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <algorithm> #include <functional> #include <initializer_list> #include <ostream> #include <boost/containe...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <algorithm> #include <functional> #include <initializer_list> #include <ostream> #include <boost/containe...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <iterator> #include <optional> #include <type_traits> namespace sparta { namespace fi_impl { template <...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <sparta/AbstractEnvironment.h> #include <sparta/HashMap.h> namespace sparta { /* * An abstract environm...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <sparta/AbstractPartition.h> #include <sparta/HashMap.h> namespace sparta { /* * A partition is a mappi...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <sparta/HashSet.h> #include <sparta/SetAbstractDomain.h> namespace sparta { /* * An implementation of p...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <algorithm> #include <functional> #include <initializer_list> #include <limits> #include <ostream> #includ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <cstddef> #include <initializer_list> #include <memory> #include <ostream> #include <unordered_set> #incl...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <limits> #include <ostream> #include <boost/functional/hash.hpp> #include <sparta/AbstractDomain.h> #inc...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <memory> #include <ostream> #include <type_traits> #include <sparta/AbstractDomain.h> #include <sparta/Ex...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <algorithm> #include <cstddef> #include <functional> #include <iterator> #include <type_traits> #include <...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <initializer_list> #include <sparta/AbstractDomain.h> #include <sparta/AbstractSet.h> #include <sparta/Ex...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <atomic> #include <cstddef> #include <cstdint> #include <iterator> #include <limits> #include <stack> #inc...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <algorithm> #include <functional> #include <ostream> #include <type_traits> #include <utility> #include <...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <sparta/AbstractEnvironment.h> #include <sparta/PatriciaTreeHashMap.h> namespace sparta { /* * An abstr...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <sparta/AbstractPartition.h> #include <sparta/PatriciaTreeHashMap.h> namespace sparta { /* * An abstrac...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once namespace sparta { // Trait for types used as a key to a patricia tree. // // To be used as a key to a patricia tr...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <algorithm> #include <cstdint> #include <functional> #include <ostream> #include <type_traits> #include <u...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <sparta/AbstractEnvironment.h> #include <sparta/PatriciaTreeMap.h> namespace sparta { /* * An abstract ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <sparta/AbstractPartition.h> #include <sparta/PatriciaTreeMap.h> namespace sparta { /* * An abstract pa...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <sparta/OverUnderSetAbstractDomain.h> #include <sparta/PatriciaTreeSet.h> namespace sparta { /** * An i...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <algorithm> #include <cstdint> #include <functional> #include <initializer_list> #include <ostream> #inclu...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <sparta/PatriciaTreeSet.h> #include <sparta/SetAbstractDomain.h> namespace sparta { /* * An implementat...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <cstdint> #include <type_traits> #include <utility> #include <sparta/PatriciaTreeKeyTrait.h> namespace s...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <functional> #include <utility> namespace sparta { namespace fwd_impl { template <typename T> class by_v...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <cstddef> #include <initializer_list> #include <ostream> #include <type_traits> #include <sparta/Abstract...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <algorithm> #include <cstddef> #include <functional> #include <initializer_list> #include <sstream> #inclu...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <cstddef> #include <initializer_list> #include <sparta/AbstractSet.h> #include <sparta/PowersetAbstractDo...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <initializer_list> #include <sparta/AbstractDomain.h> #include <sparta/Exceptions.h> #include <sparta/Fla...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <iterator> #include <ostream> #include <vector> #include <sparta/PowersetAbstractDomain.h> namespace spa...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <algorithm> #include <cctype> #include <cstdint> #include <functional> #include <initializer_list> #includ...