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

Add Comprehensions of Lists, Sets and Maps and generator expressions #1786

Merged
merged 42 commits into from
Oct 30, 2024
Merged
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
7f6d456
Add comprehension expression
KuechA Oct 10, 2024
907dc27
Merge branch 'main' into ak/slice-all-collections
KuechA Oct 10, 2024
92114cc
Initial python translation for listcomp
KuechA Oct 10, 2024
43e779f
SetComp and DictComp in python frontend
KuechA Oct 10, 2024
a5f6dab
First simple tests
KuechA Oct 10, 2024
7d3048a
test in main
KuechA Oct 11, 2024
c9aadd2
Try to add DFG edges
KuechA Oct 16, 2024
7441d33
Fix not implemented error
KuechA Oct 17, 2024
530bc52
Fix more bugs
KuechA Oct 17, 2024
54193eb
Also handle GeneratorExp, add some documentation.
KuechA Oct 17, 2024
4afc7f1
Extract nested class to own file
KuechA Oct 17, 2024
ef08691
Fix bug, aggregate predicates
KuechA Oct 17, 2024
49a7be9
Remove unnecessary changes
KuechA Oct 17, 2024
aa289ed
Specify idea for EOG
KuechA Oct 17, 2024
1361c53
Fake higher test coverage
KuechA Oct 17, 2024
487b38e
More testing
KuechA Oct 17, 2024
4a3607e
More tests
KuechA Oct 17, 2024
3c919ed
Merge branch 'main' into ak/slice-all-collections
KuechA Oct 17, 2024
9fc31e8
Merge branch 'main' into ak/slice-all-collections
KuechA Oct 18, 2024
a30738d
Fix error from renaming
KuechA Oct 18, 2024
b4ff771
Handle the comprehension expression in the control flow sensitive DFG
KuechA Oct 21, 2024
b36e104
Merge branch 'main' into ak/slice-all-collections
KuechA Oct 21, 2024
d334a17
Merge branch 'main' into ak/slice-all-collections
KuechA Oct 22, 2024
313dd45
Adding alternatives to EOG for collection comprehension and fixing sy…
konradweiss Oct 22, 2024
4d38317
Merge branch 'ak/slice-all-collections' of github.com:Fraunhofer-AISE…
konradweiss Oct 22, 2024
9c26db3
Adding alternative that properly depicts generator behavior
konradweiss Oct 22, 2024
ee0e9dd
Small fix
konradweiss Oct 22, 2024
49e45e7
Alternative for ComprehensionExpression
konradweiss Oct 22, 2024
737415c
Fix
konradweiss Oct 22, 2024
e8d7719
Adding EOG handling for ComprehensionExpression and CollectionCompreh…
konradweiss Oct 22, 2024
389eb01
Add test and fix EOG pass implementation
konradweiss Oct 24, 2024
467c6f5
Allow th addition to something that holds arguments and something tha…
konradweiss Oct 24, 2024
6d6af25
Remove useless stuff from ControlflowSensitiveDFGPass
KuechA Oct 24, 2024
761c244
Make non-optional things non-optional
KuechA Oct 24, 2024
b70c63b
Fix test
KuechA Oct 24, 2024
20e863a
Remove condition to reduce code which needs coverage
KuechA Oct 24, 2024
f41d765
More tests
KuechA Oct 24, 2024
91f4ea1
Update stuff
KuechA Oct 29, 2024
b5450ff
review
KuechA Oct 29, 2024
acc7b79
review
KuechA Oct 29, 2024
e6c639f
Merge branch 'main' into ak/slice-all-collections
KuechA Oct 29, 2024
fb30be7
generator type
KuechA Oct 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
review
KuechA committed Oct 29, 2024
commit acc7b7966854b1f6ac472a2935c2ccf38923f75b
Original file line number Diff line number Diff line change
@@ -32,7 +32,6 @@ import de.fraunhofer.aisec.cpg.graph.edges.ast.astOptionalEdgeOf
import de.fraunhofer.aisec.cpg.graph.edges.unwrapping
import de.fraunhofer.aisec.cpg.graph.statements.Statement
import java.util.Objects
import kotlin.collections.plusAssign
import org.apache.commons.lang3.builder.ToStringBuilder
import org.neo4j.ogm.annotation.Relationship