Skip to content

Commit cfc171c

Browse files
author
Owen Jones
committed
Format comments correctly
1 parent 60c9fb2 commit cfc171c

File tree

6 files changed

+22
-25
lines changed

6 files changed

+22
-25
lines changed

src/goto-instrument/accelerate/util.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ bool is_signed(const typet &t)
4848
}
4949

5050

51-
/**
52-
* Convenience function -- is the type unsigned?
53-
*/
51+
/// Convenience function -- is the type unsigned?
5452
bool is_unsigned(const typet &t)
5553
{
5654
return t.id()==ID_bv ||

src/goto-instrument/wmm/event_graph.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,8 @@ class event_grapht
9797
from.hide_internals(&target) */
9898
void hide_internals(critical_cyclet &reduced) const;
9999

100-
/* checks whether there is at least one pair which is unsafe
101-
(takes fences and dependencies into account), and adds
102-
the unsafe pairs in the set */
100+
/// checks whether there is at least one pair which is unsafe (takes fences
101+
/// and dependencies into account), and adds the unsafe pairs in the set
103102
bool is_unsafe(memory_modelt model, bool fast=false);
104103

105104
/* do not update the unsafe pairs set */

src/goto-instrument/wmm/goto2graph.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -258,18 +258,18 @@ class instrumentert
258258
}
259259
}
260260

261-
// TODO: move the visitor outside, and inherit
261+
/// TODO: move the visitor outside, and inherit
262262
virtual void visit_cfg_function(
263-
/* value_sets and options */
263+
/// value_sets and options
264264
value_setst &value_sets,
265265
memory_modelt model,
266266
bool no_dependencies,
267267
loop_strategyt duplicate_body,
268-
/* function to analyse */
268+
/// function to analyse
269269
const irep_idt &function,
270-
/* incoming edges */
270+
/// incoming edges
271271
const std::set<nodet> &initial_vertex,
272-
/* outcoming edges */
272+
/// outcoming edges
273273
std::set<nodet> &ending_vertex);
274274

275275
bool inline local(const irep_idt &i);

src/musketeer/fence_inserter.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class fence_insertert
6464

6565
instrumentert &instrumenter;
6666

67-
/* normal variables used almost every time */
67+
/// normal variables used almost every time
6868
std::map<unsigned, edget> &map_to_e;
6969
std::map<edget, unsigned> &map_from_e;
7070
unsigned add_edge(const edget &e) { return var.add_edge(e); }
@@ -73,11 +73,11 @@ class fence_insertert
7373
return invisible_var.add_edge(e);
7474
}
7575

76-
/* number of constraints */
76+
/// number of constraints
7777
std::size_t constraints_number;
7878
const memory_modelt model;
7979

80-
/* to retrieve the concrete graph edges involved in the (abstract) cycles */
80+
/// to retrieve the concrete graph edges involved in the (abstract) cycles
8181
const_graph_visitort const_graph_visitor;
8282

8383
protected:

src/musketeer/graph_visitor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ void const_graph_visitort::PT(
346346
#ifdef BTWN1
347347
event_grapht &egraph=fence_inserter.instrumenter.egraph;
348348

349-
/* all the pos in between */
349+
/// all the pos in between
350350
for(wmm_grapht::edgest::const_iterator
351351
next_it=egraph.po_out(e.first).begin();
352352
next_it!=egraph.po_out(e.first).end();

src/util/expr_util.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,28 +28,28 @@ class symbolt;
2828
class typet;
2929
class namespacet;
3030

31-
/*! \deprecated This function will eventually be removed. Use functions from
32-
* \ref util/std_expr.h instead.
33-
*/
31+
/// \deprecated This function will eventually be removed. Use functions
32+
/// from \ref util/std_expr.h instead.
33+
3434
void make_next_state(exprt &);
3535

36-
/*! splits an expression with >=3 operands into nested binary expressions */
36+
/// splits an expression with >=3 operands into nested binary expressions
3737
exprt make_binary(const exprt &);
3838

39-
/*! converts an update expr into a (possibly nested) with expression */
39+
/// converts an update expr into a (possibly nested) with expression
4040
with_exprt make_with_expr(const update_exprt &);
4141

42-
/*! converts a scalar/float expression to C/C++ Booleans */
42+
/// converts a scalar/float expression to C/C++ Booleans
4343
exprt is_not_zero(const exprt &, const namespacet &ns);
4444

45-
/*! negate a Boolean expression, possibly removing a not_exprt,
46-
and swapping false and true */
45+
/// negate a Boolean expression, possibly removing a not_exprt,
46+
/// and swapping false and true
4747
exprt boolean_negate(const exprt &);
4848

49-
/*! returns true if the expression has a subexpression with given ID */
49+
/// returns true if the expression has a subexpression with given ID
5050
bool has_subexpr(const exprt &, const irep_idt &);
5151

52-
/*! lift up an if_exprt one level */
52+
/// lift up an if_exprt one level
5353
if_exprt lift_if(const exprt &, std::size_t operand_number);
5454

5555
#endif // CPROVER_UTIL_EXPR_UTIL_H

0 commit comments

Comments
 (0)