Skip to content

Segfault when using fresh variables in initial configuration #3520

@Baltoli

Description

@Baltoli

With the current design of the configuration initialisation mechanism, fresh variables won't work in the initial configuration as they rely on a cell being initialised.

I think the best thing to do here is just emit an error in the frontend if we detect fresh vars in the initial configuration; it might be possible to reorder calls and guarantee that initGeneratedCounterCell is called first, but I strongly suspect not.

Reproducing example:

module REPRODUCER-SYNTAX
  imports INT-SYNTAX
endmodule

module REPRODUCER
  imports DOMAINS
  imports REPRODUCER-SYNTAX

  configuration
    <k> $PGM:Int </k>
    <heap> !_:Int </heap>
endmodule

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions