@Test public void testForRepeatedTransitionsToStopState() throws Exception {
		String gstr =
			"grammar T;\n"+
			"\t s : e EOF;\n"+
			"\t e :<assoc=right> e '*' e\n"+
			"\t   |<assoc=right> e '+' e\n"+
			"\t   |<assoc=right> e '?' e ':' e\n"+
			"\t   |<assoc=right> e '=' e\n"+
			"\t   | ID\n"+
			"\t   ;\n"+
			"\t ID : 'a'..'z'+ ;\n"+
			"\t WS : (' '|'\\n') -> skip ;";
		Grammar g = new Grammar(gstr);
		String expecting =
			"RuleStart_e_2->s7\n"+
			"s7-action_1:-1->s8\n"+
			"s8-ID->s9\n"+
			"s9->StarLoopEntry_27\n"+
			"StarLoopEntry_27->StarBlockStart_25\n"+
			"StarLoopEntry_27->s28\n"+
			"StarBlockStart_25->s10\n"+
			"StarBlockStart_25->s13\n"+
			"StarBlockStart_25->s16\n"+
			"StarBlockStart_25->s22\n"+
			"s28->RuleStop_e_3\n"+
			"s10-5 >= _p->s11\n"+
			"s13-4 >= _p->s14\n"+
			"s16-3 >= _p->s17\n"+
			"s22-2 >= _p->s23\n"+
			"RuleStop_e_3->s5\n"+
			"RuleStop_e_3->BlockEnd_26\n"+
			"RuleStop_e_3->s19\n"+
			"RuleStop_e_3->s21\n"+
			"s11-'*'->s12\n"+
			"s14-'+'->s15\n"+
			"s17-'?'->s18\n"+
			"s23-'='->s24\n"+
			"s12-e->RuleStart_e_2\n"+
			"s15-e->RuleStart_e_2\n"+
			"s18-e->RuleStart_e_2\n"+
			"s24-e->RuleStart_e_2\n"+
			"BlockEnd_26->StarLoopBack_29\n"+
			"s19-':'->s20\n"+
			"StarLoopBack_29->StarLoopEntry_27\n"+
			"s20-e->RuleStart_e_2\n"+
			"s21->BlockEnd_26\n";
		RuntimeTestUtils.checkRuleATN(g, "e", expecting);
	}
Test for https://github.com/antlr/antlr4/issues/1369
 Repeated edges:

	 RuleStop_e_3->BlockEnd_26
	 RuleStop_e_3->BlockEnd_26
	 RuleStop_e_3->BlockEnd_26
@throws Exception
tool-testsuite/test/org/antlr/v4/test/tool/TestATNConstruction.java