Skip to content

Commit 7eb64aa

Browse files
committed
Dataflow: Code review fixes.
1 parent 1ae76a8 commit 7eb64aa

File tree

22 files changed

+127
-127
lines changed

22 files changed

+127
-127
lines changed

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowImpl.qll

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ abstract class Configuration extends string {
112112
predicate hasFlowToExpr(DataFlowExpr sink) { hasFlowTo(exprNode(sink)) }
113113

114114
/**
115-
* Gets the exploration limit for `hasPartialFlow` measured in approximate
116-
* number of interprocedural steps.
115+
* Gets the exploration limit for `hasPartialFlow` and `hasPartialFlowRev`
116+
* measured in approximate number of interprocedural steps.
117117
*/
118118
int explorationLimit() { none() }
119119

@@ -123,7 +123,7 @@ abstract class Configuration extends string {
123123
* is restricted to be less than or equal to `explorationLimit()`. This
124124
* predicate completely disregards sink definitions.
125125
*
126-
* This predicate is intended for dataflow exploration and debugging and may
126+
* This predicate is intended for data-flow exploration and debugging and may
127127
* perform poorly if the number of sources is too big and/or the exploration
128128
* limit is set too high without using barriers.
129129
*
@@ -143,7 +143,7 @@ abstract class Configuration extends string {
143143
* is restricted to be less than or equal to `explorationLimit()`. This
144144
* predicate completely disregards source definitions.
145145
*
146-
* This predicate is intended for dataflow exploration and debugging and may
146+
* This predicate is intended for data-flow exploration and debugging and may
147147
* perform poorly if the number of sinks is too big and/or the exploration
148148
* limit is set too high without using barriers.
149149
*
@@ -155,7 +155,7 @@ abstract class Configuration extends string {
155155
* Note that reverse flow has slightly lower precision than the corresponding
156156
* forward flow, as reverse flow disregards type pruning among other features.
157157
*/
158-
final predicate hasRevPartialFlow(PartialPathNode node, PartialPathNode sink, int dist) {
158+
final predicate hasPartialFlowRev(PartialPathNode node, PartialPathNode sink, int dist) {
159159
revPartialFlow(node, sink, this) and
160160
dist = node.getSinkDistance()
161161
}
@@ -3211,7 +3211,7 @@ private module FlowExploration {
32113211
}
32123212

32133213
/**
3214-
* Gets the approximate distance to the nearest source measured in number
3214+
* Gets the approximate distance to the nearest sink measured in number
32153215
* of interprocedural steps.
32163216
*/
32173217
int getSinkDistance() {

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowImpl2.qll

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ abstract class Configuration extends string {
112112
predicate hasFlowToExpr(DataFlowExpr sink) { hasFlowTo(exprNode(sink)) }
113113

114114
/**
115-
* Gets the exploration limit for `hasPartialFlow` measured in approximate
116-
* number of interprocedural steps.
115+
* Gets the exploration limit for `hasPartialFlow` and `hasPartialFlowRev`
116+
* measured in approximate number of interprocedural steps.
117117
*/
118118
int explorationLimit() { none() }
119119

@@ -123,7 +123,7 @@ abstract class Configuration extends string {
123123
* is restricted to be less than or equal to `explorationLimit()`. This
124124
* predicate completely disregards sink definitions.
125125
*
126-
* This predicate is intended for dataflow exploration and debugging and may
126+
* This predicate is intended for data-flow exploration and debugging and may
127127
* perform poorly if the number of sources is too big and/or the exploration
128128
* limit is set too high without using barriers.
129129
*
@@ -143,7 +143,7 @@ abstract class Configuration extends string {
143143
* is restricted to be less than or equal to `explorationLimit()`. This
144144
* predicate completely disregards source definitions.
145145
*
146-
* This predicate is intended for dataflow exploration and debugging and may
146+
* This predicate is intended for data-flow exploration and debugging and may
147147
* perform poorly if the number of sinks is too big and/or the exploration
148148
* limit is set too high without using barriers.
149149
*
@@ -155,7 +155,7 @@ abstract class Configuration extends string {
155155
* Note that reverse flow has slightly lower precision than the corresponding
156156
* forward flow, as reverse flow disregards type pruning among other features.
157157
*/
158-
final predicate hasRevPartialFlow(PartialPathNode node, PartialPathNode sink, int dist) {
158+
final predicate hasPartialFlowRev(PartialPathNode node, PartialPathNode sink, int dist) {
159159
revPartialFlow(node, sink, this) and
160160
dist = node.getSinkDistance()
161161
}
@@ -3211,7 +3211,7 @@ private module FlowExploration {
32113211
}
32123212

32133213
/**
3214-
* Gets the approximate distance to the nearest source measured in number
3214+
* Gets the approximate distance to the nearest sink measured in number
32153215
* of interprocedural steps.
32163216
*/
32173217
int getSinkDistance() {

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowImpl3.qll

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ abstract class Configuration extends string {
112112
predicate hasFlowToExpr(DataFlowExpr sink) { hasFlowTo(exprNode(sink)) }
113113

114114
/**
115-
* Gets the exploration limit for `hasPartialFlow` measured in approximate
116-
* number of interprocedural steps.
115+
* Gets the exploration limit for `hasPartialFlow` and `hasPartialFlowRev`
116+
* measured in approximate number of interprocedural steps.
117117
*/
118118
int explorationLimit() { none() }
119119

@@ -123,7 +123,7 @@ abstract class Configuration extends string {
123123
* is restricted to be less than or equal to `explorationLimit()`. This
124124
* predicate completely disregards sink definitions.
125125
*
126-
* This predicate is intended for dataflow exploration and debugging and may
126+
* This predicate is intended for data-flow exploration and debugging and may
127127
* perform poorly if the number of sources is too big and/or the exploration
128128
* limit is set too high without using barriers.
129129
*
@@ -143,7 +143,7 @@ abstract class Configuration extends string {
143143
* is restricted to be less than or equal to `explorationLimit()`. This
144144
* predicate completely disregards source definitions.
145145
*
146-
* This predicate is intended for dataflow exploration and debugging and may
146+
* This predicate is intended for data-flow exploration and debugging and may
147147
* perform poorly if the number of sinks is too big and/or the exploration
148148
* limit is set too high without using barriers.
149149
*
@@ -155,7 +155,7 @@ abstract class Configuration extends string {
155155
* Note that reverse flow has slightly lower precision than the corresponding
156156
* forward flow, as reverse flow disregards type pruning among other features.
157157
*/
158-
final predicate hasRevPartialFlow(PartialPathNode node, PartialPathNode sink, int dist) {
158+
final predicate hasPartialFlowRev(PartialPathNode node, PartialPathNode sink, int dist) {
159159
revPartialFlow(node, sink, this) and
160160
dist = node.getSinkDistance()
161161
}
@@ -3211,7 +3211,7 @@ private module FlowExploration {
32113211
}
32123212

32133213
/**
3214-
* Gets the approximate distance to the nearest source measured in number
3214+
* Gets the approximate distance to the nearest sink measured in number
32153215
* of interprocedural steps.
32163216
*/
32173217
int getSinkDistance() {

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowImpl4.qll

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ abstract class Configuration extends string {
112112
predicate hasFlowToExpr(DataFlowExpr sink) { hasFlowTo(exprNode(sink)) }
113113

114114
/**
115-
* Gets the exploration limit for `hasPartialFlow` measured in approximate
116-
* number of interprocedural steps.
115+
* Gets the exploration limit for `hasPartialFlow` and `hasPartialFlowRev`
116+
* measured in approximate number of interprocedural steps.
117117
*/
118118
int explorationLimit() { none() }
119119

@@ -123,7 +123,7 @@ abstract class Configuration extends string {
123123
* is restricted to be less than or equal to `explorationLimit()`. This
124124
* predicate completely disregards sink definitions.
125125
*
126-
* This predicate is intended for dataflow exploration and debugging and may
126+
* This predicate is intended for data-flow exploration and debugging and may
127127
* perform poorly if the number of sources is too big and/or the exploration
128128
* limit is set too high without using barriers.
129129
*
@@ -143,7 +143,7 @@ abstract class Configuration extends string {
143143
* is restricted to be less than or equal to `explorationLimit()`. This
144144
* predicate completely disregards source definitions.
145145
*
146-
* This predicate is intended for dataflow exploration and debugging and may
146+
* This predicate is intended for data-flow exploration and debugging and may
147147
* perform poorly if the number of sinks is too big and/or the exploration
148148
* limit is set too high without using barriers.
149149
*
@@ -155,7 +155,7 @@ abstract class Configuration extends string {
155155
* Note that reverse flow has slightly lower precision than the corresponding
156156
* forward flow, as reverse flow disregards type pruning among other features.
157157
*/
158-
final predicate hasRevPartialFlow(PartialPathNode node, PartialPathNode sink, int dist) {
158+
final predicate hasPartialFlowRev(PartialPathNode node, PartialPathNode sink, int dist) {
159159
revPartialFlow(node, sink, this) and
160160
dist = node.getSinkDistance()
161161
}
@@ -3211,7 +3211,7 @@ private module FlowExploration {
32113211
}
32123212

32133213
/**
3214-
* Gets the approximate distance to the nearest source measured in number
3214+
* Gets the approximate distance to the nearest sink measured in number
32153215
* of interprocedural steps.
32163216
*/
32173217
int getSinkDistance() {

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowImplLocal.qll

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ abstract class Configuration extends string {
112112
predicate hasFlowToExpr(DataFlowExpr sink) { hasFlowTo(exprNode(sink)) }
113113

114114
/**
115-
* Gets the exploration limit for `hasPartialFlow` measured in approximate
116-
* number of interprocedural steps.
115+
* Gets the exploration limit for `hasPartialFlow` and `hasPartialFlowRev`
116+
* measured in approximate number of interprocedural steps.
117117
*/
118118
int explorationLimit() { none() }
119119

@@ -123,7 +123,7 @@ abstract class Configuration extends string {
123123
* is restricted to be less than or equal to `explorationLimit()`. This
124124
* predicate completely disregards sink definitions.
125125
*
126-
* This predicate is intended for dataflow exploration and debugging and may
126+
* This predicate is intended for data-flow exploration and debugging and may
127127
* perform poorly if the number of sources is too big and/or the exploration
128128
* limit is set too high without using barriers.
129129
*
@@ -143,7 +143,7 @@ abstract class Configuration extends string {
143143
* is restricted to be less than or equal to `explorationLimit()`. This
144144
* predicate completely disregards source definitions.
145145
*
146-
* This predicate is intended for dataflow exploration and debugging and may
146+
* This predicate is intended for data-flow exploration and debugging and may
147147
* perform poorly if the number of sinks is too big and/or the exploration
148148
* limit is set too high without using barriers.
149149
*
@@ -155,7 +155,7 @@ abstract class Configuration extends string {
155155
* Note that reverse flow has slightly lower precision than the corresponding
156156
* forward flow, as reverse flow disregards type pruning among other features.
157157
*/
158-
final predicate hasRevPartialFlow(PartialPathNode node, PartialPathNode sink, int dist) {
158+
final predicate hasPartialFlowRev(PartialPathNode node, PartialPathNode sink, int dist) {
159159
revPartialFlow(node, sink, this) and
160160
dist = node.getSinkDistance()
161161
}
@@ -3211,7 +3211,7 @@ private module FlowExploration {
32113211
}
32123212

32133213
/**
3214-
* Gets the approximate distance to the nearest source measured in number
3214+
* Gets the approximate distance to the nearest sink measured in number
32153215
* of interprocedural steps.
32163216
*/
32173217
int getSinkDistance() {

cpp/ql/src/semmle/code/cpp/ir/dataflow/internal/DataFlowImpl.qll

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ abstract class Configuration extends string {
112112
predicate hasFlowToExpr(DataFlowExpr sink) { hasFlowTo(exprNode(sink)) }
113113

114114
/**
115-
* Gets the exploration limit for `hasPartialFlow` measured in approximate
116-
* number of interprocedural steps.
115+
* Gets the exploration limit for `hasPartialFlow` and `hasPartialFlowRev`
116+
* measured in approximate number of interprocedural steps.
117117
*/
118118
int explorationLimit() { none() }
119119

@@ -123,7 +123,7 @@ abstract class Configuration extends string {
123123
* is restricted to be less than or equal to `explorationLimit()`. This
124124
* predicate completely disregards sink definitions.
125125
*
126-
* This predicate is intended for dataflow exploration and debugging and may
126+
* This predicate is intended for data-flow exploration and debugging and may
127127
* perform poorly if the number of sources is too big and/or the exploration
128128
* limit is set too high without using barriers.
129129
*
@@ -143,7 +143,7 @@ abstract class Configuration extends string {
143143
* is restricted to be less than or equal to `explorationLimit()`. This
144144
* predicate completely disregards source definitions.
145145
*
146-
* This predicate is intended for dataflow exploration and debugging and may
146+
* This predicate is intended for data-flow exploration and debugging and may
147147
* perform poorly if the number of sinks is too big and/or the exploration
148148
* limit is set too high without using barriers.
149149
*
@@ -155,7 +155,7 @@ abstract class Configuration extends string {
155155
* Note that reverse flow has slightly lower precision than the corresponding
156156
* forward flow, as reverse flow disregards type pruning among other features.
157157
*/
158-
final predicate hasRevPartialFlow(PartialPathNode node, PartialPathNode sink, int dist) {
158+
final predicate hasPartialFlowRev(PartialPathNode node, PartialPathNode sink, int dist) {
159159
revPartialFlow(node, sink, this) and
160160
dist = node.getSinkDistance()
161161
}
@@ -3211,7 +3211,7 @@ private module FlowExploration {
32113211
}
32123212

32133213
/**
3214-
* Gets the approximate distance to the nearest source measured in number
3214+
* Gets the approximate distance to the nearest sink measured in number
32153215
* of interprocedural steps.
32163216
*/
32173217
int getSinkDistance() {

cpp/ql/src/semmle/code/cpp/ir/dataflow/internal/DataFlowImpl2.qll

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ abstract class Configuration extends string {
112112
predicate hasFlowToExpr(DataFlowExpr sink) { hasFlowTo(exprNode(sink)) }
113113

114114
/**
115-
* Gets the exploration limit for `hasPartialFlow` measured in approximate
116-
* number of interprocedural steps.
115+
* Gets the exploration limit for `hasPartialFlow` and `hasPartialFlowRev`
116+
* measured in approximate number of interprocedural steps.
117117
*/
118118
int explorationLimit() { none() }
119119

@@ -123,7 +123,7 @@ abstract class Configuration extends string {
123123
* is restricted to be less than or equal to `explorationLimit()`. This
124124
* predicate completely disregards sink definitions.
125125
*
126-
* This predicate is intended for dataflow exploration and debugging and may
126+
* This predicate is intended for data-flow exploration and debugging and may
127127
* perform poorly if the number of sources is too big and/or the exploration
128128
* limit is set too high without using barriers.
129129
*
@@ -143,7 +143,7 @@ abstract class Configuration extends string {
143143
* is restricted to be less than or equal to `explorationLimit()`. This
144144
* predicate completely disregards source definitions.
145145
*
146-
* This predicate is intended for dataflow exploration and debugging and may
146+
* This predicate is intended for data-flow exploration and debugging and may
147147
* perform poorly if the number of sinks is too big and/or the exploration
148148
* limit is set too high without using barriers.
149149
*
@@ -155,7 +155,7 @@ abstract class Configuration extends string {
155155
* Note that reverse flow has slightly lower precision than the corresponding
156156
* forward flow, as reverse flow disregards type pruning among other features.
157157
*/
158-
final predicate hasRevPartialFlow(PartialPathNode node, PartialPathNode sink, int dist) {
158+
final predicate hasPartialFlowRev(PartialPathNode node, PartialPathNode sink, int dist) {
159159
revPartialFlow(node, sink, this) and
160160
dist = node.getSinkDistance()
161161
}
@@ -3211,7 +3211,7 @@ private module FlowExploration {
32113211
}
32123212

32133213
/**
3214-
* Gets the approximate distance to the nearest source measured in number
3214+
* Gets the approximate distance to the nearest sink measured in number
32153215
* of interprocedural steps.
32163216
*/
32173217
int getSinkDistance() {

cpp/ql/src/semmle/code/cpp/ir/dataflow/internal/DataFlowImpl3.qll

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ abstract class Configuration extends string {
112112
predicate hasFlowToExpr(DataFlowExpr sink) { hasFlowTo(exprNode(sink)) }
113113

114114
/**
115-
* Gets the exploration limit for `hasPartialFlow` measured in approximate
116-
* number of interprocedural steps.
115+
* Gets the exploration limit for `hasPartialFlow` and `hasPartialFlowRev`
116+
* measured in approximate number of interprocedural steps.
117117
*/
118118
int explorationLimit() { none() }
119119

@@ -123,7 +123,7 @@ abstract class Configuration extends string {
123123
* is restricted to be less than or equal to `explorationLimit()`. This
124124
* predicate completely disregards sink definitions.
125125
*
126-
* This predicate is intended for dataflow exploration and debugging and may
126+
* This predicate is intended for data-flow exploration and debugging and may
127127
* perform poorly if the number of sources is too big and/or the exploration
128128
* limit is set too high without using barriers.
129129
*
@@ -143,7 +143,7 @@ abstract class Configuration extends string {
143143
* is restricted to be less than or equal to `explorationLimit()`. This
144144
* predicate completely disregards source definitions.
145145
*
146-
* This predicate is intended for dataflow exploration and debugging and may
146+
* This predicate is intended for data-flow exploration and debugging and may
147147
* perform poorly if the number of sinks is too big and/or the exploration
148148
* limit is set too high without using barriers.
149149
*
@@ -155,7 +155,7 @@ abstract class Configuration extends string {
155155
* Note that reverse flow has slightly lower precision than the corresponding
156156
* forward flow, as reverse flow disregards type pruning among other features.
157157
*/
158-
final predicate hasRevPartialFlow(PartialPathNode node, PartialPathNode sink, int dist) {
158+
final predicate hasPartialFlowRev(PartialPathNode node, PartialPathNode sink, int dist) {
159159
revPartialFlow(node, sink, this) and
160160
dist = node.getSinkDistance()
161161
}
@@ -3211,7 +3211,7 @@ private module FlowExploration {
32113211
}
32123212

32133213
/**
3214-
* Gets the approximate distance to the nearest source measured in number
3214+
* Gets the approximate distance to the nearest sink measured in number
32153215
* of interprocedural steps.
32163216
*/
32173217
int getSinkDistance() {

0 commit comments

Comments
 (0)