Skip to content

Commit

Permalink
Remove confusing copyright notes + fix header guards for newly added …
Browse files Browse the repository at this point in the history
…files
  • Loading branch information
fabianbs96 committed Nov 8, 2024
1 parent 66d9138 commit 15ab411
Show file tree
Hide file tree
Showing 20 changed files with 49 additions and 188 deletions.
9 changes: 0 additions & 9 deletions include/phasar/DataFlow/IfdsIde/GenericFlowFunction.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
/******************************************************************************
* Copyright (c) 2023 Fabian Schiebel.
* All rights reserved. This program and the accompanying materials are made
* available under the terms of LICENSE.txt.
*
* Contributors:
* Fabian Schiebel and others
*****************************************************************************/

#ifndef PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_GENERICFLOWFUNCTION_H
#define PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_GENERICFLOWFUNCTION_H

Expand Down
5 changes: 4 additions & 1 deletion include/phasar/DataFlow/IfdsIde/Solver/Compressor.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
#ifndef PHASAR_DATAFLOW_IFDSIDE_SOLVER_COMPRESSOR_H
#define PHASAR_DATAFLOW_IFDSIDE_SOLVER_COMPRESSOR_H

#include "phasar/DB/ProjectIRDBBase.h"
#include "phasar/Utils/ByRef.h"
Expand Down Expand Up @@ -186,3 +187,5 @@ struct ValCompressorTraits<T, std::enable_if_t<CanEfficientlyPassByValue<T>>> {
};

} // namespace psr

#endif // PHASAR_DATAFLOW_IFDSIDE_SOLVER_COMPRESSOR_H
6 changes: 3 additions & 3 deletions include/phasar/DataFlow/IfdsIde/Solver/ESGEdgeKind.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#ifndef PHASAR_DATAFLOW_IFDSIDE_SOLVER_ESGEDGEKIND_H
#define PHASAR_DATAFLOW_IFDSIDE_SOLVER_ESGEDGEKIND_H

/******************************************************************************
* Copyright (c) 2022 Philipp Schubert.
* All rights reserved. This program and the accompanying materials are made
Expand All @@ -7,9 +10,6 @@
* Fabian Schiebel and others
*****************************************************************************/

#ifndef PHASAR_DATAFLOW_IFDSIDE_SOLVER_ESGEDGEKIND_H
#define PHASAR_DATAFLOW_IFDSIDE_SOLVER_ESGEDGEKIND_H

namespace psr {
enum class ESGEdgeKind { Normal, Call, CallToRet, SkipUnknownFn, Ret, Summary };

Expand Down
13 changes: 2 additions & 11 deletions include/phasar/DataFlow/IfdsIde/Solver/EdgeFunctionCache.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
#ifndef PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_SOLVER_EDGEFUNCTIONCACHE_H
#define PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_SOLVER_EDGEFUNCTIONCACHE_H

/******************************************************************************
* Copyright (c) 2022 Fabian Schiebel.
* All rights reserved. This program and the accompanying materials are made
* available under the terms of LICENSE.txt.
*
* Contributors:
* Fabian Schiebel
*****************************************************************************/
#ifndef PHASAR_DATAFLOW_IFDSIDE_SOLVER_EDGEFUNCTIONCACHE_H
#define PHASAR_DATAFLOW_IFDSIDE_SOLVER_EDGEFUNCTIONCACHE_H

#include "phasar/DataFlow/IfdsIde/EdgeFunctions.h"
#include "phasar/DataFlow/IfdsIde/Solver/EdgeFunctionCacheStats.h"
Expand Down
13 changes: 2 additions & 11 deletions include/phasar/DataFlow/IfdsIde/Solver/EdgeFunctionCacheStats.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
#ifndef PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_SOLVER_EDGEFUNCTIONCACHESTATS_H
#define PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_SOLVER_EDGEFUNCTIONCACHESTATS_H

/******************************************************************************
* Copyright (c) 2022 Fabian Schiebel.
* All rights reserved. This program and the accompanying materials are made
* available under the terms of LICENSE.txt.
*
* Contributors:
* Fabian Schiebel
*****************************************************************************/
#ifndef PHASAR_DATAFLOW_IFDSIDE_SOLVER_EDGEFUNCTIONCACHESTATS_H
#define PHASAR_DATAFLOW_IFDSIDE_SOLVER_EDGEFUNCTIONCACHESTATS_H

#include <cstddef>

Expand Down
12 changes: 2 additions & 10 deletions include/phasar/DataFlow/IfdsIde/Solver/FlowEdgeFunctionCacheNG.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
/******************************************************************************
* Copyright (c) 2017 Philipp Schubert.
* All rights reserved. This program and the accompanying materials are made
* available under the terms of LICENSE.txt.
*
* Contributors:
* Philipp Schubert and others
*****************************************************************************/
#ifndef PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_SOLVER_FLOWEDGEFUNCTIONCACHENG_H
#define PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_SOLVER_FLOWEDGEFUNCTIONCACHENG_H
#ifndef PHASAR_DATAFLOW_IFDSIDE_SOLVER_FLOWEDGEFUNCTIONCACHENG_H
#define PHASAR_DATAFLOW_IFDSIDE_SOLVER_FLOWEDGEFUNCTIONCACHENG_H

#include "phasar/DataFlow/IfdsIde/Solver/EdgeFunctionCache.h"
#include "phasar/DataFlow/IfdsIde/Solver/FlowEdgeFunctionCacheStats.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
#ifndef PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_SOLVER_FLOWEDGEFUNCTIONCACHESTATS_H
#define PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_SOLVER_FLOWEDGEFUNCTIONCACHESTATS_H

/******************************************************************************
* Copyright (c) 2022 Fabian Schiebel.
* All rights reserved. This program and the accompanying materials are made
* available under the terms of LICENSE.txt.
*
* Contributors:
* Fabian Schiebel
*****************************************************************************/
#ifndef PHASAR_DATAFLOW_IFDSIDE_SOLVER_FLOWEDGEFUNCTIONCACHESTATS_H
#define PHASAR_DATAFLOW_IFDSIDE_SOLVER_FLOWEDGEFUNCTIONCACHESTATS_H

#include "phasar/DataFlow/IfdsIde/Solver/EdgeFunctionCacheStats.h"
#include "phasar/DataFlow/IfdsIde/Solver/FlowFunctionCacheStats.h"
Expand Down
13 changes: 2 additions & 11 deletions include/phasar/DataFlow/IfdsIde/Solver/FlowFunctionCache.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
#ifndef PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_SOLVER_FLOWFUNCTIONCACHE_H
#define PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_SOLVER_FLOWFUNCTIONCACHE_H

/******************************************************************************
* Copyright (c) 2022 Fabian Schiebel.
* All rights reserved. This program and the accompanying materials are made
* available under the terms of LICENSE.txt.
*
* Contributors:
* Fabian Schiebel
*****************************************************************************/
#ifndef PHASAR_DATAFLOW_IFDSIDE_SOLVER_FLOWFUNCTIONCACHE_H
#define PHASAR_DATAFLOW_IFDSIDE_SOLVER_FLOWFUNCTIONCACHE_H

#include "phasar/DataFlow/IfdsIde/GenericFlowFunction.h"
#include "phasar/DataFlow/IfdsIde/Solver/FlowFunctionCacheStats.h"
Expand Down
13 changes: 2 additions & 11 deletions include/phasar/DataFlow/IfdsIde/Solver/FlowFunctionCacheStats.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
#ifndef PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_SOLVER_FLOWFUNCTIONCACHESTATS_H
#define PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_SOLVER_FLOWFUNCTIONCACHESTATS_H

/******************************************************************************
* Copyright (c) 2022 Fabian Schiebel.
* All rights reserved. This program and the accompanying materials are made
* available under the terms of LICENSE.txt.
*
* Contributors:
* Fabian Schiebel
*****************************************************************************/
#ifndef PHASAR_DATAFLOW_IFDSIDE_SOLVER_FLOWFUNCTIONCACHESTATS_H
#define PHASAR_DATAFLOW_IFDSIDE_SOLVER_FLOWFUNCTIONCACHESTATS_H

#include <cstddef>

Expand Down
13 changes: 2 additions & 11 deletions include/phasar/DataFlow/IfdsIde/Solver/GenericSolverResults.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
/******************************************************************************
* Copyright (c) 2022 Fabian Schiebel.
* All rights reserved. This program and the accompanying materials are made
* available under the terms of LICENSE.txt.
*
* Contributors:
* Fabian Schiebel and others
*****************************************************************************/

#ifndef PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_SOLVER_GENERICSOLVERRESULTS_H
#define PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_SOLVER_GENERICSOLVERRESULTS_H
#ifndef PHASAR_DATAFLOW_IFDSIDE_SOLVER_GENERICSOLVERRESULTS_H
#define PHASAR_DATAFLOW_IFDSIDE_SOLVER_GENERICSOLVERRESULTS_H

#include "phasar/Domain/BinaryDomain.h"
#include "phasar/Utils/ByRef.h"
Expand Down
13 changes: 2 additions & 11 deletions include/phasar/DataFlow/IfdsIde/Solver/IdBasedSolverResults.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
/******************************************************************************
* Copyright (c) 2022 Fabian Schiebel.
* All rights reserved. This program and the accompanying materials are made
* available under the terms of LICENSE.txt.
*
* Contributors:
* Fabian Schiebel and others
*****************************************************************************/

#ifndef PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_SOLVER_IDBASEDSOLVERRESULTS_H
#define PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_SOLVER_IDBASEDSOLVERRESULTS_H
#ifndef PHASAR_DATAFLOW_IFDSIDE_SOLVER_IDBASEDSOLVERRESULTS_H
#define PHASAR_DATAFLOW_IFDSIDE_SOLVER_IDBASEDSOLVERRESULTS_H

#include "phasar/DataFlow/IfdsIde/Solver/IterativeIDESolverResults.h"
#include "phasar/Utils/ByRef.h"
Expand Down
21 changes: 10 additions & 11 deletions include/phasar/DataFlow/IfdsIde/Solver/IterativeIDESolver.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
#ifndef PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_SOLVER_ITERATIVEIDESOLVER_H
#define PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_SOLVER_ITERATIVEIDESOLVER_H

/******************************************************************************
* Copyright (c) 2022 Fabian Schiebel.
* All rights reserved. This program and the accompanying materials are made
* available under the terms of LICENSE.txt.
*
* Contributors:
* Fabian Schiebel
*****************************************************************************/
#ifndef PHASAR_DATAFLOW_IFDSIDE_SOLVER_ITERATIVEIDESOLVER_H
#define PHASAR_DATAFLOW_IFDSIDE_SOLVER_ITERATIVEIDESOLVER_H

#include "phasar/DataFlow/IfdsIde/EdgeFunctions.h"
#include "phasar/DataFlow/IfdsIde/Solver/Compressor.h"
Expand Down Expand Up @@ -53,6 +44,14 @@

namespace psr {

/// Solves the given IDETabulationProblem as described in the 1996 paper by
/// Sagiv, Horwitz and Reps. To solve the problem, call solve().
///
/// This solver implements the optimizations and the $JF_N$ layout from the
/// paper "Scaling Interprocedural Static Data-Flow Analysis to Large C/C++
/// Applications: An Experience Report"
/// (https://doi.org/10.4230/LIPIcs.ECOOP.2024.36) by Schiebel, Sattler,
/// Schubert, Apel, and Bodden.
template <typename ProblemTy,
typename StaticSolverConfigTy = DefaultIDESolverConfig<ProblemTy>>
class IterativeIDESolver
Expand Down
13 changes: 2 additions & 11 deletions include/phasar/DataFlow/IfdsIde/Solver/IterativeIDESolverBase.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
#ifndef PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_SOLVER_ITERATIVEIDESOLVERBASE_H
#define PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_SOLVER_ITERATIVEIDESOLVERBASE_H

/******************************************************************************
* Copyright (c) 2022 Fabian Schiebel.
* All rights reserved. This program and the accompanying materials are made
* available under the terms of LICENSE.txt.
*
* Contributors:
* Fabian Schiebel
*****************************************************************************/
#ifndef PHASAR_DATAFLOW_IFDSIDE_SOLVER_ITERATIVEIDESOLVERBASE_H
#define PHASAR_DATAFLOW_IFDSIDE_SOLVER_ITERATIVEIDESOLVERBASE_H

#include "phasar/Utils/ByRef.h"
#include "phasar/Utils/EmptyBaseOptimizationUtils.h"
Expand Down
13 changes: 2 additions & 11 deletions include/phasar/DataFlow/IfdsIde/Solver/IterativeIDESolverResults.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
#ifndef PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_SOLVER_ITERATIVEIDESOLVERRESULTS_H
#define PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_SOLVER_ITERATIVEIDESOLVERRESULTS_H

/******************************************************************************
* Copyright (c) 2022 Fabian Schiebel.
* All rights reserved. This program and the accompanying materials are made
* available under the terms of LICENSE.txt.
*
* Contributors:
* Fabian Schiebel
*****************************************************************************/
#ifndef PHASAR_DATAFLOW_IFDSIDE_SOLVER_ITERATIVEIDESOLVERRESULTS_H
#define PHASAR_DATAFLOW_IFDSIDE_SOLVER_ITERATIVEIDESOLVERRESULTS_H

#include "phasar/DataFlow/IfdsIde/Solver/Compressor.h"
#include "phasar/Domain/BinaryDomain.h"
Expand Down
13 changes: 2 additions & 11 deletions include/phasar/DataFlow/IfdsIde/Solver/IterativeIDESolverStats.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
#ifndef PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_SOLVER_ITERATIVEIDESOLVERSTATS_H
#define PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_SOLVER_ITERATIVEIDESOLVERSTATS_H

/******************************************************************************
* Copyright (c) 2022 Fabian Schiebel.
* All rights reserved. This program and the accompanying materials are made
* available under the terms of LICENSE.txt.
*
* Contributors:
* Fabian Schiebel
*****************************************************************************/
#ifndef PHASAR_DATAFLOW_IFDSIDE_SOLVER_ITERATIVEIDESOLVERSTATS_H
#define PHASAR_DATAFLOW_IFDSIDE_SOLVER_ITERATIVEIDESOLVERSTATS_H

#include "phasar/DataFlow/IfdsIde/Solver/FlowEdgeFunctionCacheStats.h"

Expand Down
13 changes: 2 additions & 11 deletions include/phasar/DataFlow/IfdsIde/Solver/StaticIDESolverConfig.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
#ifndef PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_SOLVER_STATICIDESOLVERCONFIG_H
#define PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_SOLVER_STATICIDESOLVERCONFIG_H

/******************************************************************************
* Copyright (c) 2022 Fabian Schiebel.
* All rights reserved. This program and the accompanying materials are made
* available under the terms of LICENSE.txt.
*
* Contributors:
* Fabian Schiebel
*****************************************************************************/
#ifndef PHASAR_DATAFLOW_IFDSIDE_SOLVER_STATICIDESOLVERCONFIG_H
#define PHASAR_DATAFLOW_IFDSIDE_SOLVER_STATICIDESOLVERCONFIG_H

#include "phasar/DataFlow/IfdsIde/IFDSTabulationProblem.h"
#include "phasar/DataFlow/IfdsIde/Solver/FlowEdgeFunctionCacheNG.h"
Expand Down
5 changes: 4 additions & 1 deletion include/phasar/DataFlow/IfdsIde/Solver/WorkListTraits.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
#ifndef PHASAR_DATAFLOW_IFDSIDE_SOLVER_WORKLISTTRAITS_H
#define PHASAR_DATAFLOW_IFDSIDE_SOLVER_WORKLISTTRAITS_H

#include "phasar/DataFlow/IfdsIde/Solver/Compressor.h"

Expand Down Expand Up @@ -117,3 +118,5 @@ template <typename T> class DequeWorkList {
};

} // namespace psr

#endif // PHASAR_DATAFLOW_IFDSIDE_SOLVER_WORKLISTTRAITS_H
14 changes: 2 additions & 12 deletions include/phasar/Utils/EmptyBaseOptimizationUtils.h
Original file line number Diff line number Diff line change
@@ -1,20 +1,10 @@
/******************************************************************************
* Copyright (c) 2022 Fabian Schiebel.
* All rights reserved. This program and the accompanying materials are made
* available under the terms of LICENSE.txt.
*
* Contributors:
* Fabian Schiebel and others
*****************************************************************************/

#ifndef PHASAR_UTILS_EMPTYBASEOPTIMIZATIONUTILS_H_
#define PHASAR_UTILS_EMPTYBASEOPTIMIZATIONUTILS_H_
#ifndef PHASAR_UTILS_EMPTYBASEOPTIMIZATIONUTILS_H
#define PHASAR_UTILS_EMPTYBASEOPTIMIZATIONUTILS_H

#include "phasar/Utils/ByRef.h"

#include "llvm/ADT/DenseMapInfo.h"

#include <cstdint>
#include <functional>
#include <type_traits>

Expand Down
9 changes: 0 additions & 9 deletions include/phasar/Utils/PointerUtils.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
/******************************************************************************
* Copyright (c) 2022 Fabian Schiebel.
* All rights reserved. This program and the accompanying materials are made
* available under the terms of LICENSE.txt.
*
* Contributors:
* Fabian Schiebel and others
*****************************************************************************/

#ifndef PHASAR_UTILS_POINTERUTILS_H
#define PHASAR_UTILS_POINTERUTILS_H

Expand Down
13 changes: 2 additions & 11 deletions include/phasar/Utils/TableWrappers.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
/******************************************************************************
* Copyright (c) 2022 Fabian Schiebel.
* All rights reserved. This program and the accompanying materials are made
* available under the terms of LICENSE.txt.
*
* Contributors:
* Fabian Schiebel and others
*****************************************************************************/

#ifndef PHASAR_UTILS_TABLEWRAPPERS
#define PHASAR_UTILS_TABLEWRAPPERS
#ifndef PHASAR_UTILS_TABLEWRAPPERS_H
#define PHASAR_UTILS_TABLEWRAPPERS_H

#include "phasar/Utils/ByRef.h"
#include "phasar/Utils/EmptyBaseOptimizationUtils.h"
Expand Down

0 comments on commit 15ab411

Please sign in to comment.