function finalizeTestSegmentsOfFor(context, choiceContext, head) {
  if (!choiceContext.processed) {
    choiceContext.trueForkContext.add(head);
    choiceContext.falseForkContext.add(head);
    choiceContext.qqForkContext.add(head);
  }

  if (context.test !== true) {
    context.brokenForkContext.addAll(choiceContext.falseForkContext);
  }
  context.endOfTestSegments = choiceContext.trueForkContext.makeNext(0, -1);
}
Finalizes segments of `test` chunk of a ForStatement.

- Adds `false` paths to paths which are leaving from the loop.
- Sets `true` paths to paths which go to the body.
@param {LoopContext} context A loop context to modify.
@param {ChoiceContext} choiceContext A choice context of this loop.
@param {CodePathSegment[]} head The current head paths.
@returns {void}