github / github/codeql

[Question] How to eliminate cartesian product for negation

Open
#13,691 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
CodeQL
Stars
10.1k
Forks
2.1k
Avg merge
2d 15h
Merged PRs (30d)
141

Description

Hello,

I have the following code :
```
class Foo extends Class {
Foo() {
not isAbstract()
and exists(Bar i | extendsOrImplements(i))
}
```

My understanding from the documentation (https://codeql.github.com/docs/writing-codeql-queries/troubleshooting-query-performance/#eliminate-cartesian-products) is that can lead to computing the cartesian product of the two sets, is it possible to improve the performance of this class?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.