source: CIVL/examples/analysis/abs.c@ 0912bf4

1.23 2.0 main test-branch
Last change on this file since 0912bf4 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: 175 bytes
Line 
1#include <stdlib.h>
2
3void main(){
4 int a = 9;
5
6 for(int i =0; i < 10; i++){
7 a= abs(i * (i%3-1));
8 a= abs(i * (i%2-1));
9 a= abs(i * 0);
10 }
11}
Note: See TracBrowser for help on using the repository browser.