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 3443, Thu Nov 19 23:24:18 2015 UTC revision 3459, Mon Nov 23 19:29:51 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 liftflag=false
21        val splitflag=true
22        val splitlimit=SOME 1100
23    
24      val testinitial=0      val testinitial=0
25      val testing=0      val testing=0
26      fun testp n=(case testing      fun testp n=(case testing
# Line 47  Line 51 
51          val bind3 = (y,DstIL.EINAPP(SummationEin.main ein1,args))          val bind3 = (y,DstIL.EINAPP(SummationEin.main ein1,args))
52          val _ =testp["\n\n summation \n\n =>", toStringBind bind3]          val _ =testp["\n\n summation \n\n =>", toStringBind bind3]
53    
54       (* **************** lift no split ************* *)       (* **************** lift - split ************* *)
55          (*          val newbies5=  (case (splitflag,liftflag,splitlimit)
56                of (true,false,_) => Split.splitEinApp bind3
57                    (* **************** split phase ************* *)
58                | (true,true,SOME limit) =>  let
59                    (* **************** lift and split Limit ************* *)
60          val (einapp1,e2)=L.testLift  bind3          val (einapp1,e2)=L.testLift  bind3
61          val newbies5=e2@[einapp1]                  val _ =print (String.concat["\nSPLit with limit",Int.toString(limit),"\n **** lift Length:",Int.toString(length(e2))])
62          val _ =  print("\n **** lift Length"^(Int.toString(length(e2))))                  val newbies4=Split.limitSplit(einapp1,650)
63                    in (e2@newbies4) end
64          *)              | (true,true, NONE) => let
65      (* **************** lift and split************* *)                  (* **************** lift and split All ************* *)
66      (*                  val (einapp1,e2)=L.testLift  bind3
67                    val _ =  testp["\n **** lift Length"^(Int.toString(length(e2)))]
68                    val newbies4=Split.splitEinApp einapp1
69                    in (e2@newbies4) end
70                | (false,true,_) => let
71           val (einapp1,e2)=L.testLift  bind3           val (einapp1,e2)=L.testLift  bind3
72          val _ =  print("\n **** lift Length"^(Int.toString(length(e2))))          val _ =  print("\n **** lift Length"^(Int.toString(length(e2))))
73          val (newbies5)=Split.limitSplit(bind3,[],200)                  in (e2@[einapp1]) end
74      *)              |  (false,false,_)=>Split.splitEinApp bind3
75            (* end case *))
         (* **************** split phase ************* *)  
   
         val (newbies5)= Split.splitEinApp bind3  
   
   
76    
77          (**************** printing result ***************)          (**************** printing result ***************)
78          val _ =testp["\n\n Returning \n\n =>",          val _ =testp["\n\n Returning \n\n =>",
79          String.concatWith",\n\t"(List.map toStringBind newbies5)]          String.concatWith",\n\t"(List.map toStringBind newbies5)]
80          val n =length(newbies5)          val n =length(newbies5)
81          val _ = if (n > 10) then testp["\n **** SPLIT Length",Int.toString(n)] else 1          val _ = if (n > 10) then print(String.concat["\n **** SPLIT Length",Int.toString(n)]) else print ""
82           (* ************** ProbeEIN *********** *)           (* ************** ProbeEIN *********** *)
83          (*gives probeEIN the set. Could split into a sepearate step*)          (*gives probeEIN the set. Could split into a sepearate step*)
84          val fieldset= einSet.EinSet.empty          val fieldset= einSet.EinSet.empty

Legend:
Removed from v.3443  
changed lines
  Added in v.3459

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