Skip to content

Commit

Permalink
Merge branch 'development' into f-swift_code_style
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianbs96 authored Jul 6, 2023
2 parents 510e5f1 + 349656f commit beecb60
Show file tree
Hide file tree
Showing 156 changed files with 1,289 additions and 498 deletions.
17 changes: 7 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,13 @@ include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
# Disable clang-tidy for the external projects
set(CMAKE_CXX_CLANG_TIDY "")

# Nlohmann JSON

set(JSON_BuildTests OFF)
set(JSON_Install ON)
add_subdirectory(external/json)
include_directories(SYSTEM external/json/include/)

# We need to work around the behavior of nlohmann_json_schema_validator and nlohmann_json here
# The validator needs the json part, but if you include it, the library of nlohmann_json_schema_validator
# is not installed, leading to linker error. But just including nlohmann_json is not sufficient, as
Expand All @@ -202,25 +209,15 @@ set(CMAKE_CXX_CLANG_TIDY "")
#Override option of nlohmann_json_schema_validator to not build its tests
set(BUILD_TESTS OFF CACHE BOOL "Build json-schema-validator-tests")

# Make nlohmann_json_schema_validator happy by telling it how to find the single include of nlohmann_json
include_directories(SYSTEM external/json/single_include/)

if (PHASAR_IN_TREE)
set_property(GLOBAL APPEND PROPERTY LLVM_EXPORTS nlohmann_json_schema_validator)
endif()

set(nlohmann_json_DIR ${PHASAR_SRC_DIR}/external/json/single_include/)

# Json Schema Validator
set(JSON_VALIDATOR_INSTALL ON)
add_subdirectory(external/json-schema-validator)
include_directories(SYSTEM external/json-schema-validator/src/)

# now we finally add the subdirectory
set(JSON_BuildTests OFF)
set(JSON_Install ON)
add_subdirectory(external/json)

# Googletest
if (NOT PHASAR_IN_TREE)
add_subdirectory(external/googletest EXCLUDE_FROM_ALL)
Expand Down
2 changes: 1 addition & 1 deletion external/googletest
Submodule googletest updated 237 files
2 changes: 1 addition & 1 deletion external/json
Submodule json updated 1123 files
2 changes: 1 addition & 1 deletion external/json-schema-validator
Submodule json-schema-validator updated 80 files
+83 −0 .github/workflows/github-actions.yml
+10 −1 .travis.yml
+66 −94 CMakeLists.txt
+106 −52 README.md
+54 −0 app/format.cpp
+1 −1 app/json-schema-validate.cpp
+539 −0 cmake/HunterGate.cmake
+25 −11 conanfile.py
+7 −11 nlohmann_json_schema_validatorConfig.cmake.in
+4 −4 src/json-patch.cpp
+1 −1 src/json-uri.cpp
+297 −103 src/json-validator.cpp
+14 −14 src/nlohmann/json-schema.hpp
+830 −0 src/smtp-address-validator.cpp
+34 −0 src/smtp-address-validator.hpp
+188 −95 src/string-format-check.cpp
+18 −0 test/CMakeLists.txt
+3 −5 test/JSON-Schema-Test-Suite/CMakeLists.txt
+46 −1 test/JSON-Schema-Test-Suite/json-schema-test.cpp
+3 −0 test/JSON-Schema-Test-Suite/remotes/baseUriChange/folderInteger.json
+3 −0 test/JSON-Schema-Test-Suite/remotes/baseUriChangeFolder/folderInteger.json
+3 −0 test/JSON-Schema-Test-Suite/remotes/baseUriChangeFolderInSubschema/folderInteger.json
+11 −0 test/JSON-Schema-Test-Suite/remotes/ref-and-definitions.json
+11 −0 test/JSON-Schema-Test-Suite/remotes/ref-and-defs.json
+65 −3 test/JSON-Schema-Test-Suite/tests/draft7/additionalItems.json
+1 −1 test/JSON-Schema-Test-Suite/tests/draft7/additionalProperties.json
+50 −0 test/JSON-Schema-Test-Suite/tests/draft7/allOf.json
+100 −0 test/JSON-Schema-Test-Suite/tests/draft7/const.json
+50 −0 test/JSON-Schema-Test-Suite/tests/draft7/contains.json
+30 −0 test/JSON-Schema-Test-Suite/tests/draft7/default.json
+2 −8 test/JSON-Schema-Test-Suite/tests/draft7/definitions.json
+26 −0 test/JSON-Schema-Test-Suite/tests/draft7/enum.json
+136 −136 test/JSON-Schema-Test-Suite/tests/draft7/format.json
+53 −0 test/JSON-Schema-Test-Suite/tests/draft7/id.json
+70 −0 test/JSON-Schema-Test-Suite/tests/draft7/if-then-else.json
+36 −0 test/JSON-Schema-Test-Suite/tests/draft7/infinite-loop-detection.json
+16 −0 test/JSON-Schema-Test-Suite/tests/draft7/maxProperties.json
+11 −0 test/JSON-Schema-Test-Suite/tests/draft7/multipleOf.json
+11 −23 test/JSON-Schema-Test-Suite/tests/draft7/optional/bignum.json
+96 −17 test/JSON-Schema-Test-Suite/tests/draft7/optional/ecmascript-regex.json
+13 −0 test/JSON-Schema-Test-Suite/tests/draft7/optional/float-overflow.json
+20 −0 test/JSON-Schema-Test-Suite/tests/draft7/optional/format/date-time.json
+171 −1 test/JSON-Schema-Test-Suite/tests/draft7/optional/format/date.json
+35 −0 test/JSON-Schema-Test-Suite/tests/draft7/optional/format/email.json
+35 −0 test/JSON-Schema-Test-Suite/tests/draft7/optional/format/hostname.json
+10 −0 test/JSON-Schema-Test-Suite/tests/draft7/optional/format/idn-email.json
+246 −0 test/JSON-Schema-Test-Suite/tests/draft7/optional/format/idn-hostname.json
+21 −0 test/JSON-Schema-Test-Suite/tests/draft7/optional/format/ipv4.json
+135 −0 test/JSON-Schema-Test-Suite/tests/draft7/optional/format/ipv6.json
+1 −1 test/JSON-Schema-Test-Suite/tests/draft7/optional/format/iri.json
+15 −0 test/JSON-Schema-Test-Suite/tests/draft7/optional/format/relative-json-pointer.json
+146 −1 test/JSON-Schema-Test-Suite/tests/draft7/optional/format/time.json
+6 −1 test/JSON-Schema-Test-Suite/tests/draft7/optional/format/uri.json
+85 −0 test/JSON-Schema-Test-Suite/tests/draft7/optional/format/uuid.json
+146 −0 test/JSON-Schema-Test-Suite/tests/draft7/optional/unicode.json
+0 −15 test/JSON-Schema-Test-Suite/tests/draft7/optional/zeroTerminatedFloats.json
+5 −0 test/JSON-Schema-Test-Suite/tests/draft7/patternProperties.json
+29 −0 test/JSON-Schema-Test-Suite/tests/draft7/propertyNames.json
+202 −33 test/JSON-Schema-Test-Suite/tests/draft7/ref.json
+28 −3 test/JSON-Schema-Test-Suite/tests/draft7/refRemote.json
+41 −1 test/JSON-Schema-Test-Suite/tests/draft7/uniqueItems.json
+56 −0 test/JSON-Schema-Test-Suite/tests/draft7/unknownKeyword.json
+175 −0 test/binary-validation.cpp
+69 −0 test/issue-117-format-error.cpp
+13 −0 test/issue-143/CMakeLists.txt
+4 −0 test/issue-143/instance-fail-1.json
+4 −0 test/issue-143/instance-fail-a.json
+4 −0 test/issue-143/instance.json
+21 −0 test/issue-143/schema.json
+93 −0 test/issue-149-entry-selection.cpp
+109 −0 test/issue-189-default-values.cpp
+3 −0 test/issue-209/CMakeLists.txt
+8 −0 test/issue-209/color.schema.json
+16 −0 test/issue-209/entities.schema.json
+10 −0 test/issue-209/instance.json
+133 −59 test/issue-25-default-values.cpp
+2 −1 test/issue-98.cpp
+18 −1 test/string-format-check-test.cpp
+1 −1 test/test-pipe-in.sh
+2 −2 test/uri.cpp
4 changes: 2 additions & 2 deletions include/phasar/AnalysisStrategy/AnalysisSetup.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* Philipp Schubert and others
*****************************************************************************/

#ifndef PHASAR_PHASARLLVM_ANALYSISSTRATEGY_ANALYSISSETUP_H_
#define PHASAR_PHASARLLVM_ANALYSISSTRATEGY_ANALYSISSETUP_H_
#ifndef PHASAR_ANALYSISSTRATEGY_ANALYSISSETUP_H
#define PHASAR_ANALYSISSTRATEGY_ANALYSISSETUP_H

#include "phasar/PhasarLLVM/ControlFlow/LLVMBasedICFG.h"
#include "phasar/PhasarLLVM/Pointer/LLVMAliasSet.h"
Expand Down
4 changes: 2 additions & 2 deletions include/phasar/AnalysisStrategy/DemandDrivenAnalysis.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* Philipp Schubert and others
*****************************************************************************/

#ifndef PHASAR_PHASARLLVM_ANALYSISSTRATEGY_DEMANDDRIVENANALYSIS_H_
#define PHASAR_PHASARLLVM_ANALYSISSTRATEGY_DEMANDDRIVENANALYSIS_H_
#ifndef PHASAR_ANALYSISSTRATEGY_DEMANDDRIVENANALYSIS_H
#define PHASAR_ANALYSISSTRATEGY_DEMANDDRIVENANALYSIS_H

namespace psr {

Expand Down
4 changes: 2 additions & 2 deletions include/phasar/AnalysisStrategy/IncrementalUpdateAnalysis.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* Philipp Schubert and others
*****************************************************************************/

#ifndef PHASAR_PHASARLLVM_ANALYSISSTRATEGY_INCREMENTALUPDATEANALYSIS_H_
#define PHASAR_PHASARLLVM_ANALYSISSTRATEGY_INCREMENTALUPDATEANALYSIS_H_
#ifndef PHASAR_ANALYSISSTRATEGY_INCREMENTALUPDATEANALYSIS_H
#define PHASAR_ANALYSISSTRATEGY_INCREMENTALUPDATEANALYSIS_H

namespace psr {

Expand Down
4 changes: 2 additions & 2 deletions include/phasar/AnalysisStrategy/ModuleWiseAnalysis.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* Philipp Schubert and others
*****************************************************************************/

#ifndef PHASAR_PHASARLLVM_ANALYSISSTRATEGY_MODULEWISEANALYSIS_H_
#define PHASAR_PHASARLLVM_ANALYSISSTRATEGY_MODULEWISEANALYSIS_H_
#ifndef PHASAR_ANALYSISSTRATEGY_MODULEWISEANALYSIS_H
#define PHASAR_ANALYSISSTRATEGY_MODULEWISEANALYSIS_H

namespace psr {

Expand Down
4 changes: 2 additions & 2 deletions include/phasar/AnalysisStrategy/Strategies.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* Philipp Schubert and others
*****************************************************************************/

#ifndef PHASAR_PHASARLLVM_ANALYSISSTRATEGY_STRATEGIES_H
#define PHASAR_PHASARLLVM_ANALYSISSTRATEGY_STRATEGIES_H
#ifndef PHASAR_ANALYSISSTRATEGY_STRATEGIES_H
#define PHASAR_ANALYSISSTRATEGY_STRATEGIES_H

#include "llvm/ADT/StringRef.h"
#include "llvm/Support/raw_ostream.h"
Expand Down
4 changes: 2 additions & 2 deletions include/phasar/AnalysisStrategy/VariationalAnalysis.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* Philipp Schubert and others
*****************************************************************************/

#ifndef PHASAR_PHASARLLVM_ANALYSISSTRATEGY_VARIATIONALANALYSIS_H_
#define PHASAR_PHASARLLVM_ANALYSISSTRATEGY_VARIATIONALANALYSIS_H_
#ifndef PHASAR_ANALYSISSTRATEGY_VARIATIONALANALYSIS_H
#define PHASAR_ANALYSISSTRATEGY_VARIATIONALANALYSIS_H

#include "phasar/AnalysisStrategy/AnalysisSetup.h"

Expand Down
6 changes: 3 additions & 3 deletions include/phasar/ControlFlow/CFGBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* Fabian Schiebel and others
*****************************************************************************/

#ifndef PHASAR_PHASARLLVM_CONTROLFLOW_CFGBASE_H
#define PHASAR_PHASARLLVM_CONTROLFLOW_CFGBASE_H
#ifndef PHASAR_CONTROLFLOW_CFGBASE_H
#define PHASAR_CONTROLFLOW_CFGBASE_H

#include "phasar/Utils/ByRef.h"
#include "phasar/Utils/TypeTraits.h"
Expand Down Expand Up @@ -150,4 +150,4 @@ constexpr bool is_cfg_v = is_crtp_base_of_v<CFGBase, ICF>

} // namespace psr

#endif // PHASAR_PHASARLLVM_CONTROLFLOW_CFGBASE_H
#endif // PHASAR_CONTROLFLOW_CFGBASE_H
6 changes: 3 additions & 3 deletions include/phasar/ControlFlow/CallGraph.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* Fabian Schiebel and others
*****************************************************************************/

#ifndef PHASAR_PHASARLLVM_CONTROLFLOW_CALLGRAPH_H
#define PHASAR_PHASARLLVM_CONTROLFLOW_CALLGRAPH_H
#ifndef PHASAR_CONTROLFLOW_CALLGRAPH_H
#define PHASAR_CONTROLFLOW_CALLGRAPH_H

#include "phasar/ControlFlow/CallGraphBase.h"
#include "phasar/Utils/ByRef.h"
Expand Down Expand Up @@ -301,4 +301,4 @@ extern template class psr::CallGraph<const llvm::Instruction *,
extern template class psr::CallGraphBuilder<const llvm::Instruction *,
const llvm::Function *>;

#endif // PHASAR_PHASARLLVM_CONTROLFLOW_CALLGRAPH_H
#endif // PHASAR_CONTROLFLOW_CALLGRAPH_H
6 changes: 3 additions & 3 deletions include/phasar/ControlFlow/CallGraphAnalysisType.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* Philipp Schubert, Fabian Schiebel and others
*****************************************************************************/

#ifndef PHASAR_PHASARLLVM_CALLGRAPHANALYSISTYPE_H
#define PHASAR_PHASARLLVM_CALLGRAPHANALYSISTYPE_H
#ifndef PHASAR_CONTROLFLOW_CALLGRAPHANALYSISTYPE_H
#define PHASAR_CONTROLFLOW_CALLGRAPHANALYSISTYPE_H

#include "llvm/ADT/StringRef.h"
#include "llvm/Support/raw_ostream.h"
Expand All @@ -30,4 +30,4 @@ llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, CallGraphAnalysisType CGA);

} // namespace psr

#endif // PHASAR_PHASARLLVM_CALLGRAPHANALYSISTYPE_H
#endif // PHASAR_CONTROLFLOW_CALLGRAPHANALYSISTYPE_H
6 changes: 3 additions & 3 deletions include/phasar/ControlFlow/CallGraphBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* Fabian Schiebel and others
*****************************************************************************/

#ifndef PHASAR_PHASARLLVM_CONTROLFLOW_CALLGRAPHBASE_H
#define PHASAR_PHASARLLVM_CONTROLFLOW_CALLGRAPHBASE_H
#ifndef PHASAR_CONTROLFLOW_CALLGRAPHBASE_H
#define PHASAR_CONTROLFLOW_CALLGRAPHBASE_H

#include "phasar/Utils/ByRef.h"
#include "phasar/Utils/TypeTraits.h"
Expand Down Expand Up @@ -56,4 +56,4 @@ template <typename Derived> class CallGraphBase {
};
} // namespace psr

#endif // PHASAR_PHASARLLVM_CONTROLFLOW_CALLGRAPHBASE_H
#endif // PHASAR_CONTROLFLOW_CALLGRAPHBASE_H
6 changes: 3 additions & 3 deletions include/phasar/ControlFlow/ICFGBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* Fabian Schiebel and others
*****************************************************************************/

#ifndef PHASAR_PHASARLLVM_CONTROLFLOW_ICFGBASE_H
#define PHASAR_PHASARLLVM_CONTROLFLOW_ICFGBASE_H
#ifndef PHASAR_CONTROLFLOW_ICFGBASE_H
#define PHASAR_CONTROLFLOW_ICFGBASE_H

#include "phasar/ControlFlow/CFGBase.h"
#include "phasar/ControlFlow/CallGraphBase.h"
Expand Down Expand Up @@ -134,4 +134,4 @@ constexpr bool is_icfg_v = is_crtp_base_of_v<ICFGBase, ICF>

} // namespace psr

#endif // PHASAR_PHASARLLVM_CONTROLFLOW_ICFGBASE_H
#endif // PHASAR_CONTROLFLOW_ICFGBASE_H
6 changes: 3 additions & 3 deletions include/phasar/ControlFlow/SpecialMemberFunctionType.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* Author: philipp
*/

#ifndef PHASAR_PHASARLLVM_SPECIALMEMBERFUNCTIONTYPE_H
#define PHASAR_PHASARLLVM_SPECIALMEMBERFUNCTIONTYPE_H
#ifndef PHASAR_CONTROLFLOW_SPECIALMEMBERFUNCTIONTYPE_H
#define PHASAR_CONTROLFLOW_SPECIALMEMBERFUNCTIONTYPE_H

#include "llvm/ADT/StringRef.h"

Expand All @@ -40,4 +40,4 @@ llvm::raw_ostream &operator<<(llvm::raw_ostream &OS,
SpecialMemberFunctionType SMFT);
} // namespace psr

#endif // PHASAR_PHASARLLVM_SPECIALMEMBERFUNCTIONTYPE_H
#endif // PHASAR_CONTROLFLOW_SPECIALMEMBERFUNCTIONTYPE_H
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* Philipp Schubert and others
*****************************************************************************/

#ifndef PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_DEFAULTEDGEFUNCTIONSINGLETONCACHE_H
#define PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_DEFAULTEDGEFUNCTIONSINGLETONCACHE_H
#ifndef PHASAR_DATAFLOW_IFDSIDE_DEFAULTEDGEFUNCTIONSINGLETONCACHE_H
#define PHASAR_DATAFLOW_IFDSIDE_DEFAULTEDGEFUNCTIONSINGLETONCACHE_H

#include "phasar/DataFlow/IfdsIde/EdgeFunction.h"
#include "phasar/DataFlow/IfdsIde/EdgeFunctionSingletonCache.h"
Expand Down Expand Up @@ -68,8 +68,9 @@ class DefaultEdgeFunctionSingletonCache
if (LHS == RHS) {
return true;
}
auto Empty = llvm::DenseMapInfo<const EdgeFunctionTy *>::getEmptyKey();
auto Tombstone =
const auto *Empty =
llvm::DenseMapInfo<const EdgeFunctionTy *>::getEmptyKey();
const auto *Tombstone =
llvm::DenseMapInfo<const EdgeFunctionTy *>::getTombstoneKey();
if (LHS == Empty || LHS == Tombstone || RHS == Empty ||
RHS == Tombstone) {
Expand Down Expand Up @@ -114,4 +115,4 @@ class DefaultEdgeFunctionSingletonCache<

} // namespace psr

#endif // PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_DEFAULTEDGEFUNCTIONSINGLETONCACHE_H
#endif // PHASAR_DATAFLOW_IFDSIDE_DEFAULTEDGEFUNCTIONSINGLETONCACHE_H
8 changes: 4 additions & 4 deletions include/phasar/DataFlow/IfdsIde/EdgeFunction.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* Fabian Schiebel and others
*****************************************************************************/

#ifndef PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_EDGEFUNCTION_H
#define PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_EDGEFUNCTION_H
#ifndef PHASAR_DATAFLOW_IFDSIDE_EDGEFUNCTION_H
#define PHASAR_DATAFLOW_IFDSIDE_EDGEFUNCTION_H

#include "phasar/DataFlow/IfdsIde/EdgeFunctionSingletonCache.h"
#include "phasar/Utils/ByRef.h"
Expand Down Expand Up @@ -300,7 +300,7 @@ class [[clang::trivial_abi]] EdgeFunction final : EdgeFunctionBase {
new (&Ret) ConcreteEF(std::move(EF.EF));
return Ret;
} else {
if (auto Mem = EF.Cache->lookup(EF.EF)) {
if (const auto *Mem = EF.Cache->lookup(EF.EF)) {
return static_cast<const RefCounted<ConcreteEF> *>(Mem);
}

Expand Down Expand Up @@ -804,4 +804,4 @@ struct CastInfo<To, const psr::EdgeFunction<L>>
#endif
} // namespace llvm

#endif // PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_EDGEFUNCTION_H
#endif // PHASAR_DATAFLOW_IFDSIDE_EDGEFUNCTION_H
6 changes: 3 additions & 3 deletions include/phasar/DataFlow/IfdsIde/EdgeFunctionSingletonCache.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* Philipp Schubert and others
*****************************************************************************/

#ifndef PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_EDGEFUNCTIONSINGLETONCACHE_H
#define PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_EDGEFUNCTIONSINGLETONCACHE_H
#ifndef PHASAR_DATAFLOW_IFDSIDE_EDGEFUNCTIONSINGLETONCACHE_H
#define PHASAR_DATAFLOW_IFDSIDE_EDGEFUNCTIONSINGLETONCACHE_H

#include "phasar/Utils/ByRef.h"

Expand Down Expand Up @@ -72,4 +72,4 @@ CachedEdgeFunction(EdgeFunctionTy, EdgeFunctionSingletonCache<EdgeFunctionTy> *)

} // namespace psr

#endif // PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_EDGEFUNCTIONSINGLETONCACHE_H
#endif // PHASAR_DATAFLOW_IFDSIDE_EDGEFUNCTIONSINGLETONCACHE_H
6 changes: 3 additions & 3 deletions include/phasar/DataFlow/IfdsIde/EdgeFunctionUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* Philipp Schubert, Fabian Schiebel and others
*****************************************************************************/

#ifndef PHASAR_DATAFLOW_IFDSIDE_EDGEFUNCTIONUTILS_H_
#define PHASAR_DATAFLOW_IFDSIDE_EDGEFUNCTIONUTILS_H_
#ifndef PHASAR_DATAFLOW_IFDSIDE_EDGEFUNCTIONUTILS_H
#define PHASAR_DATAFLOW_IFDSIDE_EDGEFUNCTIONUTILS_H

#include "phasar/DataFlow/IfdsIde/EdgeFunction.h"
#include "phasar/Utils/ByRef.h"
Expand Down Expand Up @@ -473,4 +473,4 @@ JoinEdgeFunction<L, N>::join(EdgeFunctionRef<JoinEdgeFunction> This,

} // namespace psr

#endif // PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_EDGEFUNCTIONUTILS_H
#endif // PHASAR_DATAFLOW_IFDSIDE_EDGEFUNCTIONUTILS_H
4 changes: 2 additions & 2 deletions include/phasar/DataFlow/IfdsIde/EdgeFunctions.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* Author: pdschbrt
*/

#ifndef PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_EDGEFUNCTIONS_H_
#define PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_EDGEFUNCTIONS_H_
#ifndef PHASAR_DATAFLOW_IFDSIDE_EDGEFUNCTIONS_H
#define PHASAR_DATAFLOW_IFDSIDE_EDGEFUNCTIONS_H

#include "phasar/DataFlow/IfdsIde/EdgeFunction.h"
#include "phasar/Utils/ByRef.h"
Expand Down
4 changes: 2 additions & 2 deletions include/phasar/DataFlow/IfdsIde/FlowFunctions.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* Author: pdschbrt
*/

#ifndef PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_FLOWFUNCTIONS_H_
#define PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_FLOWFUNCTIONS_H_
#ifndef PHASAR_DATAFLOW_IFDSIDE_FLOWFUNCTIONS_H
#define PHASAR_DATAFLOW_IFDSIDE_FLOWFUNCTIONS_H

#include "phasar/Utils/TypeTraits.h"

Expand Down
2 changes: 1 addition & 1 deletion include/phasar/DataFlow/IfdsIde/IDETabulationProblem.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class IDETabulationProblem : public FlowFunctions<AnalysisDomainTy, Container>,
assert(IRDB != nullptr);
}

virtual ~IDETabulationProblem() = default;
~IDETabulationProblem() override = default;

/// Returns an edge function that represents the top element of the analysis.
virtual EdgeFunction<l_t> allTopFunction() = 0;
Expand Down
4 changes: 2 additions & 2 deletions include/phasar/DataFlow/IfdsIde/IFDSIDESolverConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* Author: pdschbrt
*/

#ifndef PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_IFDSIDESOLVERCONFIG_H_
#define PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_IFDSIDESOLVERCONFIG_H_
#ifndef PHASAR_DATAFLOW_IFDSIDE_IFDSIDESOLVERCONFIG_H
#define PHASAR_DATAFLOW_IFDSIDE_IFDSIDESOLVERCONFIG_H

#include "phasar/Utils/EnumFlags.h"

Expand Down
4 changes: 2 additions & 2 deletions include/phasar/DataFlow/IfdsIde/IFDSTabulationProblem.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* Philipp Schubert, Fabian Schiebel and others
*****************************************************************************/

#ifndef PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_IFDSTABULATIONPROBLEM_H
#define PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_IFDSTABULATIONPROBLEM_H
#ifndef PHASAR_DATAFLOW_IFDSIDE_IFDSTABULATIONPROBLEM_H
#define PHASAR_DATAFLOW_IFDSIDE_IFDSTABULATIONPROBLEM_H

#include "phasar/DataFlow/IfdsIde/EdgeFunctionUtils.h"
#include "phasar/DataFlow/IfdsIde/IDETabulationProblem.h"
Expand Down
8 changes: 4 additions & 4 deletions include/phasar/DataFlow/IfdsIde/InitialSeeds.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* Philipp Schubert and others
*****************************************************************************/

#ifndef PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_INITIALSEEDS_H
#define PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_INITIALSEEDS_H
#ifndef PHASAR_DATAFLOW_IFDSIDE_INITIALSEEDS_H
#define PHASAR_DATAFLOW_IFDSIDE_INITIALSEEDS_H

#include "phasar/Domain/BinaryDomain.h"
#include "phasar/Utils/TypeTraits.h"
Expand All @@ -32,7 +32,7 @@ template <typename N, typename D, typename L> class InitialSeeds {
InitialSeeds(const std::map<N, std::set<D>> &Seeds) {
for (const auto &[Node, Facts] : Seeds) {
for (const auto &Fact : Facts) {
this->Seeds[Node][Fact] = BinaryDomain::TOP;
this->Seeds[Node][Fact] = BinaryDomain::BOTTOM;
}
}
}
Expand All @@ -42,7 +42,7 @@ template <typename N, typename D, typename L> class InitialSeeds {
template <typename LL = L,
typename = std::enable_if_t<std::is_same_v<LL, BinaryDomain>>>
void addSeed(N Node, D Fact) {
addSeed(Node, Fact, BinaryDomain::TOP);
addSeed(Node, Fact, BinaryDomain::BOTTOM);
}

void addSeed(N Node, D Fact, L Value) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* Philipp Schubert and others
*****************************************************************************/

#ifndef PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_FLOWEDGEFUNCTIONCACHE_H_
#define PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_FLOWEDGEFUNCTIONCACHE_H_
#ifndef PHASAR_DATAFLOW_IFDSIDE_SOLVER_FLOWEDGEFUNCTIONCACHE_H
#define PHASAR_DATAFLOW_IFDSIDE_SOLVER_FLOWEDGEFUNCTIONCACHE_H

#include "phasar/DataFlow/IfdsIde/EdgeFunctions.h"
#include "phasar/DataFlow/IfdsIde/IDETabulationProblem.h"
Expand Down
Loading

0 comments on commit beecb60

Please sign in to comment.