Skip to content

2326 interval pentagon ai interval condition semantics#2359

Merged
schuler-henry merged 28 commits intostaging/pentagon-aifrom
2326-interval-pentagon-ai-interval-condition-semantics
Mar 19, 2026
Merged

2326 interval pentagon ai interval condition semantics#2359
schuler-henry merged 28 commits intostaging/pentagon-aifrom
2326-interval-pentagon-ai-interval-condition-semantics

Conversation

@schuler-henry
Copy link
Copy Markdown
Collaborator

Condition semantics for: ==, <, >, is.na and their negations

…' into 2326-interval-pentagon-ai-interval-condition-semantics
…-semantics

# Conflicts:
#	src/abstract-interpretation/absint-visitor.ts
#	src/documentation/wiki-absint.ts
- StateAbstractDomain
  - Updated equal and leq to use Ternary return value
  - Updated mutable version to also accept bottom property
- Abstract Visitor
  - Added abstract getBottomValue method => required for getAbstractValue
  - Updated getAbstractValue method to return bottom if the state is bottom
    - When resolving symbol origins, it is also checked if their state is bottom (and therefore returning bottom as this information is lost in the current state)
- Updated interval expression semantics to return bottom if the state is bottom
…' into 2326-interval-pentagon-ai-interval-condition-semantics

# Conflicts:
#	src/abstract-interpretation/absint-visitor.ts
#	src/abstract-interpretation/interval/numeric-inference.ts
…' into 2326-interval-pentagon-ai-interval-condition-semantics

# Conflicts:
#	src/abstract-interpretation/absint-visitor.ts
…' into 2326-interval-pentagon-ai-interval-condition-semantics

# Conflicts:
#	src/abstract-interpretation/interval/numeric-inference.ts
Result is now applied to variable origins.
Condition value undefined is now correctly handled.
Added further test cases for while loops.
@schuler-henry
Copy link
Copy Markdown
Collaborator Author

schuler-henry commented Feb 23, 2026

@OliverGerstl @EagleoutIce die Condition-Semantics stehen soweit.
Es fehlen noch ein paar Test-Cases um verschiedene Edge-Cases abzuprüfen und ggf. Fehler zu finden.
Ihr dürft aber gerne schon mal drüber schauen und Feedback geben, evtl. ergeben sich noch weitere Punkte für morgen.

Base automatically changed from 2319-interval-pentagon-ai-interval-expression-semantics to staging/pentagon-ai February 24, 2026 17:38
@schuler-henry schuler-henry marked this pull request as ready for review March 10, 2026 22:11
Copy link
Copy Markdown
Member

@EagleoutIce EagleoutIce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For a merge to staging this is fine for me, but maybe we want to wait for @OliverGerstl?

Copy link
Copy Markdown
Collaborator

@OliverGerstl OliverGerstl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me :)
Just some minor things and comments

Comment thread src/abstract-interpretation/data-frame/shape-inference.ts
Comment thread src/abstract-interpretation/interval/condition-semantics.ts Outdated
Comment thread src/abstract-interpretation/interval/condition-semantics.ts
Comment thread src/abstract-interpretation/interval/condition-semantics.ts Outdated
Comment thread src/abstract-interpretation/interval/condition-semantics.ts Outdated
Comment thread src/abstract-interpretation/interval/condition-semantics.ts Outdated
Comment thread src/abstract-interpretation/interval/eval.ts
@schuler-henry schuler-henry merged commit d397840 into staging/pentagon-ai Mar 19, 2026
8 checks passed
@schuler-henry schuler-henry deleted the 2326-interval-pentagon-ai-interval-condition-semantics branch March 19, 2026 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants