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

Transformation idea: extend trivial for loop range #960

Open
paulthomson opened this issue Apr 14, 2020 · 13 comments
Open

Transformation idea: extend trivial for loop range #960

paulthomson opened this issue Apr 14, 2020 · 13 comments
Labels
good first issue Good for newcomers

Comments

@paulthomson
Copy link
Collaborator

E.g.

for (int i = 0; i < 3; ++i) {
  ...
}

->

for (int i = 0; i < 100; ++i) {
  if (i >= 3) { break; }
  ...
}

This might difficult to reduce.

@afd
Copy link
Contributor

afd commented Apr 14, 2020

This could be encoded as:

for (int i = 0; i < _GLF_ENLARGED_LOOP_BOUND(i, 3, 100); ++i) {
    if (_GLF_ENLARGED_LOOP_BREAK(i, i >= 3) {
         break;
    } else {
        // original statements
    }
}

The reducer would then be able to reverse the transformation by identifying and acting on a pair of such macros that use the same loop variable, i.

@afd afd added the good first issue Good for newcomers label Mar 9, 2021
@shubhav99
Copy link

Hi there
I want to solve this issue
Please help me through this

@afd
Copy link
Contributor

afd commented Mar 17, 2021

I suggest you revisit this after you've solved #958. (In the meantime it would be fine for someone else to take this one.)

@PRATHAM0908
Copy link

i m interested to solve this problem

@KishkinJ10
Copy link

i am a beginner i want to solve this issue please help me

@MUzairS15
Copy link

hey can anyone give more insight i mean what example that has been mentioned only that we have to add?

@Rishi6229
Copy link

hello can i work in this issue?

@nived1967
Copy link

hello i am a beginner in this issue,could you please tell me how to get started

@unnati914
Copy link

hi could i work on this issue?

@Jdbarad
Copy link

Jdbarad commented Oct 27, 2021

I like to Work On this issue, Please Give me a Chance.

@shashikant649sharma
Copy link

I would like to work on this issue.

@aditya-mistri
Copy link

I would like to solve this issue , give me a chance

@Harsh10022004
Copy link

@afd I would like to work on this issue . Could you please assign this issue to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests