Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
FORMUS3IC_LAS3
/
embb
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d6a1458a
authored
Mar 14, 2016
by
lucapegolotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.txt
parent
5adf9d56
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
9 deletions
+28
-9
linearizability_tester/README.txt
+20
-6
linearizability_tester/src/sequential_data_structures.h
+4
-3
linearizability_tester/src/tests.h
+4
-0
No files found.
linearizability_tester/README.txt
View file @
d6a1458a
...
...
@@ -17,14 +17,14 @@ The src folder contains a large part of the code by Alex Horn.
COMPILE INSTRUCTIONS
* On Linux system
S
uppose that the embb library was build in ../build (relative path to the current
We s
uppose that the embb library was build in ../build (relative path to the current
folder of the linearizability test).
From within the linearizability_tester folder, cd (or mkdir->cd) into the build directory,
then run "cmake .." and "make". The executable of the test should be placed in the
same folder with the name EMBB_linearizability_test.
* On Windows system
S
uppose that the embb library was build in ../build (relative path to the current
We s
uppose that the embb library was build in ../build (relative path to the current
folder of the linearizability test).
NOTE: the embb library should be build in Release mode, i.e. by running the command
"cmake --build . --config Release" from inside the correct directory.
...
...
@@ -34,6 +34,20 @@ be used.
The executable of the test should be placed in the folder Release
with the name EMBB_linearizability_test.exe.
HOW TO IMPLEMENT TESTS FOR OTHER DATASTRUCTURES
Data structures that support the following functions:
\ No newline at end of file
HOW TO IMPLEMENT TESTS FOR OTHER DATA STRUCTURES
Data structures that support the following functions:
- check if structure is empty
- check if structure contains a specific element
- insert an element in the structure
- erase an element from the structure
should be easily checkable using the Set specification contained in the
src/sequential_datastructures.h file.
In general, the checker needs a sequential implementation test against the
concurrent one (the EMBB one). The implementation should support efficient equality checks
and efficient memory management. Stick to the implementation of the already integrated
structures (stacks, queues..) for future integration.
After adding the implementation of the datastructure, it is necessary to add a worker and
experiment for the newly created datastructure in main.cc. Stick again to the already
implemented functions (it should be sufficient to change the name of the methods that are called
on the EMBB structure).
\ No newline at end of file
linearizability_tester/src/sequential_data_structures.h
View file @
d6a1458a
/**
/* Sequential implementation of the datastractures to test
*/
#ifndef __SEQUENTIAL_DATASTRUCTURES
#define __SEQUENTIAL_DATASTRUCTURES
#include <linearizability_tester.h>
namespace
lt
{
namespace
state
{
class
Set
...
...
linearizability_tester/src/tests.h
View file @
d6a1458a
/**
/* Internal tests for the linearizability checker
*/
#include <linearizability_tester.h>
#include <sequential_data_structures.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment