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
498498For example, the following construction is legal::
499499
500500 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)) }
504504
505505 class DefiniteInitialization = ParameterPassing or ExplicitInitialization;
506506
507507 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
510510 result = c.getCallee().getFormalArg(pos))
511511 }
512512
You can’t perform that action at this time.
0 commit comments