-
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.
Add
SimpleModel
which simply starts as an empty model and use that
in place of `FileSerializableModel` where appropriate.
- Loading branch information
Showing
4 changed files
with
52 additions
and
5 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,27 @@ | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// JFS - The JIT Fuzzing Solver | ||
// | ||
// Copyright 2017-2018 Alastair Donaldson | ||
// | ||
// This file is distributed under the MIT license. | ||
// See LICENSE.txt for details. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
#ifndef JFS_CORE_SIMPLE_MODEL_H | ||
#define JFS_CORE_SIMPLE_MODEL_H | ||
#include "jfs/Core/Model.h" | ||
|
||
namespace jfs { | ||
namespace core { | ||
|
||
// A model that on creation is empty | ||
class SimpleModel : public Model { | ||
public: | ||
SimpleModel(JFSContext& ctx); | ||
}; | ||
|
||
} // namespace core | ||
} // namespace jfs | ||
|
||
#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
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,20 @@ | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// JFS - The JIT Fuzzing Solver | ||
// | ||
// Copyright 2017-2018 Alastair Donaldson | ||
// | ||
// This file is distributed under the MIT license. | ||
// See LICENSE.txt for details. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
#include "jfs/Core/SimpleModel.h" | ||
|
||
namespace jfs { | ||
namespace core { | ||
|
||
SimpleModel::SimpleModel(JFSContext& ctx) : Model(ctx) { | ||
z3Model = Z3ModelHandle(::Z3_mk_model(ctx.getZ3Ctx()), ctx.getZ3Ctx()); | ||
} | ||
} // namespace core | ||
} // namespace jfs |
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