Skip to content

constval/createUndefValue: replacing LLVM undef value by all zeros is not accurate #41

@tomsik68

Description

@tomsik68

We need this for scalar as well as aggregate type of undef value.

It would be nice to have a choice:

  1. The default behavior could be to crash with an error message that undef value doesn't translate to C.
  2. For sv-comp compatible verifiers, we need an option to replace undef values by __VERIFIER_nondet_* (depending on type).
  3. We can still have the option to replace undef value by zero, but user has to ask for it explicitly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions