def transform_int_cast(red_node):
    """ Convert int() to to_integer(round_syle=fixed_truncate, overflow_style=fixed_wrap) for VHDL. """
    nodes = red_node.find_all('call')
    for call in nodes:
        call_index = call.previous.index_on_parent
        if call_index != 0:
            continue
        if call.previous.value == 'int':
            call.previous.value = 'to_integer'
            call.append('round_style=fixed_truncate')
            call.append('overflow_style=fixed_wrap')
