Skip to content

No way to set a configuration option to an empty value #33

@MartinSpiessl

Description

@MartinSpiessl

Taken from:

https://gitlab.com/sosy-lab/software/cpachecker/-/issues/578#note_412658216

Does an empty option (empty string, not an empty set) override an existing value correctly?

There seems to be a difference for:
scripts/cpa.sh -valueAnalysis-concurrency -spec test/programs/benchmarks/properties/unreach-call.prp test/programs/benchmarks/pthread-atomic/dekker.i

when using the additional option:
-setprop cpa.callstack.unsupportedFunctions=dummy # or "{}"
or:
-setprop cpa.callstack.unsupportedFunctions= # empty string

Is this a bug in our option handling?

The general problem is if an option that contains some kind of collection has a default value other than the empty list, how can we reset it to just contain the empty list?

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