Prints the rule, reaction, and event formulas in a given SBML document.
#include <stdio.h>
#include <stdlib.h>
void
{
char *formula;
{
{
{
}
}
printf(") := ");
{
printf("(no body defined)");
}
else
{
printf("%s\n", formula);
free(formula);
}
}
}
void
printRuleMath (
unsigned int n,
const Rule_t *r)
{
char *formula;
{
printf("Rule %d, formula: %s\n", n, formula);
free(formula);
}
}
void
{
char *formula;
{
{
printf("Reaction %d, formula: %s\n", n, formula);
free(formula);
}
}
}
void
{
const char *variable;
char *formula;
{
printf(" EventAssignment %d, trigger: %s = %s\n", n, variable, formula);
free(formula);
}
}
void
printEventMath (
unsigned int n,
Event_t *e)
{
char *formula;
unsigned int i;
{
printf("Event %d delay: %s\n", n, formula);
free(formula);
}
{
printf("Event %d trigger: %s\n", n, formula);
free(formula);
}
{
}
printf("\n");
}
void
{
unsigned int n;
{
}
{
}
printf("\n");
{
}
printf("\n");
{
}
}
int
main (int argc, char *argv[])
{
if (argc != 2)
{
printf("Usage: printMath filename\n");
return 1;
}
printMath(m);
printf("\n");
return 0;
}