Model_t flattening example.
#include <stdio.h>
int
main (int argc, char *argv[])
{
int leavePorts = 0;
if (argc < 3 || argc > 4)
{
printf("Usage: flattenModel [-p] input-filename output-filename\n-p:list unused ports\n");
return 2;
}
if (argc == 3)
{
}
else
{
if (strcmp(argv[1], "-p") != 0)
{
printf("Usage: flattenModel [-p] input-filename output-filename\n-p:list unused ports\n");
return 2;
}
leavePorts = 1;
}
{
}
else
{
if (leavePorts == 1)
{
}
{
printf ("conversion failed ... ");
return 3;
}
if (argc == 4)
{
}
else
{
}
}
return 0;
}