Skip to content

Commit c1ccb51

Browse files
committed
Merge branch 'release-2.6.0'
2 parents e41b229 + 4666d43 commit c1ccb51

28 files changed

+237
-151
lines changed

.gitmodules

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
[submodule "sea-dsa"]
22
path = sea-dsa
33
url = https://github.com/seahorn/sea-dsa.git
4-
branch = llvm-8.0

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,6 @@ before_script:
7373
- llvm-config --version
7474

7575
script:
76-
- ./format/run-clang-format.py -e test/c/basic/transform-out.c -r lib/smack include/smack share/smack/include share/smack/lib test examples
76+
- ./format/run-clang-format.py -r lib/smack include/smack tools share/smack/include share/smack/lib test examples
7777
- flake8 test/regtest.py share/smack/ --extend-exclude share/smack/svcomp/,share/smack/reach.py
7878
- INSTALL_RUST=1 ./bin/build.sh

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.5.0
8+
PROJECT_NUMBER = 2.6.0
99
PROJECT_BRIEF = "A bounded software verifier."
1010
PROJECT_LOGO =
1111
OUTPUT_DIRECTORY = docs

bin/versions

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
Z3_VERSION=4.8.8
2-
CVC4_VERSION=1.7
2+
CVC4_VERSION=1.8
33
YICES2_VERSION=2.6.2
4-
BOOGIE_VERSION=2.6.15
4+
BOOGIE_VERSION=2.7.15
55
CORRAL_VERSION=1.0.12
66
SYMBOOGLIX_COMMIT=ccb2e7f2b3
77
LOCKPWN_COMMIT=12ba58f1ec
8-
LLVM_SHORT_VERSION=9
9-
LLVM_FULL_VERSION=9.0.1
10-
RUST_VERSION=2020-05-21
8+
LLVM_SHORT_VERSION=10
9+
LLVM_FULL_VERSION=10.0.1
10+
RUST_VERSION=2020-08-23

docs/installation.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ to Docker's official documentation.
8080

8181
SMACK depends on the following projects:
8282

83-
* [LLVM][] version [9.0.1][LLVM-9.0.1]
84-
* [Clang][] version [9.0.1][Clang-9.0.1]
83+
* [LLVM][] version [10.0.1][LLVM-10.0.1]
84+
* [Clang][] version [10.0.1][Clang-10.0.1]
8585
* [Boost][] version 1.55 or greater
8686
* [Python][] version 3.6.8 or greater
8787
* [Ninja][] version 1.5.1 or greater
@@ -210,9 +210,9 @@ shell in the `test` directory by executing
210210
[CMake]: http://www.cmake.org
211211
[Python]: http://www.python.org
212212
[LLVM]: http://llvm.org
213-
[LLVM-9.0.1]: http://llvm.org/releases/download.html#9.0.1
213+
[LLVM-10.0.1]: http://llvm.org/releases/download.html#10.0.1
214214
[Clang]: http://clang.llvm.org
215-
[Clang-9.0.1]: http://llvm.org/releases/download.html#9.0.1
215+
[Clang-10.0.1]: http://llvm.org/releases/download.html#10.0.1
216216
[Boogie]: https://github.com/boogie-org/boogie
217217
[Corral]: https://github.com/boogie-org/corral
218218
[Z3]: https://github.com/Z3Prover/z3/

include/smack/Regions.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#include "seadsa/Graph.hh"
88
#include "llvm/IR/InstVisitor.h"
9+
#include "llvm/Pass.h"
910

1011
using namespace llvm;
1112

include/smack/SimplifyLibCalls.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ namespace smack {
1212

1313
using namespace llvm;
1414

15-
class SimplifyLibCalls : public ModulePass,
15+
class SimplifyLibCalls : public FunctionPass,
1616
public InstVisitor<SimplifyLibCalls> {
1717
private:
1818
bool modified;
1919
LibCallSimplifier *simplifier;
2020

2121
public:
2222
static char ID;
23-
SimplifyLibCalls() : ModulePass(ID) {}
23+
SimplifyLibCalls() : FunctionPass(ID) {}
2424
virtual void getAnalysisUsage(AnalysisUsage &AU) const;
25-
virtual bool runOnModule(Module &M);
25+
virtual bool runOnFunction(Function &F);
2626
void visitCallInst(CallInst &);
2727
};
2828
} // namespace smack

include/smack/SmackInstGenerator.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ class SmackInstGenerator : public llvm::InstVisitor<SmackInstGenerator> {
6868
void visitUnreachableInst(llvm::UnreachableInst &i);
6969

7070
void visitBinaryOperator(llvm::BinaryOperator &I);
71+
void visitUnaryOperator(llvm::UnaryOperator &I);
7172

7273
void visitExtractElementInst(llvm::ExtractElementInst &I);
7374
void visitInsertElementInst(llvm::InsertElementInst &I);

include/smack/SmackRep.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ class SmackRep {
8585
bool isFpArithOp(unsigned opcode);
8686
const Expr *bop(unsigned opcode, const llvm::Value *lhs,
8787
const llvm::Value *rhs, const llvm::Type *t);
88+
const Expr *uop(const llvm::Value *op);
8889
const Expr *cmp(unsigned predicate, const llvm::Value *lhs,
8990
const llvm::Value *rhs, bool isUnsigned);
9091
const Expr *select(const llvm::Value *condVal, const llvm::Value *trueVal,
@@ -147,6 +148,9 @@ class SmackRep {
147148
const Expr *bop(const llvm::BinaryOperator *BO);
148149
const Expr *bop(const llvm::ConstantExpr *CE);
149150

151+
const Expr *uop(const llvm::UnaryOperator *UO);
152+
const Expr *uop(const llvm::ConstantExpr *CE);
153+
150154
const Expr *cmp(const llvm::CmpInst *I);
151155
const Expr *cmp(const llvm::ConstantExpr *CE);
152156

include/smack/SplitAggregateValue.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414

1515
namespace smack {
1616

17-
class SplitAggregateValue : public llvm::BasicBlockPass {
17+
class SplitAggregateValue : public llvm::FunctionPass {
1818
public:
1919
typedef std::vector<std::pair<llvm::Value *, unsigned>> IndexT;
2020
typedef std::pair<IndexT, llvm::Constant *> InfoT;
2121
static char ID;
22-
SplitAggregateValue() : llvm::BasicBlockPass(ID) {}
23-
virtual bool runOnBasicBlock(llvm::BasicBlock &BB);
22+
SplitAggregateValue() : llvm::FunctionPass(ID) {}
23+
virtual bool runOnFunction(llvm::Function &F);
2424

2525
private:
2626
llvm::Value *splitAggregateLoad(llvm::LoadInst *li, std::vector<InfoT> &info,

0 commit comments

Comments
 (0)