LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Advertise
  • Mirrors
  • Logos
  • Contact us
  • Find Resources
  • Job Opportunity
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Cvs-checkins > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: cvs at opencores.org<cvs@o...>
    Date: Tue May 30 19:38:15 CEST 2006
    Subject: [cvs-checkins] MODIFIED: jop ...
    Top
    Date: 00/06/05 30:19:38

    Added: jop/java/target/src/test/wcet Method.java
    Log:
    Some method testing


    Revision Changes Path
    1.1 jop/java/target/src/test/wcet/Method.java

    http://www.opencores.org/cvsweb.shtml/jop/java/target/src/test/wcet/Method.java?rev=1.1&content-type=text/x-cvsweb-markup

    Index: Method.java
    ===================================================================
    package wcet;

    public class Method {

    /**
    * @param args
    */
    public static void main(String[] args) {

    foo();
    }

    static void foo() {

    for (int i=0; i<10; ++i) { // @WCA loop=10
    a();
    b();
    }
    }

    static void a() {

    int val = 123;
    for (int i=0; i<10; ++i) { // @WCA loop=10
    val += val;
    }
    }

    static void b() {

    int val = 123;
    for (int i=0; i<5; ++i) { // @WCA loop=5
    val += c();
    }
    }

    static int c() {

    return 456;
    }
    }



     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.