inducer / inducer/pymbolic

StringifyMapper: Incorrect result for side-by-side product nodes

Open
#68 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
131
Forks
26
Avg merge
41m
Merged PRs (30d)
2

Description

```python
>>> import pymbolic.primitives as p
>>> a = p.Variable("a")
>>> b = p.Variable("b")
>>> c = p.Variable("c")
>>> print(a * (b * c))
a*b*c # Should have been 'a*(b*c)'
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the StringifyMapper entry point responsible for rendering nested product nodes and reproduce the issue with the provided Python example. Check how parenthesized products are handled, then add a regression test showing that a * (b * c) stringifies as a*(b*c) rather than a*b*c.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.