Changes between Version 9 and Version 10 of C Interface
- Timestamp:
- 03/08/10 11:25:16 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
C Interface
v9 v10 30 30 31 31 Think of the functions in {{{stdlib}}}, {{{stdio}}}, etc. We need some sort of abstract model of at least the most commonly-used functions. Most of them do not have state and should be representable in a simple way, perhaps abstracted away altogether. 32 33 We think the best approach is to create separate MiniMP library files corresponding to the standard C ones. For example, mathlib.mmp: 34 35 {{{ 36 abstract real atanh(real x); 37 abstract continuous(\infty) real cos(real x); 38 }}} 32 39 33 40 == Abstract Functions == … … 107 114 {{{ 108 115 l1: 109 #pragma factor(2:1) inv(i == spec.j && k == spec.s + 1)116 #pragma TASS factor(2:1) inv(i == spec.j && k == spec.s + 1) 110 117 while(...) 111 118 { … … 115 122 116 123 {{{ 117 #pragma input assume(a>=0 && a<=5) is(b)124 #pragma TASS input assume(a>=0 && a<=5) is(b) 118 125 int a; 119 126 }}}
