1.23
2.0
main
test-branch
|
Last change
on this file since e2877ba was efd4f32, checked in by Manchun Zheng <zmanchun@…>, 11 years ago |
|
fixed general transformer in the way that it deals with the main function; fixed CUDA and MPI transformer accordingly; added tests for the general transformer.
git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@2421 fb995dde-84ed-4084-dfe6-e5aef3e2452c
|
-
Property mode
set to
100644
|
|
File size:
114 bytes
|
| Line | |
|---|
| 1 | int sum(int k){
|
|---|
| 2 | return (1+k)*k/2;
|
|---|
| 3 | }
|
|---|
| 4 |
|
|---|
| 5 | int main(int argc, char* argv[]){
|
|---|
| 6 | int a=9;
|
|---|
| 7 |
|
|---|
| 8 | a = sum(a);
|
|---|
| 9 | return 0;
|
|---|
| 10 | }
|
|---|
| 11 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.