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

CAST-Generator #261

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open

CAST-Generator #261

wants to merge 15 commits into from

Conversation

NeoQuix
Copy link
Collaborator

@NeoQuix NeoQuix commented Jun 27, 2023

New implementation of c -> pycparser AST -> DeWolf AST tool

@NeoQuix NeoQuix self-assigned this Jun 27, 2023
@NeoQuix NeoQuix added the feature-request New feature or request label Jun 27, 2023
@NeoQuix
Copy link
Collaborator Author

NeoQuix commented Jun 27, 2023

Closes #38

@NeoQuix
Copy link
Collaborator Author

NeoQuix commented Jun 27, 2023

To do:

  • Array handling (decl + ref)
  • CaseNodes need the switch condition
  • tests casts with typedefs
  • test constant types with typedefs
  • Add functioncall handler (external + local ones; external not defined via fakelibc)
  • add initlist (x = y = ...?) handler
  • add struct support (when structs are implemented)
  • ternary operator handler (only fancy if?)
  • add other unaryop types (sizeof, ++ etc.)

After that refactor some code + add a bit of comments in nodes.txt

@NeoQuix
Copy link
Collaborator Author

NeoQuix commented Jun 27, 2023

Also:

  • Zip fake_libc_includes + unzip in script
  • check licence for fake_libc_includes

@NeoQuix NeoQuix linked an issue Jun 27, 2023 that may be closed by this pull request
@NeoQuix
Copy link
Collaborator Author

NeoQuix commented Jul 4, 2023

To do:

  • reachability
  • testing + tests
  • disclaimer for everything that is not supported

@NeoQuix
Copy link
Collaborator Author

NeoQuix commented Jul 18, 2023

After much more testing:

  • Unary with ++ is pretty annoying (Because ++ is an Assignment)
    ==> To do
  • Forgot a few major cases/problems of Conditions
    ==> Need to fix BinaryOperation resolver

@NeoQuix
Copy link
Collaborator Author

NeoQuix commented Aug 15, 2023

To do:

  • reachability + tests still
  • test conditions a bit more (they should be fine, i think a few cases can still be generated which result in crashes)
    (calls, special unary)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[C2AST] Generate AST from C code
1 participant