Skip to content

Commit 6fee210

Browse files
committed
Merge branch 'release-2.6.3'
2 parents bce39e1 + ce272be commit 6fee210

26 files changed

+229
-138
lines changed

.github/workflows/smack-ci.yaml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: SMACK CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
check-regressions:
7+
env:
8+
COMPILER_NAME: clang
9+
COMPILER: clang++
10+
CXX: clang++
11+
CC: clang
12+
runs-on: ubuntu-20.04
13+
strategy:
14+
matrix:
15+
travis_env:
16+
[
17+
"--exhaustive --folder=c/basic",
18+
"--exhaustive --folder=c/data",
19+
"--exhaustive --folder=c/ntdrivers-simplified",
20+
"--exhaustive --folder=c/ntdrivers",
21+
"--exhaustive --folder=c/bits",
22+
"--exhaustive --folder=c/float",
23+
"--exhaustive --folder=c/locks",
24+
"--exhaustive --folder=c/contracts",
25+
"--exhaustive --folder=c/simd",
26+
"--exhaustive --folder=c/memory-safety",
27+
"--exhaustive --folder=c/pthread",
28+
"--exhaustive --folder=c/pthread_extras",
29+
"--exhaustive --folder=c/strings",
30+
"--exhaustive --folder=c/special",
31+
"--exhaustive --folder=rust/array --languages=rust",
32+
"--exhaustive --folder=rust/basic --languages=rust",
33+
"--exhaustive --folder=rust/box --languages=rust",
34+
"--exhaustive --folder=rust/functions --languages=rust",
35+
"--exhaustive --folder=rust/generics --languages=rust",
36+
"--exhaustive --folder=rust/loops --languages=rust",
37+
"--exhaustive --folder=rust/panic --languages=rust",
38+
"--exhaustive --folder=rust/recursion --languages=rust",
39+
"--exhaustive --folder=rust/structures --languages=rust",
40+
"--exhaustive --folder=rust/vector --languages=rust"
41+
]
42+
steps:
43+
- uses: actions/checkout@v2
44+
45+
- name: install dependencies
46+
env:
47+
GITHUB_ACTIONS: true
48+
run: INSTALL_DEV_DEPENDENCIES=1 INSTALL_RUST=1 ./bin/build.sh
49+
50+
- run: python3 --version
51+
- run: $CXX --version
52+
- run: $CC --version
53+
- run: clang --version
54+
- run: clang++ --version
55+
- run: llvm-link --version
56+
- run: llvm-config --version
57+
58+
- name: format checking
59+
run: |
60+
./format/run-clang-format.py -r lib/smack include/smack tools share/smack/include share/smack/lib test examples
61+
flake8 test/regtest.py share/smack/ --extend-exclude share/smack/svcomp/,share/smack/reach.py
62+
63+
- name: compile and test
64+
env:
65+
TRAVIS_ENV: ${{ matrix.travis_env }}
66+
run: ./bin/build.sh

.travis.yml

Lines changed: 0 additions & 78 deletions
This file was deleted.

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ project(smack)
77

88
if (NOT WIN32 OR MSYS OR CYGWIN)
99

10-
file(STRINGS "bin/versions" LLVM_VERSION_STR REGEX "LLVM_SHORT_VERSION=[0-9]+")
10+
file(STRINGS "bin/versions" LLVM_VERSION_STR REGEX "LLVM_SHORT_VERSION=\"[0-9]+\"")
1111
string(REGEX MATCH "[0-9]+" LLVM_SHORT_VERSION "${LLVM_VERSION_STR}")
1212

1313
find_program(LLVM_CONFIG_EXECUTABLE NAMES llvm-config-${LLVM_SHORT_VERSION} llvm-config PATHS ${LLVM_CONFIG} DOC "llvm-config")

Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#---------------------------------------------------------------------------
66
DOXYFILE_ENCODING = UTF-8
77
PROJECT_NAME = smack
8-
PROJECT_NUMBER = 2.6.2
8+
PROJECT_NUMBER = 2.6.3
99
PROJECT_BRIEF = "A bounded software verifier."
1010
PROJECT_LOGO =
1111
OUTPUT_DIRECTORY = docs

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
2-
[![Build Status](https://travis-ci.com/smackers/smack.svg?branch=master)](https://travis-ci.com/smackers/smack)
3-
[![Build Status](https://travis-ci.com/smackers/smack.svg?branch=develop)](https://travis-ci.com/smackers/smack)
1+
[![master branch ci status](https://github.com/smackers/smack/workflows/SMACK%20CI/badge.svg?branch=master)](https://github.com/smackers/smack/actions)
2+
[![develop branch ci status](https://github.com/smackers/smack/workflows/SMACK%20CI/badge.svg?branch=develop)](https://github.com/smackers/smack/actions)
43

54
<img src="docs/smack-logo.png" width=400 alt="SMACK Logo" align="right">
65

bin/build.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ BUILD_LLVM=0 # LLVM is typically installed from packages (see below)
3939
INSTALL_OBJECTIVEC=0
4040
INSTALL_RUST=${INSTALL_RUST:-0}
4141

42+
# Development dependencies
43+
INSTALL_DEV_DEPENDENCIES=${INSTALL_DEV_DEPENDENCIES:-0}
44+
4245
# PATHS
4346
SMACK_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )"
4447
ROOT_DIR="$( cd "${SMACK_DIR}" && cd .. && pwd )"
@@ -459,6 +462,16 @@ if [ ${BUILD_LOCKPWN} -eq 1 ] ; then
459462
fi
460463

461464

465+
if [ ${INSTALL_DEV_DEPENDENCIES} -eq 1 ] ; then
466+
sudo apt-get install -y python3-pip clang-format-${LLVM_SHORT_VERSION}
467+
sudo pip3 install -U flake8
468+
sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-${LLVM_SHORT_VERSION} 30
469+
if [ "${GITHUB_ACTIONS}" = "true" ] ; then
470+
exit 0
471+
fi
472+
fi
473+
474+
462475
if [ ${BUILD_SMACK} -eq 1 ] ; then
463476
puts "Building SMACK"
464477

docs/people.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
* [Marek Baranowski](https://github.com/keram88) ([SOAR Lab](http://soarlab.org), University of Utah)
1313
* [Jack J. Garzella](https://www.linkedin.com/in/jack-j-garzella-7140a716) ([SOAR Lab](http://soarlab.org), University of Utah)
14-
* [Shaobo He](http://www.cs.utah.edu/~shaobo) ([SOAR Lab](http://soarlab.org), University of Utah)
14+
* [Shaobo He](http://www.cs.utah.edu/~shaobo) (Baidu USA)
1515
* [Liam Machado](https://github.com/liammachado) ([SOAR Lab](http://soarlab.org), University of Utah)
1616

1717
### Former Contributors

include/smack/MemorySafetyChecker.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class MemorySafetyChecker : public llvm::FunctionPass,
1717
llvm::Function *getLeakCheckFunction(llvm::Module &M);
1818
llvm::Function *getSafetyCheckFunction(llvm::Module &M);
1919

20+
void copyDbgMetadata(llvm::Instruction *src, llvm::Instruction *dst);
2021
void insertMemoryLeakCheck(llvm::Instruction *I);
2122
void insertMemoryAccessCheck(llvm::Value *addr, llvm::Value *size,
2223
llvm::Instruction *I);

include/smack/SmackInstGenerator.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ class SmackInstGenerator : public llvm::InstVisitor<SmackInstGenerator> {
9191
void visitPHINode(llvm::PHINode &i);
9292
void visitSelectInst(llvm::SelectInst &i);
9393
void visitCallInst(llvm::CallInst &i);
94+
void visitCallBrInst(llvm::CallBrInst &i);
9495
void visitDbgValueInst(llvm::DbgValueInst &i);
9596
// TODO implement va_arg
9697
void visitLandingPadInst(llvm::LandingPadInst &i);

lib/smack/BoogieAst.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ void CallStmt::print(std::ostream &os) const {
555555
os << ";";
556556
}
557557

558-
void Comment::print(std::ostream &os) const { os << "// " << str; }
558+
void Comment::print(std::ostream &os) const { os << "/* " << str << " */"; }
559559

560560
void GotoStmt::print(std::ostream &os) const {
561561
os << "goto ";

0 commit comments

Comments
 (0)