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

SCM Repository

[diderot] Diff of /branches/charisee_dev/src/compiler/high-to-mid/handleEin.sml
ViewVC logotype

Diff of /branches/charisee_dev/src/compiler/high-to-mid/handleEin.sml

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

revision 3358, Fri Oct 30 21:30:53 2015 UTC revision 3369, Mon Nov 2 19:38:34 2015 UTC
# Line 46  Line 46 
46          val bind3 = (y,DstIL.EINAPP(SummationEin.main ein1,args))          val bind3 = (y,DstIL.EINAPP(SummationEin.main ein1,args))
47          val _ =testp["\n\n summation \n\n =>", toStringBind bind3]          val _ =testp["\n\n summation \n\n =>", toStringBind bind3]
48    
49    (* **************** lift no split ************* *)
50    (*
51     val (einapp1,e2)=L.testLift  bind3
52    val newbies5=e2@[einapp1]
53       val _ =  print("\n **** lift Length"^(Int.toString(length(e2))))
54    *)
55      (* **************** lift field phase ************* *)      (* **************** lift field phase ************* *)
56  (*  (*
57           val (einapp1,e2)=L.testLift  bind3           val (einapp1,e2)=L.testLift  bind3
# Line 81  Line 86 
86          val n= List.length(code)          val n= List.length(code)
87    
88            val _ = if (n>5)            val _ = if (n>5)
89           then  (String.concat["\n\n",star,":Name:",HighIL.Var.name srcy ,           then  print(String.concat["\n\n",star,":Name:",HighIL.Var.name srcy ,
90              ":VarCount(",Int.toString(useCount srcy),")",              ":VarCount(",Int.toString(useCount srcy),")",
91                  "\n\t",star,"Pieces now: ",Int.toString (n),                  "\n\t",star,"Pieces now: ",Int.toString (n),
92              " Fields:",Int.toString(!isField)," isReplaced:",Int.toString(!isReplaced),              " Fields:",Int.toString(!isField)," isReplaced:",Int.toString(!isReplaced),
93              " Replaced_Fields:",Int.toString(!isFieldR)              " Replaced_Fields:",Int.toString(!isFieldR)])
94                 ,toStringBind bind3])              else  print""
95              else  ""  
96    
97          val flatcode= List.foldr op@ [] code          val flatcode= List.foldr op@ [] code
98          (*val _=List.map (fn(_,DstIL.EINAPP(e,_))=>checkEin.checkEIN e | _=> 1) flatcode*)          (*val _=List.map (fn(_,DstIL.EINAPP(e,_))=>checkEin.checkEIN e | _=> 1) flatcode*)

Legend:
Removed from v.3358  
changed lines
  Added in v.3369

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