(*
 * Copyright (c) 1997-1999 Massachusetts Institute of Technology
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 *)

(* $Id: variable.mli,v 1.19 1999/05/16 20:03:22 fftw Exp $ *)

type variable 

val make_temporary : unit -> variable
val clobbers : variable -> variable -> bool
val real_imag : variable -> variable -> bool
val increasing_indices : variable -> variable -> bool
val access_input : int -> variable * variable
val access_output : int -> variable * variable
val access_twiddle : int -> variable * variable
val same : 'a -> 'a -> bool
val similar : variable -> variable -> bool
val hash : variable -> int
val is_temporary : variable -> bool
val is_output : variable -> bool
val is_input : variable -> bool
val is_twiddle : variable -> bool
val make_named : string -> variable

val make_unparser :
    string * string option ->
      string * string option ->
	string * string option -> 
	  variable -> string

val make_real2hc_unparser :
    string * string option ->
      string * string option ->
	string * string option -> 
	  variable -> string

val make_realeven_unparser :
    string * string option ->
      string * string option ->
         variable -> string

val make_realodd_unparser :
    string * string option ->
      string * string option ->
         variable -> string

val make_realodd2_unparser :
    string * string option ->
      string * string option ->
         variable -> string

val make_hc2real_unparser :
    string * string option ->
      string * string option ->
	string * string option -> 
	  variable -> string

val make_hc2hc_forward_unparser :
    int ->
      string * string option ->
	string * string option ->
	  string * string option -> 
	    variable -> string

val make_hc2hc_backward_unparser :
    int ->
      string * string option ->
	string * string option ->
	  string * string option -> 
	    variable -> string

