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 3440, Mon Nov 16 19:16:54 2015 UTC revision 3441, Wed Nov 18 00:24:04 2015 UTC
# Line 14  Line 14 
14      structure DstIL = MidIL      structure DstIL = MidIL
15      structure P=Printer      structure P=Printer
16      structure MidToS=MidToString      structure MidToS=MidToString
17      structure L=LiftEin      (*structure L=LiftEin*)
18      in      in
19    
20      val testinitial=0      val testinitial=0
# Line 37  Line 37 
37    
38    
39          (* ************* Sweep for 0's'*********** *)          (* ************* Sweep for 0's'*********** *)
40          val _ =(String.concat["Pre Sweep\n",P.printbody body,"\n"])          val _ =testp["Pre Sweep\n",P.printbody body,"\n"]
41          val bodysweep=sweepEin.sweep body          val bodysweep=sweepEin.sweep body
42          val ein1=Ein.EIN{params=params, index=index, body=bodysweep}          val ein1=Ein.EIN{params=params, index=index, body=bodysweep}
43          val _ =(String.concat["Post Sweep\n",P.printbody bodysweep,"\n"])          val _ =testp["Post Sweep\n",P.printbody bodysweep,"\n"]
44    
45    
46          (* ************** distribute and push Summation*********** *)          (* ************** distribute and push Summation*********** *)
# Line 58  Line 58 
58      (*      (*
59           val (einapp1,e2)=L.testLift  bind3           val (einapp1,e2)=L.testLift  bind3
60          val _ =  print("\n **** lift Length"^(Int.toString(length(e2))))          val _ =  print("\n **** lift Length"^(Int.toString(length(e2))))
61          val newbies5=  Split.limitSplit(einapp1,e2,200)          val (newbies5)=Split.limitSplit(bind3,[],200)
62      *)      *)
63    
64          (* **************** split phase ************* *)          (* **************** split phase ************* *)
65  (*  
66          val (newbies5)= Split.splitEinApp bind3          val (newbies5)= Split.splitEinApp bind3
 *)  
67    
 (* **************** split With Limit phase ************* *)  
68    
 val (newbies5)=Split.limitSplit(bind3,[],200)  
69    
70          (**************** printing result ***************)          (**************** printing result ***************)
71          val _ =testp["\n\n Returning \n\n =>",          val _ =testp["\n\n Returning \n\n =>",
72          String.concatWith",\n\t"(List.map toStringBind newbies5)]          String.concatWith",\n\t"(List.map toStringBind newbies5)]
73          val n =length(newbies5)          val n =length(newbies5)
74          val _ = if (n > 10) then print("\n **** SPLIT Length"^(Int.toString(n))) else print ""          val _ = if (n > 10) then testp["\n **** SPLIT Length",Int.toString(n)] else 1
         val _=print"probein\n"  
75           (* ************** ProbeEIN *********** *)           (* ************** ProbeEIN *********** *)
76          (*gives probeEIN the set. Could split into a sepearate step*)          (*gives probeEIN the set. Could split into a sepearate step*)
77          val fieldset= einSet.EinSet.empty          val fieldset= einSet.EinSet.empty
# Line 93  Line 89 
89          val code=iter(newbies5, fieldset)          val code=iter(newbies5, fieldset)
90    
91          val n= List.length(code)          val n= List.length(code)
92          val _ =print(String.concat[HighIL.Var.name srcy ," Pieces",Int.toString (n),"\n"])          val _ =testp[HighIL.Var.name srcy ," Pieces",Int.toString (n),"\n"]
93  (*  (*
94            val _ = if (n>5)            val _ = if (n>5)
95            then  print(String.concat["\n",star,":Name:",HighIL.Var.name srcy ,            then  print(String.concat["\n",star,":Name:",HighIL.Var.name srcy ,

Legend:
Removed from v.3440  
changed lines
  Added in v.3441

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