Skip to content

line-aware synthesis producing incorrect results #501

@Geremia

Description

@Geremia

When doing line-aware synthesis on the choose (Ch) function:

module Ch(out o, in x, in y, in z)
  o ^= ((x & y) ^ (~x & z))

the output variable o isn't correct:

expected: 11011001001110100010100101000000
actual:   01000001000000000000100100000000

for these (or any other) test values:

"x": "10111010111111110011001011001010",
"y": "11011101001110101010110101110001",
"z": "11001011111111000010100110000000"

Cost-aware synthesis produces correct results.

mqt-core                3.3.3
mqt-syrec               2.0.1.dev68+g83223c633.d20251229

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingc++Anything related to C++ code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions