File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
docs/language/ql-handbook Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -498,15 +498,15 @@ In some cases, using the type union over the whole algebraic datatype can avoid
498
498
For example, the following construction is legal::
499
499
500
500
newtype InitialValueSource =
501
- ExplicitInitialization(VarDecl v) { exists(v.getInitializer()) } or
502
- ParameterPassing(Call c, int pos) { exists(c.getParameter(pos)) } or
503
- UnknownInitialGarbage(VarDecl v) { not exists(DefiniteInitialization di | v = target(di)) }
501
+ ExplicitInitialization(VarDecl v) { exists(v.getInitializer()) } or
502
+ ParameterPassing(Call c, int pos) { exists(c.getParameter(pos)) } or
503
+ UnknownInitialGarbage(VarDecl v) { not exists(DefiniteInitialization di | v = target(di)) }
504
504
505
505
class DefiniteInitialization = ParameterPassing or ExplicitInitialization;
506
506
507
507
VarDecl target(DefiniteInitialization di) {
508
- di = ExplicitInitialization(result) or
509
- exists(Call c, int pos | di = ParameterPassing(c, pos) and
508
+ di = ExplicitInitialization(result) or
509
+ exists(Call c, int pos | di = ParameterPassing(c, pos) and
510
510
result = c.getCallee().getFormalArg(pos))
511
511
}
512
512
You can’t perform that action at this time.
0 commit comments