Changes between Version 9 and Version 10 of C Interface


Ignore:
Timestamp:
03/08/10 11:25:16 (16 years ago)
Author:
Stephen Siegel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • C Interface

    v9 v10  
    3030
    3131Think 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
     33We think the best approach is to create separate MiniMP library files corresponding to the standard C ones.  For example, mathlib.mmp:
     34
     35{{{
     36abstract real atanh(real x);
     37abstract continuous(\infty) real cos(real x);
     38}}}
    3239
    3340== Abstract Functions ==
     
    107114{{{
    108115l1:
    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)
    110117while(...)
    111118{
     
    115122
    116123{{{
    117 #pragma input assume(a>=0 && a<=5) is(b)
     124#pragma TASS input assume(a>=0 && a<=5) is(b)
    118125int a;
    119126}}}