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 "DeterministicContainers.h" #include "Pass.h" using SwitchIndices = std::set<int>; /** * This pass is m...
/* * 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 "StaticReloV2.h" #include "ApiLevelChecker.h" #include "ClassHierarchy.h" #include "DeterministicContainers.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. */ #pragma once #include "Pass.h" namespace static_relo_v2 { class StaticReloPassV2 : public Pass { public: StaticReloPassV2()...
/* * 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 "StringBuilderOutliner.h" #include "CFGMutation.h" #include "ConcurrentContainers.h" #include "ConfigFiles.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. */ #pragma once #include <boost/optional.hpp> // NOLINT #include <sparta/AbstractDomain.h> #include <sparta/PatriciaTreeMapAbstrac...
/* * 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 "StringConcatenator.h" #include <map> #include <mutex> #include <utility> #include "ControlFlow.h" #include "Determini...
/* * 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 "Pass.h" class StringConcatenatorPass : public Pass { public: StringConcatenatorPass() : Pass("StringC...
/* * 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 "StripDebugInfo.h" #include <string> #include "DexClass.h" #include "DexUtil.h" #include "PassManager.h" #include "Tra...
/* * 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 "IRCode.h" #include "Pass.h" class StripDebugInfoPass : public Pass { public: St...
/* * 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 "CallGraphFileGenerationPass.h" #include <fstream> #include "CallGraph.h" #include "ConcurrentContainers.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. */ #pragma once #include "Pass.h" class CallGraphFileGenerationPass : Pass { public: CallGraphFileGenerationPass() : Pass("Call...
/* * 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 "GlobalTypeAnalysisPass.h" #include "ConfigFiles.h" #include "DexUtil.h" #include "GlobalTypeAnalyzer.h" #include "Kotl...
/* * 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 "GlobalTypeAnalyzer.h" #include "Pass.h" #include "TypeAnalysisRuntimeAssert.h" #include "TypeAnalysisTran...
/* * 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 "TypeAnalysisCallGraphGenerationPass.h" #include "DexUtil.h" #include "MethodOverrideGraph.h" #include "Show.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. */ #pragma once #include "CallGraph.h" #include "GlobalTypeAnalysisPass.h" #include "Pass.h" /* * The pass generates a version of...
/* * 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 "TypedefAnnoCheckerPass.h" #include "AnnoUtils.h" #include "KotlinNullCheckMethods.h" #include "PassManager.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. */ #pragma once #include "ConcurrentContainers.h" #include "ControlFlow.h" #include "DeterministicContainers.h" #include "LiveRange...
/* * 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 "TypedefAnnoOptPass.h" #include "AnnoUtils.h" #include "ControlFlow.h" #include "MethodReference.h" #include "PassManag...
/* * 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 <mutex> #include "Pass.h" #include "TypeInference.h" /* * This pass uses StringTreeMap to mimic the val...
/* * 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 "TypedefAnnoPatcher.h" #include "AnnoUtils.h" #include "ClassUtil.h" #include "KotlinNullCheckMethods.h" #include "Pass...
/* * 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 <mutex> #include "ConcurrentContainers.h" #include "ControlFlow.h" #include "LiveRange.h" #include "Metho...
/* * 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 <string.h> #include "TypeSystem.h" #include "UnmarkProguardKeep.h" #include "Walkers.h" void unmark_keep(const Scope& ...
/* * 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 "Pass.h" #include "PassManager.h" /** * This pass unmarks some over-strict proguard keep rule so that we...
/* * 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 "UnreachableLoweringPass.h" #include "CFGMutation.h" #include "ControlFlow.h" #include "Creators.h" #include "Lazy.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 "Pass.h" #include "PassManager.h" class UnreachableLoweringPass : public Pass { public: UnreachableLow...
/* * 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. */ /* * This pass eliminates gotos by moving trivial instructions such a consts and * moves before a conditional branch. * * 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. */ #pragma once #include "ControlFlow.h" #include "Pass.h" #include "Trace.h" class UpCodeMotionPass : public Pass { public: st...
/* * 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 "UsesNames.h" #include <mutex> #include "ClassHierarchy.h" #include "DexUtil.h" #include "PassManager.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 "Pass.h" class ProcessUsesNamesAnnoPass : public Pass { public: struct Metrics { int32_t used_clas...
/* * 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 "Verifier.h" #include <cinttypes> #include <string> #include <vector> #include "ConfigFiles.h" #include "Deterministic...
/* * 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 "Pass.h" class VerifierPass : public Pass { public: VerifierPass() : Pass("VerifierPass") {} redex_...
/* * 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 "VerticalMerging.h" #include "ClassHierarchy.h" #include "ConfigFiles.h" #include "ControlFlow.h" #include "DexAnnotati...
/* * 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" #include "Pass.h" /** * Merge classes vertically. (see...
/* * 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 <vector> #include "DexUtil.h" #include "MethodFixup.h" #include "MethodOverrideGraph.h" #include "Show.h" #include "Tra...
/* * 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 <vector> class DexStore; using DexStoresVector = std::vector<DexStore>; /** * Remove...
/* * 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. */ /** * VirtualMergingPass removes virtual methods that override other virtual * methods, by merging them, under certain conditio...
/* * 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 "ConfigFiles.h" #include "DeterministicContainers.h" #include "DexStore.h" #include "FrameworkApi.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 "MethodDevirtualizationPass.h" #include "ConfigFiles.h" #include "DexUtil.h" #include "MethodDevirtualizer.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. */ #pragma once #include "Pass.h" class MethodDevirtualizationPass : public Pass { public: MethodDevirtualizationPass() : Pass(...
/* * 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 "WrappedPrimitivesPass.h" #include "DexUtil.h" #include "Lazy.h" #include "LiveRange.h" #include "PassManager.h" #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 "Pass.h" // A wrapped primitive is a type with a constructor taking a primitive, that is // largely used ...
/* * 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 "WriteBarrierLoweringPass.h" #include "CFGMutation.h" #include "ControlFlow.h" #include "Creators.h" #include "DexAsm.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 "Pass.h" #include "PassManager.h" class WriteBarrierLoweringPass : public Pass { public: WriteBarrierL...
/* * 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 "ApiLevelsUtils.h" #include <boost/algorithm/string/predicate.hpp> #include "DexClass.h" #include "MethodOverrideGraph...
/* * 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" #include "FrameworkApi.h" namespace api { using TypeTo...
/* * 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 "BranchPrefixHoisting.h" #include "ControlFlow.h" #include "DexClass.h" #include "GraphUtil.h" #include "Show.h" #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 "ConstantUses.h" #include "Lazy.h" class IRCode; namespace cfg { class ControlFlowGraph; } // 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 "ApproximateShapeMerging.h" #include <algorithm> #include <fstream> #include "ConfigFiles.h" #include "Trace.h" using...
/* * 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 "MergerType.h" #include "PassManager.h" struct ConfigFiles; class JsonWrapper; namespace class_merging {...
/* * 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 "ClassAssemblingUtils.h" #include <boost/algorithm/string.hpp> #include "Creators.h" #include "DexStore.h" #include "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 "ControlFlow.h" #include "DexClass.h" #include "DexStore.h" #include "IRInstruction.h" #include "ModelMeth...
/* * 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 "ClassMerging.h" #include <iostream> #include "ConfigFiles.h" #include "ModelMerger.h" #include "NormalizeConstructor....
/* * 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 "Model.h" namespace class_merging { ModelStats merge_model(Scope& scope, ConfigFi...
/* * 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 "ConfigUtils.h" #include "Show.h" #include "Trace.h" namespace class_merging { namespace utils { DexType* get_type(c...
/* * 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" namespace class_merging { namespace utils { DexType* get_type(const std::string& type_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. */ #include "InterDexGrouping.h" #include "Model.h" #include "ScopedCFG.h" #include "Show.h" #include "SourceBlocks.h" #include "Wa...
/* * 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 "ConfigFiles.h" #include "DexClass.h" using ConstTypeHashSet = UnorderedSet<const DexType*>; using TypeHa...
/* * 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 "MergeabilityCheck.h" #include "IRCode.h" #include "LiveRange.h" #include "Model.h" #include "ReachableClasses.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 "DexClass.h" class RefChecker; namespace class_merging { using TypeSet = std::set<const DexType*, dexty...
/* * 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 "MergerType.h" #include <sstream> #include <string> #include "DexHasher.h" #include "Trace.h" #include "TypeReference....
/* * 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/functional/hash.hpp> #include "ClassHierarchy.h" #include "DexClass.h" #include "TypeUtil.h" 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. */ #include "MergingStrategies.h" #include "CrossDexRefMinimizer.h" #include "IRCode.h" #include "Show.h" #include "Trace.h" names...
/* * 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/optional.hpp> #include "ClassHierarchy.h" class DexType; using ConstTypeVector = std::ve...
/* * 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 "Model.h" #include <ostream> #include <sstream> #include <string> #include <boost/algorithm/string.hpp> #include "Ann...
/* * 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 <json/value.h> #include <string> #include "ApproximateShapeMerging.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 "ModelMerger.h" #include "CFGMutation.h" #include "ClassAssemblingUtils.h" #include "ConfigFiles.h" #include "Creators....
/* * 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" #include "Model.h" #include "Trace.h" class DexStore; c...
/* * 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 "ModelMethodMerger.h" #include "CFGMutation.h" #include "ConstantLifting.h" #include "Creators.h" #include "DexUtil.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 <boost/optional.hpp> #include "DexClass.h" #include "MergerType.h" #include "MethodProfiles.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 "TypeTagUtils.h" #include "AnnoUtils.h" namespace class_merging { namespace type_tag_utils { constexpr const char* M...
/* * 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 "DexClass.h" namespace class_merging { namespace type_tag_utils { /** *...
/* * 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 <string> #include <utility> #include "ApiLevelChecker.h" #include "ClassSplitting.h" #include "ConfigFiles.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. */ #pragma once #include <functional> #include <vector> #include "DeterministicContainers.h" #include "DexClass.h" #include "DexUt...
/* * 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 <functional> #include <ostream> #include <sstream> #include <utility> #include <sparta...
/* * 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 <sparta/ConstantAbstractDomain.h> #include <sparta/DisjointUnionAbstractDomain.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. */ #include "ConstantPropagation.h" #include "ConstantPropagationAnalysis.h" #include "ConstantPropagationTransform.h" #include "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 "ConstantPropagationState.h" #include "ConstantPropagationTransform.h" #include "IRCode.h" namespace cons...
/* * 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 "ConstantPropagationAnalysis.h" #include <boost/container_hash/hash.hpp> #include <cinttypes> #include <cstring> #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 <limits> #include <utility> #include <boost/optional.hpp> #include <sparta/MonotonicFixpointIterator.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 "ConstantPropagationState.h" #include "KotlinNullCheckMethods.h" #include "MethodUtil.h" namespace constant_propagation...
/* * 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" namespace constant_propagation { class State { public...
/* * 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 "ConstantPropagationTransform.h" #include <vector> #include "ReachableClasses.h" #include "ReachingDefinitions.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 "CFGMutation.h" #include "ConstantEnvironment.h" #include "ConstantPropagationAnalysis.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. */ #include "ConstantPropagationWholeProgramState.h" #include "IPConstantPropagationAnalysis.h" #include "Trace.h" #include "Walker...
/* * 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 "ConstantEnvironment.h" #include "Dete...
/* * 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 "ConstructorParams.h" #include <sparta/ConstantAbstractDomain.h> #include <sparta/PatriciaTreeMapAbstractEnvironment.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 <vector> class DexClass; using Scope = std::vector<DexClass*>; namespace constant_propagation { struct Im...
/* * 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 "DefinitelyAssignedIFields.h" #include <vector> #include <sparta/AbstractDomain.h> #include <sparta/ConstantAbstractDo...
/* * 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" namespace constant_propagation { namespace definitely_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 <sstream> #include <boost/optional.hpp> #include <boost/variant.hpp> #include <sparta/AbstractDomain.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 "IFieldAnalysisUtil.h" #include "TypeSystem.h" #include "Walkers.h" namespace { namespace check_this { using ThisDoma...
/* * 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 "ConstantPropagationWholeProgramState.h" namespace constant_propagation { EligibleIfields gather_safely_...
/* * 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 "IPConstantPropagationAnalysis.h" #include "DexAnnotation.h" #include "WorkQueue.h" namespace constant_propagation { ...
/* * 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 <utility> #include "AtomicStatCounter.h" #include "CallGraph...
/* * 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/ConstantAbstractDomain.h> #include <sparta/ReducedProductAbstractDomain.h> #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. */ #include "ObjectDomain.h" namespace escape_domain_impl { /* * This lattice is just a linear chain: * * MAY_ESCAPE (Top) ->...
/* * 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/FiniteAbstractDomain.h> #include <sparta/PatriciaTreeMapAbstractEnvironment.h> #include <sparta/Re...
/* * 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 <sparta/DisjointUnionAbstractDomain.h> #include "Show.h" #include "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. */ #include "SignDomain.h" #include <limits> #include "Debug.h" namespace sign_domain { /* * ALL * / | ...
/* * 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/FiniteAbstractDomain.h> /* * This module deals with the signedness of integer types, representin...