Idiom Recognizer: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 11: Line 11:
|<syntaxhighlight lang="c">
|<syntaxhighlight lang="c">
/* The following code tests idiom recognizer transformation applied to main function.
/* The following code tests idiom recognizer transformation applied to main function.
*/   
*/   


#pragma EMX_TRANSFORMATION IdiomRecognizer
#pragma EMX_TRANSFORMATION IdiomRecognizer
Line 19: Line 19:
     return 0;
     return 0;
}
}
</syntaxhighlight>  
</syntaxhighlight>
|<syntaxhighlight lang="c">
|<syntaxhighlight lang="c">
/* In the given example (on the left side), i = 2 < i ? 2 : i; is recognized as the math min function and it is replaced
/* In the given example (on the left side), i = 2 < i ? 2 : i; is recognized as the math min function and it is replaced
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu