Re: [PATCH V4 06/20] tools/rv: Add dot2c

From: Steven Rostedt
Date: Tue Jun 28 2022 - 14:10:58 EST


On Thu, 16 Jun 2022 10:44:48 +0200
Daniel Bristot de Oliveira <bristot@xxxxxxxxxx> wrote:

> + def __create_matrix(self):
> + # transform the array into a dictionary
> + events = self.events
> + states = self.states
> + events_dict = {}
> + states_dict = {}
> + nr_event = 0
> + for event in events:
> + events_dict[event] = nr_event
> + nr_event += 1
> +
> + nr_state = 0
> + for state in states:
> + states_dict[state] = nr_state
> + nr_state = nr_state + 1
> +

Hmm, do you just like inconsistency?

nr_event += 1

nr_state = nr_state + 1

??

-- Steve