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

SCM Repository

[diderot] Diff of /branches/charisee/src/compiler/high-il/normalize-ein.sml
ViewVC logotype

Diff of /branches/charisee/src/compiler/high-il/normalize-ein.sml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2921, Tue Mar 3 02:08:04 2015 UTC revision 2922, Tue Mar 3 03:55:09 2015 UTC
# Line 43  Line 43 
43      (*mkSum:sum_indexid list * ein_exp->int *ein_exp      (*mkSum:sum_indexid list * ein_exp->int *ein_exp
44      *distribute summation expression      *distribute summation expression
45      *)      *)
46    
47      fun mkSum(c1,e1)=(case e1
48            of E.Lift e   => (1,E.Lift(E.Sum(c1,e)))
49            | E.Tensor(_,[]) => (1,e1)
50            | E.Const _   => (1,e1)
51            | E.ConstR _  => (1,e1)
52            | E.Prod p    => filterSca(c1,p)
53            | _           => (0,E.Sum(c1,e1))
54            (*end case*))
55    (*
56      fun mkSum(c1,e1)=(case e1      fun mkSum(c1,e1)=(case e1
57          of E.Conv _   => (0,E.Sum(c1,e1))          of E.Conv _   => (0,E.Sum(c1,e1))
58          | E.Field _   => (0,E.Sum(c1,e1))          | E.Field _   => (0,E.Sum(c1,e1))
# Line 69  Line 79 
79          | E.Value _   => err("Value used before expand")          | E.Value _   => err("Value used before expand")
80          | E.Img _     => err("Probe used before expand")          | E.Img _     => err("Probe used before expand")
81          (*end case*))          (*end case*))
82    *)
83      (* mkapply:mu list*ein_exp->int*ein_exp      (* mkapply:mu list*ein_exp->int*ein_exp
84      * rewrite Apply      * rewrite Apply
85      *)      *)

Legend:
Removed from v.2921  
changed lines
  Added in v.2922

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0