summaryrefslogtreecommitdiff
path: root/Examples/contract/simple_c/example.c
blob: 85a3e14179ef0da4eac15451333cdccc731358a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <stdio.h>

int Circle (int x, int y, int radius) {
  /* Draw Circle */
  printf("Drawing the circle...\n");
  /* Return -1 to test contract post assertion */
  if (radius == 2)
    return -1;
  else
    return 1;
}