-
Notifications
You must be signed in to change notification settings - Fork 114
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
Transformation idea: vector access like .x to [0] #958
Comments
Hi |
Sure. OpaqueExpressionGenerator.java has a field: private final List expressionIdentities; An ExpressionIdentity is a class that knows how to turn an expression e into an equivalent expression e'. In this case we want to turn "v.x", where "v" is a vector, into "v[0]" (and similarly for other components). Lines 72 onwards in OpaqueExpressionGenerator feature statements like:
You would want to add something like:
Then, lower in the class, you would need to write the Have a look at other classes in the file, such as IdentityOrFalse, for inspiration. In your case you will need to override Hope this helps you get started. |
Hey, |
shivani please let me work on this code ..... |
Okay , No problem 🙂 |
hi there ... |
how to proceed from start ?? |
@shubhav99 Can you explain in detail what the problem is that you are facing? What did you try and what error messages are you getting? |
sir i want to work on this issue , from where can i start? |
sir i am stuck in the return statement of this issue , can you help me out? |
sir in the return statement i need to return ArrayIndexExpr ?? like this
|
Hello sir, Can I work on this issue? |
hello i am a beginner in this issue,could you please tell me how to get started |
No description provided.
The text was updated successfully, but these errors were encountered: