Changes between Version 1 and Version 2 of C Interface


Ignore:
Timestamp:
02/01/10 09:51:09 (16 years ago)
Author:
Stephen Siegel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • C Interface

    v1 v2  
    1 How will one make up a C program for the TASS model extractor?
     1How will one make up a C program for the TASS model extractor?  This page is organized by issues that arise.
    22
    33== Input/Output ==
    44
     5A real scientific program written in C does not have "input" and "output" variables  Inputs may come from a variety of sources, mainly from files.   But preprocessor directives may also be considered input, there may be input from the terminal, or from other sources.  Output is also typically written to files or the screen.  How do we model the input/output in this case?   What should we expect the user to do?    Perhaps the user should write a "TASS harness" which wraps the code in some way that specifies the input and output clearly?  Ideas, please.
     6
    57== Assumptions ==
     8
     9In MiniMP one writes:
     10{{{
     11input int N {N>0};
     12}}}
     13How to do this in C?
     14
     15== Non-deterministic select statement ==
     16
     17Does not exist in C. Do we need it?
    618
    719== Assertion Language ==
    820
    9  * forall/exists
     21Some MiniMP expressions do not occur in C, such as {{{forall}}}, {{{exists}}}.  How to express them?
     22
    1023
    1124== Loop invariants/co-invariants ==
    1225
     26
    1327== Library calls ==
    1428
     29Think 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.