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 <condition_variable> #include <functional> #include <mutex> #include <queue> #include <thread> #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 <type_traits> namespace sparta { // To achieve a high level of metaprogramming, we use a little C++ tric...
/* * 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. */ /* * Implementation of a weak partial ordering (WPO) of a rooted directed graph, * as described in the paper: * * Sung Kook...
/* * 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 <future> #include <iterator> #include <limits> #include <ostream>...
/* * 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 <atomic> #include <boost/optional/optional.hpp> #include <chrono> #include <condition...
/* * 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 <bitset> #include <initializer_list> #include <type_traits> namespace sparta { /** * A set of enum valu...
/* * 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 <gtest/gtest.h> #include <sparta/AbstractDomain.h> /* * Scaffold for testing that implementations of Ab...
/* * 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 <sparta/DirectProductAbstractDomain.h> #include <sparta/FiniteAbstractDomain.h> #include <sparta/HashedAbstractPartition...
/* * 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. */ // Because of the rules of argument-dependent lookup, we need to include the // definition of operator<< for ConstantAbstractDoma...
/* * 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 <sparta/FiniteAbstractDomain.h> #include <gtest/gtest.h> #include <sstream> using namespace sparta; enum Elements { B...
/* * 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 <sparta/FlatMap.h> #include <sparta/HashedSetAbstractDomain.h> #include <gmock/gmock.h> #include <gtest/gtest.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. */ #include <list> #include <map> #include <vector> #include <gmock/gmock.h> #include <sparta/FlattenIterator.h> using 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 <sparta/HashedAbstractEnvironment.h> #include <sparta/HashedSetAbstractDomain.h> #include <gmock/gmock.h> #include <gte...
/* * 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 <sparta/HashedAbstractPartition.h> #include <sparta/HashedSetAbstractDomain.h> #include <gmock/gmock.h> #include <gtest...
/* * 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 <sparta/HashedSetAbstractDomain.h> #include <gmock/gmock.h> #include <gtest/gtest.h> #include <string> #include <vector...
/* * 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 <sparta/AbstractDomain.h> #include <sparta/Analyzer.h> #include <sparta/FiniteAbstractDomain.h> #include <sparta/HashedS...
/* * 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 <sparta/IntervalDomain.h> #include <gtest/gtest.h> #include <limits> #include <sstream> using namespace sparta; 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. */ #include <sparta/ConstantAbstractDomain.h> #include <sparta/LiftedDomain.h> #include <gtest/gtest.h> using namespace sparta; 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. */ #include <sparta/HashedSetAbstractDomain.h> #include <sparta/MonotonicFixpointIterator.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 <sparta/PatriciaTreeCore.h> #include <gmock/gmock.h> #include <gtest/gtest.h> #include <type_traits> using 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. */ #include <sparta/HashedAbstractEnvironment.h> #include <sparta/HashedSetAbstractDomain.h> #include <sparta/PatriciaTreeHashMapAbs...
/* * 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 <sparta/HashedSetAbstractDomain.h> #include <sparta/PatriciaTreeHashMapAbstractPartition.h> #include <gmock/gmock.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 <sparta/PatriciaTreeHashMap.h> #include <gmock/gmock.h> #include <gtest/gtest.h> #include <initializer_list> #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 <sparta/HashedAbstractEnvironment.h> #include <sparta/HashedSetAbstractDomain.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 <sparta/HashedSetAbstractDomain.h> #include <sparta/PatriciaTreeMapAbstractPartition.h> #include <gmock/gmock.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. */ #include <sparta/PatriciaTreeMap.h> #include <gmock/gmock.h> #include <gtest/gtest.h> #include <initializer_list> #include <unor...
/* * 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 <sparta/PatriciaTreeOverUnderSetAbstractDomain.h> #include <gmock/gmock.h> using namespace sparta; using Set = Patric...
/* * 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 <sparta/PatriciaTreeSet.h> #include <sparta/PatriciaTreeSetAbstractDomain.h> #include <algorithm> #include <gmock/gmock...
/* * 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 <sparta/FiniteAbstractDomain.h> #include <sparta/HashedAbstractPartition.h> #include <sparta/ReducedProductAbstractDomai...
/* * 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 <sparta/FlatSet.h> #include <sparta/PatriciaTreeSet.h> #include <cstdint> #include <limits> #include <random> #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 <sparta/SmallSortedSetAbstractDomain.h> #include <gmock/gmock.h> using namespace sparta; using Set = FlatSet<unsigned...
/* * 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 <sparta/SparseSetAbstractDomain.h> #include <cstdint> #include <gmock/gmock.h> #include <gtest/gtest.h> #include <sstre...
/* * 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 <sparta/S_Expression.h> #include <gmock/gmock.h> #include <gtest/gtest.h> #include <limits> #include <sstream> #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 <sparta/ThreadPool.h> #include <array> #include <atomic> #include <chrono> #include <gtest/gtest.h> #include <random> ...
/* * 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 <sparta/WeakPartialOrdering.h> #include <array> #include <gtest/gtest.h> #include <set> #include <sstream> #include <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 <sparta/WeakTopologicalOrdering.h> #include <gtest/gtest.h> #include <set> #include <sstream> #include <string> #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 <sparta/WorkQueue.h> #include <array> #include <atomic> #include <chrono> #include <gtest/gtest.h> #include <random> 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. */ // NOTE: While this works and is mentioned in the googletest docs, it is not // the suggested way of doing something progra...
/* * 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/filesystem.hpp> #include <gtest/gtest.h> #include <json/value.h> #if __has_include(<unistd.h>) #in...
/* * 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 "RedexTestUtils.h" #include "Debug.h" #include <iostream> namespace redex { bool are_files_equal(const std::string& 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 <boost/filesystem/operations.hpp> #include <boost/filesystem/path.hpp> #include <fstream> namespace rede...
/* * 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 "RedexResources.h" inline size_t count_strings(const resources::StringOrReferenceSet& set, ...
/* * 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 <gtest/gtest.h> #include <sparta/PatriciaTreeSet.h> #include "DexTypeEnvironment.h" #include "RedexTest.h" using Type...
/* * 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 "DexAsm.h" #include "IRCode.h" #include "LegacyInliner.h" #include "TestGenerator.h" class InlinerTe...
/* * 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 "DexAsm.h" #include "DexUtil.h" #include "IRCode.h" #include "LocalDce.h" #include "Purity.h" #include "TestGenerator.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 <algorithm> #include <boost/filesystem.hpp> #include <cstdlib> #include <iostream> #include <memory> #include <string> #...
/* * 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 <string> #include <vector> #include "DexClass.h" /** * EquivalenceTest verifies that a bytecode transfo...
/* * 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 <gmock/gmock.h> #include "Show.h" #include "verify/VerifyUtil.h" using namespace testing; TEST_F(PostVerify, VerifyKe...
/* * 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/regex.hpp> #include "Show.h" #include "verify/VerifyUtil.h" TEST_F(PreVerify, MergeablesExist) { auto* cls_1 ...
/* * 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 <gtest/gtest.h> #include "ApkResources.h" #include "DedupResourceVerifyHelper.h" #include "utils/Serialize.h" namespac...
/* * 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 <gtest/gtest.h> #include "ApkResources.h" #include "FullyQualifyLayoutsVerifyHelper.h" #include "androidfw/ResourceType...
/* * 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 <gtest/gtest.h> #include "ApkResources.h" #include "ObfuscateResourcesVerifyHelper.h" TEST_F(PreVerify, ApkObfuscateRe...
/* * 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 <gtest/gtest.h> #include <set> #include "ApkResources.h" #include "ObfuscateXmlVerifyHelper.h" #include "androidfw/Res...
/* * 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 <gtest/gtest.h> #include "ApkResources.h" #include "OptimizeResourcesVerifyImpl.h" TEST_F(PreVerify, ApkOptimizeResour...
/* * 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 <gtest/gtest.h> #include "ApkResources.h" #include "OptimizeResourcesVerifyImpl.h" TEST_F(PreVerify, ApkOptimizeResour...
/* * 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 <gtest/gtest.h> #include "ReachableServiceLoaderVerifyImpl.h" TEST_F(PreVerify, ApkReachableServiceLoaderTest) { ver...
/* * 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 "Styles.h" #include <gtest/gtest.h> #include "ApkResources.h" #include "ResourceValueMergingPassVerifyImpl.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 <gtest/gtest.h> #include "ApkResources.h" #include "RedexResources.h" #include "SplitResourceTablesVerifyImpl.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. */ #include <gtest/gtest.h> #include "BundleResources.h" #include "DedupResourceVerifyHelper.h" TEST_F(PreVerify, BundleDedupResou...
/* * 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 <google/protobuf/io/coded_stream.h> #include <google/protobuf/message.h> #include <gtest/gtest.h> #include "BundleResou...
/* * 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 <gtest/gtest.h> #include "BundleResources.h" #include "ObfuscateResourcesVerifyHelper.h" TEST_F(PreVerify, BundleObfus...
/* * 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 <google/protobuf/io/coded_stream.h> #include <google/protobuf/message.h> #include <gtest/gtest.h> #include <set> #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. */ #include <gtest/gtest.h> #include "BundleResources.h" #include "OptimizeResourcesVerifyImpl.h" TEST_F(PreVerify, BundleOptimize...
/* * 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 <gtest/gtest.h> #include "BundleResources.h" #include "OptimizeResourcesVerifyImpl.h" TEST_F(PreVerify, BundleOptimize...
/* * 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 <gtest/gtest.h> #include "ReachableServiceLoaderVerifyImpl.h" TEST_F(PreVerify, BundleReachableServiceLoaderTest) { ...
/* * 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 <gtest/gtest.h> #include "VerifyUtil.h" TEST_F(PreVerify, BundleReachTest) { EXPECT_NE(nullptr, find_cla...
/* * 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 <gtest/gtest.h> #include "BundleResources.h" #include "ResourceValueMergingPassVerifyImpl.h" #include "verify/VerifyUti...
/* * 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 <gtest/gtest.h> #include "BundleResources.h" #include "RedexResources.h" #include "SplitResourceTablesVerifyImpl.h" #in...
/* * 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 <gtest/gtest.h> #include <string> #include "ControlFlow.h" #include "VerifyUtil.h" static bool HasCatchBlock(IRCode* 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 "Show.h" #include "verify/VerifyUtil.h" TEST_F(PostVerify, MergerClassGenerated) { auto* cls_a = find_class_named(cla...
/* * 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 <gtest/gtest.h> #include "verify/VerifyUtil.h" TEST_F(PostVerify, MergeablesRemoval) { auto* sa1 = find_class_named(...
/* * 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 "Show.h" #include "verify/VerifyUtil.h" TEST_F(PostVerify, MergeablesRemoval) { auto* s1 = find_class_named(classes, ...
/* * 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 "Show.h" #include "verify/VerifyUtil.h" TEST_F(PostVerify, SinkCommonCtorInvocation) { auto* cls_coroutine_1 = find_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 <gtest/gtest.h> #include "verify/VerifyUtil.h" TEST_F(PostVerify, MergeablesRemoval) { auto* sa1 = find_class_named(...
/* * 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/regex.hpp> #include "Show.h" #include "verify/VerifyUtil.h" TEST_F(PostVerify, MergeablesRemoval) { auto* cls...
/* * 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 <gmock/gmock.h> #include "verify/VerifyUtil.h" using namespace testing; namespace { size_t count_switches(DexMethod* ...
/* * 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 <gtest/gtest.h> #include "DexAnnotation.h" #include "RedexResources.h" #include "verify/VerifyUtil.h" namespace { #def...
/* * 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 <cstdlib> #include <gtest/gtest.h> #include <iostream> #include <memory> #include <string> #include "DexInstruction.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 <algorithm> #include <gtest/gtest.h> #include "DexAnnotation.h" #include "DexClass.h" #include "DexInstruction.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 <functional> #include <gtest/gtest.h> #include <unordered_map> #include <vector> #include "verify/VerifyU...
/* * 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 <algorithm> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "ControlFlow.h" #include "DexClass.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 <boost/algorithm/string/predicate.hpp> #include <gtest/gtest.h> #include "DexClass.h" #include "IRCode.h" #include "Met...
/* * 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 <gtest/gtest.h> #include <string> #include "DexInstruction.h" #include "IRCode.h" #include "Show.h" #include "VerifyUti...
/* * 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 "Show.h" #include "verify/VerifyUtil.h" namespace { constexpr const char* class_null_check = "Lredex/$NullCheck;"; 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 "Resolver.h" #include "Show.h" #include "verify/VerifyUtil.h" namespace { constexpr const char* class_foo = "LFoo;"; } ...
/* * 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 "Resolver.h" #include "Show.h" #include "verify/VerifyUtil.h" namespace { constexpr const char* class_foo = "LFoo;"; } ...
/* * 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 "Resolver.h" #include "verify/VerifyUtil.h" namespace { constexpr const char* class_name = "LKtNonCapturingLambda;"; co...
/* * 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 "Show.h" #include "verify/VerifyUtil.h" // Notes: IntrinsifyNullchecksVerify.cpp checkes null_check can be propertly //...
/* * 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 "VerifyUtil.h" #include <gtest/gtest.h> const char* const CLASS_A = "Lcom/facebook/redextest/A;"; const char* const CLA...
/* * 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 "VerifyUtil.h" #include <gtest/gtest.h> const char* const CLASS_A = "Lcom/facebook/redextest/A;"; const char* const CLA...
/* * 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 <algorithm> #include <gtest/gtest.h> #include "DexClass.h" #include "VerifyUtil.h" TEST_F(PostVerify, DoNotInlineAnnot...
/* * 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 <algorithm> #include <gtest/gtest.h> #include "DexClass.h" #include "DexInstruction.h" #include "VerifyUtil.h" /* * 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 <gtest/gtest.h> #include "DexClass.h" #include "DexInstruction.h" #include "VerifyUtil.h" /* * Check that testWithFin...
/* * 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 <algorithm> #include <gtest/gtest.h> #include "DexClass.h" #include "DexInstruction.h" #include "Show.h" #include "Veri...
/* * 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 <gtest/gtest.h> #include <string> #include <vector> #include "RedexResources.h" #include "verify/VerifyUtil.h" inline...
/* * 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 <functional> #include <gtest/gtest.h> #include <set> #include "RedexResources.h" #include "verify/VerifyUtil.h" inline...
/* * 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 "OptimizeEnumCommon.h" #include "MatchFlow.h" std::set<BranchCase> collect_const_branch_cases(DexMethodRef* method_ref...
/* * 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 <set> #include "DexClass.h" // The Java input only uses switches, but in general they may transformed //...
/* * 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 "Show.h" #include "verify/OptimizeEnumCommon.h" #include "verify/VerifyUtil.h" namespace { constexpr const char* FOO =...
/* * 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 "Debug.h" #include "DexInstruction.h" #include "verify/OptimizeEnumCommon.h" #include "verify/VerifyUtil.h" namespace {...