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

[Improvement]: Support distinct error in error semtype integration #43030

Open
lochana-chathura opened this issue Jul 3, 2024 · 0 comments
Open
Assignees
Labels
Area/SemtypeIntegration Issue related to integrating semtype engine Area/TypeChecker Type Checker related issues #Compiler Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Type/Improvement

Comments

@lochana-chathura
Copy link
Member

lochana-chathura commented Jul 3, 2024

Description

$subject.

// distinctId must be >= 0
public function errorDistinct(int distinctId) returns SemType {
   BddNode bdd = bddAtom(-distinctId - 1);
   return basicSubtype(BT_ERROR, bdd);
}
  • distinct error<R> is equivalent to distinct error & error<R>.

  • distinct error<R> semtype can be modeled as Core.intersect(errorDistinct(id), err) where err is the semtype of error<R>.

@lochana-chathura lochana-chathura added Type/Improvement Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Area/TypeChecker Type Checker related issues #Compiler Area/SemtypeIntegration Issue related to integrating semtype engine labels Jul 3, 2024
@lochana-chathura lochana-chathura self-assigned this Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/SemtypeIntegration Issue related to integrating semtype engine Area/TypeChecker Type Checker related issues #Compiler Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Type/Improvement
Projects
Status: PR Sent
Development

No branches or pull requests

1 participant