def METHOD_NAME(self):
    ff, messages = self.get_format_finder_from_protocol_file("rwe.proto.xml", return_messages=True)
    ff.run()
    sync1, sync2 = "0x9a7d9a7d", "0x67686768"
    preprocessor = Preprocessor([np.array(msg.plain_bits, dtype=np.uint8) for msg in messages])
    possible_syncs = preprocessor.find_possible_syncs()
    self.assertIn(ProtocolGenerator.to_bits(sync1), possible_syncs)
    self.assertIn(ProtocolGenerator.to_bits(sync2), possible_syncs)
    ack_messages = (3, 5, 7, 9, 11, 13, 15, 17, 20)
    ack_message_type = next(mt for mt, messages in ff.existing_message_types.items() if ack_messages[0] in messages)
    self.assertTrue(all(ack_msg in ff.existing_message_types[ack_message_type] for ack_msg in ack_messages))
    for mt in ff.message_types:
        preamble = mt.get_first_label_with_type(FieldType.Function.PREAMBLE)
        self.assertEqual(preamble.start, 0)
        self.assertEqual(preamble.length, 32)
        sync = mt.get_first_label_with_type(FieldType.Function.SYNC)
        self.assertEqual(sync.start, 32)
        self.assertEqual(sync.length, 32)
        length = mt.get_first_label_with_type(FieldType.Function.LENGTH)
        self.assertEqual(length.start, 64)
        self.assertEqual(length.length, 8)
        dst = mt.get_first_label_with_type(FieldType.Function.DST_ADDRESS)
        self.assertEqual(dst.length, 24)
        if mt == ack_message_type or 1 in ff.existing_message_types[mt]:
            self.assertEqual(dst.start, 72)
        else:
            self.assertEqual(dst.start, 88)
        if mt != ack_message_type and 1 not in ff.existing_message_types[mt]:
            src = mt.get_first_label_with_type(FieldType.Function.SRC_ADDRESS)
            self.assertEqual(src.start, 112)
            self.assertEqual(src.length, 24)
        elif 1 in ff.existing_message_types[mt]:
            # long ack
            src = mt.get_first_label_with_type(FieldType.Function.SRC_ADDRESS)
            self.assertEqual(src.start, 96)
            self.assertEqual(src.length, 24)
        crc = mt.get_first_label_with_type(FieldType.Function.CHECKSUM)
        self.assertIsNotNone(crc)