Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] View of /trunk/src/compiler/high-to-mid/test.sml
ViewVC logotype

View of /trunk/src/compiler/high-to-mid/test.sml

Parent Directory Parent Directory | Revision Log Revision Log

Revision 351 - (download) (annotate)
Fri Sep 24 01:14:58 2010 UTC (11 years, 9 months ago) by jhr
File size: 592 byte(s)
  Working on test driver for probe code
(* test.sml
 * COPYRIGHT (c) 2010 The Diderot Project (http://diderot.cs.uchicago.edu)
 * All rights reserved.
 * Test driver to the generation of probe code

structure Test =

    structure II = ImageInfo
    structure FD = FieldDef
    structure K = Kernel
    structure DstIL = MidIL

    structure PP = SSAPPFn(DstIL)

    fun expand fld = let
	  val code = Probe.expand (DstIL.Var.new "result", fld, DstIL.Var.new "pos")
	    print(concat["expand (", FD.toString fld, "):\n"]);
	    List.app (fn s => print("\t" ^ PP.assignToString s ^ "\n")) code


ViewVC Help
Powered by ViewVC 1.0.0