source: CIVL/examples/analysis/unreached.c@ e275f74

1.23 2.0 main test-branch
Last change on this file since e275f74 was b1b88d8, checked in by Manchun Zheng <zmanchun@…>, 11 years ago

added analysis for abs function calls; unreachable code; and their options -showUnreached -analyze_abs; added tests (regress/AnalysisTest) as well.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@2316 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 161 bytes
Line 
1#define MAX(a,b) a>=b?a:b
2
3void main(){
4 int a=0;
5
6 a = MAX(a, 1);
7 a = a < 5 ? 10 : 100;
8 if(a>0){
9 a=1;
10 }else{
11 a=2;
12 }
13}
Note: See TracBrowser for help on using the repository browser.