def construct(self, node_id, json_node):
    logging.debug(('Adding ' + node_id))
    self.ptr = node_id[4:]
    self.points = [ProgramPoint(p) for p in json_node['program_points']]
    self.node_id = self.points[(- 1)].node_id
    self.state = ProgramState(json_node['state_id'], (json_node['program_state'] if (json_node['program_state'] is not None) else None))
    assert (self.node_name() == node_id)
def construct(self, node_id, json_node):
    logging.debug(('Adding ' + node_id))
    self.ptr = node_id[4:]
    self.points = [ProgramPoint(p) for p in json_node['program_points']]
    self.node_id = self.points[(- 1)].node_id
    self.state = ProgramState(json_node['state_id'], (json_node['program_state'] if (json_node['program_state'] is not None) else None))
    assert (self.node_name() == node_id)