fret icon indicating copy to clipboard operation
fret copied to clipboard

Compatibility issue with Kind2 (v2.3.0) and test generation

Open rdinizcal opened this issue 1 year ago • 1 comments

Hi,

I’m running into a reproducible issue with test generation in FRET when using Kind2 as the engine.

Environment:

Observed behavior:
When generating tests using FRET with Kind2 v2.3.0, FRET fails during JSON parsing of Kind2’s output. The failure occurs because the Kind2 output includes invalid JSON in the analysisStart.concrete array — it contains unquoted Lustre identifiers such as:

"concrete" : [
    delay6,
    delay5,
    delay,
    ZtoPre,
    ...
]

This is not valid JSON, so JSON.parse() in FRET’s TestGenUtils.js throws a syntax error. This prevents any test generation from completing.

Fix: Downgrading to Kind2 v2.2.0 (released May 2024) resolves the issue — the concrete array in that version’s output correctly contains quoted strings, and FRET is able to parse the output and generate tests without modification.

rdinizcal avatar Aug 08 '25 08:08 rdinizcal

Hi @rdinizcal ,

Thanks for mentioning this. It is a known issue with the public release of Kind2 v2.3.0 and affects both test case generation and realizability checking.

An alternative fix to downgrading would be to build the development version of Kind 2 from source using opam, setting their main (develop) branch as an anchor. This option would allow you to consider Kind 2 fixes without waiting for a new release.

Since this issue is not related to FRET functionality, I will close it as resolved. We will still be adding a note regarding this in our installation guide.

Best,

Andreas

andreaskatis avatar Aug 11 '25 13:08 andreaskatis