Skip to content

Implicit array initialisation #246

Description

@Novak756

Hi, I was trying to run a program like

extern void __VERIFIER_error(void);

int main(){
    int arr[256];
    if(((arr)[((unsigned int) 149)]) == ((unsigned char) 249)){
	__VERIFIER_error();
    }
    return 0;
}

using default configuration. However symbiotic it did not find manage to find the error. Is there a flag that allows for arrays to be initialised implicitly, or do I have to run something like

for(int i = 0; i < ARRAY_SIZE; i++){
    array[i] = __VERIFIER_nondet_int();
}

and explicitly initialize arrays to random values?

Version is

version: 8.0.0-pre
LLVM version: 10.0.0
symbiotic            -> 7134bcf2c0688a1301f0bb71f3d768db5914afd7 (Release)
dg                   -> fec223486f67a51915c64775ac8e0c226c9f703d (Release)
sbt-slicer           -> 85c8cb482fecdd065329a55551bae93af2408c7b (Release)
sbt-instrumentation  -> d0251925f23cb0b0faff204ba3f3662b94bef440 (Release)
klee                 -> a549d22eff3df86710a2b618e8cee889ddc01e6e (Release)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions