Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default value for Inverted counters is not set properly. #685

Closed
feret opened this issue Mar 22, 2024 · 0 comments
Closed

Default value for Inverted counters is not set properly. #685

feret opened this issue Mar 22, 2024 · 0 comments

Comments

@feret
Copy link
Contributor

feret commented Mar 22, 2024

Check with:

%agent: A(c{=0 / += 7})

. -> A() @1
A(c{<=6}) -> A(c{+=1}) @1

KaSim --compile

First rule is compiled into:
A(c{=0} c__inverted{=0})+ @ 1

instead of:
A(c{=0} c__inverted{=7})+ @ 1

feret pushed a commit that referenced this issue Mar 22, 2024
feret pushed a commit that referenced this issue Mar 27, 2024
antoinepouille pushed a commit that referenced this issue Mar 28, 2024
antoinepouille pushed a commit that referenced this issue Mar 28, 2024
antoinepouille pushed a commit that referenced this issue Mar 28, 2024
antoinepouille pushed a commit that referenced this issue Mar 28, 2024
@feret feret closed this as completed Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants