source: CIVL/mods/dev.civl.abc/examples/svcomp/array.c

main
Last change on this file was aad342c, checked in by Stephen Siegel <siegel@…>, 3 years ago

Performing huge refactor to incorporate ABC, GMC, and SARL into CIVL repo and use Java modules.

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

  • Property mode set to 100644
File size: 234 bytes
Line 
1#include<stdio.h>
2#include<stdlib.h>
3
4struct complex_t{
5 int a;
6 int b;
7 int c[2];
8};
9
10int main(){
11 //int a[100/sizeof(int)];
12 int a[1024 / (8 * (int) sizeof (int))];
13 struct complex_t d={1,2,{3,4}};
14
15 a[0]=0;
16 a[1]=d.c[0];
17}
Note: See TracBrowser for help on using the repository browser.