source:
CIVL/examples/fortran/cv2018/equivalence/resid/residual_driver.c@
cc8e265
| Last change on this file since cc8e265 was d5096aa, checked in by , 8 years ago | |
|---|---|
|
|
| File size: 319 bytes | |
| Line | |
|---|---|
| 1 | #include<civlc.cvh> |
| 2 | #include<stdio.h> |
| 3 | |
| 4 | void RESIDUAL_8(int* N, int ia1[], int ia2[]); |
| 5 | |
| 6 | $input int X; |
| 7 | $assume(0 < X); |
| 8 | |
| 9 | void main(){ |
| 10 | int a[1], b[1]; |
| 11 | int size = 1; |
| 12 | |
| 13 | a[0] = X; |
| 14 | b[0] = 0; |
| 15 | |
| 16 | RESIDUAL_8(&size, a, b); |
| 17 | |
| 18 | |
| 19 | //for (int i = 0; i < 1; i++){ |
| 20 | // printf("%s%d%s%d", "B[", i, "] = ", b[i]); |
| 21 | //} |
| 22 | } |
| 23 |
Note:
See TracBrowser
for help on using the repository browser.
