def METHOD_NAME(evmtester, branch_results):
    evmtester.terneryBranches(3, False, False, False, False)
    results = branch_results()
    for i in [2771, 2777, 2807]:
        assert [i, i + 1] in results[True]
    evmtester.terneryBranches(3, True, False, False, False)
    results = branch_results()
    assert [2813, 2814] in results[True]
    for i in [2771, 2807]:
        assert [i, i + 1] in results[False]
    evmtester.terneryBranches(3, False, True, False, False)
    results = branch_results()
    assert [2777, 2778] in results[False]
    for i in [2771, 2807]:
        assert [i, i + 1] in results[True]
    evmtester.terneryBranches(3, True, True, False, False)
    results = branch_results()
    for i in [2771, 2807, 2813]:
        assert [i, i + 1] in results[False]