- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm unsure about how the SSA works with the preprocessor directives, does it collects the SSA Information during the build process? And uses then the way through the directives, which is defined in the configuration/flags? Or does it ignore all of the directives?
For example the following code:
constantVal = 6
#ifdef A
tmpvar = 10
#else
tmpvar = 0
#endif !A
tmpvar = tmpvar+1
tmpvar = tmpvar+1
tmpvar = tmpvar+1
tmpvar = tmpvar+1
#ifdef B
tmpvar = tmpvar+1
#endif !B
#ifdef B
somerandom code here, would it be tested if the B-flag is not set?
#endif !B
tmpvar = tmpvar+1
tmpvar2 = 1/(tmpvar-constantVal)
When I run the build process with the SSA flags and the following configuration:
1. -DA -DB: 1/(16-6)
2. -DA: 1/(15-6)
3. -DB: 1/(6-6)
Does it found in every case the div by zero issue? or would it be ignored in case 1 and 2?
Thanks,
Kai
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page