18
18
#include " expr_cast.h"
19
19
20
20
21
- // / transition system, consisting of state invariant, initial state predicate,
21
+ // / Transition system, consisting of state invariant, initial state predicate,
22
22
// / and transition predicate.
23
23
class transt :public exprt
24
24
{
@@ -80,20 +80,17 @@ class symbol_exprt:public exprt
80
80
{
81
81
}
82
82
83
- // / Constructor
84
83
// / \param identifier: Name of symbol
85
84
explicit symbol_exprt (const irep_idt &identifier):exprt(ID_symbol)
86
85
{
87
86
set_identifier (identifier);
88
87
}
89
88
90
- // / Constructor
91
89
// / \param type: Type of symbol
92
90
explicit symbol_exprt (const typet &type):exprt(ID_symbol, type)
93
91
{
94
92
}
95
93
96
- // / Constructor
97
94
// / \param identifier: Name of symbol
98
95
// / \param type: Type of symbol
99
96
symbol_exprt (
@@ -114,7 +111,7 @@ class symbol_exprt:public exprt
114
111
}
115
112
};
116
113
117
- // / Expression to hold a symbol (variable) with extra ccessors to
114
+ // / Expression to hold a symbol (variable) with extra accessors to
118
115
// / ID_c_static_lifetime and ID_C_thread_local
119
116
class decorated_symbol_exprt :public symbol_exprt
120
117
{
@@ -123,21 +120,18 @@ class decorated_symbol_exprt:public symbol_exprt
123
120
{
124
121
}
125
122
126
- // / Constructor
127
123
// / \param identifier: Name of symbol
128
124
explicit decorated_symbol_exprt (const irep_idt &identifier):
129
125
symbol_exprt(identifier)
130
126
{
131
127
}
132
128
133
- // / Constructor
134
129
// / \param type: Type of symbol
135
130
explicit decorated_symbol_exprt (const typet &type):
136
131
symbol_exprt(type)
137
132
{
138
133
}
139
134
140
- // / Constructor
141
135
// / \param identifier: Name of symbol
142
136
// / \param : type Type of symbol
143
137
decorated_symbol_exprt (
@@ -213,7 +207,6 @@ inline void validate_expr(const symbol_exprt &value)
213
207
class nondet_symbol_exprt :public exprt
214
208
{
215
209
public:
216
- // / \brief Constructor
217
210
// / \param identifier: Name of symbol
218
211
// / \param : type Type of symbol
219
212
nondet_symbol_exprt (
@@ -345,7 +338,7 @@ template<> inline bool can_cast_expr<unary_exprt>(const exprt &base)
345
338
}
346
339
347
340
348
- // / \brief absolute value
341
+ // / \brief Absolute value
349
342
class abs_exprt :public unary_exprt
350
343
{
351
344
public:
@@ -547,7 +540,7 @@ class predicate_exprt:public exprt
547
540
};
548
541
549
542
// / \brief A generic base class for expressions that are predicates,
550
- // / i.e., boolean -typed, and that take exactly one argument.
543
+ // / i.e., Boolean -typed, and that take exactly one argument.
551
544
class unary_predicate_exprt :public unary_exprt
552
545
{
553
546
public:
@@ -571,7 +564,7 @@ class unary_predicate_exprt:public unary_exprt
571
564
using exprt::op2; // hide
572
565
};
573
566
574
- // / \brief sign of an expression
567
+ // / \brief Sign of an expression
575
568
// / Predicate is true if \a _op is negative, false otherwise.
576
569
class sign_exprt :public unary_predicate_exprt
577
570
{
@@ -661,7 +654,7 @@ template<> inline bool can_cast_expr<binary_exprt>(const exprt &base)
661
654
662
655
663
656
// / \brief A generic base class for expressions that are predicates,
664
- // / i.e., boolean -typed, and that take exactly two arguments.
657
+ // / i.e., Boolean -typed, and that take exactly two arguments.
665
658
class binary_predicate_exprt :public binary_exprt
666
659
{
667
660
public:
@@ -755,6 +748,7 @@ template<> inline bool can_cast_expr<binary_relation_exprt>(const exprt &base)
755
748
756
749
757
750
// / \brief A generic base class for multi-ary expressions
751
+ // / Associativity is not specified.
758
752
class multi_ary_exprt :public exprt
759
753
{
760
754
public:
@@ -812,6 +806,7 @@ inline multi_ary_exprt &to_multi_ary_expr(exprt &expr)
812
806
813
807
814
808
// / \brief The plus expression
809
+ // / Associativity is not specified.
815
810
class plus_exprt :public multi_ary_exprt
816
811
{
817
812
public:
@@ -871,7 +866,7 @@ inline void validate_expr(const plus_exprt &value)
871
866
}
872
867
873
868
874
- // / \brief binary minus
869
+ // / \brief Binary minus
875
870
class minus_exprt :public binary_exprt
876
871
{
877
872
public:
@@ -923,7 +918,8 @@ inline void validate_expr(const minus_exprt &value)
923
918
}
924
919
925
920
926
- // / \brief binary multiplication
921
+ // / \brief Binary multiplication
922
+ // / Associativity is not specified.
927
923
class mult_exprt :public multi_ary_exprt
928
924
{
929
925
public:
@@ -975,7 +971,7 @@ inline void validate_expr(const mult_exprt &value)
975
971
}
976
972
977
973
978
- // / \brief division (integer and real)
974
+ // / \brief Division
979
975
class div_exprt :public binary_exprt
980
976
{
981
977
public:
@@ -1027,7 +1023,7 @@ inline void validate_expr(const div_exprt &value)
1027
1023
}
1028
1024
1029
1025
1030
- // / \brief modulo
1026
+ // / \brief Modulo
1031
1027
class mod_exprt :public binary_exprt
1032
1028
{
1033
1029
public:
@@ -1075,7 +1071,7 @@ inline void validate_expr(const mod_exprt &value)
1075
1071
}
1076
1072
1077
1073
1078
- // / \brief remainder of division
1074
+ // / \brief Remainder of division
1079
1075
class rem_exprt :public binary_exprt
1080
1076
{
1081
1077
public:
@@ -1123,8 +1119,7 @@ inline void validate_expr(const rem_exprt &value)
1123
1119
}
1124
1120
1125
1121
1126
- // / \brief exponentiation
1127
- // //
1122
+ // / \brief Exponentiation
1128
1123
class power_exprt :public binary_exprt
1129
1124
{
1130
1125
public:
@@ -1172,7 +1167,7 @@ inline void validate_expr(const power_exprt &value)
1172
1167
}
1173
1168
1174
1169
1175
- // / \brief falling factorial power
1170
+ // / \brief Falling factorial power
1176
1171
class factorial_power_exprt :public binary_exprt
1177
1172
{
1178
1173
public:
@@ -1225,7 +1220,7 @@ inline void validate_expr(const factorial_power_exprt &value)
1225
1220
}
1226
1221
1227
1222
1228
- // / \brief equality
1223
+ // / \brief Equality
1229
1224
class equal_exprt :public binary_relation_exprt
1230
1225
{
1231
1226
public:
@@ -1271,7 +1266,7 @@ inline void validate_expr(const equal_exprt &value)
1271
1266
}
1272
1267
1273
1268
1274
- // / \brief inequality
1269
+ // / \brief Disequality
1275
1270
class notequal_exprt :public binary_relation_exprt
1276
1271
{
1277
1272
public:
@@ -1321,7 +1316,7 @@ inline void validate_expr(const notequal_exprt &value)
1321
1316
}
1322
1317
1323
1318
1324
- // / \brief array index operator
1319
+ // / \brief Array index operator
1325
1320
class index_exprt :public binary_exprt
1326
1321
{
1327
1322
public:
@@ -1525,7 +1520,7 @@ inline void validate_expr(const array_list_exprt &value)
1525
1520
PRECONDITION (value.operands ().size () % 2 == 0 );
1526
1521
}
1527
1522
1528
- // / \brief vector constructor from list of elements
1523
+ // / \brief Vector constructor from list of elements
1529
1524
class vector_exprt :public exprt
1530
1525
{
1531
1526
public:
@@ -1565,7 +1560,7 @@ template<> inline bool can_cast_expr<vector_exprt>(const exprt &base)
1565
1560
}
1566
1561
1567
1562
1568
- // / \brief union constructor from single element
1563
+ // / \brief Union constructor from single element
1569
1564
class union_exprt :public unary_exprt
1570
1565
{
1571
1566
public:
@@ -1644,7 +1639,7 @@ inline void validate_expr(const union_exprt &value)
1644
1639
}
1645
1640
1646
1641
1647
- // / \brief struct constructor from list of elements
1642
+ // / \brief Struct constructor from list of elements
1648
1643
class struct_exprt :public exprt
1649
1644
{
1650
1645
public:
@@ -1687,7 +1682,7 @@ template<> inline bool can_cast_expr<struct_exprt>(const exprt &base)
1687
1682
}
1688
1683
1689
1684
1690
- // / \brief complex constructor from a pair of numbers
1685
+ // / \brief Complex constructor from a pair of numbers
1691
1686
class complex_exprt :public binary_exprt
1692
1687
{
1693
1688
public:
@@ -1765,7 +1760,7 @@ inline void validate_expr(const complex_exprt &value)
1765
1760
1766
1761
class namespacet ;
1767
1762
1768
- // / \brief split an expression into a base object and a (byte) offset
1763
+ // / \brief Split an expression into a base object and a (byte) offset
1769
1764
class object_descriptor_exprt :public binary_exprt
1770
1765
{
1771
1766
public:
@@ -1838,7 +1833,7 @@ inline void validate_expr(const object_descriptor_exprt &value)
1838
1833
}
1839
1834
1840
1835
1841
- // / \brief TO_BE_DOCUMENTED
1836
+ // / Representation of heap-allocated objects
1842
1837
class dynamic_object_exprt :public binary_exprt
1843
1838
{
1844
1839
public:
@@ -1908,7 +1903,7 @@ inline void validate_expr(const dynamic_object_exprt &value)
1908
1903
}
1909
1904
1910
1905
1911
- // / \brief semantic type conversion
1906
+ // / \brief Semantic type conversion
1912
1907
class typecast_exprt :public unary_exprt
1913
1908
{
1914
1909
public:
@@ -1967,7 +1962,7 @@ inline void validate_expr(const typecast_exprt &value)
1967
1962
}
1968
1963
1969
1964
1970
- // / \brief semantic type conversion from/to floating-point formats
1965
+ // / \brief Semantic type conversion from/to floating-point formats
1971
1966
class floatbv_typecast_exprt :public binary_exprt
1972
1967
{
1973
1968
public:
@@ -2076,8 +2071,8 @@ class and_exprt:public multi_ary_exprt
2076
2071
};
2077
2072
2078
2073
// / 1) generates a conjunction for two or more operands
2079
- // / 2) for one operand, returns the operand
2080
- // / 3) returns true otherwise
2074
+ // / 2) for one operand, returns the operand
2075
+ // / 3) returns true otherwise
2081
2076
2082
2077
exprt conjunction (const exprt::operandst &);
2083
2078
@@ -2199,8 +2194,8 @@ class or_exprt:public multi_ary_exprt
2199
2194
};
2200
2195
2201
2196
// / 1) generates a disjunction for two or more operands
2202
- // / 2) for one operand, returns the operand
2203
- // / 3) returns false otherwise
2197
+ // / 2) for one operand, returns the operand
2198
+ // / 3) returns false otherwise
2204
2199
2205
2200
exprt disjunction (const exprt::operandst &);
2206
2201
@@ -3142,8 +3137,8 @@ inline void validate_expr(const if_exprt &value)
3142
3137
3143
3138
3144
3139
// / \brief Operator to update elements in structs and arrays
3145
- // / \remark This expression will eventually be replaced by separate
3146
- // / array and struct update operators.
3140
+ // / \remark This expression will eventually be replaced by separate
3141
+ // / array and struct update operators.
3147
3142
class with_exprt :public exprt
3148
3143
{
3149
3144
public:
@@ -3438,7 +3433,7 @@ inline void validate_expr(const update_exprt &value)
3438
3433
3439
3434
3440
3435
#if 0
3441
- /// \brief update of one element of an array
3436
+ /// \brief Update of one element of an array
3442
3437
class array_update_exprt:public exprt
3443
3438
{
3444
3439
public:
@@ -4126,7 +4121,7 @@ class null_pointer_exprt:public constant_exprt
4126
4121
}
4127
4122
};
4128
4123
4129
- // / \brief application of (mathematical) function
4124
+ // / \brief Application of (mathematical) function
4130
4125
class function_application_exprt :public binary_exprt
4131
4126
{
4132
4127
public:
0 commit comments