-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Michalis Kokologiannakis <[email protected]>
- Loading branch information
1 parent
b5e7340
commit eab70f8
Showing
2,547 changed files
with
26,398 additions
and
13,388 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Checks: | | ||
-*, | ||
clang-analyzer-*, | ||
clang-diagnostic-*, | ||
concurrency-*, | ||
cppcoreguidelines-*, | ||
llvm-*, | ||
-llvmlibc-restrict-system-libc-headers, | ||
-llvm-header-guard, | ||
misc-*, | ||
-misc-non-private-member-variables-in-classes, | ||
-misc-no-recursion, | ||
-misc-use-anonymous-namespace, | ||
readability-*, | ||
-readability-braces-around-statements, | ||
modernize-*, | ||
performance-*, | ||
CheckOptions: | ||
- key: readability-function-cognitive-complexity.IgnoreMacros | ||
value: true | ||
- key: readability-identifier-length.IgnoredVariableNames | ||
value: 'i|g|e|EE|l|r|s|w|f|b|br|v|hb' | ||
- key: readability-identifier-length.IgnoredLoopCounterNames | ||
value: 'i|j|k|g|e|EE|l|r|s|w|f|b|br|v|hb' | ||
- key: readability-identifier-length.IgnoredParameterNames | ||
value: 'g|e|EE|l|r|s|w|f|b|br|v|hb' |
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 |
---|---|---|
@@ -1,18 +1,127 @@ | ||
SUBDIRS = src include | ||
# where to install the headers on the system | ||
genmcdir = $(pkgincludedir) | ||
|
||
.PHONY: test ftest | ||
test: | ||
$(MAKE) -C src | ||
cd $(top_builddir)/scripts && ./driver.sh --debug | ||
# the list of header files that belong to the library | ||
nobase_genmc_HEADERS = \ | ||
include/assert.h \ | ||
include/atomic \ | ||
include/bits/stat.h \ | ||
include/cassert \ | ||
include/errno.h \ | ||
include/fcntl.h \ | ||
include/genmc.h \ | ||
include/genmc_internal.h \ | ||
include/lkmm.h \ | ||
include/pthread.h \ | ||
include/stdatomic.h \ | ||
include/stdio.h \ | ||
include/stdlib.h \ | ||
include/sys/stat.h \ | ||
include/sys/types.h \ | ||
include/thread \ | ||
include/threads.h \ | ||
include/unistd.h | ||
|
||
ftest: | ||
$(MAKE) -C src | ||
cd $(top_builddir)/scripts && ./driver.sh --fast --debug | ||
noinst_LIBRARIES = libgenmc.a | ||
libgenmc_a_SOURCES = \ | ||
src/ASize.cpp src/ASize.hpp \ | ||
src/BisimilarityCheckerPass.cpp src/BisimilarityCheckerPass.hpp \ | ||
src/Bitmask.hpp \ | ||
src/BoundDecider.cpp src/BoundDecider.hpp \ | ||
src/CallInfoCollectionPass.cpp src/CallInfoCollectionPass.hpp \ | ||
src/CodeCondenserPass.cpp src/CodeCondenserPass.hpp \ | ||
src/ContextBoundDecider.cpp src/ContextBoundDecider.hpp \ | ||
src/Calculator.hpp \ | ||
src/CallInstWrapper.hpp \ | ||
src/ConfirmationAnnotationPass.cpp src/ConfirmationAnnotationPass.hpp \ | ||
src/Config.cpp src/Config.hpp \ | ||
src/DeclareInternalsPass.cpp src/DeclareInternalsPass.hpp \ | ||
src/DefineLibcFunsPass.cpp src/DefineLibcFunsPass.hpp \ | ||
src/DepExecutionGraph.cpp src/DepExecutionGraph.hpp \ | ||
src/DepInfo.cpp src/DepInfo.hpp \ | ||
src/DepTracker.hpp \ | ||
src/DepView.cpp src/DepView.hpp \ | ||
src/DriverFactory.hpp \ | ||
src/EliminateAnnotationsPass.cpp src/EliminateAnnotationsPass.hpp \ | ||
src/EliminateCASPHIsPass.cpp src/EliminateCASPHIsPass.hpp \ | ||
src/EliminateCastsPass.cpp src/EliminateCastsPass.hpp \ | ||
src/EliminateRedundantInstPass.cpp src/EliminateRedundantInstPass.hpp \ | ||
src/EliminateUnusedCodePass.cpp src/EliminateUnusedCodePass.hpp \ | ||
src/Error.hpp \ | ||
src/EscapeCheckerPass.cpp src/EscapeCheckerPass.hpp \ | ||
src/Event.cpp src/Event.hpp \ | ||
src/EventAttr.hpp \ | ||
src/EventLabel.cpp src/EventLabel.hpp \ | ||
src/Execution.cpp \ | ||
src/ExecutionGraph.cpp src/ExecutionGraph.hpp \ | ||
src/ExternalFunctions.cpp \ | ||
src/FunctionInlinerPass.cpp src/FunctionInlinerPass.hpp \ | ||
src/GenMCDriver.cpp src/GenMCDriver.hpp \ | ||
src/GraphIterators.hpp \ | ||
src/IMMDriver.cpp src/IMMDriver.hpp \ | ||
src/InstAnnotator.cpp src/InstAnnotator.hpp \ | ||
src/Interpreter.cpp Interpreter.h \ | ||
src/InterpreterEnumAPI.cpp src/InterpreterEnumAPI.hpp \ | ||
src/IntrinsicLoweringPass.cpp src/IntrinsicLoweringPass.hpp \ | ||
src/LabelVisitor.hpp \ | ||
src/LoadAnnotationPass.cpp src/LoadAnnotationPass.hpp \ | ||
src/LocalSimplifyCFGPass.cpp src/LocalSimplifyCFGPass.hpp \ | ||
src/Logger.hpp \ | ||
src/LLVMModule.cpp src/LLVMModule.hpp \ | ||
src/LLVMUtils.cpp src/LLVMUtils.hpp \ | ||
src/LoopUnrollPass.cpp src/LoopUnrollPass.hpp \ | ||
src/LoopJumpThreadingPass.cpp src/LoopJumpThreadingPass.hpp \ | ||
src/Matrix2D.hpp Matrix2D.tcc \ | ||
src/MaximalIterator.hpp \ | ||
src/MDataCollectionPass.hpp src/MDataCollectionPass.cpp \ | ||
src/MemAccess.hpp \ | ||
src/MMDetectorPass.cpp src/MMDetectorPass.hpp \ | ||
src/ModuleID.hpp \ | ||
src/ModuleInfo.cpp src/ModuleInfo.hpp \ | ||
src/NameInfo.cpp src/NameInfo.hpp \ | ||
src/Parser.cpp src/Parser.hpp \ | ||
src/PromoteMemIntrinsicPass.cpp src/PromoteMemIntrinsicPass.hpp \ | ||
src/PropagateAssumesPass.cpp src/PropagateAssumesPass.hpp \ | ||
src/RADriver.cpp src/RADriver.hpp \ | ||
src/RC11Driver.cpp src/RC11Driver.hpp \ | ||
src/Revisit.cpp src/Revisit.hpp \ | ||
src/RoundBoundDecider.cpp src/RoundBoundDecider.hpp \ | ||
src/SAddr.cpp src/SAddr.hpp \ | ||
src/SAddrAllocator.hpp \ | ||
src/SCDriver.cpp src/SCDriver.hpp \ | ||
src/SExpr.tcc src/SExpr.hpp \ | ||
src/SExprVisitor.tcc src/SExprVisitor.hpp \ | ||
src/Stamp.cpp src/Stamp.hpp \ | ||
src/SVal.cpp src/SVal.hpp \ | ||
src/SpinAssumePass.cpp src/SpinAssumePass.hpp \ | ||
src/WBIterator.hpp \ | ||
src/ThreadInfo.hpp \ | ||
src/ThreadPinner.cpp src/ThreadPinner.hpp \ | ||
src/ThreadPool.cpp src/ThreadPool.hpp \ | ||
src/TSODriver.cpp src/TSODriver.hpp \ | ||
src/WorkSet.hpp src/WorkSet.cpp \ | ||
src/value_ptr.hpp \ | ||
src/Verbosity.hpp src/Verbosity.cpp \ | ||
src/VectorClock.hpp src/VectorClock.cpp \ | ||
src/VerificationError.hpp src/VerificationError.cpp \ | ||
src/View.hpp src/View.cpp \ | ||
src/VSet.hpp src/VSet.tcc | ||
|
||
ctest: | ||
$(MAKE) -C src | ||
cd $(top_builddir)/scripts && ./driver.sh --fast | ||
TESTS=scripts/fast-driver.sh scripts/randomize-driver.sh | ||
|
||
rtest: | ||
$(MAKE) -C src | ||
cd $(top_builddir)/scripts && ./randomize-driver.sh | ||
AM_CXXFLAGS = -DINCLUDE_DIR=\"$(pkgincludedir)/$(pkg)\" -DSRC_INCLUDE_DIR=\"$(abs_top_srcdir)/include\" $(COVERAGE_CXXFLAGS) | ||
bin_PROGRAMS = genmc | ||
genmc_SOURCES = src/main.cpp | ||
genmc_LDADD = libgenmc.a -lpthread $(COVERAGE_LDFLAGS) | ||
|
||
include Makefile.am.coverage | ||
|
||
@DX_RULES@ | ||
MOSTLYCLEANFILES = DX_CLEANFILES | ||
|
||
if LINT | ||
lint-local: $(libgenmc_a_SOURCES) $(genmc_SOURCES) | ||
-$(CPPLINT) -header-filter='^(?!llvm/).+' -config-file='$(top_srcdir)/.clang-tidy' $^ | ||
|
||
check-local: lint-local | ||
endif |
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,27 @@ | ||
# Coverage targets | ||
|
||
if HAVE_GCOV | ||
|
||
.PHONY: clean-gcda | ||
clean-gcda: | ||
@echo Removing old coverage results | ||
-find -name '*.gcda' -print | xargs -r rm | ||
|
||
.PHONY: coverage-html generate-coverage-html clean-coverage-html | ||
coverage-html: clean-gcda | ||
-$(MAKE) $(AM_MAKEFLAGS) -k check | ||
$(MAKE) $(AM_MAKEFLAGS) generate-coverage-html | ||
|
||
generate-coverage-html: | ||
@echo Collecting coverage data | ||
$(LCOV) --directory $(top_builddir) --capture --output-file coverage.info --no-checksum --compat-libtool | ||
$(LCOV) -r coverage.info "/usr*" -o coverage.info | ||
LANG=C $(GENHTML) --prefix $(top_builddir) --output-directory coveragereport --title "Code Coverage" --legend --show-details coverage.info | ||
|
||
clean-coverage-html: clean-gcda | ||
-$(LCOV) --directory $(top_builddir) -z | ||
-rm -rf coverage.info coveragereport | ||
|
||
clean-local: clean-coverage-html | ||
|
||
endif # HAVE_GCOV |
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
Oops, something went wrong.