Skip to content

Commit 268f751

Browse files
author
Daniel Kroening
committed
compile musketeer
1 parent d1095b1 commit 268f751

File tree

6 files changed

+120
-114
lines changed

6 files changed

+120
-114
lines changed

src/musketeer/cycles_visitor.cpp

+9-9
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class instrumentert;
3030
\*******************************************************************/
3131

3232
/* po^+ /\ U{C_1, ..., C_n} \/ delays */
33-
void cycles_visitort::po_edges(std::set<unsigned>& edges)
33+
void cycles_visitort::po_edges(std::set<event_idt>& edges)
3434
{
3535
instrumentert& instrumenter=fence_inserter.instrumenter;
3636

@@ -176,7 +176,7 @@ void cycles_visitort::po_edges(std::set<unsigned>& edges)
176176
/* computes the largest pos+ in C_j */
177177
std::map<unsigned,event_grapht::critical_cyclet::const_iterator> m_begin;
178178
std::map<unsigned,event_grapht::critical_cyclet::const_iterator> m_end;
179-
std::set<unsigned> m_threads;
179+
std::set<event_idt> m_threads;
180180

181181
unsigned previous_thread=0;
182182
for(event_grapht::critical_cyclet::const_iterator C_j_it=C_j->begin();
@@ -199,7 +199,7 @@ void cycles_visitort::po_edges(std::set<unsigned>& edges)
199199
/* computes the largest pos+ in C_k */
200200
std::map<unsigned,event_grapht::critical_cyclet::const_iterator> k_begin;
201201
std::map<unsigned,event_grapht::critical_cyclet::const_iterator> k_end;
202-
std::set<unsigned> k_threads;
202+
std::set<event_idt> k_threads;
203203

204204
previous_thread=0;
205205
for(event_grapht::critical_cyclet::const_iterator C_k_it=C_k->begin();
@@ -220,7 +220,7 @@ void cycles_visitort::po_edges(std::set<unsigned>& edges)
220220
}
221221

222222
/* if there are some commun threads, take the intersection if relevant */
223-
for(std::set<unsigned>::const_iterator it=m_threads.begin();
223+
for(std::set<event_idt>::const_iterator it=m_threads.begin();
224224
it!=m_threads.end(); ++it)
225225
if(k_threads.find(*it)!=k_threads.end())
226226
{
@@ -264,7 +264,7 @@ void cycles_visitort::po_edges(std::set<unsigned>& edges)
264264
/* C_j /\ po^+ /\ poWR */
265265
void cycles_visitort::powr_constraint(
266266
const event_grapht::critical_cyclet& C_j,
267-
std::set<unsigned>& edges)
267+
std::set<event_idt>& edges)
268268
{
269269
event_grapht& graph=fence_inserter.instrumenter.egraph;
270270

@@ -295,7 +295,7 @@ void cycles_visitort::powr_constraint(
295295
/* C_j /\ po^+ /\ poWW */
296296
void cycles_visitort::poww_constraint(
297297
const event_grapht::critical_cyclet& C_j,
298-
std::set<unsigned>& edges)
298+
std::set<event_idt>& edges)
299299
{
300300
event_grapht& graph=fence_inserter.instrumenter.egraph;
301301

@@ -326,7 +326,7 @@ void cycles_visitort::poww_constraint(
326326
/* C_j /\ po^+ /\ poRW */
327327
void cycles_visitort::porw_constraint(
328328
const event_grapht::critical_cyclet& C_j,
329-
std::set<unsigned>& edges)
329+
std::set<event_idt>& edges)
330330
{
331331
event_grapht& graph=fence_inserter.instrumenter.egraph;
332332

@@ -357,7 +357,7 @@ void cycles_visitort::porw_constraint(
357357
/* C_j /\ po^+ /\ poRR */
358358
void cycles_visitort::porr_constraint(
359359
const event_grapht::critical_cyclet& C_j,
360-
std::set<unsigned>& edges)
360+
std::set<event_idt>& edges)
361361
{
362362
event_grapht& graph=fence_inserter.instrumenter.egraph;
363363

@@ -388,7 +388,7 @@ void cycles_visitort::porr_constraint(
388388
/* C_j /\ comWR */
389389
void cycles_visitort::com_constraint(
390390
const event_grapht::critical_cyclet& C_j,
391-
std::set<unsigned>& edges)
391+
std::set<event_idt>& edges)
392392
{
393393
event_grapht& egraph=fence_inserter.instrumenter.egraph;
394394

src/musketeer/cycles_visitor.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,20 @@ class cycles_visitort
2828
{}
2929

3030
/* computes po^+ edges in U{C_1, ..., C_j} */
31-
void po_edges(std::set<unsigned>& edges);
31+
void po_edges(std::set<event_idt>& edges);
3232

3333
/* computes pairs that will be protected for the
3434
TSO/PSO/RMO/Power/ARM by the constraints */
3535
void powr_constraint(const event_grapht::critical_cyclet& C_j,
36-
std::set<unsigned>& edges);
36+
std::set<event_idt>& edges);
3737
void poww_constraint(const event_grapht::critical_cyclet& C_j,
38-
std::set<unsigned>& edges);
38+
std::set<event_idt>& edges);
3939
void porw_constraint(const event_grapht::critical_cyclet& C_j,
40-
std::set<unsigned>& edges);
40+
std::set<event_idt>& edges);
4141
void porr_constraint(const event_grapht::critical_cyclet& C_j,
42-
std::set<unsigned>& edges);
42+
std::set<event_idt>& edges);
4343
void com_constraint(const event_grapht::critical_cyclet& C_j,
44-
std::set<unsigned>& edges);
44+
std::set<event_idt>& edges);
4545
};
4646

4747
#endif // CPROVER_MUSKETEER_CYCLES_VISITOR_H

0 commit comments

Comments
 (0)