-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the compose and join functions in the EdgeFunction implementatio…
…ns optional, if the IDETabulkationProblem impl provides extend and combine
- Loading branch information
1 parent
c1a75ed
commit cad8c02
Showing
4 changed files
with
101 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/****************************************************************************** | ||
* Copyright (c) 2024 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_ERRORFWD_H | ||
#define PHASAR_UTILS_ERRORFWD_H | ||
|
||
#include "llvm/ADT/StringRef.h" | ||
|
||
namespace psr { | ||
[[noreturn, gnu::cold]] void | ||
composeEFPureVirtualError(llvm::StringRef ConcreteEF, llvm::StringRef L); | ||
[[noreturn, gnu::cold]] void joinEFPureVirtualError(llvm::StringRef ConcreteEF, | ||
llvm::StringRef L); | ||
} // namespace psr | ||
|
||
#endif // PHASAR_UTILS_ERRORFWD_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#include "phasar/Utils/ErrorFwd.h" | ||
|
||
#include "llvm/ADT/Twine.h" | ||
#include "llvm/Support/ErrorHandling.h" | ||
|
||
void psr::composeEFPureVirtualError(llvm::StringRef ConcreteEF, | ||
llvm::StringRef L) { | ||
llvm::report_fatal_error( | ||
"EdgeFunction composition is not implemented for " + ConcreteEF + | ||
"; Either implement static EdgeFunction<" + L + | ||
"> compose(const EdgeFunctionRef<" + ConcreteEF + | ||
">, const EdgeFunction<" + L + ">&) in " + ConcreteEF + | ||
", or override EdgeFunction<" + L + "> extend(const EdgeFunction<" + L + | ||
">&, const EdgeFunction<" + L + ">&) in your IDETabulationProblem"); | ||
} | ||
|
||
void psr::joinEFPureVirtualError(llvm::StringRef ConcreteEF, | ||
llvm::StringRef L) { | ||
llvm::report_fatal_error( | ||
"EdgeFunction join is not implemented for " + ConcreteEF + | ||
"; Either implement static EdgeFunction<" + L + | ||
"> join(const EdgeFunctionRef<" + ConcreteEF + ">, const EdgeFunction<" + | ||
L + ">&) in " + ConcreteEF + ", or override EdgeFunction<" + L + | ||
"> combine(const EdgeFunction<" + L + ">&, const EdgeFunction<" + L + | ||
">&) in your IDETabulationProblem"); | ||
} |