Skip to content

VNumber copy constructor with a new length does set defined_size attribute #1738

Closed
@sdamghan

Description

@sdamghan

Expected Behaviour

When a new VNumber is created using a copy constructor with a new length, the defined_size value should set to true.

Current Behaviour

A new VNumber is created with a new size while the defined_size is false.

Possible Solution

Creating a new VNumber using copy constructor with a new length, the defined_size should set to true.

Steps to Reproduce

  1. Run Odin_II with the following test case:
    ${VTR_ROOT}/ODIN_II/odin_ii -V minus_operator.v

Context

Your Environment

  • VTR revision used: 8.1.0-dev+00617ff76
  • Operating System and version: 20.04.1-Ubuntu SMP
  • Compiler version: GNU 9.3.0 on Linux-5.8.0-53-generic x86_64

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions